:root {
    --bg: #0b1220;
    --bg-elevated: rgba(16, 24, 40, 0.92);
    --bg-card: rgba(22, 31, 49, 0.9);
    --bg-card-soft: rgba(35, 45, 67, 0.82);
    --border: rgba(132, 151, 188, 0.18);
    --border-strong: rgba(74, 225, 255, 0.34);
    --text: #edf2ff;
    --muted: #a8b1c7;
    --cyan: #11d4ff;
    --cyan-strong: #23ddff;
    --green: #36e78e;
    --gold: #f8c455;
    --danger: #ff6b7d;
    --shadow: 0 26px 70px rgba(2, 8, 19, 0.45);
    --shadow-soft: 0 18px 40px rgba(2, 8, 19, 0.28);
    --radius-xl: 14px;
    --radius-lg: 10px;
    --radius-md: 8px;
    --radius-sm: 6px;
    --container: min(1240px, calc(100vw - 28px));
}

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Noto Kufi Arabic", "Segoe UI", sans-serif;
    color: var(--text);
    background: #08111d;
}

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

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

button,
input,
select {
    font: inherit;
}

.platform-body {
    position: relative;
    overflow-x: hidden;
}

.site-shell {
    position: relative;
    min-height: 100vh;
}

.backdrop-layer {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 10, 22, 0.25) 0%, rgba(4, 10, 22, 0.9) 68%, rgba(4, 10, 22, 0.96) 100%),
        radial-gradient(circle at top center, rgba(18, 217, 255, 0.11), transparent 32%),
        url("../../img/bg.webp") center top / cover no-repeat;
    transform: scale(1.03);
}

.backdrop-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 10, 22, 0.68) 0%, transparent 18%, transparent 82%, rgba(4, 10, 22, 0.7) 100%),
        linear-gradient(180deg, rgba(4, 10, 22, 0.06) 0%, rgba(4, 10, 22, 0.76) 100%);
}

.page-frame {
    position: relative;
    z-index: 1;
    width: var(--container);
    margin: 0 auto;
    padding: 18px 0 36px;
}

.hero-shell {
    background: linear-gradient(180deg, rgba(19, 27, 44, 0.96), rgba(16, 24, 40, 0.93));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.hero-topbar {
    display: grid;
    gap: 22px;
    padding: 24px 28px 18px;
    position: sticky;
    top: 0;
    z-index: 140;
    background: linear-gradient(180deg, rgba(19, 27, 44, 0.98), rgba(16, 24, 40, 0.95));
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(4, 10, 22, 0.28);
}

.hero-brand-row {
    display: flex;
    justify-content: center;
}

.brandmark {
    width: clamp(240px, 26vw, 350px);
}

.hero-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
}

.site-nav a,
.button-pill {
    border: 1px solid rgba(148, 164, 197, 0.14);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    min-height: 48px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d8deee;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.18s ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.button-pill:hover {
    border-color: rgba(61, 226, 255, 0.26);
    color: #ffffff;
    transform: translateY(-1px);
}

.pwa-install-pill {
    border: 1px solid rgba(61, 226, 255, 0.24);
    background: rgba(10, 20, 36, 0.72);
    border-radius: 999px;
    min-height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #edf2ff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(4, 10, 22, 0.22);
    transition: 0.18s ease;
}

.pwa-install-pill:hover,
.pwa-install-pill:focus-visible {
    border-color: rgba(54, 231, 142, 0.42);
    color: #ffffff;
    transform: translateY(-1px);
}

.pwa-install-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #36e78e;
    box-shadow: 0 0 0 5px rgba(54, 231, 142, 0.12);
    flex: 0 0 auto;
}

.pwa-install-pill[hidden],
html.is-pwa-standalone .pwa-install-pill {
    display: none;
}

.button-pill--primary {
    background: linear-gradient(90deg, #5956ff, #6f76ff);
    box-shadow: 0 0 0 1px rgba(120, 121, 255, 0.1), 0 12px 28px rgba(92, 98, 255, 0.26);
}

.button-pill--ghost {
    background: rgba(255, 255, 255, 0.02);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.inline-form {
    margin: 0;
    display: flex;
}

.metric-strip,
.announcement-bar {
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 14px 28px;
}

.metric-strip {
    flex-wrap: nowrap;
    gap: clamp(8px, 2vw, 18px);
    justify-content: center;
    overflow: hidden;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 0 1 auto;
    color: #dbe3f6;
    font-weight: 700;
    white-space: nowrap;
}

.metric-item--gold {
    margin-inline-start: auto;
}

.metric-label {
    color: #d4d9e9;
    font-size: 1.02rem;
    white-space: nowrap;
}

.metric-value {
    font-size: 1.45rem;
    letter-spacing: 0;
    white-space: nowrap;
}

.metric-value--cyan {
    color: var(--cyan);
}

.metric-value--green {
    color: var(--green);
}

.metric-value--gold,
.gold-text {
    color: var(--gold);
}

.announcement-bar {
    position: relative;
    overflow: hidden;
    background: rgba(4, 10, 22, 0.16);
}

.announcement-bar__viewport {
    width: 100%;
    overflow: hidden;
}

.announcement-bar__track {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: max-content;
    gap: 48px;
    animation: announcement-marquee 14s linear infinite;
    will-change: transform;
}

.announcement-bar__item {
    position: relative;
    flex: 0 0 auto;
    min-width: max-content;
    text-align: right;
    color: #dbe4f6;
    font-size: 0.98rem;
    font-weight: 700;
    white-space: nowrap;
    padding-inline: 34px 0;
}

.announcement-bar__item::before {
    content: "";
    position: absolute;
    inset-inline-start: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--cyan);
    transform: translateY(-50%);
    box-shadow: 0 0 18px rgba(17, 212, 255, 0.42);
}

@keyframes announcement-marquee {
    from {
        transform: translateX(-52%);
    }

    to {
        transform: translateX(0);
    }
}

.hero-servers {
    padding: 24px 28px 34px;
    display: grid;
    gap: 20px;
}

.hero-servers__head {
    display: grid;
    gap: 0;
    text-align: center;
}

.hero-servers__head p {
    margin: 0;
    color: var(--cyan);
    font-size: 1.02rem;
    font-weight: 800;
}

.hero-servers__head span {
    color: var(--muted);
    font-size: 0.96rem;
}

.hero-servers__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    justify-items: center;
    align-items: start;
}

.hero-server-card {
    width: min(100%, 330px);
    display: grid;
    grid-template-rows: auto auto auto minmax(48px, 1fr) auto;
    gap: 14px;
    justify-items: center;
    align-content: start;
    height: 100%;
    padding: 16px;
    background: linear-gradient(180deg, rgba(17, 26, 43, 0.94), rgba(12, 19, 32, 0.92));
    border: 1px solid rgba(132, 151, 188, 0.14);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hero-server-card__visual {
    position: relative;
    justify-self: center;
    width: min(100%, 250px);
    height: 100px;
    min-height: 100px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(132, 151, 188, 0.1);
}

.hero-server-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-server-card:hover {
    transform: translateY(-2px);
    border-color: rgba(61, 226, 255, 0.24);
    box-shadow: 0 16px 28px rgba(2, 8, 19, 0.34);
}

.hero-server-card__top {
    display: grid;
    gap: 8px;
    width: 100%;
    justify-items: center;
    text-align: center;
}

.hero-server-card__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: #91a0bf;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-server-card__top h3 {
    margin: 0;
    color: #eef3ff;
    font-size: 1.18rem;
    line-height: 1.5;
}

.hero-server-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-server-card__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.hero-server-card__cta {
    min-height: 48px;
    width: 100%;
    border: 1px solid rgba(25, 221, 255, 0.36);
    background: rgba(8, 18, 34, 0.44);
    color: var(--cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
}

.hero-server-card__cta--disabled {
    border-color: rgba(132, 151, 188, 0.18);
    color: #c7cfdf;
    background: rgba(255, 255, 255, 0.04);
}

.hero-server-card--guest .hero-server-card__cta {
    border-color: rgba(248, 196, 85, 0.26);
    color: #f3d68f;
}

.hero-server-card__hint {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.8;
    text-align: center;
    width: 100%;
    min-height: 48px;
}

.hero-server-card__hint.is-empty {
    visibility: hidden;
}

.server-ribbon__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 0 14px;
    min-height: 30px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 800;
}

.server-ribbon__status--overlay {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(2, 8, 19, 0.24);
    backdrop-filter: blur(8px);
}

.server-ribbon__status--live {
    background: rgba(56, 231, 142, 0.16);
    color: var(--green);
}

.server-ribbon__status--upcoming {
    background: rgba(248, 196, 85, 0.14);
    color: var(--gold);
}

.server-ribbon__status--new {
    background: rgba(17, 212, 255, 0.14);
    color: var(--cyan);
}

.server-ribbon__status--ended {
    background: rgba(255, 107, 125, 0.12);
    color: var(--danger);
}

.hero-copy {
    padding: 34px 30px 36px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--cyan);
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
}

.hero-copy h1 {
    margin: 0;
    font-family: "Noto Kufi Arabic", "Segoe UI", sans-serif;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.25;
}

.hero-description {
    width: min(780px, 100%);
    margin: 18px auto 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.26rem);
    line-height: 1.9;
}

.content-shell {
    padding-top: 26px;
}

.flash-banner {
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 18px;
    font-weight: 700;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    transition: opacity 0.26s ease, transform 0.26s ease, margin 0.26s ease, padding 0.26s ease;
    transform: translateY(0);
    opacity: 1;
}

.flash-banner.is-hiding {
    opacity: 0;
    transform: translateY(-10px);
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.flash-banner--success {
    color: #dffceb;
    background: rgba(18, 99, 64, 0.42);
    border-color: rgba(78, 221, 142, 0.26);
}

.flash-banner--error {
    color: #ffe3e8;
    background: rgba(117, 26, 43, 0.42);
    border-color: rgba(255, 108, 140, 0.24);
}

.flash-banner--info {
    color: #deefff;
    background: rgba(24, 66, 117, 0.44);
    border-color: rgba(34, 201, 255, 0.22);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (min-width: 921px) {
    .page-home:not(.is-authenticated) .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
        align-items: start;
    }
}

@media (min-width: 761px) {
    .page-home:not(.is-authenticated) .panel-card--auth {
        width: min(100%, 440px);
        justify-self: center;
    }

    .page-home:not(.is-authenticated) .panel-card--auth .panel-card__head--tabs {
        padding: 12px;
    }

    .page-home:not(.is-authenticated) .panel-card--auth .panel-card__body {
        padding: 18px;
    }

    .page-home:not(.is-authenticated) .panel-card--auth .auth-tabs {
        gap: 8px;
    }

    .page-home:not(.is-authenticated) .panel-card--auth .auth-tab {
        min-height: 48px;
        font-size: 1rem;
    }

    .page-home:not(.is-authenticated) .panel-card--auth .auth-form {
        gap: 12px;
    }

    .page-home:not(.is-authenticated) .panel-card--auth .field-group {
        gap: 6px;
    }

    .page-home:not(.is-authenticated) .panel-card--auth .field-group input,
    .page-home:not(.is-authenticated) .panel-card--auth .field-group select {
        min-height: 46px;
        padding-inline: 14px;
    }

    .page-home:not(.is-authenticated) .panel-card--auth .panel-actions {
        margin-top: 4px;
    }

    .page-home:not(.is-authenticated) .panel-card--auth .button-surface {
        min-height: 52px;
        font-size: 1.05rem;
    }
}

.hero-grid--account-home {
    grid-template-areas: "account news";
}

.hero-grid--account-home .panel-card--news {
    grid-area: news;
}

.hero-grid--account-home .panel-card--account-home {
    grid-area: account;
}

.single-panel-layout {
    display: block;
}

.single-panel-layout > .panel-card + .panel-card {
    margin-top: 24px;
}

.panel-actions--compact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.community-layout,
.community-topic-layout {
    display: grid;
    gap: 18px;
}

.community-panel-head {
    align-items: center;
}

.community-panel-head--list .panel-actions--compact {
    margin-inline-start: auto;
}

.community-panel-head .button-surface,
.community-panel-head .panel-actions--compact .button-surface {
    min-height: 42px;
    padding-inline: 16px;
    font-size: 0.92rem;
}

.community-create-form {
    display: grid;
    gap: 16px;
}

.community-create-card .panel-card__body {
    padding-top: 16px;
}

.community-upload-field {
    gap: 10px;
}

.community-upload-field__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.community-upload-field__shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 10px 14px;
    border: 1px solid rgba(132, 151, 188, 0.14);
    border-radius: 10px;
    background: rgba(21, 32, 51, 0.78);
    cursor: pointer;
}

.community-upload-field__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    background: rgba(17, 212, 255, 0.12);
    color: var(--cyan);
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.community-upload-field__hint {
    color: var(--muted);
    font-size: 0.88rem;
    text-align: left;
}

.community-upload-field__preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.community-upload-field__preview-item {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(132, 151, 188, 0.14);
}

.community-upload-field__preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px;
}

.community-topic-card {
    display: grid;
    gap: 12px;
    height: 100%;
    padding: 16px;
    border: 1px solid rgba(132, 151, 188, 0.14);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(17, 26, 43, 0.94), rgba(12, 19, 32, 0.92));
}

.community-topic-card__visual {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 7;
}

.community-topic-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-topic-card__body {
    display: grid;
    gap: 12px;
    align-content: start;
}

.community-topic-card__title {
    color: #f0f4ff;
    font-size: 1.14rem;
    font-weight: 800;
    line-height: 1.8;
}

.community-topic-card__excerpt {
    margin: 0;
    color: var(--muted);
    line-height: 2;
    font-size: 0.95rem;
}

.community-topic-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.community-topic-card__author,
.community-topic-single__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.community-topic-card__author img,
.community-topic-single__author img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(61, 226, 255, 0.24);
}

.community-topic-card__author div,
.community-topic-single__author div {
    display: grid;
    gap: 2px;
}

.community-topic-card__author strong,
.community-topic-single__author strong {
    font-size: 0.95rem;
}

.community-topic-card__author span,
.community-topic-single__author span,
.community-topic-single__server span {
    color: var(--muted);
    font-size: 0.86rem;
}

.community-topic-card__comments {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #d8dfef;
    font-size: 0.85rem;
    font-weight: 700;
}

.community-topic-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.community-topic-card__hashtag,
.community-topic-single__hashtags span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(17, 212, 255, 0.08);
    color: var(--cyan);
    font-weight: 800;
    font-size: 0.9rem;
}

.community-topic-single__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.community-topic-single__visual {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(132, 151, 188, 0.14);
    margin-bottom: 18px;
}

.community-topic-single__visual img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.community-topic-single__content {
    color: #eef3ff;
    line-height: 2.2;
}

.community-topic-single__hashtags {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.community-gallery {
    position: relative;
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.community-gallery__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.community-gallery__track::-webkit-scrollbar {
    display: none;
}

.community-gallery__slide {
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: center;
    cursor: zoom-in;
}

.community-gallery__slide img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.community-gallery__thumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.community-gallery__thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 1px solid rgba(132, 151, 188, 0.14);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    opacity: 0.68;
    transition: 0.18s ease;
}

.community-gallery__thumb.is-active {
    opacity: 1;
    border-color: rgba(61, 226, 255, 0.34);
    box-shadow: 0 0 0 1px rgba(61, 226, 255, 0.12);
}

.community-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-gallery__nav {
    position: absolute;
    top: calc(50% - 22px);
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(132, 151, 188, 0.18);
    border-radius: 999px;
    background: rgba(9, 17, 31, 0.74);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
}

.community-gallery__nav--next {
    inset-inline-start: 12px;
}

.community-gallery__nav--prev {
    inset-inline-end: 12px;
}

.community-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 10, 22, 0.88);
    backdrop-filter: blur(10px);
}

.community-lightbox__close {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

.community-lightbox__image {
    max-width: min(100%, 1100px);
    max-height: calc(100vh - 80px);
    border-radius: 14px;
    object-fit: contain;
}

.is-lightbox-open {
    overflow: hidden;
}

.panel-card {
    background: linear-gradient(180deg, rgba(23, 32, 51, 0.96), rgba(17, 25, 39, 0.88));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.panel-card--wide {
    width: 100%;
}

.panel-card__head {
    padding: 14px 20px;
    background: linear-gradient(180deg, rgba(67, 76, 98, 0.84), rgba(49, 58, 79, 0.7));
    border-bottom: 1px solid rgba(157, 178, 220, 0.12);
}

.panel-card__head--tabs {
    padding: 16px 18px;
}

.public-server-tabs {
    display: grid;
}

.public-server-tabs__nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.page-server-details .public-server-tabs__nav {
    flex-wrap: nowrap;
}

.public-server-tab {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid rgba(132, 151, 188, 0.14);
    background: rgba(11, 21, 40, 0.34);
    color: #d7e0f4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: 0.18s ease;
}

.page-server-details .public-server-tab {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
}

.public-server-tab:hover,
.public-server-tab.is-active {
    border-color: rgba(61, 226, 255, 0.24);
    background: rgba(11, 21, 40, 0.7);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(11, 19, 34, 0.18);
}

.public-server-pane {
    display: none;
}

.public-server-pane.is-active {
    display: block;
}

.panel-card__head h2 {
    margin: 0;
    font-family: "Noto Kufi Arabic", "Segoe UI", sans-serif;
    font-size: clamp(1.2rem, 1.7vw, 1.65rem);
    line-height: 1.45;
}

.panel-card__head--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.panel-card__head-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.panel-card__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(132, 151, 188, 0.16);
    background: rgba(11, 21, 40, 0.34);
    color: #d7e0f4;
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.panel-card__body {
    padding: 22px 24px 26px;
}

.news-body {
    min-height: 100%;
}

.news-highlight {
    position: relative;
    padding: 4px 22px 8px 0;
}

.news-highlight::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--cyan), rgba(17, 212, 255, 0));
}

.news-highlight h3 {
    margin: 8px 0 18px;
    color: var(--cyan);
    font-size: 1.4rem;
}

.news-excerpt,
.news-content p,
.prose-block p,
.empty-state p,
.media-card__copy p,
.server-card__meta,
.account-summary__row > span,
.helper-link,
.side-copy-card p,
.feature-list li {
    color: var(--muted);
}

.news-content,
.prose-block {
    display: grid;
    gap: 14px;
    line-height: 1.95;
    font-size: 1.04rem;
}

.user-home-servers {
    gap: 12px;
}

.user-home-servers__item {
    align-items: center;
}

.user-home-servers__copy {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    gap: 10px;
}

.user-home-servers__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.user-home-servers__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.user-home-servers__meta span {
    color: var(--muted);
    font-size: 0.94rem;
}

.user-home-servers__cta {
    min-width: 150px;
}

.auth-form,
.install-grid {
    display: grid;
    gap: 16px;
}

.auth-panel {
    display: grid;
}

.auth-pane.is-hidden {
    display: none;
}

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

.auth-tab {
    min-height: 62px;
    border: 1px solid rgba(145, 165, 199, 0.16);
    background: rgba(18, 27, 44, 0.4);
    color: #dbe2f2;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.15rem;
    cursor: pointer;
    transition: 0.18s ease;
}

.auth-tab:hover {
    border-color: rgba(61, 226, 255, 0.26);
    color: #ffffff;
}

.auth-tab.is-active {
    color: #07121f;
    border-color: rgba(67, 239, 255, 0.74);
    background: linear-gradient(90deg, #12d6ff, #4adeff);
    box-shadow: 0 0 28px rgba(17, 212, 255, 0.18);
}

.field-group {
    display: grid;
    gap: 9px;
}

.field-group span {
    font-weight: 700;
    color: #ecf1fd;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    min-height: 56px;
    border-radius: 8px;
    border: 1px solid rgba(126, 161, 212, 0.16);
    background: rgba(26, 36, 57, 0.88);
    color: var(--text);
    padding: 0 16px;
    outline: none;
    transition: 0.18s ease;
}

.field-group textarea {
    min-height: 160px;
    padding-block: 14px;
    resize: vertical;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
    color: #7c86a3;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    border-color: rgba(35, 221, 255, 0.44);
    box-shadow: 0 0 0 4px rgba(17, 212, 255, 0.08);
}

.field-error {
    color: #ff9fb0;
    font-size: 0.92rem;
    font-weight: 700;
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

.panel-actions--account-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.panel-actions--account-home > * {
    width: 100%;
}

.panel-actions--split > * {
    flex: 1 1 180px;
}

.panel-actions--auth > * {
    flex: 1 1 100%;
}

.button-surface {
    min-height: 54px;
    padding: 0 24px;
    border-radius: 8px;
    border: 1px solid rgba(25, 221, 255, 0.7);
    background: rgba(11, 21, 40, 0.36);
    color: var(--cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.08rem;
    box-shadow: inset 0 0 0 1px rgba(36, 201, 244, 0.06);
    transition: 0.18s ease;
    cursor: pointer;
}

.button-surface:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(12, 212, 255, 0.14);
}

.button-surface--filled {
    color: #06111f;
    border-color: rgba(67, 239, 255, 0.74);
    background: linear-gradient(90deg, #12d6ff, #4adeff);
    box-shadow: 0 0 28px rgba(17, 212, 255, 0.24);
}

.panel-card--auth .button-surface {
    min-height: 72px;
    font-size: 1.28rem;
}

.panel-card--account-home .button-surface,
.panel-card--auth .panel-actions--account-home .button-surface {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.98rem;
    font-weight: 700;
    box-shadow: none;
}

.panel-card--account-home .button-surface:hover,
.panel-card--auth .panel-actions--account-home .button-surface:hover {
    box-shadow: 0 8px 18px rgba(12, 212, 255, 0.1);
}

.helper-link {
    font-weight: 500;
    font-size: 0.96rem;
    justify-self: end;
}

.section-block {
    margin-top: 28px;
}

.section-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-inline: 6px;
}

.section-block__head h2 {
    margin: 0;
    font-family: "Noto Kufi Arabic", "Segoe UI", sans-serif;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
}

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

.media-card,
.server-card,
.side-copy-card {
    background: linear-gradient(180deg, rgba(19, 28, 44, 0.96), rgba(15, 22, 35, 0.92));
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.media-card__thumb {
    min-height: 210px;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px;
}

.media-card__index {
    min-width: 42px;
    min-height: 42px;
    border-radius: 6px;
    background: rgba(5, 15, 34, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.media-card__copy {
    padding: 18px;
}

.media-card__copy h3,
.server-card__top h3,
.side-copy-card h3 {
    margin: 0 0 8px;
    font-size: 1.24rem;
}

.register-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 22px;
}

.side-copy-card {
    padding: 20px;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-inline-start: 22px;
    line-height: 1.8;
}

.feature-list li::before {
    content: "";
    position: absolute;
    top: 12px;
    inset-inline-start: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 18px rgba(17, 212, 255, 0.38);
}

.account-summary {
    display: grid;
    gap: 14px;
}

.account-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(144, 162, 196, 0.12);
}

.account-summary__row strong {
    font-size: 1.1rem;
}

.account-summary__stars {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 24px;
}

.account-identity {
    display: flex;
    direction: rtl;
    align-items: center;
    gap: 18px;
    padding: 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(132, 151, 188, 0.14);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(14, 24, 39, 0.88), rgba(11, 19, 31, 0.78));
}

.account-identity__avatar-wrap {
    position: relative;
    flex: 0 0 120px;
    width: 124px;
    display: block;
}

.account-identity__avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(25, 221, 255, 0.26);
    box-shadow: 0 14px 26px rgba(2, 8, 19, 0.24);
}

.account-identity__flag {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(7, 15, 27, 0.96);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 6px 14px rgba(2, 8, 19, 0.28);
}

.account-identity__copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    min-width: 0;
    padding-right: 16px;
    border-right: 1px solid rgba(132, 151, 188, 0.16);
}

.account-identity__copy h3 {
    margin: 0;
    font-size: 1.34rem;
    line-height: 1.45;
}

.account-identity__copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    width: 100%;
}

.account-identity__stars {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    width: fit-content;
}

.star-strip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    direction: ltr;
}

.star-strip__star {
    color: var(--gold);
    font-size: 0.96rem;
    line-height: 1;
    text-shadow: 0 0 10px rgba(247, 194, 70, 0.28);
}

.star-strip--muted .star-strip__star {
    color: #97a2b7;
    text-shadow: 0 0 10px rgba(120, 130, 150, 0.16);
}

.star-strip--summary {
    justify-content: flex-end;
}

.star-strip--hall .star-strip__star {
    font-size: 0.76rem;
}

.star-strip--modal .star-strip__star {
    font-size: 1.05rem;
}

.star-strip--comment .star-strip__star {
    font-size: 0.72rem;
}

.community-user-link,
.archive-comment__profile-link {
    color: #eef5ff;
    text-decoration: none;
}

.community-user-link:hover,
.archive-comment__profile-link:hover {
    color: var(--cyan);
}

.account-identity__eyebrow {
    color: var(--cyan);
    font-size: 0.84rem;
    font-weight: 800;
}

.table-wrap {
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.ranking-table th,
.ranking-table td {
    padding: 16px 14px;
    text-align: start;
    border-bottom: 1px solid rgba(139, 155, 187, 0.1);
}

.ranking-table th {
    color: #e8eefc;
    font-size: 0.98rem;
}

.ranking-table td {
    color: #cfd7ea;
    font-weight: 700;
}

.hall-card .panel-card__body {
    display: grid;
    gap: 16px;
}

.hall-tabs .public-server-tabs__nav {
    justify-content: flex-start;
}

.hall-ranking-table {
    min-width: 640px;
}

.hall-ranking-table th + th,
.hall-ranking-table td + td {
    border-inline-start: 1px solid rgba(120, 142, 179, 0.16);
}

.hall-ranking-table th:first-child,
.hall-ranking-table td:first-child {
    width: 56px;
    text-align: center;
}

.hall-ranking-table th:last-child,
.hall-ranking-table td:last-child {
    width: 112px;
    text-align: center;
}

.hall-ranking-table__rank,
.hall-ranking-table__value {
    color: #f0f5ff;
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.hall-player-link {
    display: inline-flex;
    align-items: center;
    color: #eaf1ff;
    white-space: normal;
}

.hall-player-link__main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.hall-player-link__avatar {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(61, 226, 255, 0.2);
    box-shadow: 0 8px 16px rgba(2, 8, 19, 0.2);
}

.hall-player-link__identity {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.hall-player-link__top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 0;
}

.hall-player-link__stars {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    padding-inline: 0;
    margin-top: 3px;
}

.hall-player-link__stars .star-strip {
    gap: 3px;
}

.hall-player-link__name {
    color: var(--cyan);
    font-size: 1rem;
    font-weight: 800;
}

.hall-player-link__country {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.hall-player-link__country img {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    object-fit: cover;
}

.hall-ranking-table__self td {
    background: linear-gradient(180deg, rgba(33, 42, 61, 0.96), rgba(24, 33, 49, 0.96));
    border-top: 1px solid rgba(248, 196, 85, 0.24);
    border-bottom: none;
    box-shadow: inset 0 1px 0 rgba(255, 222, 116, 0.08);
}

.hall-ranking-table__self .hall-ranking-table__rank,
.hall-ranking-table__self .hall-ranking-table__value {
    color: #ffd772;
}

.hall-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 13, 26, 0.8);
    backdrop-filter: blur(10px);
}

.hall-profile-modal {
    width: min(720px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
}

.hall-profile-modal__head {
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.hall-modal-close {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(61, 226, 255, 0.42);
    background: linear-gradient(180deg, rgba(14, 26, 46, 0.92), rgba(9, 18, 33, 0.9));
    color: #eaf6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 0 0 1px rgba(67, 239, 255, 0.08), 0 12px 28px rgba(5, 12, 22, 0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.hall-modal-close:hover {
    transform: translateY(-1px) scale(1.04);
    color: #ffffff;
    border-color: rgba(67, 239, 255, 0.76);
    box-shadow: 0 0 0 1px rgba(67, 239, 255, 0.14), 0 14px 32px rgba(13, 214, 255, 0.16);
}

.hall-profile-modal__body {
    display: grid;
    gap: 18px;
}

.hall-profile-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(132, 151, 188, 0.14);
    border-radius: 12px;
    background: rgba(12, 20, 34, 0.7);
}

.hall-profile-hero__avatar {
    position: relative;
    width: 144px;
    height: 144px;
    flex: 0 0 144px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(61, 226, 255, 0.24);
}

.hall-profile-hero__avatar img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hall-profile-hero__flag {
    position: absolute;
    inset-inline-start: 8px;
    bottom: 8px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    object-fit: cover;
}

.hall-profile-hero__copy {
    display: grid;
    gap: 8px;
}

.hall-profile-hero__copy .star-strip--modal {
    width: max-content;
    justify-self: center;
}

.hall-profile-hero__copy h3 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.4;
}

.hall-profile-hero__copy p {
    margin: 0;
    color: var(--muted);
}

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

.hall-profile-stats-card {
    display: grid;
    gap: 0;
    padding: 8px 16px;
    border-radius: 14px;
    border: 1px solid rgba(132, 151, 188, 0.14);
    background: rgba(21, 31, 48, 0.78);
}

.hall-profile-stats-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    padding: 0;
}

.hall-profile-stats-card__row + .hall-profile-stats-card__row {
    border-top: 1px solid rgba(132, 151, 188, 0.1);
}

.hall-profile-stats-card__row span {
    color: var(--muted);
    font-size: 0.95rem;
}

.hall-profile-stats-card__row strong {
    color: #f0f5ff;
    font-size: 1.18rem;
}

.hall-profile-stats__item {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(132, 151, 188, 0.14);
    background: rgba(21, 31, 48, 0.78);
}

.hall-profile-stats__item span {
    color: var(--muted);
    font-size: 0.9rem;
}

.hall-profile-stats__item strong {
    color: #f0f5ff;
    font-size: 1.35rem;
}

.hall-medals-block,
.hall-admin-medal-form {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(132, 151, 188, 0.14);
    background: rgba(12, 20, 34, 0.7);
}

.hall-medals-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hall-medals-block__head h3 {
    margin: 0;
    font-size: 1rem;
}

.hall-special-medals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hall-special-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 14px;
    background: rgba(248, 196, 85, 0.12);
    color: var(--gold);
    font-size: 1rem;
    font-weight: 800;
    border: 1px solid rgba(255, 214, 106, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 240, 190, 0.06);
}

.hall-special-medal img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 225, 135, 0.3);
    flex: 0 0 auto;
}

.hall-special-medal__fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 236, 176, 0.08);
    color: #ffe7a0;
    font-size: 1rem;
    font-weight: 900;
}

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

.server-card {
    width: min(100%, 330px);
    padding: 16px;
    display: grid;
    justify-items: center;
}

.server-card__visual {
    position: relative;
    justify-self: center;
    margin-bottom: 16px;
    width: min(100%, 250px);
    height: 100px;
    min-height: 100px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(132, 151, 188, 0.1);
}

.server-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-card__top {
    display: grid;
    gap: 8px;
    width: 100%;
    justify-items: center;
    text-align: center;
}

.server-card__top p {
    margin: 0;
    color: var(--muted);
    text-align: center;
}

.server-card__meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
}

.server-card__meta li {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.server-card__hint {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 0.94rem;
    text-align: center;
}

.server-card .panel-actions {
    justify-content: center;
}

.server-card .panel-actions > * {
    width: auto;
}

.server-card .button-surface {
    min-height: 42px;
    padding: 0 18px;
    font-size: 0.94rem;
}

.pager-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.pager-link {
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(132, 151, 188, 0.16);
    background: rgba(11, 21, 40, 0.34);
    color: #d7e0f4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.pager-link.is-active,
.pager-link:hover {
    border-color: rgba(61, 226, 255, 0.26);
    color: #ffffff;
    background: rgba(11, 21, 40, 0.72);
}

.archive-layout {
    display: grid;
    gap: 22px;
}

.archive-card__body {
    display: grid;
    gap: 24px;
}

.archive-hero {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.archive-hero__visual {
    width: 250px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(132, 151, 188, 0.12);
}

.archive-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-hero__copy {
    display: grid;
    gap: 12px;
}

.archive-hero__copy h3 {
    margin: 0;
    font-size: 1.5rem;
}

.archive-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.archive-hero__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}

.archive-content {
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(132, 151, 188, 0.1);
    background: rgba(9, 17, 31, 0.3);
}

.archive-content > :first-child {
    margin-top: 0;
}

.archive-default-message {
    display: grid;
    gap: 10px;
}

.archive-default-message h3,
.archive-default-message p {
    margin: 0;
}

.archive-default-message h3 {
    color: var(--cyan);
    font-size: 1.18rem;
}

.archive-default-message strong {
    color: #ffffff;
}

.archive-comments-list {
    display: grid;
    gap: 10px;
}

.archive-comment {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(132, 151, 188, 0.1);
    background: rgba(10, 18, 32, 0.34);
}

.archive-comment__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.archive-comment__identity {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.archive-comment__identity-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.archive-comment__avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(61, 226, 255, 0.18);
    flex: 0 0 auto;
}

.archive-comment__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-comment__flag {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    object-fit: cover;
    flex: 0 0 auto;
}

.archive-comment__identity strong,
.archive-comment__profile-link {
    font-size: 0.94rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archive-comment__text {
    margin: 0;
    color: #dbe3f6;
    line-height: 1.75;
    font-size: 0.92rem;
}

.archive-comment__time {
    color: var(--muted);
    font-size: 0.8rem;
    justify-self: end;
    text-align: left;
    direction: ltr;
}

.archive-comment__delete-form {
    margin: 0;
    flex: 0 0 auto;
}

.archive-comment__delete {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 9px;
    border-color: rgba(255, 110, 110, 0.18);
    color: #ffd2d2;
    background: rgba(64, 16, 22, 0.32);
    box-shadow: none;
    font-size: 0.8rem;
}

.archive-comment__delete:hover {
    border-color: rgba(255, 110, 110, 0.3);
    background: rgba(78, 20, 28, 0.45);
    color: #ffffff;
}

.archive-comment-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.archive-login-note {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(132, 151, 188, 0.1);
    background: rgba(9, 17, 31, 0.3);
}

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

.empty-state {
    display: grid;
    place-items: center;
    min-height: 220px;
    text-align: center;
}

.empty-state--compact {
    min-height: 120px;
}

.dashboard-layout {
    display: grid;
    gap: 24px;
    align-items: start;
}

.dashboard-layout--player {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.dashboard-layout--admin {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    align-items: start;
}

.dashboard-side,
.dashboard-main {
    display: grid;
    gap: 24px;
}

.dashboard-profile-card__body,
.admin-side-card__body {
    display: grid;
    gap: 18px;
}

.dashboard-side--admin {
    position: sticky;
    top: 18px;
}

.profile-avatar-stack {
    display: grid;
    justify-items: center;
    gap: 18px;
    text-align: center;
}

.profile-avatar-stack__frame {
    position: relative;
    width: 172px;
    height: 172px;
    padding: 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(17, 29, 46, 0.98), rgba(8, 16, 30, 0.92));
    border: 1px solid rgba(25, 221, 255, 0.2);
    box-shadow: 0 20px 40px rgba(2, 8, 19, 0.28);
}

.profile-avatar-stack__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.profile-avatar-stack__flag {
    position: absolute;
    inset-inline-end: 12px;
    inset-block-end: 12px;
    width: 34px;
    height: 34px;
    padding: 5px;
    border-radius: 50%;
    background: rgba(8, 16, 30, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.profile-avatar-stack__copy {
    display: grid;
    gap: 6px;
}

.profile-avatar-stack__copy h2 {
    margin: 0;
    font-size: 1.75rem;
}

.profile-avatar-stack__copy p {
    margin: 0;
    color: var(--muted);
}

.profile-avatar-stack__eyebrow {
    color: var(--cyan);
    font-size: 0.84rem;
    font-weight: 800;
}

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

.profile-stat-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(132, 151, 188, 0.12);
    background: rgba(12, 21, 35, 0.5);
}

.profile-stat-list__item span {
    color: var(--muted);
    font-size: 0.94rem;
}

.profile-stat-list__item strong {
    font-size: 1rem;
}

.dashboard-side__actions {
    display: grid;
    gap: 12px;
}

.dashboard-side__actions .button-surface,
.dashboard-side__actions .inline-form {
    width: 100%;
}

.inline-form--stack {
    display: block;
}

.inline-form--stack .button-surface {
    width: 100%;
}

.profile-settings-grid,
.admin-placeholder-grid {
    display: grid;
    gap: 18px;
}

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

.settings-card,
.admin-placeholder-card,
.stats-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(132, 151, 188, 0.12);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(18, 27, 43, 0.92), rgba(12, 20, 32, 0.9));
}

.settings-card--wide {
    grid-column: 1 / -1;
}

.settings-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.settings-card__head h3,
.admin-placeholder-card h3,
.stats-card strong,
.server-list-compact__item h3 {
    margin: 0;
}

.settings-card__head h3 {
    font-size: 1.08rem;
}

.settings-cost {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(248, 196, 85, 0.12);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 800;
}

.settings-cost--free {
    background: rgba(56, 231, 142, 0.12);
    color: var(--green);
}

.settings-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.settings-copy--small {
    font-size: 0.92rem;
}

.settings-form {
    display: grid;
    gap: 12px;
    align-items: start;
}

.select-with-flag {
    display: flex;
    align-items: center;
    gap: 12px;
}

.select-with-flag__preview {
    width: 34px;
    height: 34px;
    padding: 5px;
    border-radius: 50%;
    background: rgba(11, 20, 34, 0.96);
    border: 1px solid rgba(132, 151, 188, 0.12);
}

.platform-select {
    appearance: none;
    cursor: pointer;
}

.profile-settings-grid .field-group {
    gap: 7px;
}

.profile-settings-grid .field-group span {
    font-size: 0.94rem;
}

.profile-settings-grid .field-group input,
.profile-settings-grid .field-group select {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.98rem;
}

.profile-settings-grid .button-surface {
    min-height: 46px;
    padding: 0 18px;
    font-size: 0.98rem;
    width: auto;
    justify-self: start;
}

@media (min-width: 761px) {
    .profile-settings-grid .settings-form > .button-surface,
    .profile-settings-grid .avatar-upload-box__fields > .button-surface {
        justify-self: center;
        min-width: 170px;
    }
}

.avatar-upload-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar-upload-box__preview {
    flex: 0 0 96px;
}

.avatar-upload-box__preview img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(25, 221, 255, 0.24);
}

.avatar-upload-box__fields {
    flex: 1 1 auto;
    display: grid;
    gap: 10px;
    align-items: start;
}

.file-input-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.avatar-file-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(126, 161, 212, 0.16);
    background: rgba(26, 36, 57, 0.88);
}

.file-trigger-button {
    min-width: 118px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(25, 221, 255, 0.44);
    background: linear-gradient(90deg, rgba(17, 212, 255, 0.16), rgba(74, 222, 255, 0.22));
    color: #eef6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    cursor: pointer;
    transition: 0.18s ease;
}

.file-trigger-button:hover {
    border-color: rgba(67, 239, 255, 0.74);
    box-shadow: 0 0 0 1px rgba(67, 239, 255, 0.14), 0 10px 24px rgba(17, 212, 255, 0.14);
}

.file-name-display {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-main .panel-card + .panel-card {
    margin-top: 0;
}

.ranking-table--profile {
    min-width: 680px;
}

.admin-side-card__panel-title {
    margin: 0;
    color: var(--cyan);
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
}

.admin-side-card__nav {
    display: grid;
    gap: 10px;
}

.admin-nav-chip {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid rgba(132, 151, 188, 0.16);
    background: rgba(11, 21, 40, 0.42);
    color: #e8eefc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.admin-nav-chip.is-active,
.admin-nav-chip:hover {
    border-color: rgba(61, 226, 255, 0.24);
    color: #ffffff;
    background: rgba(11, 21, 40, 0.66);
}

.stats-card p,
.admin-placeholder-card p,
.server-list-compact__item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.admin-workspace {
    display: grid;
    gap: 18px;
    min-height: 640px;
}

.admin-pane {
    display: none;
    gap: 18px;
}

.admin-pane.is-active {
    display: grid;
}

.stats-card span {
    color: var(--cyan);
    font-size: 0.9rem;
    font-weight: 800;
}

.stats-card strong {
    font-size: 2rem;
    line-height: 1;
}

.stats-card p {
    display: none;
}

.admin-sections-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
}

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

.admin-server-form {
    display: grid;
    gap: 16px;
}

.admin-server-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-inline-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: rgba(56, 231, 142, 0.12);
    color: #dbfff0;
}

.server-list-compact {
    display: grid;
    gap: 14px;
}

.server-list-compact__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(132, 151, 188, 0.12);
    background: rgba(11, 21, 40, 0.38);
}

.admin-placeholder-card {
    min-height: 104px;
    align-content: center;
}

.admin-placeholder-card p {
    display: none;
}

.admin-user-list {
    display: grid;
    gap: 10px;
}

.admin-player-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: min(100%, 320px);
}

.admin-player-search__field {
    display: block;
    width: min(100%, 320px);
}

.admin-player-search__field input {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(132, 151, 188, 0.14);
    background: rgba(12, 21, 35, 0.46);
    color: #eef3ff;
    padding: 0 14px;
    outline: none;
    transition: 0.18s ease;
}

.admin-player-search__field input::placeholder {
    color: #7c86a3;
}

.admin-player-search__field input:focus {
    border-color: rgba(35, 221, 255, 0.34);
    box-shadow: 0 0 0 4px rgba(17, 212, 255, 0.08);
}

.admin-player-search__clear {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.85rem;
    box-shadow: none;
}

.admin-server-list {
    display: grid;
    gap: 18px;
}

.admin-server-tabs {
    display: grid;
    gap: 18px;
}

.admin-server-tabs__nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-server-tab {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(132, 151, 188, 0.16);
    border-radius: 11px;
    background: rgba(11, 21, 40, 0.4);
    color: #d7e0f4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    transition: 0.18s ease;
}

.admin-server-tab strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 0.86rem;
}

.admin-server-tab:hover,
.admin-server-tab.is-active {
    border-color: rgba(61, 226, 255, 0.26);
    background: rgba(11, 21, 40, 0.72);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(11, 19, 34, 0.22);
}

.admin-server-tab.is-active strong {
    background: linear-gradient(90deg, rgba(18, 214, 255, 0.26), rgba(74, 222, 255, 0.18));
    color: var(--cyan);
}

.admin-server-pane {
    display: none;
}

.admin-server-pane.is-active {
    display: block;
}

.admin-empty-state {
    display: grid;
    gap: 8px;
    padding: 20px;
    border: 1px dashed rgba(132, 151, 188, 0.16);
    border-radius: 12px;
    background: rgba(9, 17, 31, 0.34);
    text-align: center;
}

.admin-empty-state strong {
    font-size: 1rem;
}

.admin-empty-state span {
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-server-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 184px;
    gap: 18px;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(132, 151, 188, 0.12);
    background: linear-gradient(180deg, rgba(13, 22, 38, 0.84), rgba(10, 17, 30, 0.92));
    box-shadow: 0 16px 30px rgba(2, 8, 19, 0.18);
}

.admin-server-row__media {
    min-height: 146px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(132, 151, 188, 0.1);
}

.admin-server-row__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-server-row__content {
    display: grid;
    gap: 14px;
}

.admin-server-row__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.admin-server-row__title {
    display: grid;
    gap: 6px;
}

.admin-server-row__top h3 {
    margin: 0;
    font-size: 1.34rem;
}

.admin-server-row__top p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    font-size: 0.95rem;
    word-break: break-word;
}

.admin-server-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-server-row__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.admin-server-row__actions {
    display: grid;
    gap: 10px;
}

.admin-server-row__links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.admin-status-shell__label {
    color: var(--cyan);
    font-size: 0.88rem;
    font-weight: 800;
}

.admin-status-shell__controls {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.admin-status-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 auto;
}

.admin-status-choice {
    position: relative;
    display: inline-flex;
}

.admin-status-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-status-choice span {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(132, 151, 188, 0.14);
    background: rgba(11, 21, 40, 0.38);
    color: #d7e0f4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 800;
    transition: 0.18s ease;
}

.admin-status-choice:hover span {
    border-color: rgba(61, 226, 255, 0.22);
    color: #ffffff;
}

.admin-status-choice input:checked + span {
    border-color: rgba(61, 226, 255, 0.28);
    background: linear-gradient(180deg, rgba(17, 212, 255, 0.16), rgba(10, 27, 43, 0.92));
    color: var(--cyan);
    box-shadow: inset 0 0 0 1px rgba(17, 212, 255, 0.08), 0 10px 18px rgba(10, 20, 34, 0.18);
}

.admin-status-submit {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 0 18px rgba(17, 212, 255, 0.14);
    flex: 0 0 auto;
}

.admin-status-link {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.92rem;
}

.admin-archive-form {
    display: grid;
    gap: 16px;
}

.admin-end-at-field.is-hidden {
    display: none;
}

.button-surface--disabled {
    border-color: rgba(132, 151, 188, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #c7cfdf;
    box-shadow: none;
    cursor: default;
    pointer-events: none;
}

.admin-inline-note--time {
    justify-content: space-between;
    width: 100%;
}

.admin-user-card {
    border-radius: 10px;
    border: 1px solid rgba(132, 151, 188, 0.1);
    background: rgba(12, 21, 35, 0.42);
    overflow: hidden;
}

.admin-user-card__summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    cursor: pointer;
}

.admin-user-card__summary::-webkit-details-marker {
    display: none;
}

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

.admin-user-card__avatar {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(61, 226, 255, 0.18);
    flex: 0 0 auto;
}

.admin-user-list__main,
.admin-user-list__meta {
    display: grid;
    gap: 4px;
}

.admin-user-card__subline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
}

.admin-user-card__flag {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    object-fit: cover;
    flex: 0 0 auto;
}

.admin-user-list__main strong {
    font-size: 1rem;
    line-height: 1.5;
}

.admin-user-list__main span,
.admin-user-list__meta time {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

.admin-user-list__meta {
    justify-items: end;
    text-align: end;
}

.admin-user-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(17, 212, 255, 0.12);
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-user-list__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-inline-start: auto;
}

.admin-user-card__panel {
    display: grid;
    gap: 14px;
    padding: 0 14px 14px;
    border-top: 1px solid rgba(132, 151, 188, 0.08);
}

.admin-user-card__stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
}

.admin-user-card__actions {
    display: grid;
    gap: 10px;
}

.admin-user-action-form,
.admin-user-gold-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-user-gold-form__input {
    width: 150px;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(132, 151, 188, 0.14);
    background: rgba(12, 21, 35, 0.52);
    color: #eef3ff;
    padding: 0 12px;
    outline: none;
}

.admin-user-gold-form__input:focus {
    border-color: rgba(35, 221, 255, 0.34);
    box-shadow: 0 0 0 4px rgba(17, 212, 255, 0.08);
}

.admin-settings-form {
    display: grid;
    gap: 16px;
}

.admin-settings-form--medal {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(132, 151, 188, 0.1);
    margin-bottom: 18px;
}

.admin-medal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.admin-medal-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(132, 151, 188, 0.12);
    background: rgba(11, 21, 40, 0.38);
}

.admin-medal-card__image {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(61, 226, 255, 0.18);
}

.admin-medal-card__copy {
    display: grid;
    gap: 4px;
}

.admin-medal-card__copy strong {
    font-size: 1rem;
}

.admin-medal-card__copy span {
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-user-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 0.77rem;
    font-weight: 800;
}

.admin-user-status--blocked {
    background: rgba(255, 170, 63, 0.12);
    color: #ffcf75;
}

.admin-user-action {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    box-shadow: none;
}

.admin-user-action--danger {
    border-color: rgba(255, 110, 110, 0.18);
    color: #ffd2d2;
    background: rgba(64, 16, 22, 0.24);
}

.admin-user-action--danger:hover {
    border-color: rgba(255, 110, 110, 0.3);
    background: rgba(78, 20, 28, 0.42);
    color: #ffffff;
}

.admin-content-tabs {
    display: grid;
    gap: 16px;
}

.admin-content-tabs__nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-content-tab {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(132, 151, 188, 0.16);
    border-radius: 10px;
    background: rgba(11, 21, 40, 0.4);
    color: #d7e0f4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    transition: 0.18s ease;
}

.admin-content-tab strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 0.8rem;
}

.admin-content-tab:hover,
.admin-content-tab.is-active {
    border-color: rgba(61, 226, 255, 0.26);
    background: rgba(11, 21, 40, 0.72);
    color: #ffffff;
}

.admin-content-tab.is-active strong {
    background: linear-gradient(90deg, rgba(18, 214, 255, 0.26), rgba(74, 222, 255, 0.18));
    color: var(--cyan);
}

.admin-content-pane {
    display: none;
}

.admin-content-pane.is-active {
    display: block;
}

.admin-topic-list,
.admin-content-comment-list {
    display: grid;
    gap: 12px;
}

.admin-topic-card,
.admin-content-comment {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(132, 151, 188, 0.1);
    background: rgba(12, 21, 35, 0.42);
}

.admin-topic-card__head,
.admin-content-comment__head,
.admin-content-comment__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-topic-card__head h3 {
    margin: 0;
    font-size: 1rem;
}

.admin-topic-card__badges,
.admin-content-comment__identity {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-topic-card__excerpt,
.admin-content-comment__text {
    margin: 0;
    color: #dbe3f6;
    line-height: 1.75;
    font-size: 0.92rem;
}

.admin-topic-card__meta,
.admin-content-comment__head time {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.82rem;
}

.install-body .page-frame {
    padding-top: 40px;
}

.install-grid {
    gap: 22px;
}

.install-section {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid rgba(131, 150, 186, 0.12);
    background: rgba(13, 21, 36, 0.32);
}

.install-section h3 {
    margin: 0;
    font-size: 1.2rem;
}

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

.site-footer {
    position: relative;
    margin-top: 22px;
    padding: 34px 8px 10px;
    text-align: center;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(96%, 1180px);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 210, 92, 0), rgba(255, 210, 92, 0.68) 18%, rgba(255, 235, 163, 1) 50%, rgba(255, 210, 92, 0.68) 82%, rgba(255, 210, 92, 0));
    box-shadow: 0 0 12px rgba(255, 210, 92, 0.48), 0 0 24px rgba(255, 186, 52, 0.24);
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 12px;
    color: #d7deef;
    font-weight: 700;
}

.footer-copy {
    margin: 0;
    color: #8f9ab6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.8;
}

.footer-copy__meta {
    direction: ltr;
    unicode-bidi: isolate;
}

.order-mobile-first {
    order: 2;
}

@media (max-width: 1180px) {
    .hero-topbar {
        gap: 20px;
    }

    .hero-nav-row,
    .hero-actions,
    .site-nav {
        justify-content: center;
    }

    .register-layout,
    .hero-grid,
    .server-grid,
    .dashboard-layout--player,
    .dashboard-layout--admin,
    .admin-sections-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid--account-home {
        grid-template-areas:
            "account"
            "news";
    }

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

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

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

    .dashboard-side--admin {
        position: static;
        top: auto;
    }
}

@media (max-width: 920px) {
    .page-frame {
        width: min(100vw - 18px, 1240px);
        padding-top: 12px;
    }

    .hero-shell {
        border-radius: 12px;
    }

    .metric-strip,
    .announcement-bar,
    .hero-servers,
    .hero-copy {
        padding-inline: 18px;
    }

    .panel-card__head,
    .panel-card__body,
    .server-card {
        padding-inline: 18px;
    }

    .metric-item--gold {
        margin-inline-start: 0;
    }

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

    .dashboard-side {
        order: -1;
    }

    .server-list-compact__item,
    .avatar-upload-box {
        flex-direction: column;
        align-items: stretch;
    }

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

    .admin-server-row__media {
        min-height: 190px;
    }

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

@media (max-width: 760px) {
    .page-frame {
        width: 100%;
        margin: 0;
        padding: 0 0 28px;
    }

    .hero-shell {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .hero-nav-row {
        display: grid;
        width: 100%;
        gap: 8px;
        justify-items: stretch;
    }

    .brandmark {
        width: 206px;
    }

    .site-nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        padding-top: 4px;
        padding-bottom: 4px;
        gap: 8px;
        overflow: visible;
    }

    .site-nav a {
        width: 100%;
        padding-inline: 10px;
        font-size: 0.88rem;
    }

    .pwa-install-pill {
        justify-self: center;
        min-height: 36px;
        padding-inline: 12px;
        font-size: 0.78rem;
    }

    .hero-actions {
        justify-content: stretch;
        width: 100%;
    }

    .hero-actions > * {
        width: 100%;
    }

    .inline-form {
        width: 100%;
    }

    .metric-strip {
        justify-content: flex-start;
        gap: 8px;
    }

    .announcement-bar__item {
        font-size: 0.9rem;
        padding-inline-start: 28px;
    }

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

    .public-server-tabs__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .public-server-tab {
        width: 100%;
        padding-inline: 10px;
        font-size: 0.88rem;
    }

    .page-server-details .public-server-tabs__nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .page-server-details .public-server-tab {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        padding-inline: 6px;
        font-size: 0.74rem;
        white-space: nowrap;
    }

    .hall-tabs .public-server-tabs__nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 12px;
        padding-bottom: 2px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .hall-tabs .public-server-tabs__nav::-webkit-scrollbar {
        display: none;
    }

    .hall-tabs .public-server-tab {
        flex: 0 0 29%;
        min-width: 29%;
        width: auto;
        min-height: 42px;
        padding-inline: 10px;
        font-size: 0.9rem;
        scroll-snap-align: start;
    }

    .hall-ranking-table {
        min-width: 100%;
        table-layout: fixed;
    }

    .hall-ranking-table th,
    .hall-ranking-table td {
        padding: 10px 8px;
    }

    .hall-ranking-table th:first-child,
    .hall-ranking-table td:first-child {
        width: 48px;
    }

    .hall-ranking-table th:last-child,
    .hall-ranking-table td:last-child {
        width: 92px;
    }

    .hall-ranking-table th:nth-child(2),
    .hall-ranking-table td:nth-child(2) {
        padding-inline: 8px;
    }

    .hall-ranking-table__rank,
    .hall-ranking-table__value {
        font-size: 0.95rem;
    }

    .hall-ranking-table th {
        font-size: 0.9rem;
    }

    .hall-player-link {
        align-items: center;
    }

    .hall-player-link__main {
        gap: 8px;
    }

    .hall-player-link__stars {
        min-width: 0;
        padding-inline: 0;
    }

    .hall-player-link__avatar {
        width: 50px;
        height: 50px;
        border-radius: 8px;
    }

    .hall-player-link__name {
        font-size: 0.96rem;
    }

    .hall-player-link__top {
        gap: 6px;
    }

    .hall-player-link__country {
        flex: 0 0 auto;
    }

    .hall-player-link__country img {
        width: 20px;
        height: 20px;
    }

    .star-strip--hall .star-strip__star {
        font-size: 0.72rem;
    }

    .order-mobile-first {
        order: -1;
    }

    .panel-actions,
    .panel-actions--split {
        flex-direction: column;
    }

    .panel-actions > *,
    .panel-actions--split > * {
        width: 100%;
    }

    .server-card .panel-actions {
        flex-direction: row;
        justify-content: flex-start;
    }

    .server-card .panel-actions > * {
        width: auto;
    }

    .hero-topbar {
        padding: 8px 10px 8px;
        gap: 8px;
    }

    .metric-strip,
    .announcement-bar {
        padding: 8px 10px;
    }

    .hero-servers {
        padding: 14px;
        gap: 14px;
    }

    .panel-card__head {
        padding: 10px 14px;
    }

    .panel-card__head--tabs {
        padding: 12px 14px;
    }

    .panel-card__body {
        padding: 14px 14px 16px;
    }

    .panel-actions--account-home {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 14px;
    }

    .panel-actions--account-home .button-surface--admin-link {
        grid-column: 1 / -1;
    }

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

    .admin-overview-grid,
    .admin-stats-grid,
    .profile-settings-grid,
    .admin-server-form__grid {
        grid-template-columns: 1fr;
    }

    .admin-user-card__summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-user-list__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-user-card__panel,
    .admin-user-action-form,
    .admin-user-gold-form,
    .admin-user-card__stats {
        align-items: stretch;
    }

    .admin-user-gold-form__input {
        width: 100%;
    }

    .admin-player-search {
        width: 100%;
        min-width: 0;
    }

    .admin-player-search__field {
        width: 100%;
    }

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

    .community-topic-grid {
        grid-template-columns: 1fr;
    }

    .community-topic-card {
        padding: 12px;
        gap: 10px;
    }

    .community-topic-card__body {
        gap: 10px;
    }

    .community-create-form {
        gap: 12px;
    }

    .community-topic-card__footer,
    .community-topic-single__meta {
        align-items: stretch;
        flex-direction: column;
    }

    .community-topic-card__footer > * {
        width: 100%;
        justify-content: center;
    }

    .hall-profile-modal {
        max-height: calc(100vh - 24px);
    }

    .hall-profile-modal__head {
        align-items: center;
        gap: 10px;
    }

    .hall-modal-close {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 1.4rem;
    }

    .hall-profile-hero {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        text-align: right;
    }

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

    .community-panel-head {
        align-items: center;
        flex-direction: row;
    }

    .community-panel-head .panel-card__head-group {
        align-items: center;
        flex-direction: row;
    }

    .community-panel-head .panel-actions--compact {
        margin-inline-start: auto;
    }

    .community-panel-head .button-surface,
    .community-panel-head .panel-actions--compact .button-surface {
        min-height: 38px;
        width: auto;
        padding-inline: 12px;
        font-size: 0.82rem;
    }

    .community-upload-field__shell {
        min-height: 48px;
        padding: 8px 10px;
    }

    .community-upload-field__button {
        min-height: 32px;
        padding-inline: 12px;
        font-size: 0.82rem;
    }

    .community-upload-field__hint {
        font-size: 0.82rem;
    }

    .community-gallery__slide img {
        max-height: 280px;
    }

    .community-gallery__thumb {
        width: 62px;
        height: 62px;
    }

    .community-gallery__nav {
        width: 38px;
        height: 38px;
    }

    .admin-content-tab {
        width: 100%;
        justify-content: space-between;
    }

    .panel-card__head--split,
    .panel-card__head-group {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-server-tabs__nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .admin-server-tab {
        width: 100%;
        justify-content: space-between;
        padding-inline: 10px;
    }

    .admin-server-row__top {
        display: grid;
    }

    .admin-status-shell__controls {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-status-options {
        width: 100%;
    }

    .admin-status-submit {
        width: 100%;
    }

    .server-card__visual {
        justify-self: stretch;
        width: 100%;
        max-width: none;
    }

    .archive-comment {
        padding: 10px;
    }

    .archive-comment__identity strong {
        font-size: 0.9rem;
    }

    .archive-comment__text {
        font-size: 0.88rem;
    }

    .admin-user-list__meta {
        justify-items: start;
        text-align: start;
    }

    .select-with-flag {
        flex-direction: column;
        align-items: flex-start;
    }

    .avatar-file-picker {
        flex-direction: column;
        align-items: stretch;
    }

    .file-trigger-button {
        width: 100%;
    }

    .profile-stat-list__item {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-card__head--split.community-panel-head {
        align-items: center;
        flex-direction: row;
    }

    .panel-card__head--split.community-panel-head .panel-card__head-group {
        align-items: center;
        flex-direction: row;
    }
}

@media (max-width: 520px) {
    .brandmark {
        width: min(70vw, 220px);
    }

    .site-nav {
        gap: 4px;
    }

    .site-nav a {
        min-height: 38px;
        padding-inline: 4px;
        font-size: 0.62rem;
        letter-spacing: -0.02em;
    }

    .hero-servers__head p {
        font-size: 0.96rem;
    }

    .hero-servers__head span {
        font-size: 0.88rem;
        line-height: 1.9;
    }

    .hero-copy h1 {
        font-size: 1.9rem;
    }

    .metric-value {
        font-size: 1rem;
    }

    .metric-label {
        font-size: 0.82rem;
    }

    .panel-card__head h2,
    .section-block__head h2 {
        font-size: 1.32rem;
    }

    .media-card__thumb {
        min-height: 175px;
    }

    .account-identity {
        gap: 12px;
        padding: 12px;
    }

    .account-identity__avatar-wrap {
        flex-basis: 88px;
        width: 88px;
    }

    .account-identity__avatar {
        width: 88px;
    }

    .account-identity__copy {
        min-width: 0;
        gap: 6px;
        padding-right: 12px;
    }

    .account-identity__copy h3 {
        font-size: 1.18rem;
    }

    .account-identity__copy p {
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .account-identity__flag {
        width: 30px;
        height: 30px;
        right: 5px;
        bottom: 5px;
    }

    .hero-topbar,
    .metric-strip,
    .announcement-bar,
    .hero-servers,
    .panel-card__head,
    .panel-card__body {
        padding-inline: 12px;
    }

    .hero-topbar {
        padding-block: 14px 10px;
    }

    .metric-strip,
    .announcement-bar {
        padding-block: 8px;
    }

    .metric-strip {
        justify-content: space-between;
        gap: 6px;
    }

    .metric-item {
        gap: 4px;
    }

    .metric-value {
        font-size: 0.9rem;
    }

    .metric-label {
        font-size: 0.74rem;
    }

    .panel-card__head {
        padding-block: 10px;
    }

    .panel-card__body {
        padding-top: 12px;
        padding-bottom: 14px;
    }

    .panel-actions--account-home .button-surface,
    .panel-card--auth .panel-actions--account-home .button-surface {
        min-height: 38px;
        padding: 0 8px;
        font-size: 0.8rem;
    }

    .panel-actions--account-home > .inline-form {
        width: 100%;
    }

    .profile-avatar-stack__frame {
        width: 148px;
        height: 148px;
    }

    .avatar-upload-box__preview,
    .avatar-upload-box__preview img {
        width: 100px;
        height: 100px;
    }

    .community-topic-card__title {
        font-size: 0.98rem;
    }

    .hall-tabs .public-server-tabs__nav {
        display: flex;
    }

    .hall-tabs .public-server-tab {
        flex-basis: 29%;
        min-width: 29%;
        font-size: 0.84rem;
        padding-inline: 8px;
    }

    .hall-ranking-table th,
    .hall-ranking-table td {
        padding: 9px 7px;
    }

    .hall-ranking-table th:first-child,
    .hall-ranking-table td:first-child {
        width: 44px;
    }

    .hall-ranking-table th:last-child,
    .hall-ranking-table td:last-child {
        width: 84px;
    }

    .hall-ranking-table th {
        font-size: 0.86rem;
    }

    .hall-player-link__country {
        flex: 0 0 auto;
    }

    .star-strip__star {
        font-size: 0.9rem;
    }

    .hall-profile-modal__body {
        gap: 14px;
    }

    .hall-profile-hero {
        gap: 10px;
        padding: 12px;
    }

    .hall-profile-hero__avatar {
        width: 92px;
        height: 92px;
        flex-basis: 92px;
        border-radius: 14px;
    }

    .hall-profile-hero__flag {
        inset-inline-start: 4px;
        bottom: 4px;
        width: 28px;
        height: 28px;
    }

    .hall-profile-hero__copy h3 {
        font-size: 1.18rem;
        line-height: 1.3;
    }

    .hall-profile-hero__copy {
        gap: 4px;
        min-width: 0;
    }

    .hall-profile-hero__copy p {
        font-size: 0.92rem;
    }

    .hall-profile-stats__item {
        gap: 6px;
        padding: 10px 12px;
    }

    .hall-profile-stats__item strong {
        font-size: 1rem;
    }

    .hall-profile-stats__item span {
        font-size: 0.82rem;
    }

    .hall-profile-stats-card {
        padding: 6px 12px;
        border-radius: 12px;
    }

    .hall-profile-stats-card__row {
        min-height: 44px;
        gap: 12px;
    }

    .hall-profile-stats-card__row span {
        font-size: 0.88rem;
    }

    .hall-profile-stats-card__row strong {
        font-size: 1rem;
    }

    .hall-medals-block,
    .hall-admin-medal-form {
        gap: 12px;
        padding: 12px;
    }

    .hall-special-medals {
        gap: 8px;
    }

    .hall-special-medal {
        width: 56px;
        height: 56px;
        border-radius: 13px;
    }

    .hall-special-medal img,
    .hall-special-medal__fallback {
        width: 40px;
        height: 40px;
        border-radius: 9px;
    }

    .community-panel-head .button-surface,
    .community-panel-head .panel-actions--compact .button-surface {
        min-height: 36px;
        padding-inline: 10px;
        font-size: 0.78rem;
    }

    .community-topic-card__author img,
    .community-topic-single__author img {
        width: 36px;
        height: 36px;
    }

    .community-topic-single__visual img {
        max-height: 210px;
    }

    .community-topic-card,
    .community-topic-single__content {
        gap: 8px;
    }

    .community-topic-card__excerpt {
        font-size: 0.88rem;
        line-height: 1.9;
    }

    .community-upload-field__shell {
        gap: 8px;
        flex-direction: row;
        align-items: center;
    }

    .community-upload-field__hint {
        font-size: 0.78rem;
    }

    .community-upload-field__preview-item {
        width: 56px;
        height: 56px;
    }

    .community-gallery__slide img {
        max-height: 220px;
    }

    .community-gallery__thumb {
        width: 56px;
        height: 56px;
    }

    .panel-card__head--split.community-panel-head {
        align-items: center;
        flex-direction: row;
    }

    .panel-card__head--split.community-panel-head .panel-card__head-group {
        align-items: center;
        flex-direction: row;
    }
}

.hall-profile-modal__head.panel-card__head--split {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.hall-profile-modal__head .panel-card__head-group {
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: row;
    align-items: center;
}

@media (max-width: 360px) {
    .metric-strip {
        gap: 4px;
        padding-inline: 8px;
    }

    .metric-item {
        gap: 3px;
    }

    .metric-value {
        font-size: 0.82rem;
    }

    .metric-label {
        font-size: 0.66rem;
    }
}

html.is-pwa-standalone .platform-body {
    background: #08111d;
}

html.is-pwa-standalone .page-frame {
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: max(36px, env(safe-area-inset-bottom));
}

@media (max-width: 760px) {
    html.is-pwa-standalone .page-frame {
        padding-top: env(safe-area-inset-top);
        padding-bottom: max(28px, env(safe-area-inset-bottom));
    }
}
