:root {
    --bg: #040404;
    --bg-soft: #090909;
    --panel: rgba(11, 11, 11, 0.92);
    --panel-soft: rgba(15, 15, 15, 0.94);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f5f5f5;
    --muted: #8f8f8f;
    --muted-strong: #bfbfbf;
    --white: #ffffff;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}


* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font: 400 16px/1.6 "Segoe UI Variable Text", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.02), transparent 28%),
        linear-gradient(180deg, #030303 0%, #070707 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.34;
    background-image:
        radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px),
        radial-gradient(circle at 27% 64%, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.5px),
        radial-gradient(circle at 39% 18%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.5px),
        radial-gradient(circle at 52% 51%, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.5px),
        radial-gradient(circle at 63% 31%, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.5px),
        radial-gradient(circle at 74% 73%, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.5px),
        radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.5px);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3,
.brand-text,
.hero-stat strong,
.detail-card strong {
    font-family: "Bahnschrift", "Segoe UI", sans-serif;
    letter-spacing: 0.01em;
}

h1 {
    font-size: clamp(2.7rem, 5vw, 4.7rem);
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.4rem, 2.2vw, 2.1rem);
}

h3 {
    font-size: 1.06rem;
}

.site-wrap {
    position: relative;
    max-width: 1880px;
    margin: 0 auto;
}

.site-header,
.top-nav,
.header-tools,
.hero-actions,
.hero-stats,
.section-header,
.button-row,
.account-row,
.detail-hero,
.detail-meta,
.site-footer,
.category-strip,
.pagination {
    display: flex;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    align-items: center;
    gap: 20px;
    min-height: 70px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 2, 2, 0.94);
    backdrop-filter: blur(10px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 6px 14px 6px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.brand-mark,
.search-icon,
.feature-icon,
.top-rank,
.role-avatar,
.peak-avatar,
.server-avatar,
.guild-avatar,
.account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-mark {
    width: 42px;
    height: 42px;
    color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        #000000 url("../brand/stalkly-logo.png") center/74% no-repeat;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 16px 26px rgba(0, 0, 0, 0.32);
}

.brand-mark svg,
.search-icon svg,
.feature-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-mark svg {
    width: 1px;
    height: 1px;
    opacity: 0;
    fill: transparent;
    stroke: none;
    pointer-events: none;
}

.brand-text {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.top-nav {
    flex: 1;
    gap: 6px;
    min-width: 0;
}

.top-nav-link,
.sub-nav-link,
.category-pill,
.button,
.page-link,
.section-link,
.user-chip {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.top-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 10px;
    color: var(--muted-strong);
    font-weight: 600;
}

.top-nav-link.is-active,
.top-nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.header-tools {
    align-items: center;
    gap: 10px;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 250px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.search-icon {
    color: var(--muted);
}

.header-search input {
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
}

.header-search input::placeholder {
    color: #6f6f6f;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.button-light,
.page-link.is-active {
    color: #050505;
    background: var(--white);
    border-color: var(--white);
}

.button-light:hover,
.page-link.is-active:hover {
    background: #ededed;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.button-dark,
.button-ghost,
.page-link {
    color: var(--muted-strong);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.button-dark:hover,
.button-ghost:hover,
.page-link:hover,
.section-link:hover {
    color: var(--white);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
}

.account-shell {
    position: relative;
}

.account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 3px 10px 3px 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--white);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.account-trigger:hover,
.account-shell.is-open .account-trigger {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
}

.account-trigger-avatar {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-trigger-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    background: var(--account-avatar-surface);
}

.account-trigger-name {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.account-trigger-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-strong);
}

.account-trigger-caret svg,
.account-menu-icon svg,
.profile-preview-button svg,
.profile-mini-action svg,
.profile-meta-icon svg,
.profile-panel-icon svg,
.profile-tab-badge svg,
.profile-list-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-shell.is-open .account-trigger-caret {
    transform: rotate(180deg);
}

.account-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 40;
    width: min(282px, calc(100vw - 24px));
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.42);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        linear-gradient(180deg, rgba(8, 8, 8, 0.985), rgba(3, 3, 3, 0.985));
    backdrop-filter: blur(18px);
}

.account-menu[hidden] {
    display: none;
}

.account-menu,
.account-menu-section {
    display: grid;
    gap: 10px;
}

.account-menu-link,
.account-menu-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
}

.account-menu-link {
    color: var(--muted-strong);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.account-menu-link:hover,
.account-menu-link.is-current {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.account-menu-link.is-accent {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.account-menu-link.is-danger {
    color: #ff807b;
}

.account-menu-link.is-danger:hover {
    background: rgba(255, 128, 123, 0.08);
}

.account-menu-highlight {
    color: #f4e3a1;
    font-weight: 800;
    border: 1px solid rgba(244, 227, 161, 0.08);
    background: linear-gradient(180deg, rgba(244, 227, 161, 0.08), rgba(255, 255, 255, 0.02));
}

.account-menu-section {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-menu-label {
    padding: 0 12px;
    color: #6c7481;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.account-menu-icon.is-premium {
    color: #f4e3a1;
}

.account-menu-badge {
    margin-left: auto;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--white);
    font-size: 0.84rem;
    line-height: 28px;
    background: rgba(255, 255, 255, 0.06);
}

.account-menu-link.is-disabled {
    cursor: default;
    opacity: 0.48;
    pointer-events: none;
}

.sub-nav {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 2, 2, 0.92);
}

.sub-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 14px;
    color: #656565;
    font-size: 0.92rem;
    white-space: nowrap;
}

.sub-nav-link::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.sub-nav-link strong {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 0.68rem;
}

.sub-nav-link:hover {
    color: var(--muted-strong);
}

.sub-nav-link.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.page-main {
    display: grid;
    gap: 28px;
    padding: 26px 26px 44px;
}

.flash-stack,
.feature-strip,
.peak-grid,
.server-grid,
.top-list,
.stack-list,
.metric-grid,
.role-grid,
.guild-list {
    display: grid;
    gap: 18px;
}

.flash-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 12000;
    width: min(360px, calc(100vw - 32px));
    gap: 10px;
    pointer-events: none;
    transition: opacity .28s ease, transform .28s ease;
}

.flash-stack.is-hiding {
    opacity: 0;
    transform: translateY(10px);
}

.flash-item,
.panel,
.feature-card,
.peak-card,
.server-card,
.top-item,
.stack-item,
.notice-box,
.metric-card,
.activity-card,
.role-card,
.guild-item {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.flash-item {
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(10, 12, 18, .96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
    backdrop-filter: blur(14px);
}

.flash-success {
    border-color: rgba(148, 255, 188, 0.28);
    color: #dfffe9;
}

.flash-error {
    border-color: rgba(255, 152, 152, 0.26);
    color: #ffe4e4;
}

.hero-stage {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    padding: 84px 24px 70px;
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 32%),
        linear-gradient(180deg, rgba(4, 4, 4, 0.74), rgba(4, 4, 4, 0.92));
}

.hero-stage::before {
    content: "";
    position: absolute;
    inset: auto;
    left: 50%;
    bottom: 64px;
    width: 420px;
    height: 420px;
    opacity: 0.08;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.85);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.hero-center {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 20px;
    text-align: center;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: #b5b5b5;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04);
}

.hero-copy {
    max-width: 760px;
    color: #999999;
    font-size: 1.26rem;
    line-height: 1.65;
}

.hero-actions {
    gap: 14px;
}

.hero-stats {
    justify-content: center;
    gap: 36px;
    margin-top: 28px;
}

.hero-stat {
    min-width: 110px;
}

.hero-stat strong {
    display: block;
    margin-bottom: 4px;
    font-size: clamp(2rem, 3vw, 3rem);
}

.hero-stat span {
    color: #696969;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
    content-visibility: auto;
    padding: 28px 26px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.feature-card h2 {
    margin-bottom: 10px;
    font-size: 1.55rem;
}

.feature-card p,
.section-copy,
.empty-note,
.notice-box p,
.plain-list,
.server-card-head p,
.peak-head p,
.detail-copy-block p,
.guild-media small,
.role-card p,
.site-footer p {
    color: var(--muted);
}

.panel,
.notice-box,
.metric-card,
.activity-card,
.role-card,
.guild-item,
.top-item,
.server-card,
.peak-card {
    content-visibility: auto;
    border-radius: var(--radius-lg);
}

.panel {
    padding: 24px;
}

.panel-wide {
    padding: 28px;
}

.section-header {
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-header > div,
.server-card-head > div,
.peak-head > div,
.account-row > div,
.detail-copy-block {
    display: grid;
    gap: 6px;
}

.section-stack {
    align-items: flex-start;
    flex-direction: column;
}

.section-kicker {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.03);
}

.profile-search-results {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        rgba(8, 8, 8, 0.94);
}

.profile-search-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.profile-search-card {
    min-width: 0;
    min-height: 74px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.035);
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.profile-search-card:hover,
.profile-search-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.055);
}

.profile-search-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-search-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
}

.profile-search-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.profile-search-copy strong,
.profile-search-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-search-copy strong {
    color: #fff;
    font-size: 0.96rem;
}

.profile-search-copy small {
    color: rgba(255, 255, 255, 0.52);
    font-weight: 700;
}

.profile-search-open {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}

.peak-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.peak-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 156px;
    padding: 20px;
    color: var(--peak-ink, var(--white));
    background-image: var(--peak-surface);
    background-size: cover;
    background-position: center;
}

.peak-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 46%);
    z-index: 0;
}

.peak-card > * {
    position: relative;
    z-index: 1;
}

.peak-rank,
.server-rank-line span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--white);
    font-weight: 700;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(4px);
}

.peak-head,
.server-card-head,
.peak-stats,
.server-card-stats,
.guild-media {
    display: flex;
}

.peak-head,
.server-card-head,
.guild-media,
.account-row {
    align-items: center;
    gap: 14px;
}

.peak-avatar,
.server-avatar,
.guild-avatar,
.account-avatar,
.role-avatar {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    object-fit: cover;
}

.peak-fallback,
.server-fallback,
.guild-fallback,
.account-fallback {
    color: #050505;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #cfcfcf 100%);
}

.peak-stats,
.server-card-stats {
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.peak-stats span,
.server-card-stats span,
.stack-item,
.detail-meta li {
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(4px);
}

.catalog-grid,
.detail-grid,
.discord-grid {
    display: grid;
    gap: 24px;
}

.catalog-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.88fr);
}

.category-strip {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.filter-panel {
    display: grid;
    gap: 22px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 28%),
        linear-gradient(180deg, rgba(8, 8, 8, 0.98), rgba(8, 8, 8, 0.92));
}

.category-shell {
    display: grid;
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
    gap: 18px;
    align-items: start;
}

.category-summary {
    display: grid;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.07), transparent 36%),
        rgba(255, 255, 255, 0.03);
}

.category-summary-kicker {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-summary strong {
    font-family: "Bahnschrift", "Segoe UI", sans-serif;
    font-size: 1.5rem;
    line-height: 1.1;
}

.category-summary p {
    color: var(--muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.03);
}

.category-pill strong {
    color: var(--white);
}

.category-pill.is-active,
.category-pill:hover {
    color: var(--white);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.08);
}

.category-pill-rich {
    justify-content: space-between;
    align-items: flex-start;
    min-height: 92px;
    padding: 16px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.02);
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.category-pill-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.category-pill-copy small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.category-pill-copy > span {
    color: var(--white);
    font-weight: 700;
    line-height: 1.25;
}

.category-pill-rich strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
}

.category-pill-rich.is-active,
.category-pill-rich:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.directory-preview {
    display: grid;
    gap: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 28%),
        linear-gradient(180deg, rgba(8, 8, 8, 0.98), rgba(8, 8, 8, 0.92));
}

.directory-preview-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-directory .panel {
    padding: 22px;
}

.page-directory .panel-wide {
    padding: 24px;
}

.page-directory .vote-hero {
    gap: 18px;
    background:
        radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.06), transparent 20%),
        linear-gradient(180deg, rgba(7, 7, 7, 0.99), rgba(7, 7, 7, 0.93));
}

.page-directory .vote-hero-copy {
    gap: 10px;
    max-width: 640px;
}

.page-directory .vote-hero h1 {
    max-width: 10ch;
    font-size: clamp(2.3rem, 4vw, 4rem);
    letter-spacing: -0.03em;
}

.page-directory .hero-copy {
    max-width: 58ch;
    color: #919191;
    font-size: 1.03rem;
    line-height: 1.72;
}

.page-directory .vote-hero-stats {
    gap: 12px;
}

.page-directory .hero-stat {
    min-width: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-directory .hero-stat strong {
    margin-bottom: 8px;
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
}

.page-directory .hero-stat span {
    color: #757575;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
}

.page-directory .vote-hero-highlight {
    max-width: 430px;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        rgba(255, 255, 255, 0.02);
}

.page-directory .section-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.page-directory .section-header {
    margin-bottom: 10px;
}

.page-directory .section-link {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.02);
}

.page-directory .filter-panel {
    padding: 10px 14px;
}

.page-directory .filter-panel-compact {
    display: block;
}

.directory-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.directory-filter-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.02);
}

.directory-filter-menu {
    position: relative;
    flex: 0 1 300px;
    min-width: min(100%, 220px);
}

.directory-filter-menu[open] {
    z-index: 40;
}

.directory-filter-menu summary {
    list-style: none;
}

.directory-filter-menu summary::-webkit-details-marker {
    display: none;
}

.directory-filter-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
        rgba(9, 10, 13, 0.92);
    cursor: pointer;
    user-select: none;
}

.directory-filter-trigger:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.2);
    outline-offset: 2px;
}

.directory-filter-trigger-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.directory-filter-trigger-copy strong {
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.2;
}

.directory-filter-trigger-copy small {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.directory-filter-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.62);
    flex-shrink: 0;
    transition: transform 180ms ease, color 180ms ease;
}

.directory-filter-trigger-icon svg {
    width: 100%;
    height: 100%;
}

.directory-filter-menu[open] .directory-filter-trigger-icon {
    color: var(--white);
    transform: rotate(180deg);
}

.directory-filter-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(340px, calc(100vw - 48px));
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(10, 10, 12, 0.98)),
        rgba(9, 10, 13, 0.98);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(20px);
}

.directory-filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.directory-filter-option:hover,
.directory-filter-option:focus-visible {
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.directory-filter-option.is-active {
    border-color: rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.04);
    color: var(--white);
}

.directory-filter-option-copy {
    display: grid;
    gap: 2px;
}

.directory-filter-option-copy small {
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.directory-filter-option-copy strong {
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
}

.directory-filter-option-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.76rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
}

.directory-filter-reset,
.directory-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.directory-filter-reset {
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
}

.directory-filter-count {
    color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.02);
}

.page-directory .catalog-grid {
    grid-template-columns: minmax(0, 1.92fr) minmax(280px, 0.76fr);
    gap: 20px;
}

.page-directory .catalog-side {
    display: grid;
    gap: 18px;
    align-content: start;
}

.page-directory .catalog-side .panel {
    padding: 20px;
}

.page-directory .catalog-side h2 {
    font-size: clamp(1.08rem, 1.35vw, 1.44rem);
}

.page-directory .top-list,
.page-directory .stack-list {
    gap: 8px;
}

.page-directory .top-item {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
        rgba(0, 0, 0, 0.28);
}

.page-directory .top-item strong {
    font-size: 0.94rem;
    font-weight: 700;
}

.page-directory .top-item small {
    font-size: 0.76rem;
}

.page-directory .top-rank {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    font-size: 0.76rem;
    background: linear-gradient(180deg, #f5f5f5 0%, #d7d7d7 100%);
}

.page-directory .top-value {
    color: #d1d1d1;
    font-size: 0.86rem;
    font-weight: 600;
}

.page-directory .stack-item {
    padding: 10px 12px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
        rgba(0, 0, 0, 0.28);
}

.page-directory .stack-item strong {
    font-size: 0.92rem;
}

.page-directory .empty-note {
    font-size: 0.96rem;
}

.server-radar-shell {
    display: grid;
    gap: 22px;
    overflow: hidden;
}

.server-radar-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.server-radar-stage {
    position: relative;
    isolation: isolate;
}

.server-radar-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 0.92;
    pointer-events: none;
}

.server-radar-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.server-radar-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.server-radar-poster {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    min-height: 274px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    color: var(--poster-ink, #ffffff);
    background-image: var(--poster-surface);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.server-radar-poster::before,
.server-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: none;
    opacity: 0;
    pointer-events: none;
}

.server-radar-poster::after,
.server-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(4, 4, 4, 0.18), rgba(4, 4, 4, 0.44) 38%, rgba(4, 4, 4, 0.92) 100%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 24%);
}

.server-radar-card:hover .server-radar-poster,
.server-radar-card:focus-visible .server-radar-poster {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.34);
}

.server-radar-top,
.server-radar-middle,
.server-radar-stats {
    position: relative;
    z-index: 2;
}

.server-radar-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.server-radar-server {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.server-radar-avatar,
.server-poster-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.44);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.server-radar-avatar-fallback,
.server-poster-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #040404;
    background: linear-gradient(180deg, #ffffff, #d4d4d4);
}

.server-radar-copy,
.server-poster-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.server-radar-copy strong,
.server-poster-copy strong {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-radar-copy span,
.server-poster-copy span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.server-radar-rank,
.server-rank-chip,
.server-source-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(8px);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.server-radar-middle,
.server-poster-center {
    display: grid;
    gap: 8px;
    align-content: end;
    min-height: 96px;
}

.server-radar-tag,
.server-poster-tagline {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.28);
}

.server-poster-event-lockup {
    display: grid;
    gap: 4px;
    align-content: end;
    max-width: min(100%, 360px);
}

.server-poster-event-lockup small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.server-poster-event-lockup strong {
    font-size: clamp(1.26rem, 2vw, 1.9rem);
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1.02;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.server-poster-event-lockup span {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.82rem;
    font-weight: 700;
}

.server-radar-stats,
.server-poster-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.server-radar-stats span,
.server-poster-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(10px);
}

.server-radar-stats i,
.server-poster-stat i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.76);
}

.server-radar-stats svg,
.server-poster-stat svg {
    width: 15px;
    height: 15px;
}

.server-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@keyframes neon-orbit-spin {
    from {
        transform: rotate(0deg) scale(0.92);
    }

    to {
        transform: rotate(360deg) scale(1.04);
    }
}

.server-card {
    position: relative;
    isolation: isolate;
    min-height: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.98), rgba(6, 6, 6, 0.97));
    color: inherit;
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.server-card::before {
    content: "";
    position: absolute;
    inset: -20px;
    z-index: 0;
    border-radius: 36px;
    opacity: 0;
    pointer-events: none;
    filter: blur(20px);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.08) 18%, rgba(255, 255, 255, 0) 40%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.06) 18%, rgba(255, 255, 255, 0) 40%);
    animation: neon-orbit-spin 6.6s linear infinite;
    transition: opacity 0.22s ease;
}

.server-card > * {
    position: relative;
    z-index: 1;
}

.server-card:hover,
.server-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.server-card:hover::before,
.server-card:focus-visible::before,
.server-card.is-active::before {
    opacity: 1;
}

.server-card.is-active {
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 48px rgba(0, 0, 0, 0.28);
}

.server-card-poster {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
    min-height: 100%;
    align-content: stretch;
}

.server-poster {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    isolation: isolate;
    min-height: 246px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    color: var(--poster-ink, #ffffff);
    background-image: var(--poster-surface);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.server-poster-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.server-poster-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.server-source-chip-soft {
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.12);
}

.server-card-body {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 0;
    padding: 0 2px 2px;
}

.server-card-summary p {
    min-height: 3.3em;
    margin: 0;
    color: #aeb3bd;
    line-height: 1.66;
    font-size: 0.93rem;
}

.server-card-inline-stats,
.vote-card-inline-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.server-inline-stat,
.vote-inline-stat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #a8adb8;
    font-size: 0.84rem;
    font-weight: 700;
}

.server-inline-stat::before,
.vote-inline-stat::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #848aa0;
}

.server-inline-stat-live::before,
.vote-inline-stat-live::before {
    background: #2bd673;
}

.server-card-description,
.vote-card-description {
    min-height: 72px;
    color: #a3a7b2;
    line-height: 1.72;
    font-size: 0.96rem;
}

.server-card-footer,
.vote-card-footer,
.server-card-footerline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.server-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.server-card-pill,
.vote-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #d9dce4;
    background: rgba(255, 255, 255, 0.03);
}

.server-card-pill-icon,
.vote-card-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.server-card-pill-icon svg,
.vote-card-heart svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    stroke: none;
}

.server-card-foot {
    margin: 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.46;
}

.server-card-vote {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    color: #f4f4f4;
}

.server-card-vote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: currentColor;
    background: rgba(255, 255, 255, 0.06);
}

.server-card-vote-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    stroke: none;
}

.server-card-vote-copy {
    display: grid;
    gap: 2px;
}

.server-card-vote-copy small {
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.server-card-vote-copy strong {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}

.server-card-vote.is-liked {
    color: #ffffff;
    border-color: rgba(255, 219, 103, 0.22);
    background: linear-gradient(180deg, rgba(255, 219, 103, 0.09), rgba(255, 219, 103, 0.03));
    text-shadow: none;
}

.server-card-vote.is-liked .server-card-vote-icon {
    background: rgba(255, 219, 103, 0.16);
    color: #ffdf82;
}

.top-list {
    gap: 12px;
}

.top-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
}

.top-rank {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #080808;
    font-weight: 800;
    background: #f0f0f0;
}

.top-item small {
    color: var(--muted);
}

.top-value {
    color: var(--white);
    font-weight: 700;
}

.stack-list {
    gap: 12px;
}

.stack-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pagination {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--muted-strong);
}

.discord-grid {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
}

.notice-box {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.notice-muted {
    background: var(--panel-soft);
}

.notice-error {
    border-color: rgba(255, 153, 153, 0.28);
}

.plain-list {
    margin: 0;
    padding-left: 18px;
}

.button-row {
    gap: 10px;
    flex-wrap: wrap;
}

.guild-list {
    max-height: 560px;
    overflow: auto;
    padding-right: 4px;
}

.guild-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px minmax(220px, 0.92fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
}

.guild-field {
    display: grid;
    gap: 8px;
}

.guild-field span {
    color: var(--muted);
    font-size: 0.84rem;
}

.guild-field select {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
}

.guild-visibility {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.guild-visibility input {
    margin: 0;
    accent-color: #ffffff;
}

.guild-visibility span {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
}

.guild-visibility small {
    color: var(--muted);
    line-height: 1.45;
}

.guild-button {
    width: 100%;
}

.error-note {
    color: #ffb1b1;
}

.missing-bot-note {
    display: grid;
    gap: 6px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.missing-bot-note strong {
    color: var(--white);
}

.missing-bot-note span {
    color: var(--muted);
}

.page-onboarding .page-main,
.page-leaderboard .page-main {
    gap: 22px;
}

.onboarding-hero,
.onboarding-shell,
.onboarding-hero-stats,
.studio-flow-grid,
.studio-metric-grid,
.studio-status-list,
.leaderboard-stage,
.leaderboard-overview,
.leaderboard-grid,
.leaderboard-list {
    display: grid;
}

.onboarding-hero {
    position: relative;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background:
        radial-gradient(circle at top right, rgba(212, 224, 255, 0.14), transparent 26%),
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(135deg, rgba(6, 8, 12, 0.98) 0%, rgba(12, 16, 22, 0.96) 52%, rgba(7, 8, 10, 0.98) 100%);
}

.onboarding-hero::before,
.onboarding-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(18px);
}

.onboarding-hero::before {
    top: -48px;
    right: -22px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.08);
}

.onboarding-hero::after {
    bottom: -56px;
    left: 28px;
    width: 220px;
    height: 220px;
    background: rgba(101, 136, 199, 0.12);
}

.onboarding-hero-copy,
.onboarding-showcase,
.studio-panel,
.studio-rail,
.studio-main,
.leaderboard-stage-copy,
.leaderboard-card {
    display: grid;
    gap: 18px;
}

.onboarding-hero-copy,
.onboarding-showcase,
.leaderboard-stage-copy {
    position: relative;
    z-index: 1;
}

.onboarding-showcase,
.studio-panel,
.leaderboard-card,
.leaderboard-future {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
}

.onboarding-showcase {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
}

.onboarding-hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.onboarding-stat,
.studio-metric,
.studio-status-card,
.leaderboard-overview-card {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.onboarding-stat strong,
.studio-metric strong,
.studio-status-card strong,
.leaderboard-overview-card strong {
    font-family: "Bahnschrift", "Segoe UI", sans-serif;
    font-size: 1.26rem;
}

.onboarding-stat span,
.studio-metric span,
.studio-status-card span,
.leaderboard-overview-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.onboarding-shell {
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.35fr);
    gap: 20px;
}

.studio-panel {
    background: linear-gradient(180deg, rgba(11, 11, 11, 0.98), rgba(11, 11, 11, 0.88));
}

.studio-panel-soft,
.studio-banner {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.98), rgba(15, 15, 15, 0.9));
}

.studio-banner {
    padding: 24px;
    border-radius: 24px;
}

.studio-flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.flow-step {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.flow-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #050505;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #cfcfcf 100%);
}

.flow-step p {
    color: var(--muted);
}

.studio-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.studio-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.studio-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.03);
}

.studio-note {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.studio-note strong {
    color: var(--white);
}

.studio-note span {
    color: var(--muted);
}

.guild-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.guild-state {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
}

.guild-state.is-live {
    color: #c5ffe3;
    background: rgba(96, 198, 149, 0.14);
}

.studio-status-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.studio-empty {
    padding: 10px 0 2px;
}

.leaderboard-stage {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 20px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    background:
        radial-gradient(circle at top right, rgba(255, 229, 167, 0.12), transparent 22%),
        linear-gradient(135deg, rgba(7, 7, 7, 0.98) 0%, rgba(12, 12, 12, 0.95) 52%, rgba(8, 8, 8, 0.98) 100%);
}

.leaderboard-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: start;
}

.leaderboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.leaderboard-card {
    background: linear-gradient(180deg, rgba(6, 6, 6, 0.98), rgba(9, 9, 9, 0.94));
    box-shadow: var(--shadow);
}

.leaderboard-card-head,
.leaderboard-card-title {
    display: flex;
    align-items: center;
}

.leaderboard-card-head {
    justify-content: space-between;
    gap: 16px;
}

.leaderboard-card-title {
    gap: 14px;
}

.leaderboard-card-title > div {
    display: grid;
    gap: 3px;
}

.leaderboard-card-title p,
.leaderboard-hint {
    color: var(--muted);
}

.leaderboard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.leaderboard-icon svg {
    width: 20px;
    height: 20px;
}

.leaderboard-icon.is-gold {
    color: #f4d064;
    border: 1px solid rgba(244, 208, 100, 0.18);
    background: rgba(244, 208, 100, 0.08);
}

.leaderboard-icon.is-green {
    color: #57e0a5;
    border: 1px solid rgba(87, 224, 165, 0.18);
    background: rgba(87, 224, 165, 0.08);
}

.leaderboard-icon.is-blue {
    color: #7ab6ff;
    border: 1px solid rgba(122, 182, 255, 0.18);
    background: rgba(122, 182, 255, 0.08);
}

.leaderboard-list {
    gap: 0;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 30px 52px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.leaderboard-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.leaderboard-rank {
    color: #6f7d95;
    font: 800 1.8rem/1 "Bahnschrift", "Segoe UI", sans-serif;
}

.leaderboard-avatar,
.leaderboard-avatar-fallback {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-avatar {
    object-fit: cover;
}

.leaderboard-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    background: var(--leader-avatar-surface);
}

.leaderboard-avatar.is-round,
.leaderboard-avatar-fallback.is-round {
    border-radius: 999px;
}

.leaderboard-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.leaderboard-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.04rem;
}

.leaderboard-copy span {
    color: var(--muted);
}

.leaderboard-meta {
    color: var(--muted-strong);
    font-size: 0.9rem;
    text-align: right;
}

.leaderboard-future {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 24%),
        linear-gradient(135deg, rgba(9, 9, 9, 0.98), rgba(13, 13, 13, 0.92));
}

.page-profile .page-main {
    gap: 22px;
}

.profile-shell,
.profile-side,
.profile-main,
.profile-hero-copy,
.profile-tab-nav,
.profile-summary-grid,
.profile-content-grid,
.profile-card,
.profile-side-card,
.profile-panel,
.profile-message-list,
.profile-server-list,
.profile-record-list,
.profile-resource-grid {
    display: grid;
}

.profile-shell {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 20px;
}

.profile-side,
.profile-main,
.profile-card,
.profile-side-card,
.profile-panel {
    gap: 18px;
}

.profile-card,
.profile-main-card,
.profile-panel,
.profile-side-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(8, 8, 8, 0.96);
    box-shadow: var(--shadow);
}

.profile-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.profile-cover {
    position: relative;
    z-index: 0;
    min-height: 166px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(5, 5, 5, 0.12), rgba(5, 5, 5, 0.82)),
        var(--profile-cover-surface);
}

.profile-cover-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.profile-preview-button,
.profile-mini-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    color: var(--white);
    background: rgba(17, 11, 26, 0.8);
}

.profile-mini-action {
    width: 34px;
    min-width: 34px;
    padding: 0;
}

.profile-card-body {
    display: grid;
    gap: 16px;
    position: relative;
    z-index: 2;
    padding: 0 16px 18px;
    margin-top: -96px;
}

.profile-avatar-wrap {
    display: grid;
    gap: 16px;
    justify-items: start;
}

.profile-avatar {
    width: 136px;
    height: 136px;
    position: relative;
    z-index: 3;
    border-radius: 999px;
    object-fit: cover;
    border: 8px solid #080808;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.36);
}

.profile-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font: 800 2rem/1 "Bahnschrift", "Segoe UI", sans-serif;
    background: var(--profile-avatar-surface);
}

.profile-name-block {
    display: grid;
    gap: 8px;
}

.profile-name-row,
.profile-badge-row,
.profile-social-row,
.profile-meta-row,
.profile-tab-row,
.profile-friend-copy,
.profile-resource-card-head {
    display: flex;
    align-items: center;
}

.profile-name-row {
    gap: 10px;
    flex-wrap: wrap;
}

.profile-name-row h1 {
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 0.96;
}

.profile-handle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-handle {
    color: #9ea5b2;
    font-size: 1rem;
}

.profile-primary-guild-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f0647b;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
}

.profile-primary-guild-tag img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.profile-primary-guild-tag.is-inline-name {
    align-self: flex-end;
    margin-bottom: 5px;
}

.profile-bio {
    color: #f0f2f6;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.55;
}

.profile-badge-row {
    gap: 8px;
    flex-wrap: wrap;
}

.profile-tier-badge,
.profile-verified-badge,
.profile-site-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profile-tier-badge {
    color: #8ea3ff;
    border: 1px solid rgba(142, 163, 255, 0.28);
    background: rgba(142, 163, 255, 0.08);
}

.profile-verified-badge {
    gap: 6px;
    color: #67f2aa;
    border: 1px solid rgba(103, 242, 170, 0.24);
    background: rgba(103, 242, 170, 0.08);
}

.profile-site-badge {
    gap: 8px;
    padding: 4px 10px 4px 8px;
    color: #dfe5f5;
    border: 1px solid rgba(197, 204, 218, 0.16);
    background: rgba(197, 204, 218, 0.06);
    text-transform: none;
}

.profile-site-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.profile-site-badge-icon img,
.profile-site-badge-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-site-badge.is-brand {
    color: #cfe2ff;
    border-color: rgba(126, 182, 255, 0.24);
    background: rgba(126, 182, 255, 0.1);
}

.profile-site-badge.is-gold {
    color: #fff0b8;
    border-color: rgba(255, 217, 119, 0.22);
    background: rgba(255, 217, 119, 0.08);
}

.profile-site-badge.is-ruby {
    color: #ffd0d6;
    border-color: rgba(255, 141, 154, 0.24);
    background: rgba(255, 141, 154, 0.08);
}

.profile-site-badge.is-emerald {
    color: #d6ffe7;
    border-color: rgba(127, 243, 176, 0.24);
    background: rgba(127, 243, 176, 0.08);
}

.profile-site-badge.is-steel {
    color: #dfe5f5;
    border-color: rgba(197, 204, 218, 0.16);
    background: rgba(197, 204, 218, 0.06);
}

.profile-discord-badge-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-discord-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 0;
    color: #f7f8fb;
    background: transparent;
    box-shadow: none;
    cursor: default;
    outline: none;
}

.profile-discord-badge:hover,
.profile-discord-badge:focus-visible {
    background: transparent;
}

.profile-discord-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #f8f9fb;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    background: rgba(10, 10, 13, 0.96);
    transition: opacity 0.14s ease, transform 0.14s ease;
    z-index: 8;
}

.profile-discord-badge:hover::after,
.profile-discord-badge:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.profile-discord-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.profile-discord-badge-icon.is-wide {
    width: 18px;
    height: 18px;
}

.profile-discord-badge-icon img,
.profile-discord-badge-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-discord-badge.is-gold {
    color: #ffd977;
    border-color: rgba(255, 217, 119, 0.22);
    background: rgba(255, 217, 119, 0.08);
}

.profile-discord-badge.is-steel {
    color: #d8d8d8;
    border-color: rgba(196, 160, 255, 0.24);
    background: rgba(196, 160, 255, 0.1);
}

.profile-discord-badge.is-pink {
    color: #ff9acb;
    border-color: rgba(255, 154, 203, 0.24);
    background: rgba(255, 154, 203, 0.09);
}

.profile-discord-badge.is-emerald {
    color: #7ff3b0;
    border-color: rgba(127, 243, 176, 0.24);
    background: rgba(127, 243, 176, 0.08);
}

.profile-discord-badge.is-ruby {
    color: #ff8d9a;
    border-color: rgba(255, 141, 154, 0.24);
    background: rgba(255, 141, 154, 0.08);
}

.profile-discord-badge.is-sky {
    color: #8ac7ff;
    border-color: rgba(138, 199, 255, 0.24);
    background: rgba(138, 199, 255, 0.09);
}

.profile-discord-badge.is-steel {
    color: #c5ccda;
    border-color: rgba(197, 204, 218, 0.16);
    background: rgba(197, 204, 218, 0.06);
}

.profile-discord-badge.is-brand {
    color: #7eb6ff;
    border-color: rgba(126, 182, 255, 0.24);
    background: rgba(126, 182, 255, 0.1);
}

.profile-social-row {
    gap: 10px;
}

.profile-social-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #d2d2d2;
    background: rgba(255, 255, 255, 0.03);
}

.profile-social-chip.is-emerald {
    color: #57e0a5;
}

.profile-stat-grid,
.profile-summary-grid,
.profile-resource-grid {
    display: grid;
    gap: 12px;
}

.profile-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-stat-box,
.profile-stat-card,
.profile-summary-card,
.profile-resource-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.profile-stat-box strong,
.profile-stat-card strong,
.profile-summary-card strong,
.profile-panel-value,
.profile-resource-card strong {
    font-family: "Bahnschrift", "Segoe UI", sans-serif;
    font-size: 1.2rem;
}

.profile-stat-box span,
.profile-stat-card span,
.profile-summary-card span,
.profile-resource-card span {
    color: #7f8796;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-info-list {
    display: grid;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b5bbc7;
}

.profile-info-item .profile-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d0d0d0;
}

.profile-info-item.is-success .profile-meta-icon {
    color: #57e0a5;
}

.profile-info-item a {
    color: #7aa7ff;
}

.profile-card-action {
    margin-top: 8px;
}

.profile-card-action .button {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
}

.profile-main-card {
    display: grid;
    gap: 18px;
    padding: 18px 18px 20px;
}

.profile-section {
    display: grid;
    gap: 16px;
}

.profile-tab-row {
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-tab-nav {
    grid-auto-flow: column;
    justify-content: start;
    gap: 12px;
    overflow-x: auto;
}

.profile-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 4px;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #7f8796;
    cursor: pointer;
    font-weight: 700;
    background: transparent;
}

.profile-tab:hover,
.profile-tab.is-active {
    color: var(--white);
    border-bottom-color: var(--white);
}

.profile-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 7px;
    color: #cfd3da;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
}

.profile-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-content-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 16px;
}

.profile-panel {
    overflow: hidden;
}

.profile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-panel-head strong,
.profile-resource-card-head strong {
    font-size: 1.05rem;
}

.profile-panel-head span,
.profile-resource-card-head span {
    color: #6d7685;
}

.profile-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-panel-icon,
.profile-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    color: #d6d6d6;
    background: rgba(166, 113, 255, 0.1);
}

.profile-panel-icon.is-blue {
    color: #69a8ff;
    background: rgba(105, 168, 255, 0.1);
}

.profile-panel-icon.is-green,
.profile-list-icon.is-green {
    color: #57e0a5;
    background: rgba(87, 224, 165, 0.1);
}

.profile-panel-icon.is-gold,
.profile-list-icon.is-gold {
    color: #f4d064;
    background: rgba(244, 208, 100, 0.1);
}

.profile-panel-body {
    display: grid;
    gap: 12px;
    padding: 16px 18px 18px;
}

.profile-voice-empty {
    display: grid;
    place-items: center;
    gap: 16px;
    min-height: 330px;
    color: #727b8a;
    text-align: center;
}

.profile-voice-empty .profile-panel-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
}

.profile-message-list {
    gap: 10px;
    max-height: 382px;
    overflow: auto;
    padding-right: 4px;
}

.profile-message-item,
.profile-vote-item,
.profile-comment-item,
.profile-record-item,
.profile-server-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.profile-message-item {
    grid-template-columns: 34px 48px minmax(0, 1fr) auto;
    align-items: center;
}

.profile-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    color: #050505;
    font-weight: 800;
    background: linear-gradient(135deg, #ffce5c 0%, #ff8e0d 100%);
}

.profile-friend-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    object-fit: cover;
}

.profile-friend-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    background: var(--profile-friend-surface);
}

.profile-friend-copy {
    display: grid;
    justify-content: space-between;
    gap: 16px;
}

.profile-friend-copy > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.profile-friend-copy small,
.profile-vote-time,
.profile-comment-time,
.profile-record-item small {
    color: #6d7685;
}

.profile-right-value {
    text-align: right;
    color: #7aa7ff;
    font-weight: 800;
}

.profile-right-value span {
    display: block;
    color: #6d7685;
    font-size: 0.82rem;
    font-weight: 500;
}

.profile-vote-item,
.profile-comment-item,
.profile-record-item {
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
}

.profile-vote-main,
.profile-comment-main,
.profile-record-main {
    display: grid;
    gap: 4px;
}

.profile-section[hidden] {
    display: none;
}

.profile-server-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profile-server-card {
    gap: 12px;
    align-content: start;
}

.profile-server-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-server-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    object-fit: cover;
}

.profile-server-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    background: var(--profile-server-surface);
}

.profile-server-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #8f97a5;
    font-size: 0.9rem;
}

.profile-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-resource-card {
    gap: 10px;
}

.profile-resource-card-head {
    justify-content: space-between;
    gap: 12px;
}

.profile-empty-note {
    color: #727b8a;
}

.vote-hero,
.vote-hero-copy,
.vote-hero-stats,
.vote-hero-highlight,
.vote-grid,
.vote-card,
.vote-card-head,
.vote-card-score {
    display: grid;
}

.vote-hero {
    gap: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 22%),
        linear-gradient(180deg, rgba(8, 8, 8, 0.98), rgba(8, 8, 8, 0.9));
}

.vote-hero-copy {
    gap: 16px;
    max-width: 760px;
}

.vote-hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.vote-hero-highlight {
    gap: 8px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.vote-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.vote-card {
    position: relative;
    isolation: isolate;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: visible;
    background: rgba(10, 10, 10, 0.96);
    box-shadow: var(--shadow);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.vote-card::before {
    content: "";
    position: absolute;
    inset: -14px;
    z-index: 0;
    border-radius: 30px;
    opacity: 0;
    pointer-events: none;
    filter: blur(22px);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.16) 16%, rgba(255, 255, 255, 0) 38%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.16) 16%, rgba(255, 255, 255, 0) 38%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.14) 16%, rgba(255, 255, 255, 0) 38%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.14) 16%, rgba(255, 255, 255, 0) 38%);
    animation: neon-orbit-spin 6.2s linear infinite;
    transition: opacity 0.22s ease;
}

.vote-card > * {
    position: relative;
    z-index: 1;
}

.vote-card:hover,
.vote-card:focus-visible,
.vote-card-shell:hover .vote-card,
.vote-card-shell:focus-within .vote-card {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.vote-card:hover::before,
.vote-card:focus-visible::before,
.vote-card-shell:hover .vote-card::before,
.vote-card-shell:focus-within .vote-card::before {
    opacity: 1;
}

.vote-card-poster {
    position: relative;
    isolation: isolate;
    min-height: 124px;
    background-image: var(--vote-surface);
    background-size: cover;
    background-position: center;
}

.vote-card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.44)),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 30%);
}

.vote-card-poster-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
}

.vote-card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vote-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-weight: 800;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(4px);
}

.vote-card-mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: rgba(74, 96, 255, 0.38);
    backdrop-filter: blur(4px);
}

.vote-card-mini-badge-soft {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
}

.vote-card-badge-star {
    width: 36px;
    min-width: 36px;
    padding: 0;
    color: #ffe37a;
}

.vote-card-badge-star svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: none;
}

.vote-card-body {
    display: grid;
    gap: 16px;
    padding: 0 16px 16px;
}

.vote-card-head {
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-top: -28px;
    position: relative;
    z-index: 2;
}

.vote-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: 3px solid #090909;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
    object-fit: cover;
}

.vote-card-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #050505;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #cbcbcb 100%);
}

.vote-card-head > div {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.vote-card-head h3 {
    font-size: 1.08rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vote-hero-highlight p {
    color: var(--muted);
}

.voice-directory-hero,
.voice-directory-copy,
.voice-directory-stats,
.voice-directory-highlight,
.voice-directory-panel,
.voice-directory-status,
.voice-list,
.voice-row-copy,
.voice-row-metric {
    display: grid;
}

.voice-directory-hero {
    gap: 24px;
    background:
        radial-gradient(circle at top right, rgba(122, 77, 255, 0.08), transparent 24%),
        radial-gradient(circle at left center, rgba(83, 167, 235, 0.06), transparent 28%),
        linear-gradient(180deg, rgba(8, 8, 8, 0.98), rgba(8, 8, 8, 0.9));
}

.voice-directory-copy {
    gap: 16px;
    max-width: 780px;
}

.voice-directory-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.voice-hero-stat {
    min-width: 0;
    padding: 18px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.voice-directory-highlight {
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.voice-directory-panel {
    gap: 20px;
}

.voice-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.voice-directory-search {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.voice-directory-search input {
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
}

.voice-directory-search input::placeholder {
    color: #767676;
}

.voice-directory-status {
    gap: 4px;
    justify-items: end;
}

.voice-directory-status strong {
    font-size: 1.02rem;
}

.voice-directory-status span {
    color: var(--muted);
    font-size: 0.9rem;
}

.voice-filter-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.voice-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted-strong);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.voice-filter-chip strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.08);
}

.voice-filter-chip:hover,
.voice-filter-chip.is-active {
    color: var(--white);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.08);
}

.voice-directory-subhead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.voice-list {
    gap: 12px;
}

.voice-row {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--voice-row-ink, var(--white));
    background-image: var(--voice-row-surface);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.voice-row::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(5, 7, 12, 0.2), rgba(5, 7, 12, 0.46)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 28%);
}

.voice-row > * {
    position: relative;
    z-index: 1;
}

.voice-row:hover,
.voice-row:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.3);
}

.voice-row-main {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.voice-row-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--white);
    font-weight: 800;
    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(4px);
}

.voice-row-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    object-fit: cover;
}

.voice-row-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #050505;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #cbcbcb 100%);
}

.voice-row-copy {
    gap: 6px;
    min-width: 0;
}

.voice-row-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.voice-row-title-line strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.08rem;
}

.voice-row-copy p {
    color: rgba(255, 255, 255, 0.78);
}

.voice-row-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: rgba(126, 90, 255, 0.22);
    backdrop-filter: blur(4px);
}

.voice-row-badge-soft {
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.1);
}

.voice-row-metric {
    gap: 4px;
    justify-items: end;
    min-width: 92px;
}

.voice-row-metric strong {
    font-family: "Bahnschrift", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 4vw, 2.3rem);
    line-height: 1;
}

.voice-row-metric span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.voice-empty-note {
    padding: 30px 0 10px;
    text-align: center;
}

.detail-panel {
    display: grid;
    gap: 20px;
}

.detail-hero {
    gap: 18px;
    align-items: stretch;
}

.detail-card {
    display: grid;
    align-content: space-between;
    gap: 16px;
    min-width: 320px;
    min-height: 240px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: var(--detail-ink, var(--white));
    background-image: var(--detail-surface);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.detail-rank {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.detail-card strong {
    font-size: clamp(1.6rem, 2vw, 2.4rem);
}

.detail-card small {
    color: #9f9f9f;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.detail-live-note {
    color: #d8d8d8;
    font-size: 0.94rem;
}

.detail-copy-block {
    flex: 1;
}

.detail-meta {
    flex-wrap: wrap;
    gap: 10px;
    margin: 2px 0;
    padding: 0;
    list-style: none;
}

.detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.94fr);
}

.metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.activity-card,
.role-card {
    padding: 18px;
}

.metric-card {
    display: grid;
    gap: 16px;
}

.metric-card span {
    color: var(--muted);
}

.metric-card strong {
    font-size: 1.84rem;
}

.metric-line {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.metric-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #9d9d9d 0%, #ffffff 100%);
}

.activity-card {
    display: grid;
    gap: 16px;
}

.activity-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    min-height: 230px;
}

.activity-column {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.activity-track {
    display: flex;
    align-items: end;
    width: 100%;
    min-height: 185px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.activity-fill {
    display: block;
    width: 100%;
    border-radius: 10px 10px 6px 6px;
    background: linear-gradient(180deg, #ffffff 0%, #919191 100%);
}

.role-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.role-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #050505;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, #ffffff 0%, #cbcbcb 100%);
}

.role-card > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.role-time {
    margin-left: auto;
    color: var(--muted-strong);
    font-size: 0.92rem;
}

.site-footer {
    justify-content: space-between;
    gap: 18px;
    padding: 4px 4px 0;
}

.site-footer > div {
    max-width: 360px;
}

.profile-social-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.profile-inline-form {
    display: inline-flex;
}

.profile-state-pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.button-mini {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.82rem;
}

.button.is-static {
    cursor: default;
    opacity: 0.88;
}

.button-ghost.is-liked,
.vote-action-button.is-liked {
    border-color: rgba(255, 211, 106, 0.42);
    background: rgba(255, 211, 106, 0.1);
    color: #ffe39d;
}

.profile-social-list {
    display: grid;
    gap: 12px;
}

.profile-social-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(10, 10, 10, 0.18) 100%);
    color: inherit;
    text-decoration: none;
}

.profile-social-card strong {
    display: block;
    margin-bottom: 4px;
}

.profile-social-meta {
    grid-column: 2;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
    line-height: 1.5;
}

.profile-social-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    grid-column: 2;
}

.profile-social-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.profile-inline-stat-card {
    display: grid;
    gap: 6px;
    padding: 16px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-inline-stat-card strong {
    font-size: 1.35rem;
}

.profile-inline-stat-card span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
}

.profile-friends-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.profile-friend-search {
    display: grid;
    gap: 12px;
}

.profile-friend-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-friend-search-input {
    flex: 1 1 240px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
    outline: none;
}

.profile-friend-search-input:focus {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.profile-friend-search-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.profile-composer {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(10, 10, 10, 0.18) 100%);
}

.profile-composer-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
}

.profile-composer textarea {
    min-height: 112px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(5, 5, 5, 0.68);
    color: #f5f7fa;
    resize: vertical;
}

.profile-composer textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.profile-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.profile-callout p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
}

.profile-comment-feed {
    display: grid;
    gap: 14px;
}

.profile-comment-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(8, 8, 8, 0.2) 100%);
}

.profile-comment-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.profile-comment-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-comment-author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.profile-comment-author span {
    display: grid;
    gap: 4px;
}

.profile-comment-author small {
    color: rgba(255, 255, 255, 0.56);
}

.profile-comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-comment-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--profile-comment-surface);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.profile-comment-like-count {
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.82rem;
}

.server-comments-panel {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.server-comment-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(12, 12, 12, 0.24));
}

.server-comment-callout > div {
    display: grid;
    gap: 6px;
}

.server-comment-callout strong {
    color: #ffffff;
}

.server-comment-callout p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.server-comment-command-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.server-comment-command {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.04);
}

.server-comment-feed {
    display: grid;
    gap: 14px;
}

.server-comment-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.024) 0%, rgba(8, 8, 8, 0.24) 100%);
}

.server-comment-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.server-comment-author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.server-comment-author span {
    display: grid;
    gap: 4px;
}

.server-comment-author small {
    color: rgba(255, 255, 255, 0.56);
}

.server-comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.server-comment-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--server-comment-surface);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.server-comment-source {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04);
}

.server-comment-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.76;
}

.detail-vote-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 18px 0 0;
}

.detail-vote-note {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

.server-card-pill-liked {
    border-color: rgba(255, 211, 106, 0.28);
    background: rgba(255, 211, 106, 0.08);
    color: #ffe39d;
}

.vote-card-shell {
    display: grid;
    gap: 14px;
}

.vote-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 4px;
}

.vote-action-form {
    display: inline-flex;
}

.vote-action-button {
    min-width: 170px;
}

.vote-action-button:disabled {
    color: rgba(255, 255, 255, 0.76);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.vote-card-state {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.85rem;
}

.page-admin .page-main {
    gap: 24px;
}

.admin-login-shell,
.admin-overview-grid,
.admin-panel-grid,
.admin-user-list,
.admin-server-list,
.admin-badge-list,
.admin-user-row,
.admin-server-row,
.admin-login-form,
.admin-badge-picker,
.admin-user-meta,
.admin-server-meta,
.admin-kpi-copy,
.admin-panel-head,
.admin-inline-meta,
.admin-toggle {
    display: grid;
}

.admin-login-shell {
    min-height: calc(100vh - 180px);
    place-items: center;
}

.admin-login-card,
.admin-shell-panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(8, 8, 8, 0.96);
    box-shadow: var(--shadow);
}

.admin-login-card {
    width: min(100%, 460px);
    padding: 32px;
}

.admin-login-form {
    gap: 16px;
    margin-top: 22px;
}

.admin-field {
    display: grid;
    gap: 8px;
}

.admin-field span,
.admin-panel-kicker,
.admin-inline-meta,
.admin-empty-note {
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
    outline: none;
}

.admin-field textarea {
    min-height: 96px;
    resize: vertical;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
    border-color: rgba(126, 182, 255, 0.36);
    background: rgba(255, 255, 255, 0.05);
}

.admin-overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-kpi-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.admin-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
}

.admin-kpi-card strong {
    font-size: 1.8rem;
    line-height: 1;
}

.admin-kpi-copy {
    gap: 4px;
}

.admin-shell-panel {
    padding: 22px;
}

.admin-panel-grid {
    gap: 20px;
}

.admin-panel-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.admin-panel-head strong {
    font-size: 1.1rem;
}

.admin-badge-list,
.admin-user-list,
.admin-server-list {
    gap: 12px;
}

.admin-badge-catalog {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.admin-badge-catalog img,
.admin-badge-thumb {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
}

.admin-badge-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-badge-copy p {
    color: var(--muted);
}

.admin-user-row,
.admin-server-row {
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.admin-user-row {
    grid-template-columns: minmax(220px, 1.15fr) minmax(140px, 180px) minmax(260px, 1fr) auto;
    align-items: start;
}

.admin-server-row {
    grid-template-columns: minmax(260px, 1.2fr) minmax(140px, 170px) minmax(180px, 220px) minmax(140px, 180px) auto;
    align-items: start;
}

.admin-user-meta,
.admin-server-meta {
    gap: 10px;
}

.admin-user-heading,
.admin-server-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #3b2e8f 0%, #1c5fd6 100%);
}

.admin-user-copy,
.admin-server-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-user-copy strong,
.admin-server-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-inline-meta {
    gap: 4px;
}

.admin-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-pill.is-steel {
    color: #c5ccda;
    border-color: rgba(197, 204, 218, 0.16);
    background: rgba(197, 204, 218, 0.06);
}

.admin-pill.is-emerald {
    color: #7ff3b0;
    border-color: rgba(127, 243, 176, 0.24);
    background: rgba(127, 243, 176, 0.08);
}

.admin-pill.is-ruby {
    color: #ff8d9a;
    border-color: rgba(255, 141, 154, 0.24);
    background: rgba(255, 141, 154, 0.08);
}

.admin-pill.is-brand {
    color: #7eb6ff;
    border-color: rgba(126, 182, 255, 0.24);
    background: rgba(126, 182, 255, 0.1);
}

.admin-pill.is-gold {
    color: #ffd977;
    border-color: rgba(255, 217, 119, 0.22);
    background: rgba(255, 217, 119, 0.08);
}

.admin-badge-picker {
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    gap: 8px;
}

.admin-badge-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.admin-badge-option input {
    margin: 0;
}

.admin-badge-option img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.admin-badge-option span {
    color: var(--muted-strong);
    font-size: 0.82rem;
    line-height: 1.35;
}

.admin-toggle {
    gap: 8px;
    align-items: start;
}

.admin-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-strong);
}

.admin-row-actions {
    display: flex;
    align-items: flex-end;
}

.admin-server-description {
    grid-column: 1 / -2;
}

.admin-empty-note {
    padding: 14px 16px;
    border: 1px dashed var(--line);
    border-radius: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .server-poster::before,
    .vote-card-poster::before {
        animation: none;
    }
}

@media (max-width: 1320px) {
    .feature-strip,
    .peak-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .server-radar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vote-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-grid,
    .discord-grid,
    .detail-grid,
    .onboarding-hero,
    .onboarding-shell,
    .leaderboard-stage,
    .leaderboard-grid,
    .profile-shell,
    .profile-content-grid {
        grid-template-columns: 1fr;
    }

    .admin-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-user-row,
    .admin-server-row {
        grid-template-columns: 1fr;
    }

    .admin-server-description {
        grid-column: auto;
    }
}

@media (max-width: 1080px) {
    .site-header,
    .section-header,
    .detail-hero,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-nav {
        flex-wrap: wrap;
    }

    .category-shell {
        grid-template-columns: 1fr;
    }

    .directory-filter-bar {
        align-items: stretch;
    }

    .directory-filter-menu {
        width: 100%;
        max-width: none;
        flex-basis: 100%;
    }

    .directory-filter-dropdown {
        width: 100%;
    }

    .server-radar-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-grid,
    .directory-preview-stats,
    .onboarding-hero-stats,
    .studio-status-list,
    .leaderboard-overview,
    .profile-summary-grid,
    .profile-stat-grid,
    .profile-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vote-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .voice-directory-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vote-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-tools {
        width: 100%;
        flex-wrap: wrap;
    }

    .header-search {
        width: 100%;
    }

    .studio-flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-server-list {
        grid-template-columns: 1fr;
    }

    .guild-item {
        grid-template-columns: 1fr;
    }

    .profile-social-stats {
        grid-template-columns: 1fr;
    }

    .voice-toolbar,
    .voice-directory-subhead {
        grid-template-columns: 1fr;
    }

    .voice-directory-status {
        justify-items: start;
    }

    .admin-panel-head {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

@media (max-width: 760px) {
    .page-main {
        padding: 18px 12px 28px;
        gap: 18px;
    }

    .panel,
    .panel-wide,
    .feature-card,
    .notice-box,
    .studio-panel,
    .studio-banner,
    .leaderboard-card,
    .leaderboard-future,
    .profile-main-card,
    .profile-panel,
    .profile-side-card,
    .metric-card,
    .activity-card,
    .role-card,
    .guild-item,
    .peak-card,
    .server-card,
    .top-item {
        padding: 16px;
    }

    .hero-stage {
        min-height: 460px;
        padding: 54px 16px 48px;
        border-radius: 0 0 22px 22px;
    }

    .hero-stage::before {
        width: 280px;
        height: 280px;
        bottom: 72px;
    }

    .hero-copy {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 18px;
    }

    .feature-strip,
    .peak-grid,
    .metric-grid,
    .role-grid,
    .voice-directory-stats,
    .vote-hero-stats,
    .vote-grid,
    .directory-preview-stats,
    .onboarding-hero-stats,
    .studio-flow-grid,
    .studio-metric-grid,
    .studio-status-list,
    .leaderboard-overview,
    .leaderboard-grid,
    .profile-summary-grid,
    .profile-stat-grid,
    .profile-resource-grid,
    .profile-server-list {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .page-directory .filter-panel {
        padding: 12px;
    }

    .directory-filter-trigger-copy strong {
        font-size: 0.9rem;
    }

    .onboarding-hero,
    .leaderboard-stage,
    .profile-main-card {
        padding: 22px 18px;
    }

    .server-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .server-radar-grid {
        grid-template-columns: 1fr;
    }

    .server-radar-poster,
    .server-poster {
        min-height: 232px;
    }

    .server-card-footerline {
        align-items: stretch;
        flex-direction: column;
    }

    .server-card-vote {
        width: 100%;
        justify-content: center;
    }

    .top-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .top-value {
        grid-column: 2;
    }

    .leaderboard-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .leaderboard-item {
        grid-template-columns: 24px 48px minmax(0, 1fr);
        gap: 12px;
    }

    .leaderboard-meta {
        display: none;
    }

    .leaderboard-rank {
        font-size: 1.45rem;
    }

    .account-menu {
        position: fixed;
        top: 78px;
        right: 12px;
    }

    .account-trigger-name {
        max-width: 84px;
    }

    .profile-card-body {
        margin-top: -78px;
    }

    .profile-avatar {
        width: 112px;
        height: 112px;
    }

    .profile-name-row h1 {
        font-size: 2rem;
    }

    .profile-message-item {
        grid-template-columns: 28px 44px minmax(0, 1fr);
    }

    .profile-right-value {
        grid-column: 2 / span 2;
        text-align: left;
    }

    .activity-bars {
        gap: 8px;
        min-height: 200px;
    }

    .button,
    .section-link {
        width: 100%;
    }

    .profile-social-actions,
    .detail-vote-strip,
    .profile-callout,
    .server-comment-callout,
    .vote-card-actions,
    .profile-comment-card-head,
    .server-comment-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-search-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .profile-search-open {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .vote-action-form,
    .vote-action-button,
    .profile-inline-form {
        width: 100%;
    }

    .voice-row {
        grid-template-columns: 1fr;
    }

    .voice-row-metric {
        justify-items: start;
    }

    .server-comment-command-row {
        justify-content: flex-start;
    }

    .admin-login-card,
    .admin-shell-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .admin-overview-grid {
        grid-template-columns: 1fr;
    }

    .admin-user-heading,
    .admin-server-heading,
    .admin-badge-catalog {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-badge-picker {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .profile-card-body {
        gap: 14px;
        padding: 0 12px 16px;
    }

    .profile-cover {
        min-height: 158px;
        padding: 14px;
    }

    .server-grid {
        grid-template-columns: 1fr;
    }

    .server-card-poster {
        min-height: 0;
    }

    .server-radar-poster,
    .server-poster {
        min-height: 220px;
        padding: 14px;
    }

    .server-radar-stats span,
    .server-poster-stat {
        min-width: calc(50% - 5px);
    }

    .voice-directory-search {
        min-height: 56px;
        padding: 0 14px;
    }

    .voice-row {
        padding: 16px;
    }

    .voice-row-main {
        grid-template-columns: 40px 46px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
    }

    .voice-row-rank {
        min-width: 40px;
        min-height: 32px;
        padding: 0 8px;
        font-size: 0.82rem;
    }

    .voice-row-avatar {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .voice-row-title-line strong {
        white-space: normal;
    }
}

body.page-home {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 24%),
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.05), transparent 18%),
        linear-gradient(135deg, #020202 0%, #050505 46%, #090909 100%);
}

body.page-home::before {
    opacity: 0.24;
    background-image:
        linear-gradient(135deg, transparent 0 46.5%, rgba(255, 255, 255, 0.07) 46.5%, rgba(255, 255, 255, 0.07) 46.8%, transparent 46.8%, transparent 52.5%, rgba(255, 255, 255, 0.03) 52.5%, rgba(255, 255, 255, 0.03) 52.8%, transparent 52.8%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.5px),
        radial-gradient(circle at 22% 72%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.5px);
}

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

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

@keyframes logoDrift {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.page-home .site-header {
    top: 16px;
    margin: 18px 24px 0;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(4, 4, 4, 0.82);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.32);
}

.page-home .sub-nav {
    margin: 16px 24px 0;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(5, 5, 5, 0.82);
}

.page-home .page-main {
    gap: 32px;
    padding: 12px 24px 44px;
}

.page-home .hero-stage {
    position: relative;
    min-height: 620px;
    padding: 42px;
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 32%),
        linear-gradient(135deg, rgba(8, 8, 8, 0.96), rgba(4, 4, 4, 0.98));
    box-shadow: 0 36px 72px rgba(0, 0, 0, 0.36);
}

.page-home .hero-stage::before {
    left: auto;
    right: -84px;
    bottom: -112px;
    width: 560px;
    height: 560px;
    opacity: 0.08;
    transform: none;
    background: url("../brand/stalkly-logo.png") center/contain no-repeat;
    filter: grayscale(1);
}

.page-home .hero-stage::after {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    clip-path: polygon(0 0, calc(100% - 96px) 0, 100% 96px, 100% 100%, 0 100%);
    pointer-events: none;
}

.page-home .hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
    align-items: end;
    gap: 24px;
}

.page-home .hero-copy-column,
.page-home .hero-heading,
.page-home .hero-visual-column {
    display: grid;
}

.page-home .hero-copy-column {
    gap: 24px;
    align-content: start;
    animation: homeReveal 520ms ease both;
}

.page-home .hero-lockup {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.page-home .hero-sigil {
    width: 128px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
        #000000 url("../brand/stalkly-logo.png") center/78% no-repeat;
    box-shadow: 0 28px 44px rgba(0, 0, 0, 0.38);
    animation: logoDrift 5s ease-in-out infinite;
}

.page-home .hero-heading {
    gap: 10px;
    max-width: 680px;
}

.page-home .hero-eyebrow {
    color: #d1d1d1;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.page-home .hero-copy {
    max-width: 690px;
    color: #b7b7b7;
    font-size: 1.1rem;
    line-height: 1.72;
}

.page-home .hero-actions {
    gap: 14px;
    flex-wrap: wrap;
}

.page-home .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 2px;
}

.page-home .hero-stat {
    min-width: 0;
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.page-home .hero-stat strong {
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
}

.page-home .hero-stat span {
    color: #8d8d8d;
}

.page-home .hero-visual-column {
    gap: 16px;
    animation: homeReveal 640ms ease both;
}

.page-home .hero-logo-card,
.page-home .hero-spotlight-card,
.page-home .feature-card,
.page-home .panel,
.page-home .top-item,
.page-home .stack-item,
.page-home .metric-card,
.page-home .activity-card,
.page-home .role-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.94), rgba(8, 8, 8, 0.94));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.page-home .hero-logo-card::after,
.page-home .hero-spotlight-card::after,
.page-home .feature-card::after,
.page-home .panel::after,
.page-home .top-item::after,
.page-home .stack-item::after,
.page-home .metric-card::after,
.page-home .activity-card::after,
.page-home .role-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    pointer-events: none;
}

.page-home .hero-logo-card {
    min-height: 272px;
    padding: 20px;
    border-radius: 30px;
}

.page-home .hero-support-card {
    display: grid;
    gap: 0;
    color: inherit;
    text-decoration: none;
}

.page-home .hero-logo-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #cfcfcf;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04);
}

.page-home .hero-logo-art {
    --hero-support-surface:
        linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
        #000000 url("../brand/stalkly-logo.png") center/62% no-repeat;
    display: grid;
    align-content: end;
    gap: 8px;
    min-height: 176px;
    margin: 18px 0 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    color: var(--hero-support-ink, #ffffff);
    background: var(--hero-support-surface);
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: transform 180ms ease, border-color 180ms ease;
}

.page-home .hero-logo-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 4, 4, 0.08), rgba(4, 4, 4, 0.34) 48%, rgba(4, 4, 4, 0.92) 100%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 24%);
    pointer-events: none;
}

.page-home .hero-logo-art > * {
    position: relative;
    z-index: 1;
}

.page-home .hero-support-card:hover .hero-logo-art,
.page-home .hero-support-card:focus-visible .hero-logo-art {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
}

.page-home .hero-logo-badge {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.26);
}

.page-home .hero-logo-art strong {
    font-size: 1.38rem;
    font-weight: 900;
    line-height: 1.1;
}

.page-home .hero-logo-art small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.86rem;
    line-height: 1.5;
}

.page-home .hero-logo-meta,
.page-home .hero-spotlight-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.page-home .hero-logo-meta span,
.page-home .hero-spotlight-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    background: rgba(12, 12, 12, 0.36);
    backdrop-filter: blur(10px);
}

.page-home .hero-spotlight-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 26px;
    color: var(--hero-spotlight-ink, #ffffff);
    background-image: var(--hero-spotlight-surface);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.page-home .hero-spotlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 4, 4, 0.12), rgba(4, 4, 4, 0.36) 42%, rgba(4, 4, 4, 0.92) 100%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 24%);
    pointer-events: none;
}

.page-home .hero-spotlight-card > * {
    position: relative;
    z-index: 1;
}

.page-home .hero-spotlight-head,
.page-home .hero-spotlight-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.page-home .hero-spotlight-server {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.page-home .hero-spotlight-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #101010;
}

.page-home .hero-spotlight-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #050505;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #cbcbcb 100%);
}

.page-home .hero-spotlight-kicker {
    display: block;
    margin-bottom: 4px;
    color: #8f8f8f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-home .hero-spotlight-server strong {
    display: block;
    font-size: 1.12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-home .hero-support-spotlight .hero-spotlight-rank {
    letter-spacing: 0.12em;
    font-size: 0.82rem;
}

.page-home .hero-spotlight-server p,
.page-home .hero-spotlight-copy,
.page-home .hero-spotlight-footer small {
    color: rgba(255, 255, 255, 0.74);
}

.page-home .hero-spotlight-copy {
    line-height: 1.58;
    font-size: 0.98rem;
}

.page-home .hero-spotlight-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.04);
}

.page-home .hero-inline-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #ffffff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.page-home .hero-inline-link:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
}

.page-home .feature-card {
    padding: 30px 28px;
    text-align: left;
}

.page-home .feature-icon {
    margin: 0 0 18px;
    border-radius: 14px;
}

.page-home .section-kicker {
    color: #dfdfdf;
}

.page-home .section-link {
    background: rgba(255, 255, 255, 0.04);
}

.page-home .peak-card {
    border-color: rgba(255, 255, 255, 0.14);
    min-height: 182px;
}

@media (max-width: 1080px) {
    .page-home .site-header,
    .page-home .sub-nav {
        margin-left: 16px;
        margin-right: 16px;
    }

    .page-home .page-main {
        padding: 10px 16px 40px;
    }

    .page-home .hero-grid {
        grid-template-columns: 1fr;
    }

    .page-home .hero-lockup {
        grid-template-columns: 108px minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .page-home .site-header {
        margin-top: 12px;
        border-radius: 20px;
    }

    .page-home .sub-nav {
        margin-top: 12px;
    }

    .page-home .hero-stage {
        min-height: auto;
        padding: 24px 20px;
        border-radius: 28px;
    }

    .page-home .hero-stage::after {
        inset: 14px;
        border-radius: 22px;
    }

    .page-home .hero-lockup {
        grid-template-columns: 1fr;
    }

    .page-home .hero-sigil {
        width: 110px;
    }

    .page-home .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-home .hero-spotlight-head,
    .page-home .hero-spotlight-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    body.page-home::before {
        opacity: 0.16;
    }

    .page-home .hero-stage {
        padding: 22px 16px;
    }

    .page-home .hero-stat {
        padding: 14px 12px;
    }

    .page-home .hero-stats {
        grid-template-columns: 1fr;
    }

    .page-home .hero-logo-card {
        min-height: 238px;
    }

    .page-home .hero-spotlight-server {
        align-items: flex-start;
    }

    .page-home .hero-spotlight-server strong {
        white-space: normal;
    }
}

.live-room-grid,
.recommendation-grid,
.owner-server-grid,
.similar-server-grid,
.comparison-grid,
.server-insight-grid {
    display: grid;
    gap: 18px;
}

.live-room-grid,
.recommendation-grid,
.owner-server-grid,
.similar-server-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.live-room-card,
.recommendation-card,
.owner-server-card,
.similar-server-card,
.comparison-card,
.server-insight-card,
.embed-card-shell {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.live-room-card {
    display: block;
    min-height: 210px;
    padding: 18px;
    color: var(--peak-ink, #ffffff);
    text-decoration: none;
    background-image: var(--peak-surface);
    background-size: cover;
    background-position: center;
}

.live-room-card-head,
.recommendation-card-head,
.owner-server-head,
.similar-server-head,
.comparison-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.live-room-card-head strong,
.recommendation-card-head strong,
.owner-server-head strong,
.similar-server-head strong,
.comparison-card-head strong {
    font-size: 1rem;
}

.live-room-card-head span,
.recommendation-card-head span,
.owner-server-rank,
.similar-server-head span {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
    font-weight: 700;
}

.live-room-list,
.server-trait-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.live-room-list li,
.server-trait-list li {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.94rem;
}

.recommendation-card,
.similar-server-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
}

.recommendation-card p,
.similar-server-card p,
.server-insight-card p {
    margin: 0;
    color: var(--text-muted);
}

.recommendation-card-meta,
.similar-server-meta,
.owner-server-metrics,
.server-insight-inline,
.server-badge-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.recommendation-card-meta span,
.similar-server-meta span,
.owner-server-metrics span,
.server-insight-inline span,
.server-score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.84rem;
}

.server-score-pill {
    font-weight: 700;
}

.server-score-pill-soft {
    color: var(--text-muted);
}

.server-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 26px 0 30px;
}

.server-insight-card {
    padding: 20px;
    display: grid;
    gap: 12px;
}

.server-insight-card strong {
    font-size: 1.62rem;
}

.server-insight-card-wide {
    grid-column: span 2;
}

.server-growth-graph,
.owner-server-graph {
    width: 100%;
    height: 90px;
    display: block;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.owner-server-graph {
    height: 64px;
}

.server-growth-graph polyline,
.owner-server-graph polyline {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.18));
}

.server-compare-shell {
    margin: 26px 0 0;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.similar-server-actions,
.embed-card-meta,
.owner-server-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.comparison-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.comparison-card {
    padding: 18px;
}

.comparison-rows {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.comparison-row strong {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.92rem;
}

.comparison-row strong.is-win {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.embed-card-shell {
    padding: 18px;
}

.embed-code-input,
.owner-server-embed {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    padding: 12px 14px;
    font: inherit;
}

.owner-server-card {
    padding: 18px;
    display: grid;
    gap: 14px;
}

.owner-server-head p {
    margin: 4px 0 0;
    color: var(--text-muted);
}

.guild-advanced {
    margin-top: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 14px;
}

.guild-advanced summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
}

.guild-advanced[open] summary {
    margin-bottom: 14px;
}

.guild-advanced-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.guild-safety-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.guild-safety-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
}

.guild-safety-pill input {
    margin: 0;
}

@media (max-width: 900px) {
    .server-insight-grid {
        grid-template-columns: 1fr;
    }

    .server-insight-card-wide {
        grid-column: span 1;
    }

    .guild-advanced-grid,
    .comparison-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .live-room-card,
    .recommendation-card,
    .owner-server-card,
    .similar-server-card,
    .comparison-card,
    .server-insight-card,
    .embed-card-shell,
    .server-compare-shell {
        padding: 16px;
        border-radius: 20px;
    }

    .recommendation-card-meta,
    .similar-server-meta,
    .owner-server-metrics,
    .server-insight-inline,
    .server-badge-strip,
    .similar-server-actions,
    .embed-card-meta,
    .owner-server-foot {
        flex-direction: column;
        align-items: stretch;
    }
}

.smart-search-shell {
    display: grid;
    gap: 14px;
}

.smart-search-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.smart-search-chip-row,
.smart-search-prompt-row,
.discovery-grid,
.discovery-card-list,
.discovery-card-meta,
.season-grid,
.season-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.smart-search-chip,
.smart-search-prompt {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
}

.smart-search-prompt:hover,
.smart-search-prompt:focus-visible {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.discovery-shell,
.season-shell {
    display: grid;
    gap: 18px;
}

.discovery-grid,
.season-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.discovery-panel,
.season-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(10, 10, 10, 0.18) 100%);
}

.discovery-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.discovery-panel-head span,
.discovery-card p,
.season-card p {
    color: rgba(255, 255, 255, 0.62);
}

.discovery-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
}

.discovery-card strong,
.season-card strong,
.season-card h3 {
    color: #ffffff;
}

.discovery-card p,
.season-card p {
    margin: 0;
    line-height: 1.6;
}

.discovery-card-meta span,
.season-kicker,
.season-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
}

.season-card {
    color: inherit;
    text-decoration: none;
}

.season-kicker {
    width: fit-content;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .smart-search-chip-row,
    .smart-search-prompt-row,
    .discovery-card-meta,
    .season-meta {
        gap: 8px;
    }

    .discovery-panel,
    .season-card {
        padding: 16px;
        border-radius: 20px;
    }
}

.server-card-event {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

.detail-event-callout {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.discover-shell,
.event-shell,
.collection-shell,
.discover-preview-shell {
    display: grid;
    gap: 24px;
}

.discover-shell-headline,
.event-overview-row,
.collection-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.discover-shell-headline span,
.event-overview-row span,
.collection-detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.82);
}

.discover-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
    gap: 24px;
}

.discover-main,
.discover-side,
.discover-stage {
    display: grid;
    gap: 18px;
}

.discover-stage {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.discover-stack {
    position: relative;
    min-height: 640px;
    padding: 18px 18px 44px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
        rgba(6, 6, 6, 0.92);
}

.discover-card-poster {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: space-between;
    gap: 20px;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--discover-surface);
    background-size: cover;
    background-position: center;
    color: var(--discover-ink, #ffffff);
    overflow: hidden;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.discover-card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, transparent 38%),
        linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.24) 48%, rgba(5, 5, 5, 0.72) 100%);
    pointer-events: none;
}

.discover-card-poster > * {
    position: relative;
    z-index: 1;
}

.discover-card-poster.is-front {
    z-index: 4;
    transform: rotate(-1deg) translateY(2px);
}

.discover-card-poster.is-back-1,
.discover-card-poster.is-back-2,
.discover-card-poster.is-back-3 {
    opacity: 0.34;
    transform-origin: center top;
    filter: saturate(0.72) brightness(0.72);
}

.discover-card-poster.is-back-1 {
    z-index: 3;
    inset: 22px 22px 22px 22px;
    transform: rotate(2.1deg) translateY(-10px) scale(0.965);
}

.discover-card-poster.is-back-2 {
    z-index: 2;
    inset: 36px 32px 36px 32px;
    transform: rotate(-2.2deg) translateY(-22px) scale(0.93);
}

.discover-card-poster.is-back-3 {
    z-index: 1;
    inset: 50px 42px 50px 42px;
    transform: rotate(1.2deg) translateY(-34px) scale(0.89);
}

.discover-card-poster.is-back-1 .discover-card-copy,
.discover-card-poster.is-back-2 .discover-card-copy,
.discover-card-poster.is-back-3 .discover-card-copy,
.discover-card-poster.is-back-1 .discover-card-pill-row,
.discover-card-poster.is-back-2 .discover-card-pill-row,
.discover-card-poster.is-back-3 .discover-card-pill-row,
.discover-card-poster.is-back-1 .discover-card-grid,
.discover-card-poster.is-back-2 .discover-card-grid,
.discover-card-poster.is-back-3 .discover-card-grid {
    display: none;
}

.discover-card-poster.is-back-1 .discover-card-head,
.discover-card-poster.is-back-2 .discover-card-head,
.discover-card-poster.is-back-3 .discover-card-head {
    align-items: flex-start;
}

.discover-card-poster.is-back-1 .discover-card-head strong,
.discover-card-poster.is-back-2 .discover-card-head strong,
.discover-card-poster.is-back-3 .discover-card-head strong {
    font-size: 1rem;
}

.discover-card-poster.is-back-1 .discover-card-head p,
.discover-card-poster.is-back-2 .discover-card-head p,
.discover-card-poster.is-back-3 .discover-card-head p {
    display: none;
}

.discover-card-topline,
.event-card-top,
.collection-server-card-top,
.discover-side-head,
.discover-card-meta,
.discover-mini-meta,
.collection-card-meta,
.event-card-meta,
.event-card-footer,
.collection-server-actions,
.discover-preview-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.discover-card-kicker,
.discover-card-rank,
.event-chip,
.collection-card-kicker,
.collection-server-rank {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(11, 11, 11, 0.3);
    color: rgba(255, 255, 255, 0.86);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.event-chip-soft {
    background: rgba(255, 255, 255, 0.08);
}

.discover-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.discover-card-head strong,
.collection-server-card strong,
.event-card strong,
.collection-card strong,
.discover-preview-card strong {
    display: block;
    color: #ffffff;
    font-size: 1.6rem;
}

.discover-card-head p,
.discover-card-copy,
.discover-mini-card p,
.event-card p,
.collection-card p,
.collection-server-note,
.discover-preview-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.discover-card-avatar,
.discover-card-avatar-fallback {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    object-fit: cover;
    flex-shrink: 0;
}

.discover-card-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 700;
}

.discover-card-pill-row,
.discover-card-grid,
.discover-mini-list,
.event-grid,
.collection-grid,
.collection-server-grid,
.discover-preview-grid,
.event-history-list {
    display: grid;
    gap: 14px;
}

.discover-card-pill-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.discover-card-pill-row span,
.discover-card-grid div,
.discover-mini-card,
.discover-side-card,
.event-card,
.collection-card,
.collection-server-card,
.discover-preview-card,
.event-history-item {
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.discover-card-pill-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
}

.discover-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.discover-card-grid small {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.54);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.discover-card-grid strong {
    color: #ffffff;
    font-size: 1rem;
}

.discover-action-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(8, 8, 8, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.discover-action-bar form {
    display: flex;
}

.discover-action-button {
    width: 100%;
    min-height: 82px;
    gap: 14px;
    justify-content: flex-start;
    padding: 16px 18px;
    border-radius: 20px;
    text-align: left;
}

.discover-action-button:hover {
    transform: translateY(-1px);
}

.discover-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.07);
}

.discover-action-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.discover-action-copy {
    display: grid;
    gap: 4px;
}

.discover-action-copy strong {
    color: inherit;
    font-size: 1rem;
}

.discover-action-copy small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.discover-action-button.is-skip {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.discover-action-button.is-like {
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.08);
}

.discover-action-button.is-like .discover-action-icon {
    background: rgba(5, 5, 5, 0.18);
    color: #050505;
}

.discover-action-button.is-detail {
    border-color: rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(255, 255, 255, 0.02);
}

.discover-action-button.is-join {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(135deg, #101010 0%, #1b1b1b 45%, #050505 100%);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.discover-action-button.is-join .discover-action-icon {
    background: rgba(255, 255, 255, 0.12);
}

.discover-action-button.is-join .discover-action-copy small {
    color: rgba(255, 255, 255, 0.72);
}

.discover-side-card,
.event-card,
.collection-card,
.collection-server-card,
.discover-preview-card,
.event-history-item {
    display: grid;
    gap: 12px;
}

.discover-mini-list {
    grid-template-columns: 1fr;
}

.discover-mini-card strong,
.collection-card strong,
.event-card strong,
.discover-preview-card strong {
    font-size: 1.05rem;
}

.discover-mini-meta span,
.collection-card-meta span,
.event-card-meta span,
.discover-preview-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
}

.event-grid,
.collection-grid,
.discover-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-card.is-live {
    border-color: rgba(77, 255, 150, 0.35);
    box-shadow: 0 0 0 1px rgba(77, 255, 150, 0.12) inset;
}

.event-card-footer .button {
    min-height: 40px;
}

.collection-create-form,
.collection-inline-form {
    display: grid;
    gap: 14px;
}

.collection-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.collection-create-form label,
.collection-inline-form label {
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, 0.74);
}

.collection-create-form label span,
.collection-inline-form label span {
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.collection-create-form input,
.collection-create-form textarea,
.collection-inline-form input,
.collection-inline-form select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
}

.collection-create-form textarea {
    min-height: 112px;
    resize: vertical;
}

.collection-checkbox {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.collection-inline-shell {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
}

.event-creator-shell {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.event-creator-form {
    display: grid;
    gap: 14px;
}

.event-creator-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.event-creator-form label {
    display: grid;
    gap: 8px;
}

.event-creator-form label span {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-creator-form input,
.event-creator-form select,
.event-creator-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    padding: 12px 14px;
}

.event-creator-upload small {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.event-inline-actions {
    margin-top: 14px;
}

.managed-event-grid {
    gap: 18px;
}

.managed-event-card {
    display: grid;
    gap: 12px;
    align-content: start;
}

.managed-event-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
}

.collection-inline-form {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    align-items: end;
}

.collection-server-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.collection-server-card {
    background: var(--collection-surface);
    background-size: cover;
    background-position: center;
    color: var(--collection-ink, #ffffff);
}

.collection-server-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.collection-server-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.34);
}

.event-history-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.discover-preview-card {
    color: inherit;
    text-decoration: none;
}

.event-server-grid,
.recommendation-grid.server-grid,
.discover-preview-grid.server-grid,
.discover-side-server-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.discover-side-server-grid {
    grid-template-columns: 1fr;
}

@media (max-width: 1100px) {
    .discover-layout,
    .collection-server-grid,
    .event-grid,
    .collection-grid,
    .discover-preview-grid {
        grid-template-columns: 1fr;
    }

    .discover-action-bar,
    .collection-create-form,
    .collection-inline-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-creator-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .discover-stack {
        min-height: 560px;
    }

    .discover-card-poster {
        padding: 22px;
    }

    .discover-card-head strong {
        font-size: 1.32rem;
    }

    .discover-card-pill-row,
    .discover-card-grid,
    .event-history-list,
    .discover-action-bar,
    .event-creator-grid,
    .collection-inline-form,
    .collection-create-form {
        grid-template-columns: 1fr;
    }

    .discover-card-poster.is-back-1,
    .discover-card-poster.is-back-2,
    .discover-card-poster.is-back-3 {
        display: none;
    }
}

/* Stalkly unified premium dashboard layer */
:root {
    --bg: #050506;
    --bg-deep: #070711;
    --bg-ink: #080808;
    --surface: rgba(11, 12, 15, 0.88);
    --surface-solid: #0b0c0f;
    --card: rgba(16, 17, 21, 0.88);
    --card-hover: rgba(21, 22, 32, 0.94);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #f5f5f7;
    --muted: #a1a1aa;
    --muted-strong: #c4c4cc;
    --accent: #f5f5f5;
    --accent-hover: #ffffff;
    --accent-soft: rgba(255,255,255,0.08);
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 8px;
}

html {
    scrollbar-gutter: stable;
}

body {
    color: var(--text);
    background:
        radial-gradient(circle at 72% 0%, rgba(255,255,255,0.05), transparent 34rem),
        radial-gradient(circle at 8% 22%, rgba(59, 130, 246, 0.06), transparent 26rem),
        linear-gradient(180deg, #050506 0%, #070711 100%);
    letter-spacing: 0;
}

body::before {
    opacity: 0.16;
}

.site-wrap {
    width: min(calc(100% - 32px), 1440px);
    max-width: 1440px;
    margin: 14px auto;
}

.page-main {
    display: grid;
    gap: 18px;
    padding: 18px 0 0;
}

.site-header {
    top: 12px;
    min-height: 64px;
    gap: 18px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(16, 17, 24, 0.94), rgba(8, 9, 13, 0.92)),
        rgba(8, 9, 13, 0.92);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.brand {
    gap: 12px;
    min-width: 176px;
    padding: 0 12px 0 0;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        #050506 url("../brand/stalkly-logo.png") center/74% no-repeat;
}

.brand-text {
    font-size: 1.08rem;
    letter-spacing: 0;
}

.top-nav {
    align-items: center;
    gap: 10px;
}

.top-nav-link {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
}

.top-nav-link:hover,
.top-nav-link.is-active {
    color: #fff;
    border-color: rgba(255,255,255,0.14);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.105), rgba(255,255,255,0.05)),
        rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.18), 0 10px 28px rgba(255,255,255,0.055);
}

.header-tools {
    align-items: center;
    gap: 12px;
}

.header-search {
    width: min(310px, 28vw);
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(7, 8, 12, 0.76);
}

.header-search input {
    color: var(--text);
}

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

.button,
.button-light,
.button-ghost,
.section-link,
.tab-pill {
    border-radius: 8px;
}

.button-light {
    color: #fff;
    border-color: rgba(255,255,255,0.28);
    background: linear-gradient(135deg, #f5f5f5, #121212);
    box-shadow: 0 14px 32px rgba(255,255,255,0.095);
}

.button-light:hover {
    background: linear-gradient(135deg, #ffffff, #151515);
}

.button-ghost {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.035);
}

.button-icon,
.account-menu-icon,
.footer-discord-icon,
.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-icon svg {
    width: 16px;
    height: 16px;
}

.panel,
.admin-shell-panel,
.profile-card,
.server-card,
.server-card-poster,
.vote-card,
.detail-card,
.hero-stat,
.admin-kpi-card,
.account-menu {
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
        var(--card);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

.panel:hover,
.server-card:hover,
.vote-card:hover {
    border-color: rgba(255,255,255,0.15);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255, 255, 255, 0.018)),
        var(--card-hover);
}

.section-kicker {
    color: #e6e6e6;
    letter-spacing: 0;
}

.section-copy,
.hero-copy,
.admin-inline-meta,
.account-menu-label,
.site-footer p {
    color: var(--muted);
}

.account-trigger {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(7, 8, 12, 0.76);
}

.account-trigger-avatar,
.account-trigger-fallback {
    border-radius: 8px;
}

.account-menu {
    right: 0;
    width: 280px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(8, 9, 14, 0.98);
}

.account-menu-link,
.account-menu-highlight {
    min-height: 38px;
    border-radius: 8px;
}

.account-menu-link:hover,
.account-menu-link.is-current {
    background: rgba(255,255,255,0.065);
    color: #fff;
}

.site-footer {
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 58px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(11, 12, 15, 0.86);
}

.footer-brandline,
.footer-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-discord-icon {
    width: 34px;
    height: 34px;
    color: #fff;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5f5f5, #202020);
}

.footer-discord-icon svg {
    width: 18px;
    height: 18px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: #fff;
}

.empty-state {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 160px;
    padding: 26px;
    text-align: center;
    color: var(--muted);
}

.empty-state strong {
    color: var(--text);
}

.empty-state-icon {
    width: 54px;
    height: 54px;
    color: #e6e6e6;
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
}

.empty-state-icon svg {
    width: 26px;
    height: 26px;
}

.badges-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
}

.badges-profile-panel,
.badges-main-panel {
    display: grid;
    gap: 18px;
    align-content: start;
}

.badge-profile-card {
    overflow: hidden;
    padding: 0;
}

.badge-profile-cover {
    min-height: 118px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.12), rgba(10,10,10,0.36)),
        radial-gradient(circle at 72% 18%, rgba(255,255,255,0.145), transparent 12rem);
}

.badge-profile-main {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 0 20px 22px;
    text-align: center;
}

.badge-profile-avatar {
    width: 118px;
    height: 118px;
    margin-top: -58px;
    border: 3px solid rgba(255,255,255,0.24);
    border-radius: 50%;
    object-fit: cover;
    background: #090a10;
}

.badge-profile-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #111827, #f5f5f5);
}

.badge-profile-stats,
.badge-progress-list,
.admin-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.badge-profile-stats span,
.badge-progress-list span,
.admin-mini-stats span {
    display: grid;
    gap: 2px;
    padding: 12px;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}

.badge-profile-stats strong,
.badge-progress-list strong,
.admin-mini-stats strong {
    color: var(--text);
    font-size: 1rem;
}

.badge-progress-ring {
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    margin: 16px auto;
    border-radius: 50%;
    background:
        radial-gradient(circle, #101115 58%, transparent 59%),
        conic-gradient(#f5f5f5 calc(var(--badge-progress) * 1%), rgba(255, 255, 255, 0.08) 0);
}

.badge-progress-ring span {
    font-size: 1.6rem;
    font-weight: 800;
}

.badges-hero-panel {
    min-height: 120px;
    padding: 26px;
    background:
        radial-gradient(circle at 78% 0%, rgba(255,255,255,0.085), transparent 18rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
        var(--card);
}

.badges-hero-panel h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.badge-tabs-panel {
    display: flex;
    gap: 10px;
    padding: 10px;
}

.tab-pill {
    min-width: 160px;
    padding: 9px 14px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.035);
}

.tab-pill.is-active,
.tab-pill:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.055));
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: 12px;
}

.badge-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 136px;
    padding: 18px 12px;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.075), transparent 7rem),
        rgba(255, 255, 255, 0.035);
}

.badge-card.is-locked {
    filter: grayscale(0.92);
    opacity: 0.48;
}

.badge-card-art {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #e6e6e6;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
}

.badge-card-art img,
.badge-card-fallback svg {
    width: 34px;
    height: 34px;
}

.badge-card-art img + .badge-card-fallback {
    display: none;
}

.badge-card strong {
    line-height: 1.25;
}

.badge-card span:last-child {
    color: #e6e6e6;
    font-size: 0.78rem;
    text-transform: capitalize;
}

.admin-dashboard-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 14px;
}

.admin-dashboard-main {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.admin-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: calc(100vh - 120px);
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(11, 12, 15, 0.86);
}

.admin-sidebar-kicker,
.admin-panel-kicker {
    color: #e6e6e6;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-sidebar nav,
.admin-action-list,
.admin-log-list {
    display: grid;
    gap: 8px;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 10px;
    color: var(--muted);
    border-radius: 8px;
}

.admin-sidebar-link span {
    display: inline-flex;
}

.admin-sidebar-link svg {
    width: 17px;
    height: 17px;
}

.admin-sidebar-link.is-active,
.admin-sidebar-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.075);
}

.admin-titlebar,
.admin-health-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.admin-titlebar {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(11, 12, 15, 0.76);
}

.admin-titlebar h1 {
    font-size: 1.6rem;
}

.admin-titlebar p {
    color: var(--muted);
}

.admin-health-grid {
    grid-template-columns: 1.3fr 1fr 0.9fr;
    align-items: stretch;
}

.admin-bot-health-card {
    display: grid;
    gap: 14px;
}

.admin-status-dot {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.admin-status-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.admin-status-dot.is-success {
    color: var(--success);
}

.admin-status-dot.is-warning {
    color: var(--warning);
}

.admin-status-dot.is-danger {
    color: var(--danger);
}

.bot-health-body {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.bot-health-logo {
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    color: #e6e6e6;
    border: 8px solid rgba(255,255,255,0.075);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.105), rgba(10, 11, 18, 0.98));
}

.bot-health-logo svg {
    width: 44px;
    height: 44px;
}

.bot-health-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.bot-health-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.bot-health-list dt {
    color: var(--muted);
}

.bot-health-list dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.admin-action-list a,
.admin-log-list article {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 56px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.admin-action-list a span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #e6e6e6;
    border-radius: 8px;
    background: rgba(255,255,255,0.065);
}

.admin-action-list a small,
.admin-log-list p,
.admin-log-list time,
.admin-error-line {
    color: var(--muted);
}

.admin-auth-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-auth-list span,
.admin-pill {
    border-radius: 8px;
}

.admin-auth-list span {
    padding: 8px 10px;
    color: #eeeeee;
    border: 1px solid rgba(255,255,255,0.105);
    background: rgba(255,255,255,0.04);
}

.admin-badge-art,
.admin-badge-fallback {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #e6e6e6;
    border-radius: 9px;
    background: rgba(255,255,255,0.055);
}

.admin-badge-art img,
.admin-badge-fallback svg {
    width: 26px;
    height: 26px;
}

.admin-badge-art img + span {
    display: none;
}

.admin-log-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

@media (max-width: 1180px) {
    .site-wrap {
        width: min(calc(100% - 20px), 100%);
    }

    .top-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        flex: 0 0 100%;
        padding-top: 4px;
    }

    .site-header {
        flex-wrap: wrap;
    }

    .header-tools {
        margin-left: auto;
    }

    .admin-dashboard-layout,
    .badges-layout,
    .admin-health-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .site-wrap {
        width: min(calc(100% - 14px), 100%);
        margin-top: 7px;
    }

    .brand {
        min-width: 0;
        border-right: 0;
    }

    .brand-text {
        display: none;
    }

    .header-search {
        width: min(100%, 220px);
    }

    .footer-brandline,
    .footer-links,
    .site-footer,
    .admin-titlebar {
        align-items: stretch;
        flex-direction: column;
    }

    .site-footer,
    .footer-links {
        display: grid;
    }

    .badge-profile-stats,
    .badge-progress-list,
    .admin-mini-stats {
        grid-template-columns: 1fr;
    }

    .bot-health-body {
        grid-template-columns: 1fr;
    }
}

.page-server-detail #sunucu-detayi {
    display: none !important;
}

.server-profile-page {
    display: grid;
    gap: 12px;
}

.server-profile-hero,
.server-profile-card {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(12, 14, 22, 0.84);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.server-profile-hero {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 18px;
    background-image:
        linear-gradient(90deg, rgba(9, 10, 16, 0.98) 0%, rgba(9, 10, 16, 0.76) 42%, rgba(9, 10, 16, 0.92) 100%),
        var(--server-profile-cover);
    background-size: cover;
    background-position: center;
}

.server-profile-breadcrumb,
.server-profile-hero-main,
.server-profile-actions,
.server-profile-tags,
.server-profile-stat-grid,
.server-profile-card-head,
.server-profile-links,
.server-profile-voice-row {
    display: flex;
}

.server-profile-breadcrumb {
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 700;
}

.server-profile-breadcrumb a {
    color: #f4f4f4;
}

.server-profile-breadcrumb svg,
.server-profile-button svg,
.server-profile-card-head svg,
.server-profile-stat-grid svg,
.server-profile-voice-row svg,
.server-profile-about svg,
.server-profile-links svg,
.server-profile-list svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.server-profile-hero-main {
    align-items: center;
    gap: 18px;
}

.server-profile-avatar {
    flex: 0 0 auto;
    width: 116px;
    height: 116px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #050505;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.server-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-profile-avatar span {
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
}

.server-profile-copy {
    min-width: 0;
    flex: 1;
}

.server-profile-copy h1 {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.server-profile-copy p {
    max-width: 64ch;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.55;
}

.server-profile-tags {
    flex-wrap: wrap;
    gap: 7px;
}

.server-profile-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.075);
    font-size: 0.76rem;
    font-weight: 750;
}

.server-profile-actions {
    align-self: center;
    gap: 10px;
    margin-left: auto;
}

.server-profile-action-form {
    margin: 0;
}

.server-profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 126px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 7px;
    color: #f4f4f4;
    background: rgba(255, 255, 255, 0.045);
    font-weight: 850;
}

.server-profile-button-primary {
    color: #050505;
    background: linear-gradient(135deg, #ffffff, #d7d7d7);
}

.server-profile-stat-grid {
    gap: 10px;
    margin-top: 20px;
}

.server-profile-stat-grid article {
    flex: 1 1 0;
    min-width: 0;
    min-height: 66px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-areas: "icon value" "icon label";
    gap: 2px 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.server-profile-stat-grid span {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.server-profile-stat-grid strong {
    grid-area: value;
    color: #fff;
    font-size: 1rem;
    line-height: 1.1;
}

.server-profile-stat-grid small {
    grid-area: label;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.76rem;
}

.server-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.78fr) minmax(320px, 0.96fr);
    gap: 12px;
}

.server-profile-card {
    padding: 16px;
}

.server-profile-card h2,
.server-profile-card h3 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0;
}

.server-profile-card h3 {
    margin-top: 18px;
    margin-bottom: 10px;
    font-size: 0.92rem;
}

.server-profile-card-head {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.server-profile-card-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.server-profile-card-head h2 span,
.server-profile-card-head a,
.server-profile-card-head > span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 850;
}

.server-profile-voice-list {
    display: grid;
    gap: 12px;
}

.server-profile-voice-row {
    align-items: center;
    gap: 12px;
    min-height: 34px;
}

.server-profile-voice-row b {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #f4f4f4;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
}

.server-profile-voice-row span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #f4f4f4;
    background: rgba(255, 255, 255, 0.07);
}

.server-profile-voice-row em {
    flex: 1;
    min-width: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-profile-voice-row strong {
    min-width: 54px;
    text-align: right;
    font-size: 0.78rem;
}

.server-profile-mini-chart {
    margin-top: 16px;
    min-height: 94px;
    padding: 14px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.035);
}

.server-profile-mini-chart strong,
.server-profile-mini-chart small {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
}

.server-profile-mini-chart span {
    display: block;
    margin: 6px 0;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
}

.server-profile-about dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.server-profile-about dl div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(95px, auto);
    gap: 12px;
}

.server-profile-about dt,
.server-profile-about dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
}

.server-profile-about dt {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.server-profile-about dd {
    color: rgba(255, 255, 255, 0.78);
    text-align: right;
}

.server-profile-links {
    gap: 12px;
}

.server-profile-links a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
}

.server-profile-side {
    display: grid;
    gap: 12px;
}

.server-profile-list article {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.server-profile-list article:last-child {
    border-bottom: 0;
}

.server-profile-list b {
    color: #fff;
    font-size: 0.86rem;
}

.server-profile-list small {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.76rem;
}

.server-profile-list p {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    line-height: 1.45;
}

.server-profile-list article strong {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f4f4f4;
    font-size: 0.82rem;
}

.server-profile-empty {
    margin: 0;
    color: rgba(255, 255, 255, 0.56);
}

@media (max-width: 1120px) {
    .server-profile-hero-main,
    .server-profile-actions,
    .server-profile-stat-grid {
        flex-wrap: wrap;
    }

    .server-profile-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium motion and hover layer */
:root {
    --premium-teal: rgba(45, 212, 191, 0.24);
    --premium-line: rgba(255, 255, 255, 0.14);
    --premium-line-hot: rgba(255, 255, 255, 0.19);
    --premium-surface-hover: rgba(255, 255, 255, 0.052);
    --premium-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
    --premium-shadow-hover: 0 16px 34px rgba(0, 0, 0, 0.30), 0 0 0 1px rgba(255, 255, 255, 0.035);
}

:where(
    .top-nav-link,
    .sub-nav-link,
    .category-pill,
    .section-link,
    .user-chip,
    .account-trigger,
    .account-menu a,
    .button,
    .button-light,
    .button-dark,
    .button-ghost,
    .button-mini,
    .button-icon,
    .page-link,
    .admin-btn,
    .server-profile-button,
    .vote-action-button,
    .discover-action-button,
    .directory-side-button,
    .directory-vote-btn,
    .profile-tab,
    .profile-card-action .button,
    .admin-sidebar-link,
    .admin-sidebar-exit
) {
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease,
        opacity 180ms ease;
}

:where(
    .panel,
    .feature-card,
    .metric-card,
    .activity-card,
    .role-card,
    .peak-card,
    .server-card,
    .vote-card,
    .vote-board-card,
    .leaderboard-card,
    .leaderboard-overview-card,
    .leaderboard-item,
    .leaderboard-live-row,
    .directory-featured-card,
    .directory-row-card,
    .directory-leader-row,
    .directory-side-panel,
    .directory-category-row,
    .profile-search-card,
    .profile-card,
    .profile-main-card,
    .profile-side-card,
    .profile-panel,
    .profile-stat-box,
    .profile-stat-card,
    .profile-summary-card,
    .profile-resource-card,
    .profile-social-card,
    .profile-inline-stat-card,
    .profile-server-card,
    .profile-comment-card,
    .profile-insight-card,
    .server-comment-card,
    .server-profile-card,
    .server-profile-stat-grid article,
    .server-profile-list article,
    .admin-shell-panel,
    .admin-panel,
    .admin-stat-card,
    .admin-data-row:not(.is-head),
    .admin-kpi-card,
    .admin-badge-option,
    .admin-action-list a,
    .admin-log-list article,
    .badge-card,
    .discovery-panel,
    .discovery-card,
    .season-card,
    .discover-mini-card,
    .discover-side-card,
    .event-card,
    .collection-card,
    .collection-server-card,
    .discover-preview-card,
    .live-room-card,
    .recommendation-card,
    .owner-server-card,
    .similar-server-card,
    .comparison-card,
    .server-insight-card,
    .embed-card-shell
) {
    transition:
        transform 190ms ease,
        border-color 190ms ease,
        background-color 190ms ease,
        background 190ms ease,
        box-shadow 190ms ease,
        opacity 190ms ease;
}

:where(
    .panel,
    .feature-card,
    .metric-card,
    .activity-card,
    .role-card,
    .server-card,
    .vote-card,
    .leaderboard-card,
    .leaderboard-overview-card,
    .directory-side-panel,
    .profile-card,
    .profile-main-card,
    .profile-side-card,
    .profile-panel,
    .profile-stat-box,
    .profile-stat-card,
    .profile-summary-card,
    .profile-resource-card,
    .profile-social-card,
    .profile-inline-stat-card,
    .profile-server-card,
    .profile-comment-card,
    .server-comment-card,
    .server-profile-card,
    .admin-shell-panel,
    .admin-panel,
    .admin-stat-card,
    .admin-kpi-card,
    .badge-card,
    .discovery-panel,
    .season-card,
    .discover-side-card,
    .event-card,
    .collection-card,
    .discover-preview-card,
    .live-room-card,
    .recommendation-card,
    .similar-server-card,
    .comparison-card,
    .server-insight-card,
    .embed-card-shell
) {
    position: relative;
    isolation: isolate;
}

:where(
    .panel,
    .feature-card,
    .metric-card,
    .activity-card,
    .role-card,
    .server-card,
    .vote-card,
    .leaderboard-card,
    .leaderboard-overview-card,
    .directory-side-panel,
    .profile-card,
    .profile-main-card,
    .profile-side-card,
    .profile-panel,
    .profile-stat-box,
    .profile-stat-card,
    .profile-summary-card,
    .profile-resource-card,
    .profile-social-card,
    .profile-inline-stat-card,
    .profile-server-card,
    .profile-comment-card,
    .server-comment-card,
    .server-profile-card,
    .admin-shell-panel,
    .admin-panel,
    .admin-stat-card,
    .admin-kpi-card,
    .badge-card,
    .discovery-panel,
    .season-card,
    .discover-side-card,
    .event-card,
    .collection-card,
    .discover-preview-card,
    .live-room-card,
    .recommendation-card,
    .similar-server-card,
    .comparison-card,
    .server-insight-card,
    .embed-card-shell
)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(210px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.072), rgba(148, 163, 184, 0.026) 42%, transparent 68%);
    transition: opacity 190ms ease;
}

:where(
    .panel,
    .feature-card,
    .metric-card,
    .activity-card,
    .role-card,
    .server-card,
    .vote-card,
    .leaderboard-card,
    .leaderboard-overview-card,
    .directory-side-panel,
    .profile-card,
    .profile-main-card,
    .profile-side-card,
    .profile-panel,
    .profile-stat-box,
    .profile-stat-card,
    .profile-summary-card,
    .profile-resource-card,
    .profile-social-card,
    .profile-inline-stat-card,
    .profile-server-card,
    .profile-comment-card,
    .server-comment-card,
    .server-profile-card,
    .admin-shell-panel,
    .admin-panel,
    .admin-stat-card,
    .admin-kpi-card,
    .badge-card,
    .discovery-panel,
    .season-card,
    .discover-side-card,
    .event-card,
    .collection-card,
    .discover-preview-card,
    .live-room-card,
    .recommendation-card,
    .similar-server-card,
    .comparison-card,
    .server-insight-card,
    .embed-card-shell
) > * {
    position: relative;
    z-index: 1;
}

:where(
    .panel,
    .feature-card,
    .metric-card,
    .activity-card,
    .role-card,
    .peak-card,
    .server-card,
    .vote-card,
    .vote-board-card,
    .leaderboard-card,
    .leaderboard-overview-card,
    .leaderboard-item,
    .leaderboard-live-row,
    .directory-featured-card,
    .directory-row-card,
    .directory-leader-row,
    .directory-side-panel,
    .directory-category-row,
    .profile-search-card,
    .profile-card,
    .profile-main-card,
    .profile-side-card,
    .profile-panel,
    .profile-stat-box,
    .profile-stat-card,
    .profile-summary-card,
    .profile-resource-card,
    .profile-social-card,
    .profile-inline-stat-card,
    .profile-server-card,
    .profile-comment-card,
    .profile-insight-card,
    .server-comment-card,
    .server-profile-card,
    .server-profile-stat-grid article,
    .server-profile-list article,
    .admin-shell-panel,
    .admin-panel,
    .admin-stat-card,
    .admin-data-row:not(.is-head),
    .admin-kpi-card,
    .admin-badge-option,
    .admin-action-list a,
    .admin-log-list article,
    .badge-card,
    .discovery-panel,
    .discovery-card,
    .season-card,
    .discover-mini-card,
    .discover-side-card,
    .event-card,
    .collection-card,
    .collection-server-card,
    .discover-preview-card,
    .live-room-card,
    .recommendation-card,
    .owner-server-card,
    .similar-server-card,
    .comparison-card,
    .server-insight-card,
    .embed-card-shell
):hover,
:where(
    .server-card,
    .vote-card,
    .leaderboard-live-row,
    .directory-featured-card,
    .directory-row-card,
    .profile-search-card,
    .profile-social-card,
    .profile-server-card,
    .server-profile-links a,
    .admin-badge-option
):focus-visible,
.server-radar-card:hover .server-radar-poster,
.server-radar-card:focus-visible .server-radar-poster {
    transform: translateY(-1px);
    border-color: var(--premium-line-hot);
    box-shadow: var(--premium-shadow-hover);
}

:where(
    .panel,
    .feature-card,
    .metric-card,
    .activity-card,
    .role-card,
    .server-card,
    .vote-card,
    .leaderboard-card,
    .leaderboard-overview-card,
    .directory-side-panel,
    .profile-card,
    .profile-main-card,
    .profile-side-card,
    .profile-panel,
    .profile-stat-box,
    .profile-stat-card,
    .profile-summary-card,
    .profile-resource-card,
    .profile-social-card,
    .profile-inline-stat-card,
    .profile-server-card,
    .profile-comment-card,
    .server-comment-card,
    .server-profile-card,
    .admin-shell-panel,
    .admin-panel,
    .admin-stat-card,
    .admin-kpi-card,
    .badge-card,
    .discovery-panel,
    .season-card,
    .discover-side-card,
    .event-card,
    .collection-card,
    .discover-preview-card,
    .live-room-card,
    .recommendation-card,
    .similar-server-card,
    .comparison-card,
    .server-insight-card,
    .embed-card-shell
):hover::after,
:where(
    .server-card,
    .vote-card,
    .profile-social-card,
    .profile-server-card
):focus-visible::after {
    opacity: 1;
}

:where(
    .button,
    .button-light,
    .button-dark,
    .button-ghost,
    .button-mini,
    .page-link,
    .admin-btn,
    .server-profile-button,
    .vote-action-button,
    .discover-action-button,
    .directory-side-button,
    .directory-vote-btn,
    .profile-search-open,
    .profile-preview-button,
    .profile-mini-action
):hover,
:where(
    .button,
    .button-light,
    .button-dark,
    .button-ghost,
    .button-mini,
    .page-link,
    .admin-btn,
    .server-profile-button,
    .vote-action-button,
    .discover-action-button,
    .directory-side-button,
    .directory-vote-btn,
    .profile-search-open,
    .profile-preview-button,
    .profile-mini-action
):focus-visible {
    transform: translateY(-1px);
    border-color: var(--premium-line-hot);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.042)),
        rgba(10, 12, 15, 0.82);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.button-light,
.page-link.is-active,
body.page-admin .button-light,
body.page-admin button.button-light,
body.page-admin a.button-light {
    color: #f7f7f7 !important;
    border-color: rgba(255, 255, 255, 0.20) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
        rgba(14, 15, 18, 0.92) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28) !important;
}

.button-light:hover,
.page-link.is-active:hover,
body.page-admin .button-light:hover,
body.page-admin button.button-light:hover,
body.page-admin a.button-light:hover {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.30) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.075)),
        rgba(16, 18, 22, 0.96) !important;
}

:where(.button-dark, .button-ghost, .server-profile-button-primary, .vote-action-button, .discover-action-button.is-join) {
    color: #f5f5f5;
    border-color: rgba(255, 255, 255, 0.13);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.032)),
        rgba(9, 10, 12, 0.88);
}

:where(.admin-btn.is-danger, .button.is-danger, button.is-danger) {
    color: #ffd8d8;
    border-color: rgba(239, 68, 68, 0.18);
    background: rgba(239, 68, 68, 0.055);
    box-shadow: none;
}

:where(.admin-btn.is-danger, .button.is-danger, button.is-danger):hover,
:where(.admin-btn.is-danger, .button.is-danger, button.is-danger):focus-visible {
    color: #fff2f2;
    border-color: rgba(239, 68, 68, 0.34);
    background: rgba(239, 68, 68, 0.12);
    box-shadow: 0 14px 32px rgba(239, 68, 68, 0.12);
}

:where(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    textarea,
    .header-search,
    .admin-input,
    .admin-select,
    .admin-textarea,
    .profile-friend-search-input,
    .profile-composer textarea,
    .server-comment-command,
    .directory-filter-trigger
) {
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease;
}

:where(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    textarea,
    .header-search,
    .admin-input,
    .admin-select,
    .admin-textarea,
    .profile-friend-search-input,
    .profile-composer textarea,
    .server-comment-command,
    .directory-filter-trigger
):hover {
    border-color: rgba(255, 255, 255, 0.18);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.035);
}

:where(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    textarea,
    .admin-input,
    .admin-select,
    .admin-textarea,
    .profile-friend-search-input,
    .profile-composer textarea,
    .server-comment-command
):focus {
    outline: none;
}

:where(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    textarea,
    .admin-input,
    .admin-select,
    .admin-textarea,
    .profile-friend-search-input,
    .profile-composer textarea,
    .server-comment-command,
    .directory-filter-trigger
):focus-visible,
.header-search:focus-within {
    outline: 2px solid rgba(45, 212, 191, 0.32);
    outline-offset: 2px;
    border-color: rgba(45, 212, 191, 0.32);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.08);
}

:where(.top-nav-link, .sub-nav-link, .category-pill, .section-link, .user-chip, .account-trigger, .account-menu a, .profile-tab, .directory-filter-option):hover,
:where(.top-nav-link, .sub-nav-link, .category-pill, .section-link, .user-chip, .account-trigger, .account-menu a, .profile-tab, .directory-filter-option):focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
        rgba(255, 255, 255, 0.035);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.20);
}

body.page-admin .admin-sidebar-link,
body.page-admin .admin-sidebar-exit {
    transition:
        transform 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease !important;
}

body.page-admin .admin-sidebar-link:hover {
    transform: translateX(1px) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.026)) !important;
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.18) !important;
}

body.page-admin .admin-sidebar-link.is-active {
    border-color: rgba(255, 255, 255, 0.14) !important;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.045)) !important;
}

:where(
    .directory-featured-card,
    .leaderboard-live-row,
    .vote-board-card,
    .discover-card-poster,
    .collection-server-card
) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

:where(
    .directory-featured-card,
    .leaderboard-live-row,
    .vote-board-card,
    .discover-card-poster,
    .collection-server-card
)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(240px circle at var(--mx, 50%) var(--my, 14%), rgba(255, 255, 255, 0.055), transparent 58%),
        linear-gradient(180deg, rgba(4, 4, 4, 0.06), rgba(4, 4, 4, 0.34) 62%, rgba(4, 4, 4, 0.74));
    opacity: 0.82;
    transition: opacity 190ms ease, background 190ms ease;
}

:where(
    .directory-featured-card,
    .leaderboard-live-row,
    .vote-board-card,
    .discover-card-poster,
    .collection-server-card
) > * {
    position: relative;
    z-index: 1;
}

.server-radar-poster::after,
.server-poster::after,
.vote-card-poster::after,
.profile-cover::after,
.server-profile-hero::after,
.directory-featured-card::after,
.leaderboard-live-row::after,
.vote-board-card::after,
.discover-card-poster::after,
.collection-server-card::after {
    pointer-events: none;
}

.server-radar-card:hover .server-radar-poster::after,
.server-radar-card:focus-visible .server-radar-poster::after,
.server-card:hover .server-poster::after,
.server-card:focus-visible .server-poster::after,
.vote-card:hover .vote-card-poster::after,
.vote-card:focus-visible .vote-card-poster::after,
.directory-featured-card:hover::after,
.directory-featured-card:focus-visible::after,
.leaderboard-live-row:hover::after,
.leaderboard-live-row:focus-visible::after,
.vote-board-card:hover::after,
.vote-board-card:focus-within::after,
.discover-card-poster:hover::after,
.collection-server-card:hover::after {
    background:
        radial-gradient(180px circle at var(--mx, 48%) var(--my, 18%), rgba(255, 255, 255, 0.06), transparent 58%),
        linear-gradient(180deg, rgba(4, 4, 4, 0.12), rgba(4, 4, 4, 0.45) 44%, rgba(4, 4, 4, 0.9) 100%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 24%);
}

.server-radar-card:hover .server-radar-poster,
.server-radar-card:focus-visible .server-radar-poster {
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    :where(
        .panel,
        .feature-card,
        .metric-card,
        .activity-card,
        .role-card,
        .peak-card,
        .server-card,
        .vote-card,
        .vote-board-card,
        .leaderboard-card,
        .leaderboard-overview-card,
        .leaderboard-item,
        .leaderboard-live-row,
        .directory-featured-card,
        .directory-row-card,
        .directory-leader-row,
        .profile-search-card,
        .profile-card,
        .profile-main-card,
        .profile-side-card,
        .profile-panel,
        .admin-shell-panel,
        .admin-panel,
        .admin-stat-card,
        .admin-data-row:not(.is-head),
        .badge-card
    ):hover,
    :where(.button, .admin-btn, .page-link):hover {
        transform: none;
    }
}

/* Premium micro-interaction cleanup */
:where(
    .server-card,
    .leaderboard-live-row,
    .admin-panel,
    .admin-stat-card,
    .admin-data-row:not(.is-head),
    .profile-card,
    .vote-card,
    .category-card,
    .directory-row-card,
    .directory-featured-card,
    .vote-board-card,
    .profile-social-card,
    .profile-server-card,
    .server-profile-card,
    .server-profile-stat-grid article,
    .metric-card,
    .vote-stat-card,
    .leaderboard-overview-card,
    .badge-card
) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

:where(
    .server-card,
    .leaderboard-live-row,
    .admin-panel,
    .admin-stat-card,
    .profile-card,
    .vote-card,
    .category-card,
    .directory-row-card,
    .directory-featured-card,
    .vote-board-card,
    .profile-social-card,
    .profile-server-card,
    .server-profile-card,
    .metric-card,
    .vote-stat-card,
    .leaderboard-overview-card,
    .badge-card
)::after {
    background:
        radial-gradient(180px circle at var(--mx, 50%) var(--my, 12%), rgba(255, 255, 255, 0.058), rgba(148, 163, 184, 0.022) 44%, transparent 68%) !important;
    opacity: 0;
}

:where(
    .server-card,
    .leaderboard-live-row,
    .admin-panel,
    .admin-stat-card,
    .admin-data-row:not(.is-head),
    .profile-card,
    .vote-card,
    .category-card,
    .directory-row-card,
    .directory-featured-card,
    .vote-board-card,
    .profile-social-card,
    .profile-server-card,
    .server-profile-card,
    .server-profile-stat-grid article,
    .metric-card,
    .vote-stat-card,
    .leaderboard-overview-card,
    .badge-card
):hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
    background-color: var(--premium-surface-hover);
    box-shadow: var(--premium-shadow-hover);
}

:where(
    .server-card,
    .leaderboard-live-row,
    .admin-panel,
    .admin-stat-card,
    .profile-card,
    .vote-card,
    .category-card,
    .directory-row-card,
    .directory-featured-card,
    .vote-board-card,
    .profile-social-card,
    .profile-server-card,
    .server-profile-card,
    .metric-card,
    .vote-stat-card,
    .leaderboard-overview-card,
    .badge-card
):hover::after {
    opacity: 1;
}

.server-poster::after,
.server-radar-poster::after,
.vote-card-poster::after {
    opacity: 1;
}

.server-card:hover .server-poster::after,
.server-radar-card:hover .server-radar-poster::after,
.vote-card:hover .vote-card-poster::after {
    background:
        radial-gradient(180px circle at var(--mx, 48%) var(--my, 16%), rgba(255, 255, 255, 0.06), transparent 58%),
        linear-gradient(180deg, rgba(4, 4, 4, 0.10), rgba(4, 4, 4, 0.44) 44%, rgba(4, 4, 4, 0.88) 100%) !important;
}

:where(.top-nav-link, .sub-nav-link, .admin-sidebar-link) {
    position: relative;
}

:where(.top-nav-link, .sub-nav-link).is-active::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 4px;
    left: 14px;
    height: 1px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    pointer-events: none;
}

:where(.button, .admin-btn, .vote-action-button, .server-profile-button, .directory-side-button, .directory-vote-btn) {
    position: relative;
    overflow: hidden;
}

:where(.button, .admin-btn, .vote-action-button, .server-profile-button, .directory-side-button, .directory-vote-btn)::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 62%);
    transition: opacity 180ms ease;
}

:where(.button, .admin-btn, .vote-action-button, .server-profile-button, .directory-side-button, .directory-vote-btn):hover::after {
    opacity: 1;
}

:where(.empty-note, .profile-empty-note, .server-profile-empty, .voice-empty-note, .voice-empty-note, .server-profile-empty) {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 84px;
    padding: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.64);
    background:
        radial-gradient(180px circle at 24px 20px, rgba(255, 255, 255, 0.05), transparent 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    overflow: hidden;
}

:where(.empty-note, .profile-empty-note, .server-profile-empty, .voice-empty-note)::before {
    content: "";
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        rgba(255, 255, 255, 0.055)
        url("../brand/stalkly-logo.png") center/18px 18px no-repeat;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:where(.metric-card, .vote-stat-card, .admin-stat-card, .profile-stat-card, .profile-summary-card) {
    gap: 8px;
}

:where(.metric-card span, .vote-stat-card span, .admin-stat-icon, .profile-stat-box span:first-child) {
    transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

:where(.metric-card, .vote-stat-card, .admin-stat-card, .profile-stat-card, .profile-summary-card):hover :where(.admin-stat-icon, i, span:first-child) {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 0 18px rgba(255, 255, 255, 0.055);
}

:where(.server-card, .vote-card)::before {
    display: none !important;
    animation: none !important;
    opacity: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    :where(
        .server-card,
        .leaderboard-live-row,
        .admin-panel,
        .admin-stat-card,
        .admin-data-row:not(.is-head),
        .profile-card,
        .vote-card,
        .category-card,
        .button,
        .admin-btn
    ):hover {
        transform: none !important;
    }
}

/* Server/list card readability polish */
.server-poster-identity,
.server-radar-server,
.vote-card-head,
.directory-row-copy,
.leaderboard-live-copy,
.profile-server-card-head {
    min-width: 0;
}

.server-poster-copy strong,
.server-radar-copy strong,
.vote-card-head h3,
.directory-row-copy strong,
.leaderboard-live-copy strong,
.profile-server-meta strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-poster-avatar,
.server-radar-avatar,
.vote-card-avatar,
.directory-row-avatar,
.leaderboard-live-avatar,
.profile-server-avatar {
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 20px rgba(0,0,0,.24);
}

:where(.server-source-chip, .server-card-pill, .vote-card-pill, .directory-card-tags span, .directory-row-tags span) {
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 8px;
    border-color: rgba(255,255,255,.10);
    background: rgba(255,255,255,.052);
    font-size: .72rem;
    line-height: 1;
}

:where(.server-card-vote, .vote-action-button, .directory-vote-btn) {
    border-color: rgba(255,255,255,.14);
    background:
        linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.04)),
        rgba(12,13,16,.88);
}

:where(.server-card-vote, .vote-action-button, .directory-vote-btn):hover {
    border-color: rgba(255,255,255,.24);
    background:
        linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.055)),
        rgba(16,17,20,.94);
}
