.cardBd span {
    color: var(--purple2);
    font-weight: 800;
}

:root {
    --bg: #0d0d16;
    --panel: #17172a;
    --panel2: #141426;
    --panel3: linear-gradient(180deg, rgba(18, 18, 32, .95), rgba(12, 12, 20, .92));
    --border: rgba(255, 255, 255, .10);
    --text: rgba(255, 255, 255, .92);
    --muted: rgba(255, 255, 255, .70);
    --muted2: rgba(255, 255, 255, .50);
    --purple: #8b5cf6;
    --purple2: #a78bfa;
    --danger: #ef4444;
    --shadow: 0 12px 34px rgba(0, 0, 0, .40);
    --radius: 18px;
    --radiusSm: 12px;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

body.page-control-link {
    --ctl-accent-rgb: 167, 139, 250;
    --ctl-accent-deep-rgb: 139, 92, 246;
    --ctl-accent-glow-rgb: 139, 92, 246;
    --ctl-surface-rgb: 32, 31, 51;
    --ctl-surface-2-rgb: 10, 10, 18;
    --ctl-panel-rgb: 31, 23, 52;
    --ctl-panel-2-rgb: 16, 13, 28;
    --ctl-border-soft: rgba(196, 181, 253, .16);
    --ctl-shadow-lg: 0 20px 56px rgba(0, 0, 0, .42);
    --bg: rgb(12, 11, 22);
    --panel3: linear-gradient(180deg, rgba(var(--ctl-panel-rgb), .96), rgba(var(--ctl-panel-2-rgb), .92));
    --border: var(--ctl-border-soft);
    --shadow: var(--ctl-shadow-lg);
}

body.page-control-link[data-control-theme="blue"] {
    --ctl-accent-rgb: 96, 165, 250;
    --ctl-accent-deep-rgb: 59, 130, 246;
    --ctl-accent-glow-rgb: 37, 99, 235;
    --ctl-surface-rgb: 16, 28, 48;
    --ctl-surface-2-rgb: 10, 16, 30;
    --ctl-panel-rgb: 19, 36, 60;
    --ctl-panel-2-rgb: 12, 20, 36;
    --ctl-border-soft: rgba(147, 197, 253, .16);
    --bg: rgb(10, 15, 28);
}

body.page-control-link[data-control-theme="green"] {
    --ctl-accent-rgb: 52, 211, 153;
    --ctl-accent-deep-rgb: 16, 185, 129;
    --ctl-accent-glow-rgb: 5, 150, 105;
    --ctl-surface-rgb: 15, 33, 27;
    --ctl-surface-2-rgb: 9, 18, 16;
    --ctl-panel-rgb: 18, 40, 33;
    --ctl-panel-2-rgb: 11, 22, 19;
    --ctl-border-soft: rgba(110, 231, 183, .15);
    --bg: rgb(9, 17, 16);
}

body.page-control-link[data-control-theme="pink"] {
    --ctl-accent-rgb: 244, 114, 182;
    --ctl-accent-deep-rgb: 236, 72, 153;
    --ctl-accent-glow-rgb: 219, 39, 119;
    --ctl-surface-rgb: 44, 18, 35;
    --ctl-surface-2-rgb: 24, 10, 21;
    --ctl-panel-rgb: 54, 22, 42;
    --ctl-panel-2-rgb: 28, 12, 24;
    --ctl-border-soft: rgba(251, 182, 206, .15);
    --bg: rgb(22, 10, 18);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1200px 700px at 18% -12%, rgba(139, 92, 246, .40), transparent 58%),
        radial-gradient(1100px 650px at 92% 8%, rgba(167, 139, 250, .28), transparent 60%),
        radial-gradient(900px 550px at 55% 110%, rgba(139, 92, 246, .18), transparent 55%),
        linear-gradient(180deg, rgba(10, 10, 18, 1), rgba(32, 31, 51, 1));
}

body.page-control-link::before {
    background:
        radial-gradient(1200px 700px at 18% -12%, rgba(var(--ctl-accent-deep-rgb), .40), transparent 58%),
        radial-gradient(1100px 650px at 92% 8%, rgba(var(--ctl-accent-rgb), .28), transparent 60%),
        radial-gradient(900px 550px at 55% 110%, rgba(var(--ctl-accent-glow-rgb), .18), transparent 55%),
        linear-gradient(180deg, rgba(var(--ctl-surface-2-rgb), 1), rgba(var(--ctl-surface-rgb), .94));
}

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

a:hover {
    text-decoration: none;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 18px 28px;
}

.topbarWrap {
    position: sticky;
    top: 10px;
    z-index: 20;
    padding-bottom: 42px;
    margin-bottom: 8px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: var(--panel3);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.topbarDiscordTab {
    position: absolute;
    right: 52px;
    top: calc(100% - 1px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 36px);
    padding: 8px 11px 9px 10px;
    border: 1px solid rgba(122, 134, 255, .42);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background:
        linear-gradient(180deg, rgba(106, 116, 232, .32), rgba(78, 88, 196, .16)),
        rgba(18, 18, 32, .96);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .28);
    color: rgba(255, 255, 255, .95);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .01em;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .16s ease, border-color .16s ease, transform .06s ease;
}

.topbarDiscordTab:hover {
    background:
        linear-gradient(180deg, rgba(110, 122, 246, .38), rgba(88, 101, 242, .22)),
        rgba(18, 18, 32, .98);
    border-color: rgba(140, 151, 255, .55);
}

.topbarDiscordTab:active {
    transform: translateY(1px);
}

.topbarDiscordTabIcon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: .2px;
}

.brandName {
    font-size: 16px;
}

.brandName span {
    color: var(--purple2);
    font-family: var(--mono);
    font-weight: 800;
}

.navRight {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, .35);
    background: rgba(139, 92, 246, .14);
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    transition: transform .06s ease, background .15s ease, border-color .15s ease;
    user-select: none;
    line-height: 1;
    white-space: nowrap;
}

.btn:hover {
    background: rgba(139, 92, 246, .20);
    border-color: rgba(139, 92, 246, .55);
}

.btn:active {
    transform: translateY(1px);
}

.btn--ghost {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .12);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .18);
}

.btn--danger {
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .35);
}

.btn--danger:hover {
    background: rgba(239, 68, 68, .18);
    border-color: rgba(239, 68, 68, .55);
}

.content a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, .35);
    background: rgba(139, 92, 246, .14);
    font-weight: 800;
    transition: transform .06s ease, background .15s ease, border-color .15s ease;
}

.content a:hover {
    background: rgba(139, 92, 246, .20);
    border-color: rgba(139, 92, 246, .55);
}

.content a:active {
    transform: translateY(1px);
}

.content a.link {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    font-weight: 800;
    color: var(--purple2);
}

.content a.link:hover {
    text-decoration: underline;
}

.content {
    color: rgba(255, 255, 255, .90);
}

.content p {
    color: rgba(255, 255, 255, .86);
    line-height: 1.55;
}

.siteFooter {
    margin-top: 28px;
    padding: 14px 0 6px;
}

.siteFooterInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: var(--muted);
}

.siteFooterLabel {
    font-weight: 800;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .62);
}

.siteFooterLinks {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.siteFooterLink,
.siteFooterLink:visited {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-weight: 800;
    transition: color .15s ease;
}

.siteFooterLink:hover {
    color: var(--text);
    text-decoration: underline;
}

.card {
    margin-top: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(23, 23, 42, .92), rgba(14, 14, 26, .88));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cardHd {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 900;
}

.cardBd {
    padding: 16px;
}

.homeWidgetGrid,
.homeInfoGrid {
    display: grid;
    gap: 16px;
}

.homeWidgetGrid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
}

.homeInfoGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.homeWidgetGrid .card,
.homeInfoGrid .card {
    margin-top: 0;
}

.homeWidgetGrid .card {
    display: flex;
    flex-direction: column;
    height: 320px;
    min-height: 0;
}

.homeStatCard .cardBd {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    justify-content: center;
    text-align: center;
}

.homeStatValueWrap {
    position: relative;
    display: inline-block;
    align-self: center;
    padding-right: 24px;
}

.homeStatDot {
    position: absolute;
    top: 10px;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 0 6px rgba(52, 211, 153, .12);
    animation: homePulse 1.8s ease-in-out infinite;
}

.homeStatValue {
    margin-top: 8px;
    font-size: clamp(44px, 7vw, 72px);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -.04em;
}

.homeStatLabel {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 900;
    color: rgba(255, 255, 255, .94);
}

.homeLeaderboardCard .cardBd {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding-top: 8px;
    min-height: 0;
}

.homeLeaderboardStamp {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted2);
}

.homeLeaderboardList {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
    padding-bottom: 2px;
}

.homeLeaderboardItem {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
}

.homeLeaderboardRank {
    min-width: 34px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 900;
    color: var(--purple2);
}

.homeLeaderboardAvatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .14);
}

.homeLeaderboardBody {
    min-width: 0;
}

.homeLeaderboardName {
    font-weight: 900;
    color: rgba(255, 255, 255, .94);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.homeLeaderboardMeta {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.homeLeaderboardScore {
    text-align: right;
}

.homeLeaderboardScoreValue {
    display: block;
    font-weight: 900;
    font-size: 16px;
    color: rgba(255, 255, 255, .96);
}

.homeLeaderboardScoreLabel {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted2);
}

.homeLeaderboardEmpty {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.5;
}

@keyframes homePulse {
    0%,
    100% {
        transform: scale(.92);
        opacity: .9;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

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

.mono {
    font-family: var(--mono);
}

input,
textarea,
select {
    width: 100%;
    max-width: 720px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(0, 0, 0, .28);
    color: var(--text);
    outline: none;
}

textarea {
    min-height: 96px;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, .45);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(139, 92, 246, .55);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .18);
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .10);
    margin: 14px 0;
}

/* --- desktop dropdown (keep for desktop) --- */
.dd {
    position: relative;
}

.ddBtn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    font-weight: 900;
    color: var(--text);
}

.ddBtn:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .18);
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .14);
}

.caret {
    opacity: .7;
    font-size: 12px;
    margin-left: 2px;
}

.ddMenu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 240px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(12, 12, 20, .95);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: none;
    z-index: 30;
    backdrop-filter: blur(10px);
}

.ddMenu.open {
    display: block;
}

.ddItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: var(--text);
}

.ddItem:last-child {
    border-bottom: 0;
}

.ddLink {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 0;
    border: 0;
    background: transparent;
    font-weight: 900;
    cursor: pointer;
    color: var(--text);
    text-align: left;
}

.ddLink:hover {
    background: rgba(139, 92, 246, .14);
}

/* --- notifications --- */
.notifShell {
    position: relative;
}

.notifBellBtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .06s ease;
}

.notifBellBtn:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .18);
}

.notifBellBtn:active {
    transform: translateY(1px);
}

.notifBellBtn[data-has-unread="1"] {
    border-color: rgba(167, 139, 250, .42);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, .12);
}

.notifBellIcon {
    width: 18px;
    height: 18px;
}

.notifBellBadge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #fb7185;
    box-shadow: 0 0 0 2px rgba(13, 13, 22, .95);
}

.notifMenu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(420px, calc(100vw - 36px));
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(12, 12, 20, .97);
    border-radius: 18px;
    box-shadow: 0 22px 44px rgba(0, 0, 0, .42);
    overflow: hidden;
    display: none;
    z-index: 35;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.notifMenu.open {
    display: block;
}

.notifMenuHd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-weight: 900;
}

.notifMenuCount {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.notifMenuFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.notifMenuLink,
.notifMenuLink:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: var(--purple2);
    font-weight: 900;
    cursor: pointer;
}

.notifMenuLink:hover {
    text-decoration: underline;
}

.notifMenuLink:disabled {
    color: var(--muted2);
    cursor: not-allowed;
    text-decoration: none;
}

.notificationList {
    display: flex;
    flex-direction: column;
}

.notificationList--compact {
    max-height: min(62vh, 430px);
    overflow: auto;
}

.notificationItem {
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: transparent;
    transition: background .14s ease;
}

.notificationItem:first-child {
    border-top: 0;
}

.notificationItem:hover {
    background: rgba(255, 255, 255, .025);
}

.notificationItem--unread {
    background: rgba(139, 92, 246, .09);
}

.notificationItemRow {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
}

.notificationItemMain,
.content a.notificationItemMain,
.content a.notificationItemMain:visited {
    flex: 1 1 auto;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    color: inherit;
    font-weight: inherit;
    text-align: left;
}

.notificationItemMain:hover,
.content a.notificationItemMain:hover {
    background: transparent;
    border-color: transparent;
    text-decoration: none;
}

.notificationItemTitleRow {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notificationItemTitle {
    font-weight: 900;
    line-height: 1.3;
}

.notificationItemDot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--purple2);
    flex: 0 0 auto;
}

.notificationItemMessage {
    margin-top: 6px;
    color: rgba(255, 255, 255, .80);
    line-height: 1.45;
    white-space: pre-line;
}

.notificationItemMeta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: var(--muted2);
    font-size: 12px;
    font-weight: 700;
}

.notificationItemAction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, .28);
    background: rgba(139, 92, 246, .14);
    color: rgba(255, 255, 255, .92);
}

.notificationItemClear {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.notificationItemClear:hover {
    border-color: rgba(239, 68, 68, .32);
    background: rgba(239, 68, 68, .12);
    color: rgba(255, 255, 255, .95);
}

.notificationEmpty {
    padding: 24px 18px;
    color: var(--muted);
    text-align: center;
}

.notificationPageCard,
.adminNotificationCard,
.adminNotificationHistoryCard {
    margin-top: 18px;
}

.notificationPageHd {
    align-items: flex-start;
}

.notificationPageSubhead {
    margin-top: 4px;
    font-size: 13px;
}

.notificationPageActions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notificationPageNotice {
    margin-bottom: 14px;
}

.notificationAdminAudience {
    margin-bottom: 16px;
}

.notificationAdminFlash {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(52, 211, 153, .30);
    background: rgba(16, 185, 129, .12);
    color: rgba(255, 255, 255, .92);
    font-weight: 800;
}

.notificationAdminFlash--error {
    border-color: rgba(239, 68, 68, .35);
    background: rgba(239, 68, 68, .12);
}

.notificationAdminForm {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notificationAdminForm .cmdField {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notificationAdminForm .cmdFieldLabel {
    font-size: 13px;
    font-weight: 800;
}

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

.notificationAdminHint {
    margin-top: -2px;
}

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

.notificationAdminHistory {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notificationAdminHistoryItem {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .03);
}

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

.notificationAdminHistoryTitle {
    font-weight: 900;
}

.notificationAdminHistoryTime {
    color: var(--muted2);
    font-size: 12px;
    font-weight: 800;
}

.notificationAdminHistoryMeta,
.notificationAdminHistoryAction {
    margin-top: 8px;
}

.notificationAdminHistoryMessage {
    margin-top: 10px;
    color: rgba(255, 255, 255, .84);
    line-height: 1.5;
    white-space: pre-line;
}

.adminReportsCard {
    margin-top: 18px;
}

.reportAdminPageActions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reportAdminMetaBar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.reportAdminFlash {
    margin-bottom: 16px;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid rgba(74, 222, 128, .20);
    background: rgba(34, 197, 94, .10);
    color: rgba(240, 253, 244, .94);
    line-height: 1.45;
}

.reportAdminFlash--error {
    border-color: rgba(251, 113, 133, .24);
    background: rgba(244, 63, 94, .12);
    color: rgba(255, 228, 230, .96);
}

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

.reportAdminPager--bottom {
    margin-top: 16px;
    margin-bottom: 0;
}

.reportAdminPagerLabel {
    line-height: 1.45;
}

.reportAdminList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reportAdminItem {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .03);
}

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

.reportAdminReason {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(251, 113, 133, .28);
    background: rgba(244, 63, 94, .10);
    color: rgba(255, 255, 255, .94);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
}

.reportAdminTime {
    color: var(--muted2);
    font-size: 12px;
    font-weight: 800;
}

.reportAdminLine {
    margin-top: 10px;
    color: rgba(255, 255, 255, .86);
    line-height: 1.5;
}

.reportAdminIds {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.reportAdminIdChip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .03);
    color: var(--muted2);
    font-size: 12px;
    font-weight: 800;
}

.reportAdminDetails {
    margin-top: 12px;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .16);
    color: rgba(255, 255, 255, .84);
    line-height: 1.5;
    white-space: pre-line;
}

.reportAdminActions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.reportAdminActionForm {
    margin: 0;
}

.reportAdminResolveForm {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reportAdminStrikeField {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
}

.reportAdminStrikeSelect {
    min-width: 64px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .22);
    color: rgba(255, 255, 255, .94);
    font: inherit;
}

.reportAdminActionLink,
.reportAdminActionBtn,
.content a.reportAdminActionLink,
.content a.reportAdminActionLink:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .94);
    font-weight: 900;
    font-family: inherit;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.reportAdminActionLink:hover,
.reportAdminActionBtn:hover,
.content a.reportAdminActionLink:hover {
    border-color: rgba(167, 139, 250, .42);
    background: rgba(139, 92, 246, .12);
    text-decoration: none;
}

.reportAdminActionBtn--resolve:hover {
    border-color: rgba(251, 113, 133, .34);
    background: rgba(244, 63, 94, .12);
}

.drawerBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(139, 92, 246, .18);
    border: 1px solid rgba(167, 139, 250, .45);
    color: rgba(255, 255, 255, .95);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

/* --- mobile drawer --- */
.hamburger {
    display: none;
    /* shown on mobile */
    width: 42px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-direction: column;
}

.hamburger:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .18);
}

.hamburger .bar {
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, .85);
    border-radius: 2px;
    opacity: .95;
}

.drawerOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 60;
}

.drawerOverlay.open {
    display: block;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(86vw, 340px);
    background: linear-gradient(180deg, rgba(18, 18, 32, .98), rgba(10, 10, 18, .98));
    border-left: 1px solid rgba(255, 255, 255, .10);
    box-shadow: -18px 0 50px rgba(0, 0, 0, .55);
    transform: translateX(110%);
    transition: transform .18s ease;
    z-index: 70;
    display: flex;
    flex-direction: column;
}

.drawer.open {
    transform: translateX(0);
}

.drawerHd {
    padding: 14px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.drawerClose {
    width: 40px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    font-weight: 900;
    color: var(--text);
}

.drawerClose:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .18);
}

.drawerUser {
    padding: 14px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawerAv {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    object-fit: cover;
}

.drawerName {
    font-weight: 900;
}

.drawerId {
    font-family: var(--mono);
    font-size: 12px;
    opacity: .7;
    margin-top: 2px;
}

.drawerBody {
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
}

.drawerLink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .18);
    font-weight: 900;
    color: var(--text);
    cursor: pointer;
}

.drawerLink:hover {
    border-color: rgba(167, 139, 250, .55);
    background: rgba(139, 92, 246, .10);
}

.drawerFooter {
    padding: 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

@media (max-width: 980px) {
    .homeWidgetGrid,
    .homeInfoGrid {
        grid-template-columns: minmax(0, 1fr);
    }

    .homeWidgetGrid .card {
        height: 300px;
    }
}

/* --- responsive behavior --- */
@media (max-width: 720px) {
    .homeLeaderboardItem {
        grid-template-columns: auto auto minmax(0, 1fr);
        align-items: start;
    }

    .homeLeaderboardScore {
        grid-column: 2 / span 2;
        text-align: left;
        padding-left: 46px;
    }

    .topbar {
        background: var(--panel3);
        box-shadow: var(--shadow);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .topbarWrap {
        position: sticky;
        top: 10px;
        padding-bottom: 42px;
        margin-bottom: 8px;
    }

    .topbarDiscordTab {
        right: 52px;
        left: auto;
        max-width: calc(100% - 36px);
        justify-content: flex-start;
        text-align: left;
        white-space: nowrap;
        gap: 6px;
        padding: 8px 11px 9px 10px;
        background:
            linear-gradient(180deg, rgba(106, 116, 232, .32), rgba(78, 88, 196, .16)),
            rgba(18, 18, 32, .96);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* hide the desktop nav buttons + dropdown */
    .navDesktop {
        display: none !important;
    }

    /* show hamburger on mobile when logged in */
    .hamburger {
        display: flex;
    }

    .notifMenu {
        right: -8px;
        width: min(420px, calc(100vw - 20px));
    }

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

    .notificationAdminHistoryTop,
    .notificationPageHd,
    .reportAdminTop {
        flex-direction: column;
        align-items: flex-start;
    }

    .siteFooterInner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0 6px;
    }

    .siteFooterLinks {
        gap: 12px;
    }
}

.cmdCountBar {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(20, 20, 28, .75);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .30);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    backdrop-filter: blur(10px);
    margin-top: 18px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.cmdCountTitle {
    font-weight: 900;
}

.cmdCountNum {
    font-family: var(--mono);
    font-weight: 900;
    font-size: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, .55);
    background: rgba(139, 92, 246, .18);
}

body.page-control-link .cmdCountNum {
    border-color: rgba(var(--ctl-accent-rgb), .55);
    background: rgba(var(--ctl-accent-deep-rgb), .18);
}

body.page-control-link .btn,
body.page-control-link button.btn,
body.page-control-link .content a {
    border-color: rgba(var(--ctl-accent-rgb), .34);
    background: rgba(var(--ctl-accent-deep-rgb), .16);
}

body.page-control-link .topbar {
    border-color: rgba(255, 255, 255, .10);
    background: linear-gradient(180deg, rgba(18, 18, 32, .95), rgba(12, 12, 20, .92));
    box-shadow: 0 12px 34px rgba(0, 0, 0, .40);
}

body.page-control-link .btn:hover,
body.page-control-link .content a:hover {
    border-color: rgba(var(--ctl-accent-rgb), .55);
    background: rgba(var(--ctl-accent-deep-rgb), .24);
}

body.page-control-link .btn--ghost,
body.page-control-link .ddBtn,
body.page-control-link .notifBellBtn,
body.page-control-link .hamburger,
body.page-control-link .drawerClose {
    border-color: rgba(var(--ctl-accent-rgb), .16);
    background: rgba(255, 255, 255, .045);
}

body.page-control-link .btn--ghost:hover,
body.page-control-link .ddBtn:hover,
body.page-control-link .notifBellBtn:hover,
body.page-control-link .hamburger:hover,
body.page-control-link .drawerClose:hover {
    border-color: rgba(var(--ctl-accent-rgb), .32);
    background: rgba(var(--ctl-accent-deep-rgb), .12);
}

body.page-control-link input:focus,
body.page-control-link textarea:focus,
body.page-control-link select:focus {
    border-color: rgba(var(--ctl-accent-rgb), .55);
    box-shadow: 0 0 0 3px rgba(var(--ctl-accent-deep-rgb), .2);
}

body.page-control-link .ddLink:hover,
body.page-control-link .drawerLink:hover {
    background: rgba(var(--ctl-accent-deep-rgb), .14);
    border-color: rgba(var(--ctl-accent-rgb), .3);
}

body.page-control-link .notifMenu,
body.page-control-link .ddMenu {
    border-color: rgba(var(--ctl-accent-rgb), .16);
}

.cmdCountHint {
    opacity: .7;
    font-size: 12px;
    margin-top: 2px;
}
