:root {
  --bg-dark: #1a0204;
  --bg-footer: #420909;
  --bg-card: #18181b;
  --bg-card-hover: #1e1e22;
  --bg-input: #131316;
  --bg-notification: #29292c;
  --bg-notification-inner: #18181b;

  --red-primary: #b30000;
  --red-bright: #ff3e3e;
  --red-deep: #4a0000;
  --red-accent: #ff2a2a;

  --color-primary: var(--red-bright);
  --color-primary-dark: var(--red-primary);
  --color-danger: #ff3e3e;
  --color-warning: #ffaa00;
  --color-success: #48ff8b;
  --color-info: #6495ed;

  --text-light: #e8e8e8;
  --text-muted: #99999d;
  --text-faint: #6d6d72;

  --border-soft: rgba(255, 255, 255, 0.08);
  --border-softer: rgba(255, 255, 255, 0.06);
  --border-red: rgba(255, 62, 62, 0.15);
  --border-red-bright: rgba(255, 62, 62, 0.25);

  --gradient: linear-gradient(to bottom, var(--red-bright), var(--red-primary), var(--red-deep));

  --grid-pattern:
    radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.65) 90%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  --grid-size: 100% 100%, 40px 40px, 40px 40px;

  --radius-xs: 0.25rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 999px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.12s ease;
  --t-normal: 0.18s ease;
  --t-slow: 0.28s ease;

  --anim-fast: 120ms ease;
  --anim-normal: 220ms ease;
  --anim-slow: 320ms ease;

  --bg-input-hover: #1a1a1f;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 16px rgba(255, 62, 62, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .page-loader-spinner {
    animation: loader-rotate 1s linear infinite !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-light);
  background-color: var(--bg-dark);
  background-image: var(--grid-pattern);
  background-size: var(--grid-size);
  background-attachment: fixed;
}

a, button, input, [tabindex] {
  outline-color: var(--red-bright);
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

.page {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

@media (max-width: 768px) {
  .page {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 0 0.75rem;
  }
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 600;

    width: 100%;

    padding: 1.1rem 0;

    background: rgba(20,6,7,.55);

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid var(--border-softer);
}

.navbar-content {

    width: min(1280px, calc(100% - 48px));

    margin: 0 auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.nav-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    border-radius: 12px;
    outline: none;
    isolation: isolate;
}

.nav-logo::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 14px;
    background: rgba(255, 62, 62, 0);
    filter: blur(12px);
    opacity: 0;
    z-index: -1;
    transition:
        opacity 220ms ease,
        background 220ms ease;
}

.nav-logo img {
    display: block;
    width: auto;
    height: 42px;
    max-width: 190px;
    object-fit: contain;
    border-radius: 8px;
    transform: translateZ(0);
    transition:
        opacity 180ms ease,
        filter 180ms ease,
        transform 180ms ease;
}

.nav-logo:hover img {
    opacity: 0.94;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.nav-logo:hover::before {
    opacity: 0.45;
    background: rgba(255, 62, 62, 0.22);
}

.nav-logo:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 4px;
}

.nav-logo:active img {
    transform: translateY(0) scale(0.985);
}

@media (max-width: 768px) {
    .nav-logo img {
        height: 38px;
        max-width: 165px;
    }

    .nav-logo:hover img {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-logo img,
    .nav-logo::before {
        transition: none;
    }

    .nav-logo:hover img,
    .nav-logo:active img {
        transform: none;
    }
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 9000;
    width: 100%;
    background:
        linear-gradient(
            180deg,
            rgba(13, 13, 15, 0.96) 0%,
            rgba(13, 13, 15, 0.88) 100%
        );
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.24),
        inset 0 -1px 0 rgba(255, 62, 62, 0.025);
}

.navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 62, 62, 0.18),
        rgba(255, 62, 62, 0.05),
        transparent
    );
}

.navbar-content {
    position: relative;
    width: min(1400px, calc(100% - 48px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.nav-logo {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 48px;
    padding: 5px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition:
        transform 220ms ease,
        background 220ms ease,
        filter 220ms ease;
}

.nav-logo::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at center,
        rgba(255, 62, 62, 0.12),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 220ms ease;
}

.nav-logo:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.035);
}

.nav-logo:hover::before {
    opacity: 1;
}

.nav-logo img {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    max-width: 190px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.3));
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    margin-right: 2px;
}

.nav-links > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 9px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.87rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition:
        color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.nav-links > a::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: var(--red-bright);
    transform: scaleX(0);
    transform-origin: center;
    opacity: 0;
    box-shadow: 0 0 10px rgba(255, 62, 62, 0.55);
    transition:
        transform 220ms ease,
        opacity 220ms ease;
}

.nav-links > a:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.055);
    transform: translateY(-1px);
}

.nav-links > a:hover::before {
    transform: scaleX(1);
    opacity: 1;
}

.nav-links > a[aria-current="page"] {
    color: #fff;
    background:
        linear-gradient(
            135deg,
            rgba(255, 62, 62, 0.15),
            rgba(255, 62, 62, 0.055)
        );
    box-shadow:
        inset 0 0 0 1px rgba(255, 62, 62, 0.08),
        0 4px 15px rgba(0, 0, 0, 0.12);
}

.nav-links > a[aria-current="page"]::before {
    transform: scaleX(1);
    opacity: 1;
}

.nav-links > a[aria-current="page"]:hover {
    background:
        linear-gradient(
            135deg,
            rgba(255, 62, 62, 0.2),
            rgba(255, 62, 62, 0.075)
        );
}

.nav-links > a:focus-visible,
.nav-logo:focus-visible,
.nav-toggle:focus-visible,
.notif-trigger:focus-visible,
.profile-trigger:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 3px;
}

.nav-cta {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-left: 7px;
    padding: 0 17px !important;
    overflow: hidden;
    border: 1px solid rgba(255, 62, 62, 0.7) !important;
    border-radius: 9px !important;
    color: #fff !important;
    background:
        linear-gradient(
            135deg,
            #ff3e3e,
            #d92828
        );
    font-size: 0.86rem !important;
    font-weight: 750 !important;
    box-shadow:
        0 5px 18px rgba(255, 62, 62, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition:
        transform 200ms ease,
        box-shadow 200ms ease,
        background 200ms ease;
}

.nav-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 80%
    );
    transform: translateX(-120%);
    transition: transform 600ms ease;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    color: #fff !important;
    background:
        linear-gradient(
            135deg,
            #ff4d4d,
            #e62e2e
        );
    transform: translateY(-2px);
    box-shadow:
        0 9px 25px rgba(255, 62, 62, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.nav-cta:hover::before {
    transform: translateX(120%);
}

.nav-toggle {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.nav-toggle:hover {
    background: rgba(255, 62, 62, 0.1);
    border-color: rgba(255, 62, 62, 0.2);
    transform: translateY(-1px);
}

.nav-toggle[aria-expanded="true"] {
    background: rgba(255, 62, 62, 0.12);
    border-color: rgba(255, 62, 62, 0.28);
}

.nav-toggle svg,
.nav-toggle img,
.nav-toggle .nav-icon {
    display: block;
    width: 21px;
    height: 21px;
}

.notif-menu,
.profile-menu {
    position: relative;
    flex: 0 0 auto;
}

.notif-trigger,
.profile-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.notif-trigger:hover,
.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.notif-trigger img,
.notif-trigger svg,
.profile-trigger img,
.profile-trigger svg {
    display: block;
    width: 19px;
    height: 19px;
}

.profile-trigger {
    overflow: visible;
    border-radius: 50%;
}

.profile-avatar {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
    transition:
        border-color 180ms ease,
        transform 180ms ease;
}

.profile-trigger:hover .profile-avatar {
    border-color: rgba(255, 62, 62, 0.55);
    transform: scale(1.03);
}

.notif-badge,
.profile-pm-badge {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid #0d0d0f;
    border-radius: 999px;
    color: #fff;
    background: var(--red-bright);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    box-shadow:
        0 2px 8px rgba(255, 62, 62, 0.4);
    pointer-events: none;
}

.notif-badge {
    top: -4px;
    right: -5px;
}

.profile-pm-badge {
    top: -4px;
    right: -4px;
}

.notif-dropdown,
.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 9500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px) scale(0.98);
    transform-origin: top right;
    transition:
        opacity 170ms ease,
        visibility 170ms ease,
        transform 170ms ease;
}

.notif-dropdown.open,
.profile-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notif-dropdown {
    width: min(390px, calc(100vw - 30px));
    max-height: min(520px, calc(100vh - 100px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            rgba(27, 27, 30, 0.98),
            rgba(16, 16, 18, 0.98)
        );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.notif-dropdown::before,
.profile-dropdown::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 62, 62, 0.35),
        transparent
    );
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-dropdown-header > span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 750;
}

.notif-mark-all {
    border: 0;
    padding: 5px 7px;
    border-radius: 6px;
    color: var(--red-bright);
    background: transparent;
    font-size: 0.72rem;
    font-weight: 650;
    cursor: pointer;
    transition: background 150ms ease;
}

.notif-mark-all:hover {
    background: rgba(255, 62, 62, 0.09);
}

.notif-search-wrap {
    position: relative;
    margin: 11px 12px;
}

.notif-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 13px;
    height: 13px;
    transform: translateY(-50%);
    pointer-events: none;
}

.notif-search-input {
    width: 100%;
    box-sizing: border-box;
    height: 35px;
    padding: 0 10px 0 31px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    outline: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.76rem;
    transition:
        border-color 160ms ease,
        background 160ms ease;
}

.notif-search-input::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.notif-search-input:focus {
    border-color: rgba(255, 62, 62, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.notif-list {
    min-height: 70px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.profile-dropdown {
    width: 245px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            rgba(28, 28, 31, 0.98),
            rgba(15, 15, 17, 0.98)
        );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 10px;
    margin-bottom: 5px;
}

.profile-dropdown-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 62, 62, 0.22);
}

.profile-dropdown-name {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    padding: 0 10px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.79rem;
    font-weight: 600;
    transition:
        color 150ms ease,
        background 150ms ease,
        transform 150ms ease;
}

.profile-dropdown-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
    transform: translateX(2px);
    text-decoration: none;
}

.profile-dropdown-icon {
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 17px;
    opacity: 0.82;
}

.profile-dropdown-pm-count {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--red-bright);
    font-size: 0.61rem;
    font-weight: 800;
}

.profile-dropdown--admin {
    color: #ff6666;
}

.profile-dropdown--admin:hover {
    color: #fff;
    background: rgba(255, 62, 62, 0.1);
}

.profile-dropdown--danger {
    color: #ff5a5a;
}

.profile-dropdown--danger:hover {
    color: #fff;
    background: rgba(255, 62, 62, 0.1);
}

.profile-dropdown-divider {
    height: 1px;
    margin: 6px 5px;
    background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 1000px) {
    .navbar-content {
        width: min(100% - 32px, 1400px);
        gap: 14px;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-links > a {
        padding: 0 9px;
        font-size: 0.82rem;
    }

    .nav-logo img {
        max-width: 165px;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: sticky;
    }

    .navbar-content {
        width: calc(100% - 24px);
        min-height: 64px;
    }

    .nav-logo {
        height: 44px;
        padding: 4px 7px;
    }

    .nav-logo img {
        max-width: 155px;
        height: 34px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        left: -6px;
        right: -6px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        margin: 0;
        padding: 8px;
        box-sizing: border-box;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        border: 1px solid transparent;
        border-top: 0;
        border-radius: 0 0 15px 15px;
        background:
            linear-gradient(
                145deg,
                rgba(22, 22, 25, 0.99),
                rgba(12, 12, 14, 0.99)
            );
        box-shadow: 0 22px 45px rgba(0, 0, 0, 0.45);
        transition:
            max-height 320ms ease,
            opacity 200ms ease,
            border-color 200ms ease;
    }

    .nav-links.is-open {
        max-height: calc(100vh - 65px);
        overflow-y: auto;
        opacity: 1;
        pointer-events: auto;
        border-color: rgba(255, 255, 255, 0.07);
    }

    .nav-links > a {
        width: 100%;
        min-height: 46px;
        justify-content: flex-start;
        padding: 0 14px;
        box-sizing: border-box;
        border-radius: 9px;
    }

    .nav-links > a::before {
        display: none;
    }

    .nav-links > a:hover,
    .nav-links > a[aria-current="page"] {
        transform: none;
    }

    .nav-cta {
        width: 100% !important;
        margin: 5px 0 !important;
        min-height: 44px !important;
        box-sizing: border-box;
    }

    .notif-menu,
    .profile-menu {
        width: 100%;
        padding: 4px 0;
    }

    .notif-trigger,
    .profile-trigger {
        width: 100%;
        height: 46px;
        border-radius: 9px;
        justify-content: flex-start;
        padding: 0 14px;
    }

    .profile-trigger {
        border-radius: 9px;
    }

    .profile-avatar {
        width: 31px !important;
        height: 31px !important;
    }

    .notif-badge,
    .profile-pm-badge {
        top: 7px;
        right: 10px;
    }

    .notif-dropdown,
    .profile-dropdown {
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 5px;
        transform: none;
        box-shadow: none;
        border-radius: 10px;
    }

    .notif-dropdown {
        max-height: 360px;
    }

    .notif-dropdown.open,
    .profile-dropdown.open {
        transform: none;
    }
}

@media (max-width: 420px) {
    .navbar-content {
        width: calc(100% - 16px);
    }

    .nav-logo img {
        max-width: 135px;
    }

    .nav-links {
        left: -2px;
        right: -2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar *,
    .navbar *::before,
    .navbar *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6rem 0 4rem;
  gap: 2rem;
}

.welcome-card {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: 0 0 50px rgba(179, 0, 0, 0.2), 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: 'Montserrat', 'Arial Black', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.hero-title span.red-text {
  color: #ff0022;
}

.hero-title span.white-text {
  color: #ffffff;
}
.monster { color: var(--red-primary); }
.team { color: #ffffff; }

.hero-subtitle {
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  font-size: 1rem;
  font-weight: 400;
}

.arrow-down {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--red-bright);
  opacity: 0.7;
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(6px); opacity: 1; }
}

.get-started-title {
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0;
}

.cta-buttons {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: 2px solid var(--red-bright);
  outline-offset: -2px;
  background: var(--red-bright);
  color: #fff;
  transition: 400ms;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn:hover {
  background: transparent;
  color: var(--red-bright);
}

.btn:active {
  transform: scale(0.97);
}

.btn-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  transition: 400ms;
}

.btn-copy:hover .btn-icon,
.btn-copy-gt:hover .btn-icon {
  filter: none;
}

.btn-discord:hover .btn-icon,
.btn-discord-log:hover .btn-icon {
  filter: brightness(0) saturate(100%) invert(35%) sepia(92%) saturate(2000%) hue-rotate(229deg) brightness(95%);
}

.btn-connect:hover .btn-icon {
  filter: brightness(0) saturate(100%) invert(25%) sepia(88%) saturate(2200%) hue-rotate(206deg) brightness(95%);
}

.btn-gametracker:hover .btn-icon {
  filter: brightness(0) saturate(100%) invert(60%) sepia(75%) saturate(350%) hue-rotate(5deg) brightness(95%);
}

.btn-discord {
  outline-color: rgba(88, 101, 242, 0.8);
  background: rgba(88, 101, 242, 0.15);
  color: #fff;
}

.btn-discord:hover {
  background: transparent;
  color: rgba(88, 101, 242, 0.9);
}

.btn-copy {
  outline-color: var(--red-bright);
  background: rgba(255, 62, 62, 0.12);
  color: #fff;
  transition: background 180ms ease, color 180ms ease;
}

.btn-copy:hover {
  background: transparent;
  color: rgba(242, 88, 88, 0.9);
}

.btn-copy.is-copied {
  outline-color: rgba(39, 243, 32, 0.9);
  background: rgba(93, 242, 88, 0.479);
  color: #fff;
}

.btn-copy-gt {
  outline-color: var(--red-bright);
  background: rgba(255, 62, 62, 0.12);
  color: #fff;
  margin: 0;
  transition: background 180ms ease, color 180ms ease;
}

.btn-copy-gt:hover {
  background: var(--red-bright);
  color: #fff;
}

.btn-copy-gt.is-copied-gt {
  outline-color: var(--color-success, #22c55e);
  background: var(--color-success, #22c55e);
  color: #fff;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.btn-connect {
  outline-color: rgba(14, 103, 204, 0.8);
  background: rgba(14, 103, 204, 0.15);
  color: #fff;
  margin: 0;
}

.btn-connect:hover {
  background: transparent;
  color: rgba(14, 103, 204, 0.9);
}

.btn-gametracker {
  outline-color: rgba(179, 116, 0, 0.8);
  background: rgba(179, 116, 0, 0.15);
  color: #fff;
}

.btn-gametracker:hover {
  background: transparent;
  color: rgba(179, 116, 0, 0.9);
}

.server-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 22px 24px;
}

.server-actions .btn {
    width: 155px;
    height: 46px;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    padding: 0 18px;
    margin-top: 12px;

    font-size: 0.92rem;
    font-weight: 600;

    white-space: nowrap;
}

.widget-title {
    margin-bottom: 12px;
    text-align: center;
    color: var(--red-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    border: 1px solid var(--red-primary);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    box-shadow: 0 0 12px rgba(170, 16, 16, 0.35);
}
.container {
  padding: 0 0 5rem;
  height: auto;
  top: 30%;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-light);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

#server-status {
  margin-top: 1.25rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

#server-status p {
  margin: 0.25rem 0;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-softer);
  margin-top: auto;
  background: rgba(0, 0, 0, 0.2);
}

.site-footer p {
    margin: 0;
}

.frame-wrap {
  position: relative;
  min-height: 100vh;
  margin: 1.5rem;
  display: flex;
  flex-direction: column;
}

.servers-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.frame-corner {
  position: absolute;
  width: 9rem;
  height: 9rem;
  pointer-events: none;
  z-index: 500;
  filter: drop-shadow(0 0 8px rgba(255, 62, 62, 0.35));
  opacity: 0.9;
}

.frame-corner--tl { top: 5.5rem; left: 0; }
.frame-corner--tr { top: 5.5rem; right: 0; }
.frame-corner--bl { bottom: 0; left: 0; border-bottom-left-radius: 2rem; }
.frame-corner--br { bottom: 0; right: 0; border-bottom-right-radius: 2rem; }

@media (max-width: 1024px) {
  .frame-corner {
    width: 7rem;
    height: 7rem;
  }
}

@media (max-width: 768px) {
  .frame-wrap {
    margin: 0.75rem;
  }

  .frame-corner {
    width: 5rem;
    height: 5rem;
    opacity: 0.6;
  }

  .frame-corner--tl { top: 4.5rem; }
  .frame-corner--tr { top: 4.5rem; }
}

@media (max-width: 480px) {
  .frame-wrap {
    margin: 0.5rem;
  }

  .frame-corner {
    width: 3.5rem;
    height: 3.5rem;
    opacity: 0.5;
  }

  .frame-corner--tl { top: 4rem; }
  .frame-corner--tr { top: 4rem; }
}

.dragon-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(255, 62, 62, 0.35));
}

.dragon-svg--flip-x  { transform: scaleX(-1); }
.dragon-svg--flip-y  { transform: scaleY(-1); }
.dragon-svg--flip-xy { transform: scale(-1, -1); }

.dragon-flame {
  animation: flame-flicker 2.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes flame-flicker {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.9;  transform: scale(1.15); }
}
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem 2.25rem;
  box-shadow: 0 0 60px rgba(179, 0, 0, 0.18), 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-brand img {
  height: 2.5rem;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(255, 42, 42, 0.35));
}

.auth-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text-light);
}

.auth-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.field {
  margin-bottom: 1.15rem;
  text-align: left;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.field-control {
  position: relative;
}

.field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input::placeholder { color: var(--text-faint); }

.field input:focus {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(255, 62, 62, 0.15);
  outline: none;
}

.field.has-error input {
  border-color: var(--red-accent);
}

.field-error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--red-bright);
}

.field.has-error .field-error { display: block; }

.field-toggle {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
}

.field-toggle:hover { color: var(--text-muted); }
.field-toggle svg { width: 1.05rem; height: 1.05rem; }
.auth-card .field {
  margin-bottom: 1.6rem;
}
.auth-card .wave-group {
  position: relative;
}
.auth-card .wave-group .input {
  font-size: 0.95rem;
  font-family: inherit;
  padding: 0.6rem 2.2rem 0.6rem 0.1rem;
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-light);
  border-radius: 0;
}
.auth-card .wave-group .input:focus {
  outline: none;
}
.auth-card .wave-group .label {
  color: var(--text-faint);
  font-size: 0.95rem;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 0.1rem;
  top: 0.65rem;
  display: flex;
}
.auth-card .wave-group .label-char {
  transition: 0.2s ease all;
  transition-delay: calc(var(--index) * .05s);
  white-space: pre
}
.auth-card .wave-group .input:focus ~ .label .label-char,
.auth-card .wave-group .input:valid ~ .label .label-char {
  transform: translateY(-1.15rem);
  font-size: 0.75rem;
  color: var(--red-bright);
  white-space: pre
}
.auth-card .wave-group .bar {
  position: relative;
  display: block;
  width: 100%;
}
.auth-card .wave-group .bar::before,
.auth-card .wave-group .bar::after {
  content: '';
  height: 2px;
  width: 0;
  bottom: 1px;
  position: absolute;
  background: var(--red-bright);
  transition: 0.2s ease all;
}
.auth-card .wave-group .bar::before { left: 50%; }
.auth-card .wave-group .bar::after { right: 50%; }
.auth-card .wave-group .input:focus ~ .bar::before,
.auth-card .wave-group .input:focus ~ .bar::after {
  width: 50%;
}
.auth-card .field.has-error .wave-group .input {
  border-bottom-color: var(--red-accent);
}
.auth-card .field.has-error .wave-group .bar::before,
.auth-card .field.has-error .wave-group .bar::after {
  background: var(--red-accent);
  width: 50%;
}
.auth-card .field.has-error .wave-group .label .label-char {
  color: var(--red-accent);
}
.auth-card .wave-group .field-toggle {
  top: 0.5rem;
  transform: none;
  right: 0;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  margin: 0.25rem 0 1.5rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
}

.remember-me input {
  accent-color: var(--red-bright);
  width: 0.95rem;
  height: 0.95rem;
}

.auth-link {
  color: var(--red-bright);
  text-decoration: none;
}

.auth-link:hover { text-decoration: underline; }

.btn-primary {
  justify-content: center;
  background: var(--red-bright);
  outline: 2px solid var(--red-bright);
  outline-offset: -2px;
  color: #fff;
  padding: 0.65rem 1.4rem;
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: 400ms;
}
.btn-primary--block,
form .btn-primary,
.auth-form .btn-primary,
.modal .btn-primary {
  width: 100%;
}

.btn-primary:hover {
  background: transparent;
  color: var(--red-bright);
}

.btn-primary-pm {
  justify-content: center;
  background: var(--red-bright);
  outline: 2px solid var(--red-bright);
  outline-offset: -2px;
  color: #fff;
  padding: 0.30rem 1.4rem;
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: 400ms;
}

.btn-primary-pm:hover {
  background: transparent;
  color: var(--red-bright);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.65rem 0;
  color: var(--text-faint);
  font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

.btn-google {
  width: 100%;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: -2px;
  color: #fff;
  border: none;
  transition: 400ms;
}

.btn-google:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
}

.btn-discord-log {
  width: 100%;
  justify-content: center;
  background: rgba(88, 101, 242, 0.15);
  outline: 2px solid rgba(88, 101, 242, 0.5);
  outline-offset: -2px;
  color: #fff;
  border: none;
  margin-top: 10px;
  transition: 400ms;
}

.btn-discord-log:hover {
  background: transparent;
  color: rgba(88, 101, 242, 0.9);
}

.auth-footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.75rem;
}

.form-banner {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.form-banner.is-visible { display: flex; }

.form-banner--error {
  background: rgba(255, 42, 42, 0.12);
  border: 1px solid rgba(255, 42, 42, 0.3);
  color: #ffb3b3;
}

.form-banner--success {
  background: rgba(0, 179, 90, 0.12);
  border: 1px solid rgba(0, 179, 90, 0.3);
  color: #8ef0b8;
}
.toast-stack {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 1000;
}

.toast {
  background: var(--bg-notification);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  animation: toast-in 220ms var(--ease) both;
}

.toast--error { border-color: rgba(255, 42, 42, 0.4); }
.toast--success { border-color: rgba(0, 179, 90, 0.4); }

.toast.is-leaving {
  animation: toast-out 200ms var(--ease) both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 480px) {
  .auth-card { padding: 2.25rem 1.5rem; }
  .toast-stack { left: 1rem; right: 1rem; }
}

.profile-menu {
  position: relative;
  flex-shrink: 0;
}

.profile-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  transition: transform 150ms var(--ease);
}

.profile-trigger:hover {
}

.profile-trigger:active {
  transform: scale(0.95);
}

.profile-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-soft);
}

.profile-trigger:hover .profile-avatar {
  border-color: var(--red-bright);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 0.5rem;
  display: none;
  z-index: 1000;
}

.profile-dropdown.open {
  display: block;
}

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem;
  margin-bottom: 0.3rem;
}

.profile-dropdown-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-dropdown-name {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.9rem;
}

.profile-dropdown-item {
  display: block;
  padding: 0.55rem 0.6rem;
  border-radius: 6px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.88rem;
}

.profile-dropdown-item:hover {
  background: var(--bg-card-hover);
}

.profile-dropdown--danger {
  color: var(--red-bright);
}

.profile-dropdown-divider {
  height: 1px;
  background: var(--border-softer);
  margin: 0.4rem 0.2rem;
}

.profile-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.profile-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2rem;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

.profile-banner {
  height: 260px;
  background: var(--gradient);
  background-size: cover;
  background-position: center;
}

.profile-identity {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 0 2.5rem;
  margin-top: -64px;
}

.profile-page-avatar {
  width: 140px;
  height: 140px;
  min-width: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--bg-card);
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-identity-text {
  flex: 1;
  padding-bottom: 0.75rem;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.profile-identity-text h1 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.profile-name-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.profile-name-badge .forum-post-role,
.profile-name-badge .rank-badge {
  display: inline-block;
}

.profile-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 2.5rem 0;
}

.profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.profile-joined {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-edit-btn {
  margin-bottom: 0.5rem;
  flex-shrink: 0;
  width: auto !important;
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

.profile-divider {
  height: 1px;
  background: var(--border-softer);
  margin: 2rem 2.5rem 0;
}

.profile-body {
  padding: 2rem 2.5rem 2.75rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
}

@media (max-width: 720px) {
  .profile-body {
    grid-template-columns: 1fr;
  }
  .profile-identity {
    flex-direction: column;
    align-items: flex-start;
    margin-top: -48px;
  }
  .profile-page-avatar {
    width: 100px;
    height: 100px;
    min-width: 100px;
  }
  .profile-edit-btn {
    margin-bottom: 0;
  }
}

.profile-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin: 0 0 0.85rem;
}

.profile-bio {
  margin: 0;
  color: var(--text-light);
  line-height: 1.75;
  font-size: 0.98rem;
}

.profile-bio--empty {
  color: var(--text-faint);
  font-style: italic;
}
.profile-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.button-icon {
  display: flex;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-sm);
  width: fit-content;
  height: fit-content;
  cursor: pointer;
  overflow: hidden;
  background: none;
  padding: 0;
  font: inherit;
  text-decoration: none;
}
.button-icon .icon {
  background-color: var(--text-light);
  padding: 0.55rem 0.55rem 0.4rem 0.55rem;
  display: flex;
  align-items: center;
}
.button-icon .icon img {
  width: 20px;
  height: 20px;
  display: block;
}
.button-icon .cube {
  transition: all 0.4s;
  transform-style: preserve-3d;
  width: 140px;
  height: 20px;
  position: relative;
}
.button-icon:hover {
  border-color: var(--red-bright);
}
.button-icon:hover .cube {
  transform: rotateX(90deg);
}
.button-icon .side {
  position: absolute;
  height: 33px;
  width: 140px;
  display: flex;
  font-size: 0.72rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.button-icon .top {
  background: var(--red-bright);
  color: #fff;
  transform: rotateX(-90deg) translate3d(0, 9.5px, 1.4em);
}
.button-icon .front {
  background: var(--bg-input);
  color: var(--text-light);
  transform: translate3d(0, 0, 0.7em);
}
.social-cube--copy {
  -webkit-appearance: none;
  appearance: none;
}
.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}

.profile-stat-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.profile-stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
}

.settings-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
}

.settings-card h2 {
  font-size: 1.1rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.settings-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.4rem 0 0;
}

.social-field label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.upload-preview {
  flex-shrink: 0;
  background-color: var(--bg-input);
  border: 1px solid var(--border-soft);
}

.upload-preview--avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.upload-preview--banner {
  width: 140px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
}

.upload-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.upload-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  user-select: none;
}

.upload-field input[type="file"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-light);
  font-size: 0.875rem;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

.upload-field input[type="file"]:hover {
  border-color: var(--red-accent);
  background: var(--bg-input-hover);
}

.upload-field input[type="file"]:focus {
  outline: none;
  border-color: var(--red-accent);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.upload-field input[type="file"]::file-selector-button {
  margin-right: 1rem;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--red-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.15s ease;
}

.upload-field input[type="file"]::file-selector-button:hover {
  background: rgba(220, 38, 38, 0.85);
  border-color: rgba(220, 38, 38, 0.95);
}

.upload-field input[type="file"]::file-selector-button:active {
  background: rgba(220, 38, 38, 0.75);
  transform: scale(0.98);
}

.upload-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.settings-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}

.settings-form textarea:focus {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(255, 62, 62, 0.15);
  outline: none;
}

.notif-menu {
  position: relative;
  flex-shrink: 0;
}

.notif-trigger {
  position: relative;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.notif-trigger:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.04);
}

.notif-trigger svg, .notif-trigger img.nav-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.notif-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red-bright);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 400px;
  max-width: calc(100vw - 2rem);
  max-height: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: visible;
}

.notif-dropdown.open {
  display: flex;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-softer);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-light);
}

.notif-mark-all {
  background: none;
  border: none;
  color: var(--red-bright);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.notif-mark-all:hover {
  text-decoration: underline;
}

.notif-list {
  overflow-y: auto;
}

.notif-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  margin: 0;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-softer);
  position: relative;
}

.notif-item-link {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.notif-item-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: var(--bg-card-hover);
}

.notif-item--unread {
  background: rgba(255, 62, 62, 0.06);
}

.notif-item-delete {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 150ms ease, background 150ms ease;
}

.notif-item:hover .notif-item-delete {
  opacity: 1;
}

.notif-item-delete:hover {
  background: rgba(255, 62, 62, 0.15);
}

.notif-search-wrap {
  position: relative;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-softer);
}

.notif-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.6;
}

.notif-search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xs);
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem 0.4rem 1.75rem;
  outline: none;
  font-family: inherit;
  transition: border-color 150ms ease;
}

.notif-search-input:focus {
  border-color: var(--border-red-bright);
}

.notif-search-input::placeholder {
  color: var(--text-faint);
}

.notif-item-message {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.4;
}

.notif-item-time {
  color: var(--text-faint);
  font-size: 0.72rem;
}

.settings-select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
}

.settings-select:focus {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(255, 62, 62, 0.15);
  outline: none;
}

.profile-private-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.profile-private-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.profile-private-card h1 {
  color: var(--text-light);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.profile-private-card p {
  margin: 0;
  font-size: 0.9rem;
}

.page.forum-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
  max-width: 1200px;
}

.forum-header {
  margin-bottom: 2rem;
  }

.forum-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-light);
  margin: 0 0 0.35rem;
}

.forum-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.forum-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-faint);
  flex-wrap: wrap;
}

.forum-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.forum-breadcrumb a:hover {
  color: var(--red-bright);
}

.forum-breadcrumb span {
  color: var(--text-light);
  font-weight: 500;
}

.forum-breadcrumb-sep {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-faint);
}

.forum-categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  }

.forum-category-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background 150ms ease, border-color 150ms ease;
}

.forum-category-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 62, 62, 0.3);
}

.forum-category-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(179, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  color: var(--red-bright);
  flex-shrink: 0;
}

.forum-category-icon svg {
  width: 22px;
  height: 22px;
}

.forum-category-info h2 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
}

.forum-category-info p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.forum-category-stats {
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
}

.forum-category-latest {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0.5rem 0.65rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  max-width: fit-content;
}

.forum-category-latest-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.forum-latest-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.forum-latest-meta {
  font-size: 0.72rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.forum-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.forum-stat-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1;
}

.forum-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

.forum-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-soft);
}

.forum-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-soft);
  flex-shrink: 0;
}

.forum-avatar-xs {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.forum-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  }

.forum-topics-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  }

.forum-topic-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background 150ms ease, border-color 150ms ease;
}

.forum-topic-row:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 62, 62, 0.4);
}

.forum-topic-row--pinned {
  border-left: 3px solid var(--red-bright);
  background: rgba(179, 0, 0, 0.06);
}

.forum-topic-row--locked {
  opacity: 0.7;
}

.forum-topic-row--locked:hover {
  opacity: 1;
}

.forum-topic-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.forum-topic-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.forum-topic-content {
  min-width: 0;
  overflow: hidden;
}

.forum-topic-content h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forum-topic-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex-shrink: 0;
}

.forum-topic-author > img {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.forum-topic-author > span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-topic-author a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
}

.forum-topic-author a:hover {
  color: var(--red-bright);
}

.forum-topic-author strong {
  color: var(--text-light);
  font-weight: 600;
}

.forum-topic-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.forum-topic-stat img {
  opacity: 0.7;
}

.forum-topic-meta {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.forum-topic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.forum-topic-badge--pinned {
  background: rgba(255, 62, 62, 0.15);
  color: var(--red-bright);
  border: 1px solid rgba(255, 62, 62, 0.3);
}

.forum-topic-badge--locked {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-faint);
  border: 1px solid var(--border-soft);
}

.forum-topic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  }

.forum-topic-header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex-wrap: wrap;
  flex: 1;
  flex-direction: column;
}

.forum-topic-header-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.3rem;
}

.forum-topic-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.forum-post {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  }

.forum-post--op {
  border-color: rgba(255, 62, 62, 0.15);
  box-shadow: 0 0 30px rgba(179, 0, 0, 0.1);
}

.forum-post-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.forum-post-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  transition: color 150ms ease;
}

.forum-post-author:hover {
  color: var(--red-bright);
}

.forum-post-role {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}

.forum-post-role--admin {
  background: rgba(255, 62, 62, 0.15);
  color: var(--red-bright);
  border: 1px solid rgba(255, 62, 62, 0.3);
}

.forum-post-role--moderator {
  background: rgba(255, 170, 0, 0.12);
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.25);
}

.forum-post-role--member {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-faint);
  border: 1px solid var(--border-softer);
}

.forum-post-date {
  font-size: 0.72rem;
  color: var(--text-faint);
}

.forum-post-body {
  min-width: 0;
}

.forum-post-content {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.forum-post-edited {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: var(--text-faint);
}

.forum-post-actions-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-softer);
}

.forum-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 150ms ease, color 150ms ease;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.forum-action-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
}

.forum-action-link--danger {
  color: var(--red-bright);
}

.forum-action-link--danger:hover {
  background: rgba(255, 42, 42, 0.1);
  color: var(--red-bright);
}

.forum-delete-form {
  display: inline;
}

.forum-replies-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 0.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-softer);
}

.forum-replies-header h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.forum-reply-form-card {
  margin-top: 2rem;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  }

.forum-reply-form-card > form {
  padding: 1.75rem 2rem 2rem;
}

.forum-reply-form-card h2 {
  margin: 0;
  padding: 1.25rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  background: linear-gradient(135deg, rgba(179, 0, 0, 0.12), rgba(255, 62, 62, 0.04));
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.forum-reply-form-card h2::before {
  content: '';
  width: 4px;
  height: 1.1rem;
  background: var(--red-bright);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 62, 62, 0.4);
}

.forum-reply-form-card .field {
  margin-bottom: 1.25rem;
}

.forum-reply-form-card .field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.forum-reply-form-card .bbcode-toolbar {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: none;
  padding: 0.6rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
}

.forum-reply-form-card textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  color: var(--text-light);
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.65;
  resize: vertical;
  min-height: 160px;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}

.forum-reply-form-card textarea:focus {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(255, 62, 62, 0.12);
  outline: none;
  background: rgba(19, 19, 22, 0.95);
}

.forum-reply-form-card textarea::placeholder {
  color: var(--text-faint);
}

.forum-reply-form-card .btn-primary {
  width: auto;
  min-width: 140px;
  padding: 0.7rem 1.75rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.forum-locked-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-faint);
  font-size: 0.88rem;
}

.forum-login-notice {
  display: flex;
  justify-content: center;
  padding: 2rem;
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

.forum-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  }

.forum-empty-icon {
  width: 3rem;
  height: 3rem;
  color: var(--text-faint);
  margin-bottom: 1rem;
  opacity: 0.6;
}

.forum-empty-state h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
}

.forum-empty-state p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.forum-form-card {
  max-width: 720px;
  }

.forum-form-card h2 {
  margin-bottom: 0.25rem;
}

.forum-form-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  outline: 2px solid var(--border-soft);
  outline-offset: -2px;
  border: none;
  cursor: pointer;
  transition: 400ms;
  font-family: inherit;
}

.btn-sm:hover {
  background: transparent;
  color: var(--text-light);
  outline-color: rgba(255, 255, 255, 0.3);
}

.btn-sm--active {
  background: rgba(255, 62, 62, 0.12);
  color: var(--red-bright);
  outline-color: rgba(255, 62, 62, 0.4);
}

.btn-sm--active:hover {
  background: rgba(255, 62, 62, 0.2);
}

@media (max-width: 768px) {
  .forum-category-card {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .forum-category-stats {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 1.5rem;
    padding-left: 3.25rem;
  }

  .forum-category-latest {
    grid-column: 1 / -1;
    padding-left: 3.25rem;
  }

  .forum-topic-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .forum-topic-right {
    width: 100%;
    justify-content: space-between;
    padding-left: 2.5rem;
  }

  .forum-post {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .forum-post-sidebar {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  .forum-post-role {
    order: 3;
  }

  .forum-post-date {
    order: 4;
    margin-left: auto;
  }

  .forum-topic-header {
    flex-direction: column;
  }

  .forum-topic-header-left {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .forum-category-card {
    padding: 1rem;
  }

  .forum-topic-row {
    padding: 0.85rem 1rem;
  }

  .forum-post {
    padding: 1rem;
  }

  .forum-reply-form-card {
    padding: 1.25rem;
  }
}

.page.admin-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
  max-width: 1200px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.admin-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-light);
  margin: 0 0 0.35rem;
}

.admin-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.admin-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  overflow-x: auto;
}

.admin-tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}

.admin-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
}

.admin-tab--active {
  background: rgba(179, 0, 0, 0.15);
  color: var(--red-bright);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.admin-stat-card:hover {
  border-color: rgba(255, 62, 62, 0.15);
}

.admin-stat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.admin-stat-icon svg {
  width: 22px;
  height: 22px;
}

.admin-stat-icon--users {
  background: rgba(255, 62, 62, 0.12);
  color: var(--red-bright);
}

.admin-stat-icon--categories {
  background: rgba(0, 179, 90, 0.12);
  color: #48ff8b;
}

.admin-stat-icon--topics {
  background: rgba(255, 170, 0, 0.12);
  color: #ffaa00;
}

.admin-stat-icon--replies {
  background: rgba(100, 149, 237, 0.12);
  color: #6495ed;
}

.admin-stat-info {
  display: flex;
  flex-direction: column;
}

.admin-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1;
}

.admin-stat-label {
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
}

.admin-section {
  margin-bottom: 2rem;
}

.admin-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 0 0 0.35rem;
}

.admin-section-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 1.25rem;
}

.admin-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.88rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table thead {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border-softer);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-softer);
  color: var(--text-light);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.admin-table a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 150ms ease;
}

.admin-table a:hover {
  color: var(--red-bright);
}

.admin-date-cell {
  white-space: nowrap;
  color: var(--text-muted) !important;
  font-size: 0.8rem;
}

.admin-row--banned {
  opacity: 0.55;
}

.admin-row--banned:hover {
  opacity: 0.8;
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.admin-badge {
  display: inline-flex;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.admin-badge--normal {
  background: rgba(0, 179, 90, 0.12);
  color: #48ff8b;
  border: 1px solid rgba(0, 179, 90, 0.25);
}

.admin-badge--pin {
  background: rgba(255, 62, 62, 0.12);
  color: var(--red-bright);
  border: 1px solid rgba(255, 62, 62, 0.3);
}

.admin-badge--lock {
  background: rgba(255, 170, 0, 0.1);
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.25);
}

.admin-badge--banned {
  background: rgba(255, 42, 42, 0.12);
  color: #ff6b6b;
  border: 1px solid rgba(255, 42, 42, 0.3);
}

.admin-badge--role-admin {
  background: rgba(255, 62, 62, 0.15);
  color: var(--red-bright);
  border: 1px solid rgba(255, 62, 62, 0.3);
}

.admin-badge--role-moderator {
  background: rgba(255, 170, 0, 0.12);
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.25);
}

.admin-badge--role-member {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-faint);
  border: 1px solid var(--border-softer);
}

.admin-self-note {
  font-size: 0.7rem;
  color: var(--text-faint);
  font-style: italic;
  margin-left: 0.3rem;
}

.admin-inline-form {
  display: inline;
}

.admin-select {
  padding: 0.3rem 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 150ms ease;
}

.admin-select:focus {
  outline: none;
  border-color: var(--red-bright);
}

.admin-btn-group {
  display: flex;
  gap: 0.3rem;
}

.admin-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  font-family: inherit;
}

.admin-btn-action:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.admin-btn-action--active {
  background: rgba(255, 62, 62, 0.12);
  color: var(--red-bright);
  border-color: rgba(255, 62, 62, 0.3);
}

.admin-btn-action--ban {
  color: #ff6b6b;
}

.admin-btn-action--ban:hover {
  background: rgba(255, 42, 42, 0.1);
  color: var(--red-bright);
}

.admin-btn-action--unban {
  color: #48ff8b;
}

.admin-btn-action--unban:hover {
  background: rgba(0, 179, 90, 0.1);
}

.admin-btn-action--edit {
  color: var(--text-muted);
}

.admin-btn-action--edit:hover {
  color: var(--text-light);
}

.admin-sub-card {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.admin-sub-card h3 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
}

.admin-inline-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-field-inline {
  margin-bottom: 0 !important;
}

.admin-field-inline input {
  padding: 0.55rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.admin-field-inline input::placeholder {
  color: var(--text-faint);
}

.admin-field-inline input:focus {
  outline: none;
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(255, 62, 62, 0.15);
}

.admin-edit-form--hidden {
  display: none;
}

.admin-edit-form {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-header {
    flex-direction: column;
    gap: 1rem;
  }

  .admin-tabs {
    gap: 0;
  }

  .admin-tab {
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
  }

  .admin-tab svg {
    display: none;
  }

  .admin-inline-row {
    flex-direction: column;
  }

  .admin-field-inline input {
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-btn-group {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-stat-card {
    padding: 1rem 1.25rem;
  }
}

.forum-category-card {
  position: relative;
  overflow: hidden;
}

.forum-category-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(255, 62, 62, 0.04) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 400ms var(--ease);
  pointer-events: none;
  z-index: 0;
}

.forum-category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.01) 100%
  );
  opacity: 0;
  transition: opacity 400ms var(--ease);
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

.forum-category-card:hover::before,
.forum-category-card:hover::after {
  opacity: 1;
}

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

.card-glow {
  position: relative;
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    var(--red-bright),
    var(--red-primary),
    var(--red-deep),
    var(--red-primary),
    var(--red-bright)
  );
  background-size: 300% 300%;
  opacity: 0;
  z-index: -1;
  transition: opacity 400ms var(--ease);
  animation: glow-rotate 6s linear infinite;
}

.card-glow:hover::before {
  opacity: 1;
}

.card-glow:hover {
  border-color: transparent;
    0 0 20px rgba(255, 62, 62, 0.12),
    0 0 60px rgba(179, 0, 0, 0.08);
}

@keyframes glow-rotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.admin-stat-card {
  transition:
    border-color 250ms var(--ease),
    box-shadow 250ms var(--ease),
    transform 250ms var(--ease);
}

.admin-stat-card:hover {
    0 8px 30px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 62, 62, 0.1);
}

.admin-tab {
  transition:
    background 200ms var(--ease),
    color 200ms var(--ease),
    transform 200ms var(--ease);
}

.admin-tab:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
}

.forum-replies::-webkit-scrollbar,
.admin-table-wrap::-webkit-scrollbar,
.forum-topics-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.forum-replies::-webkit-scrollbar-track,
.admin-table-wrap::-webkit-scrollbar-track,
.forum-topics-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}

.forum-replies::-webkit-scrollbar-thumb,
.admin-table-wrap::-webkit-scrollbar-thumb,
.forum-topics-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  transition: background 200ms ease;
}

.forum-replies::-webkit-scrollbar-thumb:hover,
.admin-table-wrap::-webkit-scrollbar-thumb:hover,
.forum-topics-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 62, 62, 0.35);
}

.forum-replies,
.admin-table-wrap,
.forum-topics-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) rgba(255, 255, 255, 0.02);
}

.forum-replies:hover,
.admin-table-wrap:hover,
.forum-topics-list:hover {
  scrollbar-color: rgba(255, 62, 62, 0.3) rgba(255, 255, 255, 0.02);
}

@keyframes empty-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.08);
  }
}

.forum-empty-icon {
  animation: empty-pulse 3s ease-in-out infinite;
}

.forum-topic-row--pinned {
  border-left: 3px solid var(--red-bright);
  position: relative;
}

.forum-topic-row--pinned::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(
    to bottom,
    var(--red-bright),
    var(--red-deep),
    var(--red-bright)
  );
  background-size: 100% 200%;
  animation: pinned-border-flow 3s ease-in-out infinite;
}

@keyframes pinned-border-flow {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 0% 100%; }
}

@keyframes banned-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 42, 42, 0.4);
  }
  50% {
    box-shadow: 0 0 8px 2px rgba(255, 42, 42, 0.15);
  }
}

.admin-badge--banned {
  animation: banned-pulse 2.5s ease-in-out infinite;
}

.forum-reply-form-card textarea,
.forum-form-card textarea {
  transition:
    border-color 200ms var(--ease),
    box-shadow 200ms var(--ease),
    background 200ms var(--ease);
}

.forum-reply-form-card textarea:focus,
.forum-form-card textarea:focus {
  border-color: var(--red-bright);
  box-shadow:
    0 0 0 3px rgba(255, 62, 62, 0.15),
    0 0 20px rgba(255, 62, 62, 0.06),
    inset 0 0 12px rgba(255, 62, 62, 0.03);
  background: rgba(19, 19, 22, 0.95);
  outline: none;
}

@keyframes chevron-bounce {
  0%   { transform: translateX(0); }
  30%  { transform: translateX(2px) scale(1.15); }
  60%  { transform: translateX(-1px) scale(0.95); }
  100% { transform: translateX(0) scale(1); }
}

.admin-table tbody tr {
  transition:
    background 180ms var(--ease),
    box-shadow 180ms var(--ease);
  position: relative;
}

.admin-table tbody tr:hover {
  background: linear-gradient(
    to right,
    rgba(255, 62, 62, 0.04),
    var(--bg-card-hover) 20%,
    var(--bg-card-hover)
  );
    inset 3px 0 0 var(--red-primary),
    0 2px 8px rgba(0, 0, 0, 0.15);
}

.admin-table tbody tr:active {
  background: rgba(255, 62, 62, 0.08);
}

@keyframes stat-number-in {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.95);
    filter: blur(4px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.admin-stat-number {
  animation: stat-number-in 600ms var(--ease) both;
}

.admin-stat-card:nth-child(1) .admin-stat-number { animation-delay: 100ms; }
.admin-stat-card:nth-child(2) .admin-stat-number { animation-delay: 200ms; }
.admin-stat-card:nth-child(3) .admin-stat-number { animation-delay: 300ms; }
.admin-stat-card:nth-child(4) .admin-stat-number { animation-delay: 400ms; }

.forum-post--op {
  border-left: 4px solid var(--red-bright);
  position: relative;
  box-shadow:
    0 0 30px rgba(179, 0, 0, 0.1),
    inset 3px 0 0 var(--red-bright);
}

.forum-post--op::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 62, 62, 0.04) 0%,
    transparent 40%
  );
  pointer-events: none;
}

.profile-dropdown-role {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.profile-dropdown-role--admin {
  background: rgba(255, 62, 62, 0.15);
  color: var(--red-bright);
  border: 1px solid rgba(255, 62, 62, 0.3);
}

.profile-dropdown-role--moderator {
  background: rgba(255, 170, 0, 0.12);
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.25);
}

.profile-dropdown-role--member {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-faint);
  border: 1px solid var(--border-softer);
}

@keyframes reply-highlight {
  0% {
    background-color: rgba(255, 62, 62, 0.12);
    box-shadow: 0 0 0 2px rgba(255, 62, 62, 0.3);
  }
  40% {
    background-color: rgba(255, 62, 62, 0.06);
    box-shadow: 0 0 0 1px rgba(255, 62, 62, 0.15);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
  }
}

.forum-post:target,
.forum-post--highlight {
  border-color: rgba(255, 62, 62, 0.25);
}

.forum-reply-form-card textarea,
.forum-form-card textarea {
  transition:
    border-color 200ms var(--ease),
    box-shadow 200ms var(--ease),
    background 200ms var(--ease),
    height 300ms var(--ease);
  min-height: 120px;
}

.admin-tab--active {
  position: relative;
}

.admin-tab--active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--red-bright);
  border-radius: 1px;
  box-shadow:
    0 0 8px rgba(255, 62, 62, 0.5),
    0 0 20px rgba(255, 62, 62, 0.2);
  animation: tab-indicator-in 300ms var(--ease) both;
}

@keyframes tab-indicator-in {
  from {
    width: 0%;
    opacity: 0;
  }
  to {
    width: 60%;
    opacity: 1;
  }
}

@keyframes shimmer-slide {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

.forum-shimmer {
  position: relative;
  overflow: hidden;
  background: var(--bg-card) !important;
  color: transparent !important;
  border-radius: var(--radius-sm);
  min-height: 1em;
  min-width: 3em;
}

.forum-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 20%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 80%,
    transparent 100%
  );
  background-size: 800px 100%;
  animation: shimmer-slide 1.8s ease-in-out infinite;
}

.forum-shimmer--text {
  height: 0.9em;
  margin-bottom: 0.5em;
  border-radius: 0.25em;
}

.forum-shimmer--title {
  height: 1.2em;
  width: 60%;
  margin-bottom: 0.75em;
  border-radius: 0.25em;
}

.forum-shimmer--avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.forum-shimmer--card {
  width: 100%;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  min-height: 60px;
}

.forum-shimmer--row {
  display: flex;
  gap: 1rem;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  min-height: 44px;
}

@media (max-width: 768px) {
  .forum-post {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-lg);
  }

  .forum-post-sidebar {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-softer);
  }

  .forum-post-sidebar .forum-avatar {
    width: 40px;
    height: 40px;
    border-width: 2px;
  }

  .forum-post-sidebar .forum-post-author {
    font-size: 0.88rem;
  }

  .forum-post-role {
    order: 3;
    margin-left: auto;
  }

  .forum-post-date {
    order: 4;
    margin-left: 0;
  }

  .forum-post-actions-bar {
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-top: 0.6rem;
  }

  .forum-post-content {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .forum-post--op {
    border-left: none;
    border-top: 4px solid var(--red-bright);
    box-shadow:
      0 0 30px rgba(179, 0, 0, 0.1),
      inset 0 3px 0 var(--red-bright);
  }

  .forum-post--op::before {
    background: linear-gradient(
      to bottom,
      rgba(255, 62, 62, 0.04) 0%,
      transparent 30%
    );
  }
}

@media (max-width: 480px) {
  .forum-post {
    padding: 1rem;
    gap: 0.75rem;
  }

  .forum-post-sidebar {
    gap: 0.6rem;
  }

  .forum-post-sidebar .forum-avatar {
    width: 36px;
    height: 36px;
  }

  .forum-post-content {
    font-size: 0.85rem;
  }

  .forum-action-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.74rem;
  }
}

.forum-search-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 100%;
  transition: border-color 150ms ease;
}

.forum-search-bar:focus-within {
  border-color: rgba(255, 62, 62, 0.35);
}

.forum-search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-faint);
  flex-shrink: 0;
}

.forum-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-light);
  font-size: 0.88rem;
  font-family: inherit;
  padding: 0.5rem 0;
  min-width: 0;
}

.forum-search-input::placeholder {
  color: var(--text-faint);
}

.forum-search-results {
  margin-bottom: 1.5rem;
  width: 100%;
}

.forum-search-results .forum-topics-list {
  width: 100%;
}

.forum-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 1.5rem;
  padding: 0.5rem 0;
}

.forum-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.forum-page-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-light);
  border-color: rgba(255, 62, 62, 0.2);
  transform: translateY(-1px);
}

.forum-page-btn--active {
  background: rgba(179, 0, 0, 0.2);
  color: var(--red-bright);
  border-color: rgba(255, 62, 62, 0.4);
  box-shadow: 0 0 12px rgba(255, 62, 62, 0.15);
}

.forum-page-btn--active:hover {
  background: rgba(179, 0, 0, 0.28);
}

.forum-page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .forum-search-bar {
    max-width: 100%;
  }

  .forum-page-btn {
    min-width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

.home-forum-preview {
  padding: 2.5rem 0 0;
}

.home-stats-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.home-stat-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.home-stat-mini:hover {
  border-color: rgba(255, 62, 62, 0.2);
  transform: translateY(-2px);
}

.home-stat-mini-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1;
}

.home-stat-mini-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  font-weight: 600;
}

.home-recent-topics {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.home-topic-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background 150ms ease, border-color 150ms ease;
}

.home-topic-link:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 62, 62, 0.3);
}

.home-topic-link-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.home-topic-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.home-topic-link-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.home-topic-link-left h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.home-topic-link-left p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.home-topic-replies {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .home-stats-row {
    gap: 0.75rem;
  }

  .home-stat-mini {
    padding: 0.6rem 1rem;
    flex: 1 1 calc(33.333% - 0.75rem);
    min-width: 90px;
  }

  .home-stat-mini-number {
    font-size: 1.25rem;
  }

  .home-topic-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .home-topic-link-left h3 {
    max-width: 100%;
    white-space: normal;
  }

  .home-topic-replies {
    align-self: flex-end;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3.5rem 0 3rem;
    gap: 1.5rem;
  }

  .welcome-card {
    padding: 2.25rem 1.5rem;
  }

  .cta-buttons {
    gap: 0.6rem;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .home-forum-preview {
    padding: 2rem 0 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }

  .welcome-card {
    padding: 1.75rem 1.25rem;
  }

  .cta-buttons .btn {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .server-card {
    margin: 1.5rem auto 0;
    max-width: 100%;
  }

  .server-card-header {
    padding: 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .server-card-title {
    gap: 12px;
  }

  .server-card-title img {
    width: 44px;
    height: 44px;
  }

  .server-card-title h1, .server-card-title h2 {
    font-size: 1.1rem;
  }

  .server-card-body {
    padding: 1rem 1.25rem;
  }

  .gametracker img {
    width: 100%;
    height: auto;
  }

  .server-actions {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1.25rem 1.5rem;
  }

  .server-actions .btn {
    width: 100%;
    height: auto;
    padding: 0.7rem 1rem;
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .auth-shell {
    padding: 1.5rem 1rem;
  }

  .auth-card {
    padding: 2rem 1.25rem 1.5rem;
  }

  .auth-title {
    font-size: 1.35rem;
  }

  .auth-subtitle {
    font-size: 0.85rem;
  }

  .btn-google,
  .btn-discord-log {
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
  }

  .btn-google img,
  .btn-discord-log img {
    width: 20px !important;
    height: auto;
  }
}

@media (max-width: 768px) {
  .settings-page {
    padding-top: 1.5rem;
  }

  .settings-title {
    font-size: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .upload-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .upload-preview {
    align-self: center;
  }

  .upload-preview--avatar {
    width: 80px;
    height: 80px;
  }

  .upload-preview--banner {
    width: 100%;
    max-width: 200px;
    height: 60px;
  }

  .settings-form {
    gap: 1rem;
  }

  .settings-form .btn-primary,
  .settings-form button[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 1.25rem;
  }

  .settings-title {
    font-size: 1.35rem;
  }
}

@media (max-width: 768px) {
  .profile-page {
    padding-top: 1.5rem;
  }

  .profile-banner {
    height: 180px;
  }

  .profile-identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0 1.5rem;
    margin-top: -48px;
  }

  .profile-page-avatar {
    width: 96px;
    height: 96px;
    min-width: 96px;
    border-width: 4px;
  }

  .profile-identity-text h1 {
    font-size: 1.5rem;
  }

  .profile-edit-btn {
    margin-bottom: 0;
  }

  .profile-divider {
    margin: 1.5rem 1.5rem 0;
  }

  .profile-body {
    padding: 1.5rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .profile-bio {
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .profile-banner {
    height: 140px;
  }

  .profile-identity {
    padding: 0 1.25rem;
    margin-top: -40px;
  }

  .profile-page-avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
  }

  .profile-identity-text h1 {
    font-size: 1.3rem;
  }

  .profile-divider {
    margin: 1.25rem 1.25rem 0;
  }

  .profile-body {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .forum-page {
    padding-top: 1.5rem;
  }

  .forum-title {
    font-size: 1.5rem;
  }

  .forum-header {
    margin-bottom: 1.5rem;
  }

  .forum-search-bar {
    max-width: 100%;
    margin-top: 1rem;
  }

  .forum-category-card {
    padding: 1rem 1.25rem;
  }

  .forum-form-card {
    padding: 1.5rem;
  }

  .forum-form-buttons {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .forum-form-buttons .btn {
    width: 100%;
  }

  .forum-reply-form-card > form {
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .forum-reply-form-card h2 {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .forum-reply-form-card .btn-primary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .forum-page {
    padding-top: 1rem;
  }

  .forum-title {
    font-size: 1.35rem;
  }

  .forum-category-card {
    padding: 0.85rem 1rem;
    gap: 0.85rem;
  }

  .forum-category-icon {
    width: 36px;
    height: 36px;
  }

  .forum-category-icon svg {
    width: 18px;
    height: 18px;
  }

  .forum-category-info h2 {
    font-size: 0.92rem;
  }

  .forum-category-info p {
    font-size: 0.78rem;
  }

  .forum-category-stats {
    gap: 1rem;
  }

  .forum-topic-row {
    padding: 0.85rem 1rem;
  }

  .forum-topic-content h3 {
    font-size: 0.9rem;
    white-space: normal;
  }

  .forum-topic-meta {
    font-size: 0.72rem;
  }

  .forum-post {
    padding: 1rem;
  }

  .forum-form-card {
    padding: 1rem;
  }

  .forum-reply-form-card > form {
    padding: 1rem 1.25rem 1.25rem;
  }

  .forum-reply-form-card h2 {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .admin-page {
    padding-top: 1.5rem;
  }

  .admin-title {
    font-size: 1.5rem;
  }

  .admin-tabs {
    padding: 0.25rem;
    gap: 0.15rem;
  }

  .admin-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.6rem 0.65rem;
    font-size: 0.78rem;
  }

  .admin-sub-card {
    padding: 1rem;
  }

  .admin-inline-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-btn-group {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .admin-btn-action {
    font-size: 0.68rem;
    padding: 0.25rem 0.45rem;
  }

  .admin-user-cell {
    gap: 0.45rem;
  }

  .admin-user-avatar {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .admin-stat-card {
    padding: 1rem 0.85rem;
    gap: 0.65rem;
  }

  .admin-stat-icon {
    width: 36px;
    height: 36px;
  }

  .admin-stat-icon svg {
    width: 18px;
    height: 18px;
  }

  .admin-stat-number {
    font-size: 1.2rem;
  }

  .admin-stat-label {
    font-size: 0.65rem;
  }

  .admin-table {
    font-size: 0.72rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem 0.45rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
}

@media (max-width: 480px) {
  .toast-stack {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .toast {
    font-size: 0.82rem;
    padding: 0.7rem 0.9rem;
  }
}

@media (max-width: 480px) {
  .field input,
  .settings-form textarea,
  .settings-select,
  .forum-reply-form-card textarea,
  .forum-form-card textarea {
    font-size: 16px;
  }
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

.server-card-body .bbcode-img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-dropdown--admin {
  color: var(--red-bright) !important;
  font-weight: 600;
}

.profile-dropdown--admin:hover {
  background: rgba(255, 62, 62, 0.1);
}

.nav-toggle.is-open svg line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
  transform-origin: center;
}

.nav-toggle.is-open svg line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open svg line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  transform-origin: center;
}

.nav-toggle svg line {
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

body.nav-open {
  overflow: hidden;
}

.notif-dropdown {
    width: 380px;
    max-height: 500px;
}

.notif-list {
    max-height: 380px;
    overflow-y: auto;
}

.notif-item {
    padding: 1rem 1.25rem;
    gap: 0.35rem;
}

.notif-item-message {
    font-size: 0.88rem;
    line-height: 1.5;
}

.notif-item-time {
    font-size: 0.72rem;
}

.bbcode-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border-bottom: none;
}

.bbcode-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.bbcode-toolbar button svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    pointer-events: none;
}

.bbcode-toolbar button:hover {
    background: rgba(255, 62, 62, 0.1);
    color: var(--red-bright);
    border-color: rgba(255, 62, 62, 0.3);
}

.bbcode-toolbar button:active {
    transform: scale(0.93);
}

.bbcode-toolbar-sep {
    width: 1px;
    background: var(--border-soft);
    margin: 0 0.25rem;
}

.forum-form-card .field textarea,
.forum-reply-form-card textarea {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    min-height: 200px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.forum-form-card.large-form {
    max-width: 900px;
}

.forum-form-card.large-form .field textarea {
    min-height: 320px;
}

.forum-form-card.large-form .field input[type="text"] {
    font-size: 1.1rem;
    padding: 0.85rem 1rem;
}

.forum-post-content {
    line-height: 1.75;
}

.forum-post-content .bbcode-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 0.5rem 0;
    border: 1px solid var(--border-soft);
}

.forum-post-content .bbcode-code {
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 1rem;
    overflow-x: auto;
    margin: 0.75rem 0;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.85rem;
    color: #8ef0b8;
}

.forum-post-content .bbcode-quote {
    border-left: 3px solid var(--red-primary);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-muted);
}

.forum-post-content .bbcode-quote cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: var(--red-bright);
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
}

.forum-post-content .bbcode-list {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.forum-post-content .bbcode-hr {
    border: none;
    border-top: 1px solid var(--border-soft);
    margin: 1rem 0;
}

.forum-post-content .bbcode-spoiler {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
}

.forum-post-content .bbcode-spoiler summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--red-bright);
    font-size: 0.85rem;
}

.forum-post-content a {
    color: var(--red-bright);
    text-decoration: underline;
}

.forum-post-content strong,
.forum-post-content b {
    color: var(--text-light);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(0, 0, 0, 0.2);
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

.rank-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 0.95em;
    height: 0.95em;
    line-height: 1;
    vertical-align: middle;
    overflow: hidden;
}

.rank-icon img,
img.rank-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.rank-icon svg,
svg.rank-icon {
    width: 100%;
    height: 100%;
    display: block;
}

.rank-badge > span:last-child {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.forum-post-sidebar .rank-badge {
    margin-top: 0.25rem;
}

.forum-divider {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 2.5rem 0 1.5rem;
    text-align: center;
}

.forum-divider::before,
.forum-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--red-primary), transparent);
}

.forum-divider-label {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light);
    text-shadow: 0 0 12px rgba(255, 62, 62, 0.2);
    white-space: nowrap;
    line-height: 1;
    display: flex;
    align-items: center;
}

.forum-topic-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

.forum-tag {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-softer);
    border-radius: 999px;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.forum-post-reactions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.forum-reaction {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-softer);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease;
}

.forum-reaction:hover {
    background: rgba(255, 62, 62, 0.08);
    border-color: rgba(255, 62, 62, 0.25);
}

.forum-quick-reply {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-softer);
    border-radius: var(--radius-sm);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.forum-quick-reply input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.admin-rank-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.admin-rank-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.admin-rank-icon-preview {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.admin-rank-icon-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 640px) {
    .admin-rank-form-row {
        grid-template-columns: 1fr;
    }

    .notif-dropdown {
        width: 100%;
        max-width: calc(100vw - 2rem);
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    position: relative;
}

.input,
.field input,
.settings-form input[type="text"],
.settings-form input[type="email"],
.upload-field input[type="file"] {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.input:focus,
.field input:focus,
.settings-form input:focus:focus,
.upload-field input[type="file"]:focus {
    border-color: var(--red-bright);
    box-shadow: 0 0 0 3px rgba(255, 62, 62, 0.15);
    outline: none;
}

.textarea,
.field textarea,
.settings-form textarea,
.forum-form-card textarea,
.forum-reply-form-card textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.92rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.textarea:focus,
.field textarea:focus {
    border-color: var(--red-bright);
    box-shadow: 0 0 0 3px rgba(255, 62, 62, 0.15);
    outline: none;
}

.select,
.settings-select,
.admin-select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.select:focus,
.settings-select:focus,
.admin-select:focus {
    border-color: var(--red-bright);
    box-shadow: 0 0 0 3px rgba(255, 62, 62, 0.15);
    outline: none;
}

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-glow { box-shadow: var(--shadow-glow); }

.hidden { display: none !important; }

.hide-mobile { display: block; }
.hide-desktop { display: none; }

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .hide-desktop { display: block; }
}

.forum-topic-content h3,
.forum-topic-row h3,
.home-topic-link-left h3,
.profile-identity-text h1,
.admin-table a,
.forum-post-author,
.card h2 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-table-wrap,
.forum-topics-list,
.notif-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.navbar { z-index: 600; }
.notif-dropdown,
.profile-dropdown { z-index: 1000; }
.toast-stack { z-index: 1100; }

.forum-search-cat {
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    padding: 0.5rem 0.65rem;
    max-width: 150px;
    flex-shrink: 0;
}

.forum-search-cat:focus {
    border-color: var(--red-bright);
    outline: none;
}

@media (max-width: 640px) {
    .forum-search-cat {
        max-width: 100%;
        width: 100%;
    }
}

.profile-recent-activity {
    margin-top: 2rem;
}

.profile-topic-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-topic-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-light);
    transition: background var(--t-fast), border-color var(--t-fast);
}

.profile-topic-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-red-bright);
}

.profile-topic-title {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-topic-meta {
    font-size: 0.72rem;
    color: var(--text-faint);
    flex-shrink: 0;
}

.btn-auto {
    width: auto !important;
}

.profile-main {
    min-width: 0;
}

.forum-quote-btn {
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.server-card-title h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.forum-post-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-softer);
    border-bottom: 1px solid var(--border-softer);
    width: 100%;
}

.forum-post-stat {
    font-size: 0.68rem;
    color: var(--text-faint);
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 768px) {
    .forum-post-stats {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

.forum-category-card--locked {
    border-color: rgba(255, 170, 0, 0.25);
}

.forum-category-card--locked:hover {
    border-color: rgba(255, 170, 0, 0.4);
}

.forum-category-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--red-bright);
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--bg-dark);
    background-image: var(--grid-pattern);
    background-size: var(--grid-size);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: loader-fade-in 0.4s ease both;
}

@keyframes loader-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-loader-brand {
    margin-bottom: 0.25rem;
    filter: drop-shadow(0 0 12px rgba(255, 42, 42, 0.3));
    animation: loader-glow 2s ease-in-out infinite;
}

@keyframes loader-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 42, 42, 0.2)); }
    50% { filter: drop-shadow(0 0 16px rgba(255, 42, 42, 0.4)); }
}

.page-loader-banner {
    max-width: 200px;
    width: auto;
    height: auto;
}

.page-loader-spinner-wrap {
    width: 48px;
    height: 48px;
}

.page-loader-spinner {
    width: 100%;
    height: 100%;
    animation: loader-rotate 1s linear infinite;
}

@keyframes loader-rotate {
    to { transform: rotate(360deg); }
}

.page-loader-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-faint);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.page-loader-dots span {
    opacity: 0;
    animation: loader-dot 1.4s ease-in-out infinite;
}

.page-loader-dots span:nth-child(1) { animation-delay: 0s; }
.page-loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.page-loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loader-dot {
    0%, 60%, 100% { opacity: 0; }
    30% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader-spinner { animation: none; }
    .page-loader-brand { animation: none; }
    .page-loader-dots span { animation: none; opacity: 0.5; }
    .page-loader-inner { animation: none; }
    .page-loader { transition: opacity 0.01ms ease; }
}

@media (max-width: 480px) {
    .page-loader-banner { max-width: 150px; }
}

.home-empty-forum {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-faint);
    font-size: 0.88rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-soft);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.settings-card {
    margin-bottom: 1.5rem;
    padding: 0;
    overflow: hidden;
}
.settings-password-card {
    width: min(92vw, 560px);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.settings-password-card > h2 {
    padding: 1.25rem 2rem;
}
.settings-password-card .settings-form {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.settings-password-card .field + .field {
    margin-top: 0;
}
.settings-password-card input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 0.875rem;
    font-size: 1rem;
}
.settings-password-card .notice {
    padding: 1.75rem 2rem;
}
@media (max-width: 480px) {
    .settings-password-card {
        width: 100%;
        max-width: 100%;
    }
    .settings-password-card > h2,
    .settings-password-card .settings-form,
    .settings-password-card .notice {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

.settings-card > h2 {
    margin: 0;
    padding: 1.1rem 1.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-light);
    background: linear-gradient(135deg, rgba(179, 0, 0, 0.1), rgba(255, 62, 62, 0.03));
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.settings-card > h2::before {
    content: '';
    width: 4px;
    height: 1.1rem;
    background: var(--red-bright);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 62, 62, 0.4);
}

.settings-card .settings-form {
    padding: 1.75rem;
}

.settings-card .field {
    margin-bottom: 1.25rem;
}

.settings-card .field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.settings-card .btn-primary {
    width: auto;
    min-width: 140px;
}

.profile-header-card {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.profile-stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    transition: border-color 0.18s ease;
}

.profile-stat-card:hover {
    border-color: var(--border-red);
}

.profile-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-faint);
    font-weight: 600;
}

.profile-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
}

.profile-topic-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-light);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.profile-topic-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-red-bright);
}

.admin-page .card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
}

.admin-tabs {
    gap: 0.15rem;
    padding: 0.25rem;
}

.admin-tab {
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-tab:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
}

.admin-tab--active {
    background: rgba(179, 0, 0, 0.12);
    color: var(--red-bright);
}

.admin-stat-card {
    padding: 1.1rem 1.35rem;
    gap: 0.85rem;
}

.admin-stat-number {
    font-size: 1.4rem;
    font-weight: 800;
}

.admin-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.admin-section-desc {
    font-size: 0.82rem;
    margin: 0 0 1.25rem;
}

.admin-sub-card {
    padding: 1.25rem 1.35rem;
}

.admin-sub-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.profile-private-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.5rem;
    color: var(--text-faint);
    font-size: 0.88rem;
}

.md-spoiler {
    background: rgba(255, 255, 255, 0.1);
    color: transparent;
    border-radius: 3px;
    padding: 0 3px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.md-spoiler:hover {
    background: rgba(255, 255, 255, 0.14);
}

.md-spoiler.is-revealed {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    cursor: text;
}

.md-h1 {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--text-light);
    margin: 0.6rem 0 0.3rem;
    line-height: 1.25;
}

.md-h2 {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--text-light);
    margin: 0.5rem 0 0.25rem;
    line-height: 1.25;
}

.md-h3 {
    font-size: 1.05em;
    font-weight: 700;
    color: var(--text-light);
    margin: 0.4rem 0 0.2rem;
    line-height: 1.25;
}

.md-subtext {
    display: block;
    font-size: 0.78em;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.md-code {
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: 3px;
    padding: 0.1rem 0.35rem;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.85em;
    color: #8ef0b8;
}

.md-codeblock {
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 1rem;
    overflow-x: auto;
    margin: 0.75rem 0;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.85rem;
    color: #8ef0b8;
}

.md-codeblock code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

.md-quote {
    border-left: 3px solid var(--red-primary);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-muted);
}

.profile-bio strong, .profile-bio b {
    color: var(--text-light);
}

.profile-bio em, .profile-bio i {
    color: var(--text-light);
}

.profile-bio code {
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: 3px;
    padding: 0.1rem 0.35rem;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.85em;
    color: #8ef0b8;
}

.img-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms var(--ease), visibility 220ms ease;
}

.img-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.img-modal {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(12px) scale(0.98);
    transition: transform 220ms var(--ease);
    overflow: hidden;
}

.img-modal-overlay.is-open .img-modal {
    transform: translateY(0) scale(1);
}

.img-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border-soft);
    background: linear-gradient(135deg, rgba(179, 0, 0, 0.1), transparent);
}

.img-modal-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.img-modal-header h3::before {
    content: '';
    width: 3px;
    height: 1rem;
    background: var(--red-bright);
    border-radius: 2px;
}

.img-modal-close {
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    border-radius: var(--radius-sm);
    transition: color 150ms ease, background 150ms ease;
}

.img-modal-close:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.06);
}

.img-modal-close svg {
    width: 18px;
    height: 18px;
}

.img-modal-tabs {
    display: flex;
    padding: 0.75rem 1.5rem 0;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border-softer);
}

.img-modal-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.4rem 0.85rem;
    margin-bottom: -1px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 150ms ease, border-color 150ms ease;
    font-family: inherit;
}

.img-modal-tab:hover {
    color: var(--text-light);
}

.img-modal-tab--active {
    color: var(--red-bright);
    border-bottom-color: var(--red-bright);
}

.img-modal-body {
    padding: 1.5rem;
}

.img-modal-panel .field {
    margin-bottom: 1rem;
}

.img-modal-panel .field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.img-modal-panel .field input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.img-modal-panel .field input:focus {
    border-color: var(--red-bright);
    box-shadow: 0 0 0 3px rgba(255, 62, 62, 0.15);
    outline: none;
}

.img-modal-preview {
    margin-bottom: 1rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    max-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-modal-preview img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    display: block;
}

.img-modal-footer {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.img-upload-zone {
    border: 2px dashed var(--border-soft);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.img-upload-zone:hover,
.img-upload-zone.is-dragover {
    border-color: var(--red-bright);
    background: rgba(255, 62, 62, 0.04);
}

.img-upload-zone svg {
    color: var(--text-faint);
    margin-bottom: 0.25rem;
}

.img-upload-zone p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.img-upload-zone span {
    color: var(--text-faint);
    font-size: 0.75rem;
}

.img-upload-label {
    color: var(--red-bright);
    cursor: pointer;
    text-decoration: underline;
}

.bbcode-video-wrap {
    margin: 0.75rem auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    position: relative;
    cursor: pointer;
    max-width: 100%;
    width: min(100%, 480px);
}

.bbcode-video-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.bbcode-video-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bbcode-video-thumb--empty {
    background: linear-gradient(135deg, #1a1a1f, #2a2a30);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbcode-video-thumb--empty::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://api.iconify.design/lucide/film.svg?color=%23ff3e3e') center/48px no-repeat;
    opacity: 0.3;
}

.bbcode-video-url {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.35rem 0.6rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-muted);
    font-size: 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

.bbcode-video-thumb--file {
    padding-bottom: 0;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbcode-video-preview {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    display: block;
}

.bbcode-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 150ms ease;
    width: 100%;
}

.bbcode-video-play:hover {
}

.video-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms var(--ease), visibility 220ms ease;
}

.video-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-modal-overlay .img-modal {
    transform: translateY(12px) scale(0.98);
    transition: transform 220ms var(--ease);
}

.video-modal-overlay.is-open .img-modal {
    transform: translateY(0) scale(1);
}

.video-player-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms var(--ease), visibility 250ms ease;
}

.video-player-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.video-player-wrap {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-player-header {
    display: flex;
    justify-content: flex-end;
}

.video-player-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: #fff;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    transition: background 150ms ease;
}

.video-player-close:hover {
    background: rgba(255, 62, 62, 0.3);
}

.video-player-body {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}

.video-player-body iframe,
.video-player-body video {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.video-player-body video {
    background: #000;
}

.home-announcements {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.home-announcement {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: var(--bg-card);
    align-items: flex-start;
}

.home-announcement--info { border-left: 3px solid var(--color-info, #6495ed); }
.home-announcement--warning { border-left: 3px solid var(--color-warning, #ffaa00); }
.home-announcement--success { border-left: 3px solid var(--color-success, #48ff8b); }
.home-announcement--danger { border-left: 3px solid var(--color-danger, #ff3e3e); }

.home-announcement-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.home-announcement-content strong {
    display: block;
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.home-announcement-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.forum-topic-views {
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-left: 0.5rem;
    font-weight: 400;
}

.online-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.online-status--online::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #48ff8b;
    box-shadow: 0 0 6px rgba(72, 255, 139, 0.5);
}

.online-status--offline {
    color: var(--text-faint);
    font-weight: 400;
    font-size: 0.78rem;
}

.color-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms var(--ease), visibility 220ms ease;
}

.color-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.color-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    transform: translateY(12px) scale(0.98);
    transition: transform 220ms var(--ease);
}

.color-modal-overlay.is-open .color-modal {
    transform: translateY(0) scale(1);
}

.color-modal-body {
    padding: 1.5rem;
}

.color-picker-section {
    margin-bottom: 1.25rem;
}

.color-picker-section label,
.color-presets-section label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.color-picker-native {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: none;
    padding: 2px;
    flex-shrink: 0;
}

.color-picker-native::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-native::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.color-hex-input {
    flex: 1;
    padding: 0.65rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: 'Courier New', Consolas, monospace;
    text-transform: lowercase;
}

.color-hex-input:focus {
    border-color: var(--red-bright);
    box-shadow: 0 0 0 3px rgba(255, 62, 62, 0.12);
    outline: none;
}

.color-preview {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
    flex-shrink: 0;
}

.color-presets-section {
    margin-bottom: 1.25rem;
}

.color-presets {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.4rem;
}

.color-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease;
    padding: 0;
}

.color-swatch:hover {
    border-color: var(--text-light);
}
.style-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms var(--ease), visibility 220ms ease;
}
.style-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.style-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(12px) scale(0.98);
    transition: transform 220ms var(--ease);
}
.style-modal-overlay.is-open .style-modal {
    transform: translateY(0) scale(1);
}
.style-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.style-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.4rem;
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease;
}
.style-swatch:hover {
    border-color: var(--red-bright);
    transform: translateY(-2px);
}
.style-swatch .txt-style {
    font-size: 1.3rem;
    font-weight: 700;
}
.style-swatch small {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
@media (max-width: 480px) {
    .style-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.txt-style {
    display: inline-block;
    white-space: nowrap;
}
.txt-style--gradient-fire,
.txt-style--gradient-ice,
.txt-style--gradient-purple,
.txt-style--gradient-sunset,
.txt-style--gradient-emerald,
.txt-style--gradient-gold,
.txt-style--gradient-ocean,
.txt-style--gradient-candy,
.txt-style--chrome,
.txt-style--metallic-silver {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}
.txt-style--gradient-fire { background-image: linear-gradient(90deg, #ff3e3e, #ff9500, #ffd60a); }
.txt-style--gradient-ice { background-image: linear-gradient(90deg, #a8e6ff, #3a86ff, #6495ed); }
.txt-style--gradient-purple { background-image: linear-gradient(90deg, #9d4edd, #7b2ff7, #c77dff); }
.txt-style--gradient-sunset { background-image: linear-gradient(90deg, #ff6b6b, #ff9500, #ff006e); }
.txt-style--gradient-emerald { background-image: linear-gradient(90deg, #06ffa5, #00d4aa, #10b981); }
.txt-style--gradient-gold { background-image: linear-gradient(90deg, #ffd700, #ffaa00, #ff8c00); }
.txt-style--gradient-ocean { background-image: linear-gradient(90deg, #00c6ff, #0072ff, #00d4aa); }
.txt-style--gradient-candy { background-image: linear-gradient(90deg, #ff9ecb, #ff6ec7, #c77dff); }
.txt-style--metallic-silver { background-image: linear-gradient(180deg, #f5f5f7, #b8b8bd, #8a8a90, #d0d0d4); }
.txt-style--chrome {
    background-image: linear-gradient(180deg, #ffffff 0%, #b8b8bd 40%, #6d6d72 55%, #dcdce0 75%, #8a8a90 100%);
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4));
}
.txt-style--glow-red { color: #ff6b6b; text-shadow: 0 0 6px rgba(255,62,62,0.8), 0 0 16px rgba(255,62,62,0.5); font-weight: 700; }
.txt-style--glow-blue { color: #6db3ff; text-shadow: 0 0 6px rgba(58,134,255,0.8), 0 0 16px rgba(58,134,255,0.5); font-weight: 700; }
.txt-style--glow-green { color: #6dffb0; text-shadow: 0 0 6px rgba(6,255,165,0.8), 0 0 16px rgba(6,255,165,0.5); font-weight: 700; }
.txt-style--glow-purple { color: #c77dff; text-shadow: 0 0 6px rgba(157,78,221,0.8), 0 0 16px rgba(157,78,221,0.5); font-weight: 700; }
.txt-style--glow-white { color: #fff; text-shadow: 0 0 6px rgba(255,255,255,0.9), 0 0 16px rgba(255,255,255,0.6); font-weight: 700; }
.txt-style--glow-orange { color: #ffb366; text-shadow: 0 0 6px rgba(255,149,0,0.85), 0 0 16px rgba(255,149,0,0.5); font-weight: 700; }
.txt-style--neon-pink {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 4px #fff, 0 0 10px #ff006e, 0 0 20px #ff006e, 0 0 32px #ff006e;
    animation: txtNeonFlicker 3s infinite;
}
.txt-style--neon-cyan {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 4px #fff, 0 0 10px #00e5ff, 0 0 20px #00e5ff, 0 0 32px #00e5ff;
    animation: txtNeonFlicker 3s infinite;
}
.txt-style--neon-yellow {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 4px #fff, 0 0 10px #ffd60a, 0 0 20px #ffd60a, 0 0 32px #ffd60a;
    animation: txtNeonFlicker 3s infinite;
}
.txt-style--neon-green {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 4px #fff, 0 0 10px #39ff14, 0 0 20px #39ff14, 0 0 32px #39ff14;
    animation: txtNeonFlicker 3s infinite;
}
@keyframes txtNeonFlicker {
    0%, 3%, 6%, 100% { opacity: 1; }
    4%, 5% { opacity: 0.55; }
}
.txt-style--outline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-light);
    font-weight: 800;
}
.txt-style--outline-fill {
    color: var(--red-bright);
    -webkit-text-stroke: 1px var(--text-light);
    font-weight: 800;
}
.txt-style--shadow-3d {
    color: #fff;
    font-weight: 800;
    text-shadow: 1px 1px 0 #ff3e3e, 2px 2px 0 #ff3e3e, 3px 3px 0 #ff3e3e, 4px 4px 4px rgba(0,0,0,0.5);
}
.txt-style--shadow-long {
    color: #fff;
    font-weight: 800;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.7), 2px 2px 0 rgba(0,0,0,0.6), 3px 3px 0 rgba(0,0,0,0.5),
                 4px 4px 0 rgba(0,0,0,0.4), 5px 5px 0 rgba(0,0,0,0.3), 6px 6px 8px rgba(0,0,0,0.4);
}
.txt-style--embossed {
    color: #b8b8bd;
    font-weight: 700;
    text-shadow: -1px -1px 1px rgba(255,255,255,0.25), 1px 1px 1px rgba(0,0,0,0.7);
}
.txt-style--engraved {
    color: #8a8a90;
    font-weight: 700;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.2), -1px -1px 1px rgba(0,0,0,0.8);
}
.txt-style--glitch {
    display: inline-block;
    color: var(--text-light);
    font-weight: 700;
    animation: txtGlitchShift 2.2s infinite steps(1);
}
@keyframes txtGlitchShift {
    0%, 92%, 100% { transform: translate(0,0); text-shadow: none; }
    94% { transform: translate(-1px,1px); text-shadow: 2px 0 #ff006e, -2px 0 #00e5ff; }
    96% { transform: translate(1px,-1px); text-shadow: -2px 0 #ff006e, 2px 0 #00e5ff; }
}

.txt-style--shake {
    display: inline-block;
    color: var(--text-light);
    font-weight: 700;
    animation: txtShake 0.4s infinite;
}
@keyframes txtShake {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    25% { transform: translate(-1px, 1px) rotate(-1deg); }
    50% { transform: translate(1px, -1px) rotate(1deg); }
    75% { transform: translate(-1px, -1px) rotate(0); }
}

.txt-style--pulse {
    display: inline-block;
    color: #ff6b6b;
    font-weight: 700;
    animation: txtPulse 1.4s ease-in-out infinite;
}
@keyframes txtPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.75; }
}

.txt-style--typewriter {
    display: inline-block;
    font-family: 'Courier New', Consolas, monospace;
    font-weight: 700;
    color: var(--text-light);
    border-right: 2px solid var(--red-bright);
    padding-right: 2px;
    animation: txtTypeCursor 0.8s steps(1) infinite;
}
@keyframes txtTypeCursor {
    0%, 100% { border-color: var(--red-bright); }
    50% { border-color: transparent; }
}

.txt-style--wave {
    display: inline-block;
}
.txt-style--wave span,
.txt-style--wave {
    color: #6db3ff;
    font-weight: 700;
}
.txt-style--wave {
    animation: txtWaveBounce 1.6s ease-in-out infinite;
}
@keyframes txtWaveBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.txt-style--strike-double {
    position: relative;
    color: var(--text-light);
    font-weight: 700;
}
.txt-style--strike-double::before,
.txt-style--strike-double::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red-bright);
}
.txt-style--strike-double::before { top: 40%; }
.txt-style--strike-double::after { top: 58%; }

.txt-style--bounce {
    display: inline-block;
    color: #6db3ff;
    font-weight: 700;
    animation: txtBounce 0.9s ease-in-out infinite;
}
@keyframes txtBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.txt-style--blink {
    color: var(--red-bright);
    font-weight: 700;
    animation: txtBlink 1.1s step-start infinite;
}
@keyframes txtBlink {
    50% { opacity: 0; }
}

.txt-style--wiggle {
    display: inline-block;
    color: var(--text-light);
    font-weight: 700;
    animation: txtWiggle 1.2s ease-in-out infinite;
    transform-origin: 50% 90%;
}
@keyframes txtWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-4deg); }
    75% { transform: rotate(4deg); }
}

.txt-style--underline-wave {
    color: var(--text-light);
    font-weight: 700;
    text-decoration: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' viewBox='0 0 12 6'%3E%3Cpath d='M0 3 Q3 0 6 3 T12 3' fill='none' stroke='%23ff3e3e' stroke-width='1.4'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: 12px 6px;
    padding-bottom: 4px;
}

.txt-style--underline-dashed {
    color: var(--text-light);
    font-weight: 700;
    text-decoration: underline dashed var(--red-bright) 2px;
    text-underline-offset: 3px;
}

.txt-style--small-caps {
    color: var(--text-light);
    font-weight: 700;
    font-variant: small-caps;
    letter-spacing: 0.03em;
}

.txt-style--spaced-out {
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: 0.35em;
}

.txt-style--matrix {
    color: #39ff14;
    font-weight: 700;
    font-family: 'Courier New', Consolas, monospace;
    text-shadow: 0 0 6px rgba(57,255,20,0.8), 0 0 14px rgba(57,255,20,0.4);
}

.txt-style--fire-flicker {
    color: #ff9500;
    font-weight: 700;
    text-shadow: 0 0 4px #ff3e3e, 0 0 10px #ff9500, 0 -2px 8px #ffd60a;
    animation: txtFireFlicker 1.6s ease-in-out infinite;
}
@keyframes txtFireFlicker {
    0%, 100% { text-shadow: 0 0 4px #ff3e3e, 0 0 10px #ff9500, 0 -2px 8px #ffd60a; }
    50% { text-shadow: 0 0 6px #ff6b00, 0 0 16px #ffaa00, 0 -3px 12px #ffe066; }
}

.txt-style--frost {
    color: #d6f0ff;
    font-weight: 700;
    text-shadow: 0 0 3px #fff, 0 0 8px #a8e6ff, 0 0 16px #3a86ff;
}

.btn-forum {
  background: rgba(179, 0, 0, 0.15);
  border-color: rgba(179, 0, 0, 0.3);
  color: #ffffff;
}

.btn-forum:hover {
  background: rgba(179, 0, 0, 0.28);
  border-color: rgba(179, 0, 0, 0.5);
}

.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    margin-bottom: 2rem;
}

.server-card-header {
    position: relative;
}

.server-card-banner {
    height: 120px;
    overflow: hidden;
    position: relative;
}

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

.server-card-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 2, 4, 0.3), rgba(24, 24, 27, 0.95));
}

.server-card-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-soft);
}

.server-card-title h1 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
}

.server-card-subtitle {
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-top: 0.15rem;
    display: block;
}

.server-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    flex-shrink: 0;
}

.server-status-pill--online {
    background: rgba(72, 255, 139, 0.1);
    color: #48ff8b;
}

.server-status-pill--offline {
    background: rgba(255, 62, 62, 0.1);
    color: var(--red-bright);
}

.server-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.server-status-pill--online .server-status-dot {
    box-shadow: 0 0 6px rgba(72, 255, 139, 0.5);
}

@keyframes server-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.server-card-body {
    padding: 1.5rem;
}

.server-stats-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.server-progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.server-ring-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-bright);
    z-index: 2;
}

.server-ring-spinner svg {
    animation: server-spin 0.8s linear infinite;
}

@keyframes server-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.server-progress-inner,
.server-ring-svg {
    transition: opacity 300ms ease;
}

.server-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.server-progress-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    pointer-events: none;
}

#players-current {
    margin-top: 0.5px;
}

.server-progress-divider {
    width: 18px;
    height: 2px;
    background: rgba(255,255,255,.45);
    border-radius: 999px;
    margin: 6px 0;
}

#players-max {
    margin-top: 0.5px;
    font-size: 1.35rem;
}

.server-progress-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1;
}

.server-progress-max {
    font-size: 0.72rem;
    color: var(--text-faint);
    font-weight: 600;
}

.server-info-row {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.6rem;
}

.server-info-tile {
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-softer);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.server-info-tile-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    font-weight: 600;
}

.server-info-tile-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    word-break: break-word;
}

.server-ip-value {
    font-family: 'Courier New', monospace;
    color: var(--red-bright);
    cursor: pointer;
    transition: color 150ms ease;
}

.server-ip-value:hover {
    color: var(--red-accent);
}

.server-map-banner {
    position: relative;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    max-height: 200px;
    display: none;
}

.server-map-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.server-map-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    pointer-events: none;
}

.server-map-banner-label {
    position: absolute;
    bottom: 0.6rem;
    left: 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', monospace;
}

.server-players-section {
    margin-bottom: 1rem;
}

.server-players-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.server-players-header h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.server-players-count {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}

.server-players-count {
    color: var(--red-bright);
    background: rgba(255, 62, 62, 0.1);
}

.server-player-list,
.server-player-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.server-player-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-softer);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease;
}

.server-player-row:hover {
    border-color: var(--border-red);
}

.server-player-row--bot {
    opacity: 0.55;
}

.server-player-row--bot:hover {
    opacity: 0.8;
    border-color: var(--border-softer);
}

.server-player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-soft);
}

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

.server-player-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.server-player-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-player-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-faint);
}

.server-player-score {
    color: var(--text-muted);
}

.server-player-time {
    color: var(--text-faint);
}

.server-player-status {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.server-player-status--online {
    color: #48ff8b;
    background: rgba(72, 255, 139, 0.1);
}

.server-player-status--bot {
    color: var(--text-faint);
    background: rgba(255, 255, 255, 0.04);
}

.server-card-actions {
    display: flex;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-soft);
    flex-wrap: wrap;
}

.server-card-actions .btn {
    flex: 1;
    min-width: 120px;
}

@media (max-width: 640px) {
    .server-stats-row {
        flex-direction: column;
        text-align: center;
    }

    .server-info-row {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .server-card-actions {
        flex-direction: column;
    }

    .server-card-actions .btn {
        width: 100%;
    }

    .server-card-banner {
        height: 80px;
    }

    .server-player-row {
        padding: 0.5rem 0.65rem;
        gap: 0.5rem;
    }

    .server-player-avatar {
        width: 28px;
        height: 28px;
    }

    .server-player-name {
        font-size: 0.8rem;
    }

    .server-player-meta {
        font-size: 0.65rem;
    }
}

.pm-page {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

.pm-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pm-page-head .forum-divider {
  margin: 0;
  flex: 1;
}

.pm-compose-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border-red-bright);
  color: var(--text-light);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--anim-fast), border-color var(--anim-fast), transform var(--anim-fast);
}

.pm-compose-btn:hover {
  background: rgba(255, 62, 62, 0.08);
  border-color: var(--red-bright);
  transform: translateY(-1px);
}

.pm-compose-btn:active {
  transform: translateY(0);
}
.pm-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.25rem;
  height: calc(100vh - 220px);
  min-height: 620px;
}
.pm-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pm-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid var(--border-softer);
}

.pm-sidebar-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
  letter-spacing: 0.01em;
}

.pm-sidebar-count {
  background: rgba(255, 62, 62, 0.12);
  color: var(--red-bright);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  min-width: 22px;
  text-align: center;
}

.pm-search {
  position: relative;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border-softer);
}

.pm-search-icon {
  position: absolute;
  left: 1.45rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.7;
}

.pm-search input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 0.5rem 0.7rem 0.5rem 2rem;
  outline: none;
  transition: border-color var(--anim-fast), background var(--anim-fast);
  font-family: inherit;
}

.pm-search input:focus {
  border-color: var(--border-red-bright);
  background: var(--bg-input-hover);
}

.pm-conv-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.pm-conv-list::-webkit-scrollbar {
  width: 6px;
}

.pm-conv-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}

.pm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem 1rem 2rem;
  text-align: center;
}

.pm-empty p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

.pm-empty span {
  color: var(--text-faint);
  font-size: 0.78rem;
}

.pm-empty strong {
  color: var(--red-bright);
  font-weight: 600;
}

.pm-conv-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  text-decoration: none;
  transition: background var(--anim-fast);
  position: relative;
  margin-bottom: 0.2rem;
}

.pm-conv-item:hover {
  background: var(--bg-card-hover);
}

.pm-conv-item--active {
  background: rgba(255, 62, 62, 0.10);
  box-shadow: inset 3px 0 0 var(--red-bright);
}

.pm-conv-item--unread .pm-conv-name {
  font-weight: 700;
  color: #fff;
}

.pm-conv-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
}

.pm-conv-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  display: block;
}

.pm-conv-online {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 11px;
  height: 11px;
  background: var(--color-success);
  border: 2px solid var(--bg-card);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(72, 255, 139, 0.3);
}

.pm-conv-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pm-conv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pm-conv-row--bottom {
  align-items: center;
}

.pm-conv-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-conv-time {
  font-size: 0.7rem;
  color: var(--text-faint);
  flex-shrink: 0;
}

.pm-conv-preview {
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.pm-conv-item--unread .pm-conv-preview {
  color: var(--text-light);
}

.pm-conv-badge {
  background: var(--red-bright);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.pm-chat {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.pm-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-softer);
  background: linear-gradient(180deg, rgba(255,62,62,0.03), transparent);
}

.pm-back-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: var(--radius-xs);
  transition: background var(--anim-fast);
}

.pm-back-btn:hover {
  background: var(--bg-card-hover);
}

.pm-head-avatar-link {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.pm-head-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  display: block;
}

.pm-head-online {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 11px;
  height: 11px;
  background: var(--color-success);
  border: 2px solid var(--bg-card);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(72, 255, 139, 0.3);
}

.pm-head-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pm-head-name {
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--anim-fast);
}

.pm-head-name:hover {
  color: var(--red-bright);
}

.pm-head-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.pm-head-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pm-icon-btn {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--anim-fast), border-color var(--anim-fast);
}

.pm-icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-soft);
}
.pm-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.pm-messages::-webkit-scrollbar {
  width: 6px;
}

.pm-messages::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}

.pm-messages-empty {
  margin: auto;
  text-align: center;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.pm-messages-empty p {
  font-size: 0.88rem;
  margin: 0;
}

.pm-date-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 0.4rem;
  color: var(--text-faint);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pm-date-divider::before,
.pm-date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-softer);
}

.pm-msg {
  display: flex;
  flex-direction: column;
  max-width: 75%;
  animation: pmMsgIn 0.18s ease;
}

@keyframes pmMsgIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pm-msg--out {
  align-self: flex-end;
  align-items: flex-end;
}

.pm-msg--in {
  align-self: flex-start;
  align-items: flex-start;
}

.pm-msg--grouped {
  margin-top: 2px;
}

.pm-msg:not(.pm-msg--grouped) {
  margin-top: 0.65rem;
}

.pm-msg--grouped .pm-msg-bubble {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.pm-msg--grouped.pm-msg--out .pm-msg-bubble {
  border-top-right-radius: 4px;
  border-top-left-radius: var(--radius-md);
}

.pm-msg--grouped.pm-msg--in .pm-msg-bubble {
  border-top-left-radius: 4px;
  border-top-right-radius: var(--radius-md);
}

.pm-msg-bubble {
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pm-msg--out .pm-msg-bubble {
  background: linear-gradient(135deg, var(--red-bright), var(--red-primary));
  color: #fff;
  border-bottom-right-radius: 0.3rem;
  box-shadow: 0 2px 6px rgba(255, 62, 62, 0.18);
}

.pm-msg--in .pm-msg-bubble {
  background: var(--bg-notification);
  color: var(--text-light);
  border: 1px solid var(--border-soft);
  border-bottom-left-radius: 0.3rem;
}

.pm-msg-text {
  display: block;
  white-space: pre-wrap;
}

.pm-msg-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  color: var(--text-faint);
  line-height: 1;
}

.pm-msg-time {
  font-variant-numeric: tabular-nums;
}

.pm-msg-edited {
  font-size: 0.65rem;
  font-style: italic;
  color: var(--text-faint);
  opacity: 0.8;
  cursor: default;
  user-select: none;
  letter-spacing: 0.01em;
}

.pm-msg-edited:hover {
  opacity: 1;
  color: var(--text-muted);
}

.pm-msg--grouped .pm-msg-meta {
  display: none;
}

.pm-msg--grouped.pm-msg--edited .pm-msg-meta {
  display: inline-flex;
}

.pm-msg--grouped.pm-msg--edited .pm-msg-meta .pm-msg-time,
.pm-msg--grouped.pm-msg--edited .pm-msg-meta .pm-msg-read {
  display: none;
}

.pm-msg--grouped.pm-msg--edited .pm-msg-meta .pm-msg-edited {
  display: inline;
  font-size: 0.6rem;
  opacity: 0.6;
}

.pm-msg-read {
    letter-spacing: normal !important;
    font-weight: 600;
    font-size: 0.7rem;
}

.pm-msg--out .pm-msg-read {
  color: var(--red-bright);
}
.pm-typing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem 0.6rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.pm-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.pm-typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: pmTypingPulse 1.2s infinite ease-in-out;
}

.pm-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.pm-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes pmTypingPulse {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}
.pm-send-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-softer);
  background: var(--bg-card);
}

.pm-send-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.pm-attach-btn {
  background: transparent;
  border: none;
  cursor: not-allowed;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.pm-attach-btn:not(:disabled):hover {
  background: var(--bg-card-hover);
}

#pm-message-input,
.pm-message-textarea {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.6rem 1rem;
  outline: none;
  font-family: inherit;
  transition: border-color var(--anim-fast), background var(--anim-fast);
  resize: none;
  overflow: hidden;
  min-height: 40px;
  max-height: 140px;
  box-sizing: border-box;
}

#pm-message-input:focus,
.pm-message-textarea:focus {
  border-color: var(--border-red-bright);
  background: var(--bg-input-hover);
}

#pm-message-input::placeholder,
.pm-message-textarea::placeholder {
  color: var(--text-faint);
}

.pm-message-textarea {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.pm-message-textarea::-webkit-scrollbar {
  width: 5px;
}

.pm-message-textarea::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.pm-send-btn {
  background: linear-gradient(135deg, var(--red-bright), var(--red-primary));
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.55rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  transition: transform var(--anim-fast), box-shadow var(--anim-fast), opacity var(--anim-fast);
  box-shadow: 0 2px 8px rgba(255, 62, 62, 0.3);
}

.pm-send-btn:hover:not(:disabled) {
}

.pm-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pm-send-blocked {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-softer);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: italic;
}
.pm-chat-empty {
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2rem 1rem;
}

.pm-chat-empty h3 {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 0;
  font-weight: 700;
}

.pm-chat-empty p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 320px;
  margin: 0;
  line-height: 1.5;
}

.pm-chat-empty-cta {
  margin-top: 0.5rem;
}
.pm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--anim-normal);
}

.pm-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.pm-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--anim-normal);
}

.pm-modal.open .pm-modal-card {
  transform: scale(1);
}

.pm-modal-card--small {
  max-width: 380px;
}

.pm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-softer);
}

.pm-modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
}

.pm-modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  transition: background var(--anim-fast);
}

.pm-modal-close:hover {
  background: var(--bg-card-hover);
}

.pm-compose-form {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.pm-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pm-field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.pm-field-optional {
  color: var(--text-faint);
  font-weight: 400;
  font-style: italic;
}

.pm-recipient-picker {
  position: relative;
}

.pm-recipient-picker input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 0.65rem 0.8rem;
  outline: none;
  font-family: inherit;
  transition: border-color var(--anim-fast);
}

.pm-recipient-picker input:focus {
  border-color: var(--border-red-bright);
}

.pm-recipient-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-notification);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  max-height: 220px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.pm-suggest-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.88rem;
  text-align: left;
  transition: background var(--anim-fast);
  font-family: inherit;
}

.pm-suggest-item:hover {
  background: var(--bg-card-hover);
}

.pm-suggest-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pm-suggest-empty {
  padding: 0.7rem 0.85rem;
  color: var(--text-faint);
  font-size: 0.82rem;
  font-style: italic;
}

.pm-compose-form textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 0.65rem 0.8rem;
  outline: none;
  font-family: inherit;
  resize: vertical;
  min-height: 90px;
  transition: border-color var(--anim-fast);
}

.pm-compose-form textarea:focus {
  border-color: var(--border-red-bright);
}

.pm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0 1.25rem 1.25rem;
}

.pm-modal-body {
  padding: 1.1rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.pm-modal-body p {
  margin: 0;
}
.pm-modal-actions .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--anim-fast);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.pm-modal-actions .btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-soft);
}

.pm-modal-actions .btn-ghost:hover {
  background: var(--bg-card-hover);
  color: var(--text-light);
}

.pm-modal-actions .btn-danger {
  background: var(--red-bright);
  color: #fff;
}

.pm-modal-actions .btn-danger:hover {
  background: var(--red-accent);
}

.pm-modal-actions .btn-copy {
  background: linear-gradient(135deg, var(--red-bright), var(--red-primary));
  color: #fff;
}

.pm-modal-actions .btn-copy:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.profile-pm-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--red-bright);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-dark);
  box-sizing: content-box;
}

.profile-dropdown-item--messages {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.profile-dropdown-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.profile-dropdown-pm-count {
  margin-left: auto;
  background: var(--red-bright);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}
.profile-message-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.profile-blocked-note {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--red-bright);
  font-weight: 600;
  font-style: italic;
  margin-left: 0.5rem;
}
.pm-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 900;
}

.pm-no-scroll {
  overflow: hidden;
}
@media (max-width: 900px) {
  .pm-layout {
    grid-template-columns: 1fr;
    position: relative;
    height: calc(100vh - 200px);
    min-height: 580px;
  }

  .pm-sidebar {
    position: absolute;
    inset: 0;
    z-index: 950;
    transform: translateX(-100%);
    transition: transform var(--anim-normal);
    background: var(--bg-card);
  }

  .pm-sidebar.is-mobile-open {
    transform: translateX(0);
  }

  .pm-back-btn {
    display: inline-flex;
  }

  .pm-chat {
    width: 100%;
  }

  .pm-msg {
    max-width: 85%;
  }

  .pm-page-head {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .pm-page {
    padding-top: 1rem;
  }

  .pm-layout {
    height: calc(100vh - 180px);
    min-height: 520px;
  }

  .pm-messages {
    padding: 1rem 0.85rem;
  }

  .pm-send-form {
    padding: 0.65rem 0.75rem;
  }

  .pm-chat-header {
    padding: 0.7rem 0.85rem;
  }

  .pm-msg {
    max-width: 88%;
  }

  .pm-msg-bubble {
    font-size: 0.86rem;
    padding: 0.55rem 0.75rem;
  }

  .pm-modal-card {
    max-width: 100%;
    margin: 0.5rem;
  }

  .profile-message-btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
  }
}

@media (max-width: 420px) {
  .pm-compose-btn span {
    display: none;
  }
  .pm-compose-btn {
    padding: 0.5rem;
  }
  .pm-head-name {
    font-size: 0.88rem;
  }
  .pm-head-actions {
    gap: 0;
  }
  .pm-icon-btn {
    padding: 0.35rem;
  }
}

.pm-msg {
  position: relative;
  transition: transform var(--anim-fast);
}

.pm-msg.is-selected {
  background: rgba(255, 62, 62, 0.06);
  border-radius: var(--radius-sm);
  margin: -0.2rem -0.5rem;
  padding: 0.2rem 0.5rem;
}

.pm-msg-quote {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-left: 2px solid var(--red-bright);
  background: rgba(255, 62, 62, 0.05);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 100%;
  overflow: hidden;
}

.pm-msg-quote-author {
  font-weight: 600;
  color: var(--red-bright);
  font-size: 0.72rem;
  margin-bottom: 0.15rem;
}

.pm-msg-quote-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

.pm-msg--out .pm-msg-quote {
  border-left-color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.15);
}

.pm-msg--out .pm-msg-quote-author {
  color: rgba(255, 255, 255, 0.85);
}

.pm-msg-att {
  margin-top: 0.4rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  max-width: 280px;
  cursor: zoom-in;
  display: block;
}

.pm-msg-att--audio {
    cursor: default;
}

.pm-audio-menu-wrap {
    position: relative;
    flex-shrink: 0;
}

.pm-audio-menu-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.12s ease, background 0.12s ease;
    padding: 0;
}
.pm-audio-menu-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.12);
}
.pm-msg--in .pm-audio-menu-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.pm-audio-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--bg-notification);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 0.3rem;
    min-width: 150px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    z-index: 20;
    display: none;
}
.pm-audio-menu.open { display: block; }

.pm-audio-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.65rem;
    background: none;
    border: none;
    border-radius: var(--radius-xs);
    color: var(--text-light);
    font-size: 0.82rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}
.pm-audio-menu-item:hover {
    background: var(--bg-card-hover);
}

.pm-msg--out .pm-msg-att {
  background: rgba(0, 0, 0, 0.18);
}

.pm-msg-att img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  object-fit: cover;
  transition: transform var(--anim-fast);
}

.pm-msg-att:hover img {
}

.pm-msg-att-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pm-msg--out .pm-msg-att-meta {
  color: rgba(255, 255, 255, 0.85);
}
.pm-ctx-menu {
  position: fixed;
  z-index: 2000;
  background: var(--bg-notification);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  padding: 0.3rem;
  min-width: 180px;
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  transition: opacity var(--anim-fast), transform var(--anim-fast);
}

.pm-ctx-menu.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.pm-ctx-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-xs);
  color: var(--text-light);
  font-size: 0.84rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background var(--anim-fast), color var(--anim-fast);
}

.pm-ctx-item:hover {
  background: var(--bg-card-hover);
}

.pm-ctx-item--danger {
  color: var(--red-bright);
}

.pm-ctx-item--danger:hover {
  background: rgba(255, 62, 62, 0.1);
}

.pm-ctx-item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pm-ctx-divider {
  height: 1px;
  background: var(--border-softer);
  margin: 0.25rem 0.3rem;
}

.pm-ctx-shortcut {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.pm-msg-edit-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.pm-msg-edit-input {
  background: var(--bg-input);
  border: 1px solid var(--border-red-bright);
  border-radius: var(--radius-xs);
  color: var(--text-light);
  font-size: 0.88rem;
  padding: 0.5rem 0.65rem;
  outline: none;
  font-family: inherit;
  resize: vertical;
  min-height: 50px;
  max-height: 180px;
  width: 100%;
}

.pm-msg-edit-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}

.pm-msg-edit-actions button {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-xs);
  font-size: 0.76rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--anim-fast);
}

.pm-msg-edit-actions button:hover {
  background: var(--bg-card-hover);
  color: var(--text-light);
}

.pm-msg-edit-actions .pm-edit-save {
  background: var(--red-bright);
  border-color: var(--red-bright);
  color: #fff;
}

.pm-msg-edit-actions .pm-edit-save:hover {
  background: var(--red-accent);
  color: #fff;
}

.pm-msg-edit-actions .pm-edit-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pm-drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 62, 62, 0.08);
  border: 2px dashed var(--red-bright);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  transition: opacity var(--anim-normal);
}

.pm-drop-overlay.is-active {
  opacity: 1;
}

.pm-drop-overlay-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 62, 62, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-drop-overlay-text {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 600;
}

.pm-drop-overlay-hint {
  color: var(--text-muted);
  font-size: 0.78rem;
}
.pm-attach-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.4rem 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xs);
  max-width: 240px;
}

.pm-attach-preview-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
}

.pm-attach-preview-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pm-attach-preview-name {
  font-size: 0.76rem;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-attach-preview-size {
  font-size: 0.7rem;
  color: var(--text-faint);
}

.pm-attach-preview-remove {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  transition: background var(--anim-fast);
  flex-shrink: 0;
}

.pm-attach-preview-remove:hover {
  background: rgba(255, 62, 62, 0.12);
}

.pm-attach-bar {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.pm-attach-bar.is-visible {
  display: flex;
}

.pm-attach-input {
  display: none;
}
.pm-media {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--anim-normal);
}

.pm-media.open {
  opacity: 1;
  pointer-events: auto;
}

.pm-media-body {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-media-body img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.pm-media-body video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.pm-media-close,
.pm-media-dl {
  position: absolute;
  top: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--anim-fast), transform var(--anim-fast);
  text-decoration: none;
}

.pm-media-close {
  right: 1.5rem;
}

.pm-media-dl {
  right: 4.5rem;
}

.pm-media-close:hover,
.pm-media-dl:hover {
  background: rgba(255, 62, 62, 0.4);
}
.pm-msg-att--video {
  position: relative;
  display: block;
  background: #000;
}

.pm-msg-att--video video {
  display: block;
  max-width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.pm-msg-att-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background var(--anim-fast);
  pointer-events: none;
}

.pm-msg-att-play img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.pm-msg-att--video:hover .pm-msg-att-play {
  background: rgba(0, 0, 0, 0.2);
}
.pm-reply-preview {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--red-bright);
  border-radius: var(--radius-xs);
  margin-bottom: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.pm-reply-preview.is-visible {
  display: flex;
}

.pm-reply-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.pm-reply-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pm-reply-author {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--red-bright);
  letter-spacing: 0.01em;
}

.pm-reply-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-reply-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  flex-shrink: 0;
  transition: background var(--anim-fast);
}

.pm-reply-close:hover {
  background: rgba(255, 62, 62, 0.12);
}
.pm-send-form {
  position: relative;
}

.pm-send-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.pm-send-hint {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: var(--text-faint);
  padding: 0 0.2rem;
  user-select: none;
}

.pm-send-hint kbd {
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
  font-family: inherit;
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1;
}

.pm-send-hint-sep {
  opacity: 0.5;
  margin: 0 0.15rem;
}

.pm-send-form.has-attachment #pm-message-input {
  flex: 1;
}

.pm-attach-btn {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0.45rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--anim-fast), border-color var(--anim-fast), transform var(--anim-fast);
}

.pm-attach-btn:not(:disabled):hover {
  background: var(--bg-card-hover);
  border-color: var(--border-soft);
  transform: translateY(-1px);
}

.pm-attach-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pm-attach-btn.is-uploading {
  animation: pmSpin 0.8s linear infinite;
}

@keyframes pmSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (max-width: 600px) {
  .pm-ctx-menu {
    min-width: 160px;
  }
  .pm-msg-att {
    max-width: 220px;
  }
  .pm-msg-att img,
  .pm-msg-att--video video {
    max-height: 180px;
  }
  .pm-msg-att-play img {
    width: 36px;
    height: 36px;
  }
  .pm-drop-overlay-text {
    font-size: 0.85rem;
  }
  .pm-media-close,
  .pm-media-dl {
    top: 1rem;
  }
  .pm-media-close { right: 1rem; }
  .pm-media-dl { right: 3.5rem; padding: 0.45rem; }
}

.presence-dot,
.presence-dot-pf,
.presence-dot-forum {
  position: absolute;
  border-radius: 50%;
  box-sizing: content-box;
  z-index: 2;
  pointer-events: none;
}

.presence-dot--online {
  background: var(--color-success);
  box-shadow: 0 0 6px rgba(72, 255, 139, 0.45);
}

.presence-dot--idle {
  background: var(--color-warning);
}

.presence-dot--dnd {
  background: #ed4245;
}

.presence-dot--offline,
.presence-dot--offline-forum {
  background: var(--text-faint);
}

.presence-dot--online::after {
  content: "";
  position: absolute;
  width: 35%;
  height: 35%;
  top: 18%;
  left: 18%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.presence-dot--idle::after {
  content: "";
  position: absolute;
  width: 55%;
  height: 55%;
  top: -12%;
  right: -12%;
  background: var(--bg-card);
  border-radius: 50%;
}

.presence-dot--dnd::after {
  content: "";
  position: absolute;
  width: 55%;
  height: 18%;
  min-height: 2px;
  background: #fff;
  border-radius: 999px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.profile-page-avatar-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.profile-dot {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  display: block;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.profile-status {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pm-presence-text {
  font-weight: 500;
}

@media (max-width: 600px) {
  .profile-dot {
    width: 14px;
    height: 14px;
    border-width: 2px;
    bottom: 3px;
    right: 3px;
  }
}

.bbcode-img-link {
    display: inline-block;
    cursor: zoom-in;
    text-decoration: none;
    line-height: 0;
}

.bbcode-img-link .bbcode-img {
    transition: opacity var(--anim-fast), transform var(--anim-fast);
}

.bbcode-img-link:hover .bbcode-img {
    opacity: 0.88;
}

.img-viewer {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 220ms var(--ease);
}

.img-viewer.is-open {
    display: flex;
    opacity: 1;
}

.iv-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.iv-topbar {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.6), transparent);
}

.iv-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.iv-title {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.iv-count {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.iv-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.iv-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background var(--anim-fast), border-color var(--anim-fast), transform var(--anim-fast);
}

.iv-btn:hover {
    background: rgba(255, 62, 62, 0.25);
    border-color: var(--red-bright);
}

.iv-btn:active {
    transform: scale(0.96);
}

.iv-btn--close:hover {
    background: rgba(255, 62, 62, 0.5);
}

.iv-stage {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
    padding: 1rem;
}

.iv-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    transition: cursor var(--anim-fast);
}

.iv-wrap.is-zoomed {
    cursor: grab;
}

.iv-wrap.is-grabbing {
    cursor: grabbing;
}

.iv-wrap img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform-origin: center center;
    transition: opacity 200ms ease, transform 200ms ease;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.iv-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--red-bright);
    z-index: 1;
}

.iv-spin-icon {
    animation: imgViewerSpin 0.8s linear infinite;
}

@keyframes imgViewerSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.iv-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background var(--anim-fast), transform var(--anim-fast), opacity var(--anim-fast);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.iv-nav--prev {
    left: 1.5rem;
}

.iv-nav--next {
    right: 1.5rem;
}

.iv-nav:hover {
    background: rgba(255, 62, 62, 0.4);
}

.iv-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.iv-thumbs {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
    overflow-x: auto;
    scrollbar-width: thin;
}

.iv-thumbs::-webkit-scrollbar {
    height: 4px;
}

.iv-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

.iv-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    background-color: rgba(255,255,255,0.05);
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--anim-fast), transform var(--anim-fast), opacity var(--anim-fast);
    opacity: 0.6;
}

.iv-thumb:hover {
    opacity: 1;
}

.iv-thumb--active {
    border-color: var(--red-bright);
    opacity: 1;
}

.iv-hint {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem 0.75rem;
    color: var(--text-faint);
    font-size: 0.68rem;
    flex-wrap: wrap;
}

.iv-hint kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    padding: 0.1rem 0.35rem;
    font-family: inherit;
    font-size: 0.62rem;
    color: var(--text-muted);
    line-height: 1.2;
    margin: 0 0.05rem;
}

.iv-hint span {
    opacity: 0.4;
}

@media (max-width: 768px) {
    .iv-topbar {
        padding: 0.75rem 1rem;
    }

    .iv-title {
        max-width: 150px;
        font-size: 0.78rem;
    }

    .iv-btn {
        padding: 0.4rem;
    }

    .iv-nav {
        padding: 0.6rem;
    }

    .iv-nav--prev { left: 0.5rem; }
    .iv-nav--next { right: 0.5rem; }

    .iv-wrap img {
        max-width: 95vw;
        max-height: 65vh;
    }

    .iv-thumb {
        width: 44px;
        height: 44px;
    }

    .iv-hint {
        font-size: 0.6rem;
        display: none;
    }
}

@media (max-width: 480px) {
    .iv-actions .iv-btn:nth-child(3),
    .iv-actions .iv-btn:nth-child(4) {
        display: none;
    }
}

.notif-toast {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 320px;
  max-width: calc(100vw - 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  animation: notifToastIn 0.3s ease;
  margin-bottom: 0.5rem;
}

.notif-toast.is-leaving {
  animation: notifToastOut 0.2s ease forwards;
}

@keyframes notifToastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes notifToastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

.notif-toast-body {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
}

.notif-toast-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.notif-toast-text {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.notif-toast-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.notif-toast-bar-fill {
  height: 100%;
  width: 100%;
  background: var(--red-bright);
  transition: none;
}

.notif-toast--forum .notif-toast-bar-fill { background: var(--red-bright); }
.notif-toast--info .notif-toast-bar-fill { background: var(--color-info); }
.notif-toast--success .notif-toast-bar-fill { background: var(--color-success); }
.notif-toast--warning .notif-toast-bar-fill { background: var(--color-warning); }
.notif-toast--error .notif-toast-bar-fill { background: var(--red-bright); }
.notif-toast--pm .notif-toast-bar-fill { background: var(--red-bright); }

.notif-toast:hover {
  border-color: rgba(255, 62, 62, 0.3);
}

.store-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.store-category-group {
  margin-bottom: 2.5rem;
}

.store-category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.store-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 200ms ease;
}

.store-card:hover {
  border-color: var(--accent, var(--red-bright));
}

.store-card-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #ff3e3e) 8%, transparent), transparent);
  border-bottom: 1px solid var(--border-softer);
}

.store-card-icon img {
  width: 48px;
  height: 48px;
}

.store-card-body {
  flex: 1;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.store-card-body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
}

.store-card-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.store-card-features {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.store-card-features li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.store-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-softer);
  background: rgba(0, 0, 0, 0.15);
}

.store-card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent, var(--red-bright));
}

.store-card-price-unit {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
}

.store-buy-btn {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  width: auto;
}

@media (max-width: 600px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
}

.store-orders-bar {
  margin-bottom: 1.5rem;
}

.store-orders-bar h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.6rem;
}

.store-orders-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.store-order-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
}

.store-order-chip--pending { border-color: rgba(255, 170, 0, 0.3); }
.store-order-chip--completed { border-color: rgba(72, 255, 139, 0.3); }
.store-order-chip--cancelled { border-color: rgba(255, 62, 62, 0.3); }

.store-order-chip-name { font-weight: 600; color: var(--text-light); }
.store-order-chip-ref { color: var(--text-faint); font-family: monospace; }
.store-order-chip-status {
  text-transform: capitalize;
  font-weight: 600;
  color: var(--text-muted);
}
.store-order-chip--pending .store-order-chip-status { color: var(--color-warning); }
.store-order-chip--completed .store-order-chip-status { color: var(--color-success); }
.store-order-chip--cancelled .store-order-chip-status { color: var(--red-bright); }

.store-checkout-modal,
.store-success-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 200ms ease;
}

.store-checkout-modal.open,
.store-success-modal.open {
  display: flex;
  opacity: 1;
}

.store-checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease, max-height 280ms ease;
}

.store-checkout-card.is-dropdown-open {
  max-height: none;
  overflow: visible;
}

.store-checkout-modal.open .store-checkout-card,
.store-success-modal.open .store-checkout-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .store-checkout-card {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

.store-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-softer);
}

.store-checkout-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
}

.store-checkout-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  transition: background 150ms ease;
}

.store-checkout-close:hover {
  background: var(--bg-card-hover);
}

.store-checkout-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.store-checkout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
}

.store-checkout-item-name {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.9rem;
}

.store-checkout-item-price {
  font-weight: 800;
  color: var(--red-bright);
  font-size: 1rem;
}

.store-checkout-methods {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.store-payment-option {
  cursor: pointer;
  display: block;
}

.store-payment-option input[type="radio"] {
  display: none;
}

.store-payment-option-body {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: border-color 150ms ease, background 150ms ease;
}

.store-payment-option input[type="radio"]:checked + .store-payment-option-body {
  border-color: var(--red-bright);
  background: rgba(255, 62, 62, 0.06);
}

.store-payment-option-body img {
  flex-shrink: 0;
}

.store-payment-name {
  display: block;
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.88rem;
}

.store-payment-desc {
  display: block;
  font-size: 0.74rem;
  color: var(--text-faint);
  margin-top: 0.1rem;
}

.store-checkout-info {
  padding: 0;
}

.store-payment-instructions {
  padding: 0.75rem 1rem;
  background: rgba(255, 170, 0, 0.06);
  border: 1px solid rgba(255, 170, 0, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.store-payment-instructions strong {
  color: var(--text-light);
}

.store-payment-instructions em {
  color: var(--text-faint);
  font-style: italic;
}

.store-delivery-note {
  background: rgba(255, 62, 62, 0.08);
  border: 1px solid rgba(255, 62, 62, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.45;
}

.store-checkout-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-softer);
}

.store-checkout-footer .btn {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
  width: auto;
}

.store-success-icon {
  text-align: center;
  margin: 0.5rem 0;
}
.modal-state-processing .store-success-icon,
.modal-state-warning .store-success-icon,
.modal-state-error .store-success-icon,
.modal-state-success .store-success-icon {
  padding: 0.5rem;
  border-radius: var(--radius-md, 8px);
}
.modal-state-processing .store-success-icon {
  background: rgba(59, 130, 246, 0.08);
}
.modal-state-warning .store-success-icon {
  background: rgba(245, 158, 11, 0.08);
}
.modal-state-error .store-success-icon {
  background: rgba(239, 68, 68, 0.08);
}
.modal-state-success .store-success-icon {
  background: rgba(72, 255, 139, 0.08);
}

.store-redirect-spinner {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto;
}
.store-redirect-spinner svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.store-redirect-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  object-fit: contain;
  z-index: 1;
}

.store-success-text {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.store-success-details {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.store-success-details p {
  margin: 0.2rem 0;
}

.store-success-details strong {
  color: var(--text-light);
}

.store-order-pending {
  color: var(--color-warning);
  font-weight: 600;
}

.store-success-payment-info {
  margin-top: 0.5rem;
}

.store-card-banner {
  height: 120px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border-softer);
}

.store-card-thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  object-fit: cover;
  margin-bottom: -28px;
  position: relative;
  z-index: 1;
}

.store-card-image {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.store-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: var(--red-bright);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  z-index: 2;
}

.store-card-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.store-card-old-price {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-decoration: line-through;
  line-height: 1;
}

.store-card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent, var(--red-bright));
  line-height: 1.1;
}

.store-payment-logo {
  height: 24px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  padding: 2px 6px;
  background: #fff;
}

.store-checkout-item-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.store-checkout-item-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.store-checkout-item-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.store-checkout-divider {
  height: 1px;
  background: var(--border-softer);
  margin: 1rem 0;
}

.store-checkout-pay-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.pay-dropdown {
  position: relative;
  width: 100%;
}

.pay-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  height: 60px;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-soft, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  color: var(--text-light, #fff);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  text-align: left;
}

.pay-trigger:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.pay-trigger:focus,
.pay-dropdown.is-open .pay-trigger {
  outline: none;
  border-color: var(--red-bright, #ff3e3e);
  box-shadow: 0 0 0 3px rgba(255, 62, 62, 0.15);
}

.pay-sel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.pay-opt-placeholder {
  color: var(--text-muted, #99999d);
  font-weight: 500;
}

.pay-chevron {
  color: var(--text-muted, #99999d);
  flex-shrink: 0;
  transition: transform 200ms ease, color 200ms ease;
}

.pay-dropdown.is-open .pay-chevron {
  transform: rotate(180deg);
  color: var(--red-bright, #ff3e3e);
}

.pay-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--bg-card, #181822);
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
  animation: storePayDropdownIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes storePayDropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.pay-opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 120ms ease;
  position: relative;
}

.pay-opt:hover,
.pay-opt.is-focused {
  background: rgba(255, 255, 255, 0.06);
}

.pay-opt.is-selected {
  background: rgba(255, 62, 62, 0.1);
}

.pay-opt-media {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
}

.pay-opt-logo {
  max-height: 28px;
  max-width: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.pay-opt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pay-opt-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pay-opt-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light, #fff);
}

.pay-opt-desc {
  font-size: 0.72rem;
  color: var(--text-muted, #99999d);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pay-opt-check {
  flex-shrink: 0;
  color: var(--red-bright, #ff3e3e);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 150ms ease, transform 150ms ease;
}

.pay-opt.is-selected .pay-opt-check {
  opacity: 1;
  transform: scale(1);
}
.pay-trigger .pay-opt-media {
  width: 40px;
  height: 28px;
}
.pay-trigger .pay-opt-logo {
  max-height: 24px;
  max-width: 40px;
}
.pay-trigger .pay-opt-icon {
  width: 28px;
  height: 28px;
}

.store-checkout-footer .btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.checkout-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: store-pay-spin 0.7s linear infinite;
}

.store-checkout-footer .btn-primary.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.store-checkout-footer .btn-primary.is-loading .checkout-spinner {
  display: inline-block;
}

@keyframes store-pay-spin {
  to { transform: rotate(360deg); }
}
#pjax-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 99999;
  background: transparent;
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

#pjax-loading-bar.is-loading {
  opacity: 1;
}

#pjax-loading-bar.is-error .pjax-loading-fill {
  background: #dc2626 !important;
}

.pjax-loading-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff3e3e, #ff8a3e, #ff3e3e);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(255, 62, 62, 0.6);
  animation: pjax-loading-shimmer 1.5s linear infinite;
  transition: width 200ms ease;
}

@keyframes pjax-loading-shimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

#pjax-container {
  position: relative;
  min-height: 60vh;
}

#pjax-container.pjax-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 120ms ease, transform 120ms ease;
}

#pjax-container.pjax-entering {
  opacity: 0;
  transform: translateY(-4px);
  animation: pjax-enter 240ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pjax-enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pjax-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 100%);
  background-size: 200% 100%;
  animation: pjax-skeleton-shimmer 1.4s linear infinite;
  border-radius: 6px;
  pointer-events: none;
}

@keyframes pjax-skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  #pjax-container.pjax-leaving,
  #pjax-container.pjax-entering {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }
  .pjax-loading-fill {
    animation: none;
  }
}

.lb-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.lb-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 20px rgba(255, 62, 62, 0.3);
}

.lb-hero-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 0.3rem;
}

.lb-hero-updated {
    color: var(--text-faint);
    font-size: 0.75rem;
}

.lb-top3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
    align-items: end;
}

.lb-podium {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: transform 200ms ease;
}

.lb-podium:hover {
    transform: translateY(-4px);
}

.lb-podium-1 {
    order: 2;
    padding: 2.5rem 1.5rem;
    border-color: color-mix(in srgb, var(--podium-color, #ffd700) 30%, transparent);
    box-shadow: 0 0 40px color-mix(in srgb, var(--podium-color, #ffd700) 10%, transparent), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lb-podium-2 {
    order: 1;
}

.lb-podium-3 {
    order: 3;
}

.lb-podium-rank {
    margin-bottom: 0.75rem;
}

.lb-podium-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.lb-podium-1 .lb-podium-num {
    font-size: 2rem;
    color: var(--podium-color, #ffd700);
}

.lb-podium-2 .lb-podium-num {
    color: var(--podium-color, #c0c0c0);
}

.lb-podium-3 .lb-podium-num {
    color: var(--podium-color, #cd7f32);
}

.lb-podium-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.lb-podium-1 .lb-podium-name {
    font-size: 1.3rem;
}

.lb-podium-steamid {
    font-size: 0.7rem;
    color: var(--text-faint);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.lb-podium-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--red-bright);
}

.lb-podium-1 .lb-podium-value {
    font-size: 2rem;
}

.lb-search-wrap {
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lb-search-wrap .lb-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.lb-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.lb-search-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 150ms ease;
}

.lb-search-input:focus {
    border-color: var(--red-bright);
}

.lb-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.lb-table {
    width: 100%;
}

.lb-table .lb-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.lb-rank-1 {
    background: color-mix(in srgb, var(--podium-color, #ffd700) 15%, transparent) !important;
    color: var(--podium-color, #ffd700) !important;
}

.lb-rank-2 {
    background: rgba(192, 192, 192, 0.15) !important;
    color: #c0c0c0 !important;
}

.lb-rank-3 {
    background: rgba(205, 127, 50, 0.15) !important;
    color: #cd7f32 !important;
}

.lb-player-name {
    font-weight: 600;
    color: var(--text-light);
}

.lb-steamid {
    font-size: 0.78rem;
    color: var(--text-faint);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.lb-value {
    font-weight: 800;
    color: var(--red-bright);
    font-variant-numeric: tabular-nums;
}

.lb-error, .lb-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.lb-error-hint, .lb-empty-hint {
    color: var(--text-faint);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .lb-top3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .lb-podium-1 {
        order: 1;
    }
    .lb-podium-2 {
        order: 2;
    }
    .lb-podium-3 {
        order: 3;
    }
    .lb-hero-title {
        font-size: 1.75rem;
    }
    .lb-table-wrap {
        overflow-x: auto;
    }
}

.lb-podium-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.lb-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-soft);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-avatar-podium {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
}

.lb-podium-1 .lb-avatar-podium {
    width: 80px;
    height: 80px;
    border-color: var(--podium-color, #ffd700);
}

.lb-podium-2 .lb-avatar-podium {
    border-color: var(--podium-color, #c0c0c0);
}

.lb-podium-3 .lb-avatar-podium {
    border-color: var(--podium-color, #cd7f32);
}

.lb-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-avatar-placeholder {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
}

.lb-avatar-podium .lb-avatar-placeholder {
    font-size: 1.8rem;
}

.lb-avatar-row {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
}

.lb-avatar-row .lb-avatar-placeholder {
    font-size: 0.85rem;
}

.lb-player-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

@media (max-width: 768px) {
    .lb-avatar-podium {
        width: 48px;
        height: 48px;
    }
    .lb-podium-1 .lb-avatar-podium {
        width: 56px;
        height: 56px;
    }
}

.lb-table-striped tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.lb-value-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.lb-value-bar {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.lb-value-bar-fill {
    height: 100%;
    background: var(--lb-accent, var(--red-bright));
    border-radius: 2px;
    transition: width 400ms ease;
}

.lb-table .lb-rank-badge {
    background: rgba(255, 255, 255, 0.04);
}

.lb-table .lb-rank-badge.lb-rank-1 {
    background: color-mix(in srgb, var(--podium-color, #ffd700) 15%, transparent) !important;
    color: var(--podium-color, #ffd700) !important;
}
.lb-table .lb-rank-badge.lb-rank-2 {
    background: color-mix(in srgb, #c0c0c0 15%, transparent) !important;
    color: #c0c0c0 !important;
}
.lb-table .lb-rank-badge.lb-rank-3 {
    background: color-mix(in srgb, #cd7f32 15%, transparent) !important;
    color: #cd7f32 !important;
}

.lb-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-cat-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.lb-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms ease;
}

.lb-cat-tab:hover {
    background: var(--bg-card-hover);
    color: var(--text-light);
    border-color: rgba(255, 62, 62, 0.3);
}

.lb-cat-tab.active {
    background: var(--red-bright);
    color: #fff;
    border-color: var(--red-bright);
}

.lb-steamid-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
    letter-spacing: 0.02em;
    transition: all 150ms ease;
}

.lb-steamid-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 62, 62, 0.3);
    color: var(--text-light);
}

.lb-podium-steamid .lb-steamid-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
}

.store-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #5865F2;
    color: #fff !important;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 200ms ease, transform 100ms ease;
    margin-top: 0.5rem;
}

.store-discord-btn:hover {
    background: #4752C4;
    transform: translateY(-1px);
}

.store-discord-btn:active {
    transform: translateY(0);
}
.mv-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.mv-modal.mv-open {
    display: flex;
}
.mv-modal[hidden] {
    display: none !important;
}
.mv-backdrop {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
}
.mv-toolbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
    z-index: 10;
}
.mv-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
}
.mv-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}
.mv-btn--icon {
    width: 36px;
    height: 36px;
}
.mv-close {
    margin-left: auto;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}
.mv-close:hover {
    background: rgba(239, 68, 68, 0.35);
}
.mv-counter {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    z-index: 10;
}
.mv-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.15s;
}
.mv-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}
.mv-nav--prev { left: 1rem; }
.mv-nav--next { right: 1rem; }
.mv-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    z-index: 5;
}
.mv-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.1s ease-out;
    will-change: transform;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.mv-video {
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    background: #000;
}
.mv-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
}
.mv-error {
    color: #fca5a5;
    font-size: 0.95rem;
    text-align: center;
    padding: 2rem;
}
.mv-thumbnails {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0.4rem;
    padding: 0.5rem;
    overflow-x: auto;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    z-index: 10;
    justify-content: center;
}
.mv-thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.15s;
}
.mv-thumb img,
.mv-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mv-thumb--active {
    border-color: #3B82F6;
}

@media (max-width: 640px) {
    .mv-toolbar { flex-wrap: wrap; padding: 0.4rem; }
    .mv-btn--icon { width: 32px; height: 32px; }
    .mv-nav { padding: 0.5rem 0.3rem; }
    .mv-nav--prev { left: 0.4rem; }
    .mv-nav--next { right: 0.4rem; }
    .mv-image { max-width: 95vw; max-height: 70vh; }
    .mv-thumbnails { padding: 0.3rem; }
    .mv-thumb { width: 44px; height: 44px; }
}
.pm-upload-progress {
    display: none;
    height: 4px;
    background: var(--bg-soft, #1a1a1a);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.5rem;
}
.pm-upload-progress.is-active { display: block; }
.pm-upload-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3B82F6, #48ff8b);
    border-radius: 2px;
    transition: width 0.2s ease;
}
.pm-upload-progress-text {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted, #888);
    white-space: nowrap;
}
.mv-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2rem;
    max-width: 400px;
}
.mv-modal {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.mv-modal.mv-open {
    opacity: 1;
}
.mv-modal[hidden] {
    opacity: 0;
}
.mv-btn:disabled {
    cursor: not-allowed !important;
    opacity: 0.4;
}
.mv-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
.video-player-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-player-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #000;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    z-index: 5;
}
.video-player-play-overlay {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.video-player-play-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}
.video-player-play-overlay span {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.video-player-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: #fca5a5;
    font-size: 0.9rem;
    background: #1a1a1a;
    border-radius: 8px;
}
.home-browse-forums-btn {
    width: auto;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: 0;
    display: flex;
}

@media (max-width: 768px) {
    .home-browse-forums-btn {
        margin-top: 1.5rem;
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        min-width: 44px;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .notif-trigger {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .bbcode-toolbar button {
        min-width: 40px;
        min-height: 40px;
    }
    .forum-page-btn,
    .forum-page-dots {
        min-width: 40px;
        min-height: 40px;
    }
    .pm-send-btn {
        width: 44px;
        height: 44px;
    }
    .pm-attach-btn {
        min-width: 44px;
        min-height: 44px;
    }
    .pm-icon-btn {
        min-width: 40px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .admin-btn-action {
        min-height: 36px;
        padding: 0.35rem 0.6rem !important;
    }
    .img-modal-close,
    .store-checkout-close,
    .video-player-close,
    .pm-modal-close {
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .notif-item-delete {
        opacity: 1 !important;
    }
}
@media (max-width: 480px) {
    .iv-actions .iv-btn:nth-child(3),
    .iv-actions .iv-btn:nth-child(4) {
        display: inline-flex;
    }
}
@media (max-width: 480px) {
    .color-presets {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
@media (max-width: 600px) {
    .pm-msg-quote-text {
        white-space: normal !important;
        max-width: 100% !important;
        word-break: break-word;
    }
}
.img-modal,
.color-modal {
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.video-player-wrap {
    max-height: 90vh;
    overflow: hidden;
}
.img-modal-tabs {
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .pm-media {
        padding: 1rem !important;
    }
}
@media (max-width: 768px) {
    .admin-page [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 480px) {
    .admin-page textarea,
    .admin-page input[type="text"],
    .admin-page input[type="email"],
    .admin-page input[type="number"],
    .admin-page input[type="password"],
    .admin-page input[type="url"],
    .admin-page select {
        font-size: 16px !important;
    }
}
@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr !important;
    }
}
.server-players-count {
    font-size: 0.85rem;
    font-weight: 700;
}
@media (max-width: 768px) {
    .admin-tabs {
        position: relative;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    }
}
.pm-conv-list,
.notif-list,
.admin-table-wrap,
.iv-thumbs,
.mv-thumbnails,
.lb-table-wrap {
    overscroll-behavior: contain;
}
@media (max-width: 640px) {
    .mv-btn--icon {
        width: 40px;
        height: 40px;
    }
    .mv-nav {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
.forum-search-bar {
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .store-buy-btn {
        min-height: 44px;
        padding: 0.6rem 1rem;
    }
}
@media (max-width: 600px) and (max-height: 700px) {
    .pm-layout {
        min-height: 480px !important;
    }
}
.forum-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
}
.forum-reaction {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    font-size: 0.85rem;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.forum-reaction:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-medium);
}
.forum-reaction:active {
    transform: scale(0.92);
}
.forum-reaction--active {
    background: rgba(255, 62, 62, 0.15);
    border-color: rgba(255, 62, 62, 0.4);
}
.forum-reaction--active:hover {
    background: rgba(255, 62, 62, 0.22);
}
.forum-reaction-emoji {
    font-size: 1rem;
    line-height: 1;
}
.forum-reaction-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 0.5rem;
}
.forum-reaction--active .forum-reaction-count {
    color: var(--red-bright);
}
@media (max-width: 480px) {
    .forum-reaction {
        min-height: 36px;
        padding: 0.35rem 0.6rem;
    }
}
.avatar-wrapper {
    position: relative;
    display: inline-block;
    line-height: 0;
}
.avatar-wrapper > .presence-dot,
.avatar-wrapper > .presence-dot-forum,
.forum-post-avatar-wrap > .presence-dot,
.forum-post-avatar-wrap > .presence-dot-forum {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    z-index: 2;
    box-sizing: content-box;
}

.forum-post-avatar-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}
@media (max-width: 768px) {
    .avatar-wrapper > .presence-dot,
    .forum-post-avatar-wrap > .presence-dot {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }
}
.avatar-wrapper.avatar-xs > .presence-dot,
.forum-post-avatar-wrap.avatar-xs > .presence-dot {
    width: 8px;
    height: 8px;
    bottom: 1px;
    right: 1px;
    border-width: 1.5px;
}
.dnd-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}
.dnd-toggle-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.lb-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.lb-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--red-bright);
}
.lb-refresh-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
.lb-refresh-btn--spinning img {
    animation: lb-spin 0.8s linear infinite;
}
@keyframes lb-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@media (max-width: 480px) {
    .lb-refresh-btn span { display: none; }
    .lb-refresh-btn { padding: 0.4rem; }
}
.reaction-users-popup {
    position: absolute;
    z-index: 9000;
    min-width: 200px;
    max-width: 280px;
    background: var(--bg-card, #1a1a1f);
    border: 1px solid var(--border-medium, #3a3a40);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    font-size: 0.85rem;
    color: var(--text-light, #e8e8e8);
}
.reaction-users-popup-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border-soft, #2a2a30);
}
.reaction-users-popup-emoji {
    font-size: 1.1rem;
    line-height: 1;
}
.reaction-users-popup-count {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted, #99999d);
}
.reaction-users-popup-list {
    max-height: 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.25rem;
}
.reaction-users-popup-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
}
.reaction-users-popup-user:hover {
    background: rgba(255, 255, 255, 0.06);
}
.reaction-users-popup-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.reaction-users-popup-name {
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reaction-users-popup-empty,
.reaction-users-popup-loading,
.reaction-users-popup-error {
    padding: 0.75rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted, #99999d);
}
@media (max-width: 480px) {
    .reaction-users-popup {
        min-width: 180px;
        max-width: calc(100vw - 16px);
    }
}
@media (max-width: 600px) {
    .pm-send-row {
        flex-wrap: nowrap;
        gap: 0.4rem;
    }
    .pm-send-row #pm-message-input {
        flex: 1 1 auto;
        min-width: 0;
    }
    .pm-attach-btn,
    .pm-send-btn {
        flex: 0 0 auto;
    }
}
@media (max-width: 360px) {
    .pm-msg {
        max-width: 88%;
    }
    .pm-msg-bubble {
        font-size: 0.85rem;
    }
}
.pm-chat-header {
    min-width: 0;
}
.pm-chat-header-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
@media (max-width: 768px) {
    .notif-dropdown,
    .profile-dropdown {
        max-width: calc(100vw - 2rem);
    }
}
.forum-post-author {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.forum-post-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}
@media (max-width: 480px) {
    .store-checkout-card {
        max-width: 100%;
        margin: 0.5rem;
        max-height: 92vh;
    }
    .store-checkout-footer {
        flex-direction: column-reverse;
    }
    .store-checkout-footer .btn {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .settings-form button[type="submit"],
    .settings-form .btn-primary {
        width: 100% !important;
    }
}
.admin-table-wrap {
    position: relative;
    -webkit-overflow-scrolling: touch;
}
.profile-page-avatar {
    max-width: 100%;
}
@media (max-width: 480px) {
    .forum-reply-form-card textarea {
        min-height: 120px;
    }
}
@media (max-width: 360px) {
    .navbar-content {
        gap: 0.5rem;
    }
    .nav-logo img {
        height: 1.75rem;
    }
}
@media (max-width: 480px) {
    .toast-stack {
        top: auto;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
    .notif-toast {
        max-width: 100%;
    }
}
.forum-reactions {
    max-width: 100%;
}
.avatar-wrapper,
.forum-post-avatar-wrap {
    contain: layout;
}
@media (max-width: 900px) {

    .pm-chat-header {
        min-width: 0;
        padding: 0.6rem 0.75rem;
        gap: 0.5rem;
    }
    .pm-head-info {
        min-width: 0;
        flex: 1 1 auto;
    }
    .pm-head-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }

    .pm-sidebar.is-mobile-open {
        width: 100%;
        max-width: 360px;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    }

    .pm-sidebar-backdrop {
        background: rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 430px) {

    .pm-sidebar.is-mobile-open {
        max-width: calc(100vw - 32px);
    }
    .pm-chat-header {
        padding: 0.5rem 0.6rem;
    }
    .pm-head-avatar {
        width: 32px;
        height: 32px;
    }
    .pm-head-actions {
        gap: 0.25rem;
    }

    .pm-send-form {
        padding: 0.5rem 0.6rem;
    }
    .pm-send-row {
        gap: 0.35rem;
    }
    #pm-message-input {
        font-size: 16px;
        min-height: 40px;
    }
}

@media (max-width: 360px) {

    .pm-head-actions .pm-icon-btn:not(.pm-block-btn):not(.pm-delete-btn) {
        display: none;
    }
    .pm-msg {
        max-width: 90%;
    }
}
.forum-reaction--add {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-medium, #3a3a40);
    color: var(--text-muted, #99999d);
    font-size: 1rem;
    min-width: 32px;
    padding: 0.3rem 0.55rem;
}
.forum-reaction--add:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--red-bright, #ff3e3e);
    color: var(--text-light, #e8e8e8);
}

.reaction-picker {
    position: absolute;
    z-index: 9100;
    width: 280px;
    max-width: calc(100vw - 16px);
    background: var(--bg-card, #1a1a1f);
    border: 1px solid var(--border-medium, #3a3a40);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    overflow: hidden;
}
.reaction-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.25rem;
    max-height: 220px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.reaction-picker-emoji {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 0.4rem;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.1s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reaction-picker-emoji:hover {
    background: rgba(255, 255, 255, 0.1);
}
.reaction-picker-emoji:active {
    transform: scale(0.95);
}
@media (max-width: 480px) {
    .reaction-picker {
        width: calc(100vw - 32px);
    }
    .reaction-picker-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .reaction-picker-emoji {
        min-width: 40px;
        min-height: 40px;
    }
}
.bbcode-code {
    position: relative;
    background: #0d0d10;
    border: 1px solid var(--border-soft, #2a2a30);
    border-radius: 8px;
    padding: 2.5rem 1rem 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    overscroll-behavior: contain;
}
.bbcode-code code {
    font-family: 'SF Mono', Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e8e8e8;
    white-space: pre;
    display: block;
}
.bbcode-code::before {
    content: attr(data-lang);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted, #99999d);
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border-soft, #2a2a30);
    border-radius: 8px 8px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.bbcode-code .bbcode-code-copy {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-soft, #2a2a30);
    color: var(--text-light, #e8e8e8);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.15s;
    z-index: 2;
}
.bbcode-code .bbcode-code-copy:hover {
    background: rgba(255, 255, 255, 0.15);
}
.bbcode-code .bbcode-code-copy.copied {
    background: rgba(72, 255, 139, 0.2);
    border-color: rgba(72, 255, 139, 0.4);
    color: #48ff8b;
}
.bbcode-code.inline {
    display: inline;
    padding: 0.15rem 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    font-size: 0.85em;
}
.bbcode-post-content sup,
.forum-post-content sup { font-size: 0.75em; vertical-align: super; }
.bbcode-post-content sub,
.forum-post-content sub { font-size: 0.75em; vertical-align: sub; }
mark {
    background: rgba(255, 235, 59, 0.3);
    color: inherit;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}
.bbcode-small { font-size: 0.8em; opacity: 0.85; }
.bbcode-large { font-size: 1.25em; font-weight: 500; }
.bbcode-h1 { font-size: 1.5rem; font-weight: 700; margin: 1rem 0 0.5rem; }
.bbcode-h2 { font-size: 1.25rem; font-weight: 700; margin: 1rem 0 0.5rem; }
.bbcode-h3 { font-size: 1.1rem; font-weight: 600; margin: 0.75rem 0 0.4rem; }
.bbcode-callout {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--text-muted, #99999d);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 8px 8px 0;
}
.bbcode-callout-body { color: var(--text-light, #e8e8e8); }
.bbcode-callout--warning { border-left-color: #ffaa00; background: rgba(255, 170, 0, 0.08); }
.bbcode-callout--info    { border-left-color: #6495ed; background: rgba(100, 149, 237, 0.08); }
.bbcode-callout--success { border-left-color: #48ff8b; background: rgba(72, 255, 139, 0.08); }
.bbcode-callout--danger  { border-left-color: #ff3e3e; background: rgba(255, 62, 62, 0.08); }
.bbcode-callout--note    { border-left-color: #a855f7; background: rgba(168, 85, 247, 0.08); }
kbd {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-medium, #3a3a40);
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.8em;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 2px rgba(0, 0, 0, 0.3);
}
.bbcode-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--red-bright, #ff3e3e);
    color: #fff;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.bbcode-var {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-style: italic;
    color: var(--red-bright, #ff3e3e);
    background: rgba(255, 62, 62, 0.06);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}
dl.bbcode-def {
    margin: 0.75rem 0;
    padding-left: 1rem;
    border-left: 2px solid var(--border-soft, #2a2a30);
}
dl.bbcode-def dt {
    font-weight: 600;
    color: var(--text-light, #e8e8e8);
    margin-top: 0.4rem;
}
dl.bbcode-def dt:first-child { margin-top: 0; }
dl.bbcode-def dd {
    margin-left: 0;
    color: var(--text-muted, #99999d);
    margin-bottom: 0.4rem;
}
ol.bbcode-steps {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    counter-reset: steps;
}
ol.bbcode-steps > li {
    margin: 0.4rem 0;
    padding-left: 0.5rem;
}
ol.bbcode-steps > li::marker {
    color: var(--red-bright, #ff3e3e);
    font-weight: 700;
}
@media (max-width: 480px) {
    .bbcode-code {
        padding: 2.5rem 0.75rem 0.75rem;
        font-size: 0.8rem;
    }
    .bbcode-code code {
        font-size: 0.78rem;
    }
    .bbcode-code .bbcode-code-copy {
        padding: 0.3rem 0.5rem;
        min-height: 32px;
    }
}
.link-key-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft, #2a2a30);
    border-radius: 8px;
    word-break: break-all;
}
.link-key-box code {
    flex: 1;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.82rem;
    color: var(--red-bright, #ff3e3e);
    word-break: break-all;
}

.player-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-soft, #2a2a30);
}
.player-stat-row:last-child { border-bottom: none; }
.player-stat-label {
    font-weight: 500;
    color: var(--text-light, #e8e8e8);
    flex: 1;
}
.player-stat-value {
    color: var(--red-bright, #ff3e3e);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.player-stat-rank {
    color: var(--text-muted, #99999d);
    font-size: 0.82rem;
    min-width: 60px;
    text-align: right;
}
@media (max-width: 480px) {
    .player-stat-row {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .player-stat-label { width: 100%; }
    .player-stat-value { flex: 1; }
    .player-stat-rank { text-align: right; }
}

.cat-icon--code {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cat-icon--code .cat-inline-svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block !important;
}

.ios-checkbox {
  --checkbox-size: 24px;
  --checkbox-color: #3b82f6;
  --checkbox-bg: #dbeafe;
  --checkbox-border: #93c5fd;
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ios-checkbox input {
  display: none;
}
.checkbox-wrapper {
  position: relative;
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  border-radius: 7px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.checkbox-bg {
  position: absolute;
  inset: 0;
  border-radius: 7px;
  border: 2px solid var(--checkbox-border);
  background: var(--bg-input);
  transition: all 0.2s ease;
}
.checkbox-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 80%;
  height: 80%;
  color: #fff;
  transform: scale(0);
  transition: all 0.2s ease;
}
.check-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.3s ease 0.1s;
}

.ios-checkbox input:checked + .checkbox-wrapper .checkbox-bg {
  background: var(--checkbox-color);
  border-color: var(--checkbox-color);
}
.ios-checkbox input:checked + .checkbox-wrapper .checkbox-icon {
  transform: scale(1);
}
.ios-checkbox input:checked + .checkbox-wrapper .check-path {
  stroke-dashoffset: 0;
}

.ios-checkbox:hover .checkbox-wrapper {
  transform: scale(1.05);
}
.ios-checkbox:active .checkbox-wrapper {
  transform: scale(0.95);
}

.ios-checkbox input:focus + .checkbox-wrapper .checkbox-bg {
  box-shadow: 0 0 0 4px var(--checkbox-bg);
}

.ios-checkbox.red {
  --checkbox-color: #ef4444;
  --checkbox-bg: rgba(239, 68, 68, 0.15);
  --checkbox-border: rgba(239, 68, 68, 0.4);
}

@keyframes ios-checkbox-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.ios-checkbox input:checked + .checkbox-wrapper {
  animation: ios-checkbox-bounce 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-card {
    position: relative;
    width: 190px;
    height: 58px;
    margin: 0 auto 22px;
    overflow: hidden;
    border-radius: 22px;
    background: #090909;
    border: 1px solid rgba(255, 40, 40, 0.18);
    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(180, 0, 0, 0.08);
    transition: transform 0.45s ease, border-color 0.45s ease;
}

.footer-social-card:hover {
    transform: scale(1.04);
    border-color: rgba(255, 45, 45, 0.35);
}

.footer-social-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 15% 100%,
            rgba(150, 0, 0, 0.38),
            transparent 48%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(70, 0, 0, 0.22),
            transparent 52%
        ),
        linear-gradient(
            145deg,
            #030303 0%,
            #100404 48%,
            #050505 100%
        );
}

.footer-social-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;

    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;

    white-space: nowrap;
    transition:
        transform 0.6s ease,
        letter-spacing 0.6s ease;
}

.footer-social-box {
    position: absolute;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 38px;
    padding: 0;

    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;

    background: rgba(20, 20, 20, 0.9);

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.35);

    transform-origin: bottom left;

    transition:
        all 0.55s cubic-bezier(.2, .8, .2, 1);
}

.footer-social-box::before {
    content: "";
    position: absolute;
    inset: 0;

    border-radius: inherit;

    opacity: 0;

    transition: opacity 0.4s ease;
}
.footer-social-box--youtube {
    left: -52px;
    bottom: -38px;
}

.footer-social-box--youtube::before {
    background:
        radial-gradient(
            circle at 30% 107%,
            #ff5555 0%,
            #d40000 55%,
            #650000 100%
        );
}
.footer-social-box--discord {
    left: -52px;
    bottom: -38px;
    transition-delay: 0.08s;
}

.footer-social-box--discord::before {
    background:
        radial-gradient(
            circle at 30% 107%,
            #7289da 0%,
            #5865f2 55%,
            #2c2f6f 100%
        );
}

.footer-social-box--gametracker {
    left: -52px;
    bottom: -38px;
    transition-delay: 0.16s;
}

.footer-social-box--gametracker::before {
    background:
        radial-gradient(
            circle at 30% 107%,
            #ffb300 0%,
            #f57c00 45%,
            #8a3f00 75%,
            #111111 100%
        );
}

.footer-social-icon {
    position: relative;
    z-index: 2;

    display: flex;
    width: 20px;
    height: 20px;
}

.footer-social-icon svg {
    width: 100%;
    height: 100%;

    fill: rgba(255, 255, 255, 0.72);

    transition:
        fill 0.35s ease,
        filter 0.35s ease,
        transform 0.35s ease;
}

.footer-social-box:hover::before {
    opacity: 1;
}

.footer-social-box:hover .footer-social-icon svg {
    fill: #fff;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.65));
    transform: scale(1.08);
}

.footer-social-card:hover .footer-social-box--youtube {
    left: 10px;
    bottom: 10px;
}

.footer-social-card:hover .footer-social-box--discord {
    left: 69px;
    bottom: 10px;
}

.footer-social-card:hover .footer-social-box--gametracker {
    left: 128px;
    bottom: 10px;
}

.footer-social-card:hover .footer-social-logo {
    transform: translate(45px, -53px);
    letter-spacing: 0;
}

.pm-msg-read {
    letter-spacing: normal !important;
    font-weight: 600;
    font-size: 0.7rem;
}

.pm-msg-att--audio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 0.65rem 0.85rem;
    min-width: 250px;
    max-width: 300px;
}

.pm-msg--in .pm-msg-att--audio {
    background: var(--bg-card);
    border-color: var(--border-soft);
}

.pm-audio-play {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
    padding: 0;
}
.pm-audio-play:hover { transform: scale(1.06); background: #ffffff; }
.pm-audio-play:active { transform: scale(0.96); }
.pm-audio-play img { width: 14px; height: 14px; }
.pm-audio-play .pm-audio-icon-pause { display: none; }
.pm-audio-play.is-playing .pm-audio-icon-play { display: none; }
.pm-audio-play.is-playing .pm-audio-icon-pause { display: block; }

.pm-audio-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 0.35rem;
}

.pm-audio-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pm-msg--in .pm-audio-name { color: var(--text-light); }

.pm-audio-track-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pm-audio-progress {
    position: relative;
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
}
.pm-msg--in .pm-audio-progress { background: rgba(255, 255, 255, 0.08); }

.pm-audio-progress-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0%;
    border-radius: 2px;
    background: #ffffff;
    pointer-events: none;
}
.pm-msg--in .pm-audio-progress-fill { background: #ff3e3e; }

.pm-audio-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
    pointer-events: none;
}
.pm-msg--in .pm-audio-progress-handle { background: #ff3e3e; }

.pm-audio-time {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.65);
    min-width: 32px;
    text-align: right;
}
.pm-msg--in .pm-audio-time { color: var(--text-faint); }

.button-forum-browse {
    position: relative;
    left: 50%;
    transform: translateX(-50%);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    min-width: 170px;
    height: 52px;
    padding: 0 22px;
    margin-top: 12px;

    box-sizing: border-box;

    background-color: #650000;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;

    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;

    gap: 10px;
    cursor: pointer;
    overflow: hidden;

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.3s ease-in-out,
        border-color 0.3s ease-in-out,
        background-color 0.3s ease-in-out;
}

.button-forum-browse:hover {
    transform: translateX(-50%) scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.forum-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease-in-out;
}

.button-forum-browse:hover .forum-icon {
    transform: translateX(4px);
}

.button-forum-browse:hover::before {
    animation: btn-shine 1.5s ease-out infinite;
}

.button-forum-browse::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100%;
    top: 0;
    left: -100px;

    background-image: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0) 70%
    );

    opacity: 0.6;
    pointer-events: none;
}

@keyframes btn-shine {
    0% {
        left: -100px;
    }

    60% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}
.page.home-page {
    max-width: 1160px;
    padding-bottom: 3rem;
}
.mt-hero {
    position: relative;
    padding: 4.5rem 0 3rem;
    display: flex;
    justify-content: center;
}

.mt-hero-glow,
.mt-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.mt-hero-glow {
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 62, 62, 0.18), transparent 70%),
        radial-gradient(ellipse 40% 35% at 15% 90%, rgba(179, 0, 0, 0.14), transparent 70%);
    opacity: 0.9;
    animation: mt-hero-glow-pulse 6s ease-in-out infinite;
}

.mt-hero-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px, 44px 44px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
    opacity: 0.7;
}

@keyframes mt-hero-glow-pulse {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}

.mt-hero-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 2.75rem 2rem 2.25rem;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.85), rgba(20, 6, 7, 0.7));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow:
        0 0 60px rgba(179, 0, 0, 0.18),
        0 30px 60px -30px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.mt-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(255, 62, 62, 0.08);
    border: 1px solid var(--border-red);
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.mt-hero-eyebrow img { display: block; }

.mt-hero-title {
    margin: 0;
    font-family: 'Inter', 'Montserrat', 'Arial Black', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: clamp(2.25rem, 7vw, 4.25rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.mt-hero-title-monster {
    position: relative;
    display: inline-block;
    color: var(--red-bright);
    text-shadow:
        0 0 22px rgba(255, 62, 62, 0.35),
        0 4px 14px rgba(0, 0, 0, 0.55);
}

.mt-hero-title-team {
    position: relative;
    display: inline-block;
    color: #fff;
    text-shadow:
        0 0 18px rgba(255, 255, 255, 0.12),
        0 4px 14px rgba(0, 0, 0, 0.55);
}

.mt-hero-title-sep {
    width: 2px;
    height: 0.62em;
    background: linear-gradient(180deg, transparent, var(--red-bright), transparent);
    box-shadow: 0 0 8px rgba(255, 62, 62, 0.4);
    border-radius: 2px;
    opacity: 0.85;
}

.mt-hero-subtitle {
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}
.mt-status-strip {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
}

.mt-status-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border-softer);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.mt-status-label {
    color: var(--text-faint);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.68rem;
}

.mt-status-value {
    color: var(--text-light);
    font-weight: 700;
}

.mt-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red-bright);
    box-shadow: 0 0 8px rgba(255, 62, 62, 0.55);
    animation: mt-dot-pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

.mt-status-dot--static {
    background: #48ff8b;
    box-shadow: 0 0 6px rgba(72, 255, 139, 0.5);
    animation: none;
}

.mt-status-strip-item--server .mt-status-dot {
    background: #ffaa00;
    box-shadow: 0 0 8px rgba(255, 170, 0, 0.55);
}

@keyframes mt-dot-pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.25); opacity: 0.7; }
}
.mt-hero-cta {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.mt-btn {
    min-height: 44px;
    padding: 0.65rem 1.25rem;
    transition: transform 180ms var(--ease), background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.mt-btn:hover {
    transform: translateY(-2px);
}

.mt-btn:active {
    transform: translateY(0) scale(0.98);
}

.mt-btn:focus-visible {
    outline-offset: 2px;
}

.mt-btn--sm {
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
}
.mt-announcements {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0 0 2rem;
}

.mt-announcement {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.95rem 1.1rem 0.95rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.9), rgba(20, 6, 7, 0.6));
    position: relative;
    overflow: hidden;
    transition: transform 180ms var(--ease), border-color 180ms ease, box-shadow 180ms ease;
}

.mt-announcement::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--color-info, #6495ed);
}

.mt-announcement--info::before    { background: var(--color-info, #6495ed); }
.mt-announcement--success::before { background: var(--color-success, #48ff8b); }
.mt-announcement--warning::before { background: var(--color-warning, #ffaa00); }
.mt-announcement--danger::before  { background: var(--color-danger, #ff3e3e); }

.mt-announcement:hover {
    border-color: var(--border-red-bright);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
}

.mt-announcement-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 62, 62, 0.08);
    border: 1px solid var(--border-red);
}

.mt-announcement-body {
    flex: 1;
    min-width: 0;
}

.mt-announcement-title {
    display: block;
    color: var(--text-light);
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
}

.mt-announcement-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.55;
}
.mt-server {
    margin-bottom: 2.5rem;
}

.mt-server-card {
    position: relative;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.92), rgba(20, 6, 7, 0.78));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.mt-server-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 62, 62, 0.1), transparent 60%);
}

.mt-server-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.mt-server-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.01em;
}

.mt-server-subtitle {
    margin: 0.2rem 0 0;
    color: var(--text-faint);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.mt-server-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-muted);
}

.mt-server-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffaa00;
    box-shadow: 0 0 8px rgba(255, 170, 0, 0.6);
    animation: mt-dot-pulse 1.6s ease-in-out infinite;
}

.mt-server-pill--online {
    color: #48ff8b;
    border-color: rgba(72, 255, 139, 0.3);
    background: rgba(72, 255, 139, 0.06);
}
.mt-server-pill--online .mt-server-pill-dot {
    background: #48ff8b;
    box-shadow: 0 0 8px rgba(72, 255, 139, 0.6);
    animation: none;
}

.mt-server-pill--offline {
    color: var(--text-faint);
    border-color: var(--border-soft);
    background: rgba(0, 0, 0, 0.3);
}
.mt-server-pill--offline .mt-server-pill-dot {
    background: var(--text-faint);
    box-shadow: none;
    animation: none;
}

.mt-server-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1.25rem 0 1rem;
    position: relative;
    z-index: 1;
}

.mt-server-tile {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border-softer);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.mt-server-tile-label {
    font-size: 0.66rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.mt-server-tile-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.1;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mt-server-tile-sep {
    color: var(--text-faint);
    margin: 0 0.15rem;
    font-weight: 600;
}

.mt-server-progress {
    position: relative;
    z-index: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    margin: 0 0 1.25rem;
    border: 1px solid var(--border-softer);
}

.mt-server-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--red-primary), var(--red-bright));
    box-shadow: 0 0 12px rgba(255, 62, 62, 0.45);
    transition: width 480ms var(--ease);
}

.mt-server-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.mt-server-actions .mt-btn {
    flex: 0 0 auto;
}
.mt-activity {
    margin-bottom: 2.5rem;
}

.mt-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.mt-stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
    padding: 1.25rem 1rem 1.1rem;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.92), rgba(20, 6, 7, 0.6));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 200ms var(--ease), border-color 200ms ease, box-shadow 200ms ease;
}

.mt-stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-red-bright);
    box-shadow: 0 12px 30px -12px rgba(255, 62, 62, 0.25), 0 0 0 1px rgba(255, 62, 62, 0.18);
}

.mt-stat-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 62, 62, 0.08);
    border: 1px solid var(--border-red);
    margin-bottom: 0.25rem;
    transition: transform 240ms var(--ease);
}

.mt-stat-card:hover .mt-stat-icon {
    transform: translateY(-2px) scale(1.06);
}

.mt-stat-number {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--text-light);
    line-height: 1;
    letter-spacing: -0.02em;
}

.mt-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-faint);
}

.mt-stat-pulse {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red-bright);
    box-shadow: 0 0 6px rgba(255, 62, 62, 0.55);
    animation: mt-dot-pulse 1.8s ease-in-out infinite;
    flex-wrap: wrap;
    row-gap: 0.5rem;
}

    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-wra.mt-pulse {p: wrap;
    align-items: stretch;
    gap: 0.5rem;
}

.mt-pulse-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.85), rgba(20, 6, 7, 0.55));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    min-width: 0;
    transition: border-color 180ms ease, transform 180ms var(--ease);
}

.mt-pulse-item:hover {
    border-color: var(--border-red-bright);
    transform: translateY(-1px);
}

.mt-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-faint);
    flex-shrink: 0;
    transition: background 200ms ease, box-shadow 200ms ease;
}

.mt-pulse-item--online.is-live .mt-pulse-dot {
    background: #48ff8b;
    box-shadow: 0 0 8px rgba(72, 255, 139, 0.55);
    animation: mt-dot-pulse 1.8s ease-in-out infinite;
}

.mt-pulse-item--online.is-quiet .mt-pulse-dot {
    background: var(--text-faint);
    box-shadow: none;
    animation: none;
}

.mt-pulse-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: inline-flex;
}

.mt-pulse-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-soft);
    flex-shrink: 0;
}

.mt-pulse-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.mt-pulse-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.mt-pulse-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    font-weight: 600;
    white-space: nowrap;
}

.mt-pulse-item--online .mt-pulse-value { color: var(--text-light); }
.mt-pulse-item--online.is-live .mt-pulse-value { color: #8effb8; }
.mt-status-dot--idle {
    background: var(--text-faint);
    box-shadow: none;
    animation: none;
}
.mt-pulse-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.mt-pulse-trigger:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 4px;
    border-radius: var(--radius-xs);
}

.mt-pulse-caret {
    transition: transform 220ms var(--ease);
    opacity: 0.7;
}

.mt-pulse-trigger[aria-expanded="true"] .mt-pulse-caret {
    transform: rotate(180deg);
    opacity: 1;
}

.mt-pulse-online-wrap {
    position: relative;
    isolation: isolate;
    z-index: 50;
}

.mt-pulse-dropdown {
    position: absolute;

    top: 20%;
    left: 100%;
    transform: translateY(-50%);
    margin-left: 0.5rem;

    min-width: 248px;
    max-width: calc(100vw - 2rem);
    max-height: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 62, 62, 0.06);
    display: none;
    flex-direction: column;
    z-index: 99999;
    overflow: hidden;
}

.mt-pulse-dropdown.open {
    display: flex;
    animation: mt-pulse-dropdown-in 180ms var(--ease);
}
@keyframes mt-pulse-dropdown-in {
    from { opacity: 0; transform: translateY(-50%) translateX(-6px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.mt-pulse-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--border-softer);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-light);
    background: linear-gradient(180deg, rgba(255, 62, 62, 0.04), transparent);
}

.mt-pulse-dropdown-count {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--red-bright);
    background: rgba(255, 62, 62, 0.1);
    border: 1px solid var(--border-red-bright);
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-full);
    line-height: 1.4;
}

.mt-pulse-online-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    max-height: 280px;
    scrollbar-width: thin;
    scrollbar-color: var(--red-primary) transparent;
}

.mt-pulse-online-list::-webkit-scrollbar { width: 8px; }
.mt-pulse-online-list::-webkit-scrollbar-track { background: transparent; }
.mt-pulse-online-list::-webkit-scrollbar-thumb {
    background: rgba(179, 0, 0, 0.4);
    border-radius: 4px;
}
.mt-pulse-online-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 62, 62, 0.6);
}

.mt-pulse-online-row {
    border-bottom: 1px solid var(--border-softer);
}

.mt-pulse-online-row:last-child {
    border-bottom: none;
}

.mt-pulse-online-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    text-decoration: none;
    color: var(--text-light);
    transition: background 150ms ease;
}

.mt-pulse-online-link:hover {
    background: rgba(255, 62, 62, 0.06);
}

.mt-pulse-online-link:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: -2px;
}

.mt-pulse-online-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-soft);
    flex-shrink: 0;
}

.mt-pulse-online-name {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mt-pulse-online-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #48ff8b;
    box-shadow: 0 0 6px rgba(72, 255, 139, 0.55);
    flex-shrink: 0;
}

.mt-pulse-dropdown-empty {
    padding: 1.25rem 1rem;
    text-align: center;
    color: var(--text-faint);
    font-size: 0.82rem;
}
@media (max-width: 640px) {
    .mt-pulse-dropdown {
        left: auto;
        right: 100%;
        margin-left: 0;
        margin-right: 0.5rem;
    }
    @keyframes mt-pulse-dropdown-in {
        from { opacity: 0; transform: translateY(-50%) translateX(6px); }
        to   { opacity: 1; transform: translateY(-50%) translateX(0); }
    }
}
@media (max-width: 480px) {
    .mt-pulse { gap: 0.4rem; }
    .mt-pulse-item {
        padding: 0.45rem 0.7rem;
        flex: 1 1 calc(100% - 0.4rem);
    }
    .mt-pulse-value { max-width: none; }
}
.mt-topics {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
}

.mt-topic {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.mt-topic:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-red-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -12px rgba(255, 62, 62, 0.25);
}

.mt-topic-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-soft);
    flex-shrink: 0;
}

.mt-topic-body {
    flex: 1;
    min-width: 0;
}

.mt-topic-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.mt-topic-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: var(--text-faint);
}

.mt-topic-author {
    color: var(--text-muted);
    font-weight: 600;
}

.mt-topic-sep { color: var(--text-faint); }

.mt-topic-cat {
    color: var(--red-bright);
    font-weight: 600;
    opacity: 0.9;
}

.mt-topic-replies {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-softer);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.mt-topic--hot .mt-topic-replies {
    background: rgba(255, 62, 62, 0.1);
    border-color: var(--border-red-bright);
    color: var(--red-bright);
}

.mt-topic--fresh .mt-topic-title::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red-bright);
    box-shadow: 0 0 6px rgba(255, 62, 62, 0.55);
    margin-right: 0.45rem;
    vertical-align: middle;
}
.mt-empty-forum {
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.85), rgba(20, 6, 7, 0.6));
    border: 1px dashed var(--border-red-bright);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.mt-empty-forum-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 62, 62, 0.08);
    border: 1px solid var(--border-red);
    margin-bottom: 0.25rem;
}

.mt-empty-forum-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-light);
}

.mt-empty-forum-text {
    margin: 0 0 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    max-width: 32rem;
}

.mt-empty-forum-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
}
.mt-forums-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
}
.mt-forums-actions .button-forum-browse {
    position: relative;
    left: auto;
    transform: none;
    margin: 0;
}

.mt-forums-actions .button-forum-browse:hover {
    transform: scale(1.04);
}
.mt-why {
    margin-bottom: 2.5rem;
}

.mt-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.mt-why-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.1rem 1.2rem;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.85), rgba(20, 6, 7, 0.5));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    transition: border-color 180ms ease, transform 180ms var(--ease), background 180ms ease;
}

.mt-why-item:hover {
    border-color: var(--border-red-bright);
    transform: translateY(-2px);
    background: linear-gradient(180deg, var(--bg-card-hover), rgba(20, 6, 7, 0.7));
}

.mt-why-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 62, 62, 0.08);
    border: 1px solid var(--border-red);
}

.mt-why-title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
}

.mt-why-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}
.mt-features {
    margin-bottom: 2.5rem;
}

.mt-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.mt-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 1.25rem 1.25rem 1.1rem;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.9), rgba(20, 6, 7, 0.55));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 200ms var(--ease), border-color 200ms ease, box-shadow 200ms ease;
}

.mt-feature::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 62, 62, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity 240ms ease;
    pointer-events: none;
}

.mt-feature:hover {
    transform: translateY(-3px);
    border-color: var(--border-red-bright);
    box-shadow: 0 14px 32px -16px rgba(255, 62, 62, 0.3);
}

.mt-feature:hover::after { opacity: 1; }

.mt-feature-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-red);
    background: rgba(255, 62, 62, 0.08);
}

.mt-feature-icon--discord {
    border-color: rgba(88, 101, 242, 0.45);
    background: rgba(88, 101, 242, 0.1);
}

.mt-feature-icon--muted {
    border-color: var(--border-soft);
    background: rgba(255, 255, 255, 0.03);
}

.mt-feature-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-light);
}

.mt-feature-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.mt-feature--upcoming {
    cursor: default;
    opacity: 0.85;
}

.mt-feature--upcoming:hover {
    transform: none;
    border-color: var(--border-soft);
    box-shadow: none;
}

.mt-feature-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red-bright);
    background: rgba(255, 62, 62, 0.1);
    border: 1px solid var(--border-red-bright);
    padding: 0.18rem 0.5rem;
    border-radius: var(--radius-full);
}
.mt-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 420ms var(--ease), transform 420ms var(--ease);
    will-change: opacity, transform;
}

html.js .mt-reveal {
    opacity: 0;
    transform: translateY(14px);
}

html.js .mt-reveal--in {
    opacity: 1;
    transform: translateY(0);
}
.site-footer.mt-footer {
    text-align: left;
    padding: 2.25rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(20, 6, 7, 0.55));
}

.mt-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-softer);
}

.mt-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mt-footer-brand-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.mt-footer-brand-monster { color: var(--red-bright); }
.mt-footer-brand-team   { color: #fff; }

.mt-footer-brand-sub {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-faint);
    font-weight: 600;
}

.mt-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
}

.mt-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-xs);
    transition: color 150ms ease, background 150ms ease;
}

.mt-footer-links a:hover {
    color: var(--red-bright);
    background: rgba(255, 62, 62, 0.06);
}

.mt-footer-social {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

.mt-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-softer);
}

.mt-footer-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.mt-footer-tagline {
    margin: 0;
    color: var(--text-faint);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}
.frame-corner {
    transition: opacity 600ms ease, filter 600ms ease;
}

.frame-wrap:hover .frame-corner {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(255, 62, 62, 0.5));
}
@media (max-width: 1024px) {
    .page.home-page { max-width: 960px; }

    .mt-features-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .mt-hero { padding: 3rem 0 2.25rem; }
    .mt-hero-card { padding: 2.25rem 1.25rem 1.85rem; }

    .mt-hero-title { gap: 0.35rem; }
    .mt-hero-title-sep { height: 0.55em; }

    .mt-server-card { padding: 1.25rem 1rem 1.1rem; }
    .mt-server-grid { gap: 0.55rem; }
    .mt-server-tile { padding: 0.7rem 0.8rem; }
    .mt-server-tile-value { font-size: 0.95rem; }

    .mt-stats { grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
    .mt-stat-card { padding: 1rem 0.6rem; }
    .mt-stat-number { font-size: 1.45rem; }
    .mt-stat-label { font-size: 0.62rem; }

    .mt-topic { padding: 0.7rem 0.85rem; gap: 0.7rem; }
    .mt-topic-avatar { width: 34px; height: 34px; }
    .mt-topic-title { font-size: 0.88rem; }

    .mt-why-grid { grid-template-columns: 1fr; }
    .mt-features-grid { grid-template-columns: repeat(2, 1fr); }

    .mt-footer-top { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .mt-footer-links { width: 100%; }
}
@media (max-width: 480px) {
    .mt-hero { padding: 2.25rem 0 1.75rem; }
    .mt-hero-card { padding: 1.75rem 1rem 1.5rem; }

    .mt-hero-eyebrow { font-size: 0.62rem; padding: 0.25rem 0.6rem; }

    .mt-hero-title { font-size: clamp(2rem, 11vw, 2.6rem); gap: 0.3rem; }
    .mt-hero-title-sep { height: 0.5em; width: 2px; }

    .mt-hero-subtitle { font-size: 0.88rem; }

    .mt-status-strip { gap: 0.4rem 0.6rem; margin-top: 1.4rem; }
    .mt-status-strip-item { padding: 0.3rem 0.65rem; font-size: 0.72rem; gap: 0.4rem; }
    .mt-status-label { font-size: 0.6rem; }
    .mt-hero-cta { flex-direction: column; align-items: stretch; gap: 0.55rem; }
    .mt-hero-cta .mt-btn { width: 100%; }

    .mt-server-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .mt-server-grid { grid-template-columns: 1fr; }
    .mt-server-actions { flex-direction: column; }
    .mt-server-actions .mt-btn { width: 100%; }

    .mt-stats { grid-template-columns: 1fr; gap: 0.55rem; }
    .mt-stat-card { flex-direction: row; justify-content: space-between; padding: 0.85rem 1rem; }
    .mt-stat-icon { margin-bottom: 0; }
    .mt-stat-number { font-size: 1.5rem; }

    .mt-topic { flex-wrap: wrap; }
    .mt-topic-replies { align-self: center; }

    .mt-features-grid { grid-template-columns: 1fr; }

    .mt-footer { padding: 1.75rem 1rem 1.25rem; }
    .mt-footer-links a { font-size: 0.78rem; padding: 0.3rem 0.45rem; }
    .frame-wrap:hover .frame-corner { opacity: 0.6; }
}
@media (max-width: 360px) {
    .page.home-page { padding: 0 0.5rem; }
    .mt-hero-card { padding: 1.5rem 0.85rem 1.25rem; }
    .mt-hero-title { font-size: 1.85rem; }
    .mt-server-card { padding: 1rem 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
    .mt-hero-glow,
    .mt-status-dot,
    .mt-status-strip-item--server .mt-status-dot,
    .mt-server-pill-dot,
    .mt-stat-pulse {
        animation: none !important;
    }

    html.js .mt-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .mt-server-progress-bar { transition: none; }
}
@media print {
    .mt-hero-glow, .mt-hero-grid, .frame-corner { display: none !important; }
    .mt-hero-card, .mt-server-card, .mt-stat-card, .mt-why-item, .mt-feature {
        box-shadow: none !important;
    }
}
.forum-stats-row {
    list-style: none;
    margin: 1.25rem 0 1.5rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.forum-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.85), rgba(20, 6, 7, 0.55));
    border: 1px solid var(--border-soft);
    transition: border-color 180ms ease, transform 180ms var(--ease);
}

.forum-stat-pill:hover {
    border-color: var(--border-red-bright);
    transform: translateY(-1px);
}

.forum-stat-pill-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.forum-stat-pill-value {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1;
}

.forum-stat-pill-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    font-weight: 600;
}

.forum-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-faint);
    flex-shrink: 0;
    transition: background 200ms ease, box-shadow 200ms ease;
}

.forum-stat-pill.is-live .forum-stat-dot {
    background: #48ff8b;
    box-shadow: 0 0 8px rgba(72, 255, 139, 0.55);
    animation: mt-dot-pulse 1.8s ease-in-out infinite;
}

.forum-stat-pill.is-live .forum-stat-pill-value { color: #8effb8; }

.forum-stat-pill.is-quiet .forum-stat-dot {
    background: var(--text-faint);
    box-shadow: none;
    animation: none;
}
.forum-search-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.forum-search-wrap .forum-search-bar {
    flex: 1 1 320px;
    min-width: 0;
}

.forum-search-wrap .forum-create-btn {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
    align-self: stretch;
}
.forum-active-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 0.3rem;
    line-height: 1;
}

.forum-category-card--active {
    border-color: var(--border-red-bright);
}

.forum-category-card--active:hover {
    border-color: rgba(255, 62, 62, 0.45);
    box-shadow: 0 6px 18px -8px rgba(255, 62, 62, 0.25);
}
.forum-latest-divider {
    margin-top: 2.5rem;
}

.forum-latest-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.forum-latest-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms var(--ease);
}

.forum-latest-row:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-red-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -12px rgba(255, 62, 62, 0.22);
}

.forum-latest-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-soft);
    flex-shrink: 0;
}

.forum-latest-body {
    flex: 1;
    min-width: 0;
}

.forum-latest-row-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.forum-latest-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: var(--text-faint);
}

.forum-latest-author { color: var(--text-muted); font-weight: 600; }
.forum-latest-sep   { color: var(--text-faint); }
.forum-latest-cat   { color: var(--red-bright); font-weight: 600; opacity: 0.9; }

.forum-latest-replies {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-softer);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.forum-latest-row--hot .forum-latest-replies {
    background: rgba(255, 62, 62, 0.1);
    border-color: var(--border-red-bright);
    color: var(--red-bright);
}
@media (max-width: 768px) {

    .forum-stats-row { gap: 0.45rem; }
    .forum-stat-pill { padding: 0.4rem 0.7rem; gap: 0.4rem; }
    .forum-stat-pill-value { font-size: 0.85rem; }
    .forum-search-wrap { flex-direction: column; }
    .forum-search-wrap .forum-search-bar { flex: 1 1 auto; width: 100%; }
    .forum-search-wrap .forum-create-btn { width: 100%; }
    .forum-latest-title,
    .forum-latest-meta {
        max-width: none;
        white-space: normal;
    }
    .forum-latest-row { padding: 0.7rem 0.85rem; gap: 0.7rem; }
    .forum-latest-avatar { width: 34px; height: 34px; }
    .forum-latest-row-title { font-size: 0.88rem; white-space: normal; }
}

@media (max-width: 480px) {
    .forum-stats-row { gap: 0.4rem; }
    .forum-stat-pill {
        flex: 1 1 calc(50% - 0.4rem);
        justify-content: center;
    }
    .forum-category-card {
        grid-template-columns: auto 1fr;
        gap: 0.85rem;
        padding: 1rem;
    }
    .forum-category-stats {
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 1.25rem;
        padding-left: 0;
    }
    .forum-category-latest {
        grid-column: 1 / -1;
        padding-left: 0;
        max-width: none;
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .forum-stat-pill.is-live .forum-stat-dot { animation: none !important; }
    .forum-stat-pill,
    .forum-category-card--active,
    .forum-latest-row { transition: none !important; }
}
.forum-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.forum-category-header > div:first-child {
    min-width: 0;
    flex: 1;
}

.forum-category-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.forum-sort-form {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.forum-sort-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    font-weight: 600;
}

.forum-sort-select {
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    color: var(--text-light);
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
}

.forum-sort-select:hover {
    border-color: var(--border-red-bright);
    background: var(--bg-input-hover);
}

.forum-sort-select:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 1px;
}

.forum-new-topic-btn {
    white-space: nowrap;
    min-height: 38px;
}
.forum-topic-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}

.forum-topic-last-post {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 200px;
}

.forum-topic-last-post-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.forum-topic-last-post-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.forum-topic-last-post-time {
    font-size: 0.7rem;
    color: var(--text-faint);
    white-space: nowrap;
}
.forum-topic-badge--hot {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    background: rgba(255, 62, 62, 0.1);
    border: 1px solid var(--border-red-bright);
    color: var(--red-bright);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.forum-topic-row--hot {
    border-left: 2px solid rgba(255, 62, 62, 0.3);
}
.forum-topic-new-tag {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-xs);
    background: var(--red-bright);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    vertical-align: middle;
    margin-left: 0.4rem;
    line-height: 1;
}

.forum-topic-row--fresh .forum-topic-content h3 {
    color: var(--text-light);
}
.forum-pinned-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.forum-pinned-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.92), rgba(20, 6, 7, 0.6));
    border: 1px solid var(--border-red);
    border-left: 3px solid var(--red-bright);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms var(--ease);
}

.forum-pinned-row:hover {
    background: linear-gradient(180deg, var(--bg-card-hover), rgba(20, 6, 7, 0.7));
    border-color: var(--border-red-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -12px rgba(255, 62, 62, 0.25);
}

.forum-pinned-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 62, 62, 0.1);
    border: 1px solid var(--border-red);
}

.forum-pinned-body {
    flex: 1;
    min-width: 0;
}

.forum-pinned-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.forum-pinned-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: var(--text-faint);
}

.forum-pinned-replies {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-softer);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .forum-category-header {
        flex-direction: column;
        align-items: stretch;
    }

    .forum-category-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .forum-sort-form {
        flex: 1 1 auto;
    }

    .forum-sort-select {
        flex: 1;
    }
    .forum-topic-meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-left: 2.5rem;
    }

    .forum-topic-last-post {
        max-width: none;
        flex: 1;
    }

    .forum-topic-last-post-name {
        max-width: 100px;
    }
    .forum-pinned-row {
        padding: 0.7rem 0.85rem;
        gap: 0.7rem;
    }

    .forum-pinned-title {
        font-size: 0.88rem;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .forum-topic-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        padding-left: 0;
    }

    .forum-topic-right {
        width: 100%;
        justify-content: flex-start;
    }

    .forum-topic-last-post-name {
        max-width: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .forum-pinned-row,
    .forum-sort-select,
    .forum-topic-row {
        transition: none !important;
    }
}
.pm-new-msg-indicator {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--red-bright);
    border: none;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 62, 62, 0.35);
    transition: transform 200ms var(--ease), opacity 200ms ease;
    animation: pm-new-msg-pulse 2s ease-in-out infinite;
}

.pm-new-msg-indicator:hover {
    transform: translateX(-50%) translateY(-2px);
}

@keyframes pm-new-msg-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(255, 62, 62, 0.35); }
    50% { box-shadow: 0 6px 20px rgba(255, 62, 62, 0.5); }
}

@media (prefers-reduced-motion: reduce) {
    .pm-new-msg-indicator { animation: none; }
}
.mt-profile-page { max-width: 1100px; }
.mt-profile-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: linear-gradient(180deg, rgba(20, 6, 7, 0.6), var(--bg-card));
    margin-bottom: 1.5rem;
}

.mt-profile-banner {
    position: absolute;
    inset: 0 0 auto 0;
    height: 140px;
    background: linear-gradient(135deg, var(--red-deep), rgba(74, 0, 0, 0.3));
    background-size: cover;
    background-position: center;
}

.mt-profile-hero-glow {
    position: absolute;
    top: -40px;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 62, 62, 0.12), transparent 60%);
    pointer-events: none;
}

.mt-profile-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 2.5rem 1.5rem 1.25rem;
    flex-wrap: wrap;
}

.mt-profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 104px;
    height: 104px;
    margin-top: -2rem;
}

.mt-profile-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-card);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.mt-profile-avatar--admin {
    border-color: var(--red-bright);
    box-shadow: 0 0 0 2px rgba(255, 62, 62, 0.3), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.mt-profile-presence {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
}

.mt-profile-identity {
    flex: 1;
    min-width: 0;
}

.mt-profile-username {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin: 0;
    line-height: 1.2;
}

.mt-profile-badges {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.3rem;
    flex-wrap: wrap;
}

.mt-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mt-profile-badge--admin, .mt-profile-badge--owner {
    background: rgba(255, 62, 62, 0.15);
    border: 1px solid var(--border-red-bright);
    color: var(--red-bright);
}

.mt-profile-badge--moderator {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: var(--color-warning);
}

.mt-profile-badge-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.mt-profile-tagline {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.mt-profile-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-faint);
}

.mt-profile-actions {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.mt-profile-btn {
    min-height: 40px;
    white-space: nowrap;
}

.mt-profile-private {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    color: var(--text-faint);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-softer);
}
.mt-profile-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-soft);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mt-profile-tabs::-webkit-scrollbar { display: none; }

.mt-profile-tab {
    padding: 0.65rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: color 150ms ease, border-color 150ms ease;
}

.mt-profile-tab:hover { color: var(--text-light); }

.mt-profile-tab.is-active {
    color: var(--red-bright);
    border-bottom-color: var(--red-bright);
}

.mt-profile-tab:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: -2px;
}
.mt-profile-panel { display: none; }
.mt-profile-panel.is-active { display: block; }
.mt-profile-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.25rem;
}

.mt-profile-main { min-width: 0; }
.mt-profile-sidebar { min-width: 0; }
.mt-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.mt-profile-card-title {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mt-profile-card-title::before {
    content: '';
    width: 3px;
    height: 0.9rem;
    background: var(--red-bright);
    border-radius: 2px;
}
.mt-profile-bio {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}
.mt-profile-bio--full { font-size: 0.92rem; }

.mt-profile-empty {
    color: var(--text-faint);
    font-size: 0.85rem;
    margin: 0;
}
.mt-profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.mt-profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.75rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-softer);
    border-radius: var(--radius-sm);
    transition: border-color 150ms ease;
}

.mt-profile-stat:hover { border-color: var(--border-red); }

.mt-profile-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1;
}

.mt-profile-stat-value--date {
    font-size: 0.85rem;
    font-weight: 700;
}

.mt-profile-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    font-weight: 600;
}
.mt-profile-topic-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mt-profile-topic-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-softer);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms var(--ease);
}

.mt-profile-topic-row:hover {
    background: rgba(255, 62, 62, 0.04);
    border-color: var(--border-red-bright);
    transform: translateY(-1px);
}

.mt-profile-topic-row:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 1px;
}

.mt-profile-topic-info {
    flex: 1;
    min-width: 0;
}

.mt-profile-topic-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mt-profile-topic-meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: var(--text-faint);
    flex-wrap: wrap;
}

.mt-profile-topic-cat {
    color: var(--red-bright);
    font-weight: 600;
    opacity: 0.85;
}
.mt-profile-social-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mt-profile-social-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-softer);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    text-align: left;
    transition: background 150ms ease, border-color 150ms ease;
}

.mt-profile-social-row:hover {
    background: rgba(255, 62, 62, 0.04);
    border-color: var(--border-red-bright);
}

.mt-profile-social-row:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 1px;
}

.mt-profile-social-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mt-profile-social-platform {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

.mt-profile-social-handle {
    font-size: 0.72rem;
    color: var(--text-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 768px) {
    .mt-profile-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1rem 1rem;
    }

    .mt-profile-avatar-wrap { margin-top: -1.5rem; }

    .mt-profile-identity {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .mt-profile-badges { justify-content: center; }

    .mt-profile-actions { width: 100%; }
    .mt-profile-actions .mt-profile-btn { width: 100%; }

    .mt-profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mt-profile-avatar-wrap { width: 80px; height: 80px; }
    .mt-profile-avatar { width: 80px; height: 80px; }

    .mt-profile-username { font-size: 1.25rem; }

    .mt-profile-stats-grid { gap: 0.5rem; }
    .mt-profile-stat { padding: 0.6rem 0.3rem; }
    .mt-profile-stat-value { font-size: 1.1rem; }

    .mt-profile-card { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .mt-profile-topic-row,
    .mt-profile-social-row,
    .mt-profile-tab,
    .mt-profile-stat { transition: none !important; }
}
.mt-profile-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.mt-profile-stat {
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0.3rem;
    gap: 0.15rem;
}

.mt-profile-stat-value { font-size: 1.15rem; }
.mt-profile-stat-value--date { font-size: 0.78rem; }

@media (max-width: 600px) {
    .mt-profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.mt-profile-activity {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.mt-profile-activity::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-softer);
    z-index: 0;
}

.mt-profile-activity-item {
    display: flex;
    gap: 0.65rem;
    padding: 0.55rem 0;
    position: relative;
    z-index: 1;
}

.mt-profile-activity-item + .mt-profile-activity-item {
    border-top: 1px solid var(--border-softer);
}

.mt-profile-activity-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 62, 62, 0.08);
    border: 1px solid var(--border-red);
    flex-shrink: 0;
}

.mt-profile-activity-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    padding-top: 0.15rem;
}

.mt-profile-activity-label {
    font-size: 0.72rem;
    color: var(--text-faint);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mt-profile-activity-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.mt-profile-activity-title:hover { color: var(--red-bright); }

.mt-profile-activity-time {
    font-size: 0.7rem;
    color: var(--text-faint);
}
.mt-profile-banner { height: 110px; }

.mt-profile-hero-content {
    padding: 1.75rem 1.5rem 1rem;
}

.mt-profile-avatar-wrap {
    width: 96px;
    height: 96px;
    margin-top: -2.5rem;
}

.mt-profile-avatar {
    width: 96px;
    height: 96px;
    border-width: 4px;
}

.mt-profile-avatar--admin {
    border-color: var(--red-bright);
    box-shadow: 0 0 0 2px rgba(255, 62, 62, 0.25), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.mt-profile-presence {
    bottom: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    border-width: 2px;
}

.mt-profile-username { font-size: 1.4rem; }
.mt-profile-badge--owner .mt-profile-badge-label,
.mt-profile-badge--admin .mt-profile-badge-label {
    display: none;
}
.mt-profile-badge--rank .mt-profile-badge-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.mt-profile-card { margin-bottom: 0.75rem; padding: 1rem 1.1rem; }
.mt-profile-card-title { margin-bottom: 0.65rem; }
.mt-profile-page {
    position: relative;
}

.mt-profile-page::before {
    content: '';
    position: absolute;
    inset: -50px;
    z-index: -1;
    background: radial-gradient(ellipse 50% 30% at 50% 0%, rgba(255, 62, 62, 0.06), transparent 70%);
    pointer-events: none;
}
.mt-profile-page { padding-bottom: 1rem; }
@media (max-width: 480px) {
    .mt-profile-avatar-wrap { width: 72px; height: 72px; margin-top: -2rem; }
    .mt-profile-avatar { width: 72px; height: 72px; border-width: 3px; }
    .mt-profile-banner { height: 90px; }
    .mt-profile-hero-content { padding: 1.5rem 1rem 0.75rem; }
    .mt-profile-username { font-size: 1.2rem; }
    .mt-profile-card { padding: 0.85rem 0.9rem; }
    .mt-profile-stat-value { font-size: 1rem; }
    .mt-profile-activity-icon { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .mt-profile-activity-item,
    .mt-profile-stat { transition: none !important; }
}
.mt-profile-social-row {
    padding: 0.5rem 0.65rem;
    gap: 0.5rem;
}

.mt-profile-social-info {
    flex-direction: row;
    align-items: baseline;
    gap: 0.4rem;
}

.mt-profile-social-platform {
    font-size: 0.78rem;
    font-weight: 600;
    flex-shrink: 0;
}

.mt-profile-social-handle {
    font-size: 0.72rem;
    color: var(--text-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.mt-profile-stat:nth-child(4) {
    grid-column: span 1;
}

.mt-profile-stat-value--date {
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: center;
}
.mt-profile-page {
    position: relative;
}
.mt-profile-page::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 62, 62, 0.04), transparent 70%);
    pointer-events: none;
}
.frame-wrap:has(.mt-profile-page) .frame-corner {
    opacity: 0.35;
}
.mt-profile-badge--rank {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.mt-profile-badge--rank .mt-profile-badge-label {
    display: none;
}
.mt-profile-badge--rank:not(.mt-profile-badge--owner):not(.mt-profile-badge--admin) .mt-profile-badge-label {
    display: inline;
}
.mt-profile-activity-item {
    padding: 0.45rem 0;
}

.mt-profile-activity-body {
    padding-top: 0.1rem;
}

.mt-profile-activity-label {
    font-size: 0.68rem;
}

.mt-profile-activity-title {
    font-size: 0.82rem;
}

.mt-profile-activity-time {
    font-size: 0.68rem;
}
@media (max-width: 480px) {
    .mt-profile-social-info {
        flex-direction: column;
        gap: 0.1rem;
    }

    .mt-profile-social-platform {
        font-size: 0.75rem;
    }

    .mt-profile-social-handle {
        font-size: 0.68rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .mt-profile-social-row { transition: none !important; }
}
.mt-cropper-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.mt-cropper-overlay[hidden] { display: none; }

.mt-cropper-modal-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 760px;
    width: 100%;
    overflow: hidden;
}

.mt-cropper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-softer);
    background: linear-gradient(180deg, rgba(255, 62, 62, 0.04), transparent);
}
.mt-cropper-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
}
.mt-cropper-close {
    background: none;
    border: none;
    color: var(--text-faint);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
    transition: color 150ms ease;
}
.mt-cropper-close:hover { color: var(--text-light); }

.mt-cropper-body {
    display: flex;
    gap: 0;
    align-items: stretch;
}
@media (max-width: 640px) {
    .mt-cropper-body { flex-direction: column; }
}

.mt-cropper-viewport {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    padding: 1rem;
    overflow: hidden;
    min-height: 200px;
}
.mt-cropper-viewport canvas {
    cursor: grab;
    display: block;
    border-radius: var(--radius-sm);
}
.mt-cropper-viewport canvas:active { cursor: grabbing; }

.mt-cropper-sidebar {
    width: 240px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-left: 1px solid var(--border-softer);
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .mt-cropper-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-softer);
    }
}

.mt-cropper-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.mt-cropper-zoom-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.mt-zoom-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-xs);
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms ease;
}
.mt-zoom-btn:hover { background: var(--bg-input-hover); }
.mt-zoom-slider {
    flex: 1;
    accent-color: var(--red-bright);
    height: 4px;
}

.mt-cropper-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: auto;
}
.mt-cropper-reset, .mt-cropper-cancel {
    flex: 1 1 auto;
    min-height: 38px;
    font-size: 0.82rem;
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 150ms ease;
}
.mt-cropper-reset:hover, .mt-cropper-cancel:hover { background: var(--bg-input-hover); color: var(--text-light); }
.mt-cropper-save {
    flex: 2 1 auto;
    min-height: 38px;
    font-size: 0.82rem;
}
.mt-cropper-save:disabled { opacity: 0.6; cursor: not-allowed; }
.mt-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease;
}
.mt-file-btn:hover {
    background: var(--bg-input-hover);
    border-color: var(--border-red-bright);
}

@media (prefers-reduced-motion: reduce) {
    .mt-cropper-close, .mt-zoom-btn, .mt-file-btn { transition: none; }
}
.mt-gif-preview {
    position: absolute !important;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
    .mt-profile-avatar[src$=".gif"],
    .mt-profile-banner[style*=".gif"] {
        animation: none;
    }
}
.mt-profile-badge--rank {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

.mt-profile-badge--rank img {
    display: block;
    max-height: 28px;
    width: auto;
}
.mt-profile-badge--admin, .mt-profile-badge--owner {
    border-radius: var(--radius-xs);
    padding: 0.1rem 0.2rem;
    background: rgba(255, 62, 62, 0.08);
    border: 1px solid var(--border-red);
}

.mt-profile-badge--moderator {
    border-radius: var(--radius-xs);
    padding: 0.1rem 0.2rem;
    background: rgba(255, 170, 0, 0.08);
    border: 1px solid rgba(255, 170, 0, 0.25);
}
.mt-profile-badge-label { display: none !important; }
.mt-profile-username {
    font-size: 1.45rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.mt-profile-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0.35rem 0 0;
}

.mt-profile-meta {
    font-size: 0.72rem;
    color: var(--text-faint);
    margin-top: 0.3rem;
}
.mt-profile-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    padding: 1rem 1.1rem;
    margin-bottom: 0.65rem;
}

.mt-profile-card-title {
    margin: 0 0 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mt-profile-card-title::before {
    content: '';
    width: 3px;
    height: 0.85rem;
    background: var(--red-bright);
    border-radius: 2px;
    flex-shrink: 0;
}
.mt-profile-empty {
    color: var(--text-faint);
    font-size: 0.82rem;
    margin: 0;
    padding: 0.25rem 0;
    line-height: 1.4;
}
.mt-profile-stats-grid {
    gap: 0.5rem;
}

.mt-profile-stat {
    padding: 0.55rem 0.3rem;
}

.mt-profile-stat-value {
    font-size: 1.1rem;
    line-height: 1;
}

.mt-profile-stat-value--date {
    font-size: 0.72rem;
    line-height: 1.2;
}

.mt-profile-stat-label {
    font-size: 0.6rem;
}
.mt-profile-tab {
    padding: 0.7rem 1.1rem;
    font-size: 0.85rem;
    border-bottom-width: 2px;
}

.mt-profile-tab:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.02);
}

.mt-profile-tab.is-active {
    color: var(--red-bright);
    border-bottom-color: var(--red-bright);
    font-weight: 700;
}
.mt-profile-social-row img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.mt-profile-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(10, 2, 4, 0.5) 100%);
    pointer-events: none;
    border-radius: inherit;
}

.mt-profile-hero-content {
    position: relative;
    z-index: 1;
}
.mt-profile-page {
    position: relative;
}
.mt-profile-avatar--admin {
    border-color: rgba(255, 62, 62, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 62, 62, 0.2), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.mt-profile-presence {
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.mt-profile-activity-item {
    padding: 0.4rem 0;
}

.mt-profile-activity-body {
    gap: 0.05rem;
}
@media (max-width: 480px) {
    .mt-profile-username { font-size: 1.2rem; }
    .mt-profile-badge--rank img { max-height: 22px; }
    .mt-profile-stat-value { font-size: 0.95rem; }
    .mt-profile-stat-value--date { font-size: 0.65rem; }
}
@media (prefers-reduced-motion: reduce) {
    .mt-profile-tab { transition: none !important; }
    .mt-profile-card { transition: none !important; }
}
.mt-profile-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: var(--bg-card);
    margin-bottom: 1.25rem;
}
.mt-profile-banner {
    width: 100%;
    height: 130px;
    background: linear-gradient(135deg, var(--red-deep), rgba(74, 0, 0, 0.3));
    background-size: cover;
    background-position: center;
}
.mt-profile-banner::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 2, 4, 0.35) 100%);
}
.mt-profile-hero-body {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 0 1.5rem 1.25rem;
}
.mt-profile-avatar-wrap {
    position: relative;
    margin-top: -50px;
    z-index: 1;
}

.mt-profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: block;
}

.mt-profile-avatar--admin {
    border-color: rgba(255, 62, 62, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 62, 62, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mt-profile-presence {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
}
.mt-profile-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-width: 0;
    padding-top: 0.5rem;
}

.mt-profile-username {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.mt-profile-badges {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.mt-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mt-profile-badge--rank {
    padding: 0.1rem 0.2rem;
    border-radius: var(--radius-xs);
    background: rgba(255, 62, 62, 0.08);
    border: 1px solid var(--border-red);
}

.mt-profile-badge--rank img {
    display: block;
    max-height: 26px;
    width: auto;
}

.mt-profile-badge--admin, .mt-profile-badge--owner {
    background: rgba(255, 62, 62, 0.15);
    border: 1px solid var(--border-red-bright);
    color: var(--red-bright);
}

.mt-profile-badge--moderator {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: var(--color-warning);
}

.mt-profile-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0;
}

.mt-profile-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-faint);
}
.mt-profile-actions {
    align-self: center;
    flex-shrink: 0;
}

.mt-profile-btn {
    min-height: 40px;
    white-space: nowrap;
}
.mt-profile-private {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    color: var(--text-faint);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-softer);
}
.mt-profile-hero-content,
.mt-profile-hero-glow {
    display: none !important;
}
@media (max-width: 768px) {
    .mt-profile-hero-body {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 0.75rem;
        padding: 0 1rem 1rem;
    }

    .mt-profile-identity {
        align-items: center;
    }

    .mt-profile-avatar-wrap {
        margin-top: -40px;
    }
}

@media (max-width: 480px) {
    .mt-profile-banner { height: 100px; }
    .mt-profile-avatar { width: 84px; height: 84px; border-width: 3px; }
    .mt-profile-avatar-wrap { margin-top: -35px; }
    .mt-profile-username { font-size: 1.25rem; }
    .mt-profile-badge--rank img { max-height: 22px; }
    .mt-profile-btn { width: 100%; }
}
.mt-profile-hero,
.mt-profile-banner,
.mt-profile-hero-glow,
.mt-profile-hero-content,
.mt-profile-hero-body,
.mt-profile-avatar-wrap,
.mt-profile-avatar,
.mt-profile-avatar--admin,
.mt-profile-presence,
.mt-profile-identity,
.mt-profile-username,
.mt-profile-badges,
.mt-profile-badge,
.mt-profile-tagline,
.mt-profile-meta,
.mt-profile-actions,
.mt-profile-btn,
.mt-profile-private {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    float: none !important;
    clear: none !important;
}
.mt-profile-hero {
    position: relative !important;
    border: 1px solid var(--border-soft) !important;
    border-radius: var(--radius-lg) !important;
    background: var(--bg-card) !important;
    margin-bottom: 1.25rem !important;
    overflow: visible !important;
    display: block !important;
    min-height: 0 !important;
    max-height: none !important;
}
.mt-profile-hero::after,
.mt-profile-hero::before {
    display: none !important;
    content: none !important;
}
.mt-profile-banner {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 130px !important;
    min-height: 0 !important;
    background-color: #09090b !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    overflow: hidden !important;
}
.mt-profile-banner::after,
.mt-profile-banner::before {
    display: none !important;
    content: none !important;
}
.mt-profile-hero-body {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    gap: 1.25rem !important;
    align-items: center !important;
    padding: 0 1.5rem 1.25rem !important;
    position: relative !important;
    z-index: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}
.mt-profile-hero-content {
    display: none !important;
}
.mt-profile-hero-glow {
    display: none !important;
}
.mt-profile-avatar-wrap {
    position: relative !important;
    margin-top: -50px !important;
    z-index: 2 !important;
    width: auto !important;
    height: auto !important;
    flex-shrink: 0 !important;
}

.mt-profile-avatar {
    width: 110px !important;
    height: 110px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 4px solid var(--bg-card) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    display: block !important;
}

.mt-profile-avatar--admin {
    border-color: rgba(255, 62, 62, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(255, 62, 62, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.mt-profile-presence {
    position: absolute !important;
    bottom: 6px !important;
    right: 6px !important;
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    border: 3px solid var(--bg-card) !important;
    z-index: 3 !important;
}
.mt-profile-identity {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
    min-width: 0 !important;
    padding-top: 0.5rem !important;
}

.mt-profile-username {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
}

.mt-profile-badges {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
}

.mt-profile-badge--rank {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.1rem 0.2rem !important;
    border-radius: var(--radius-xs) !important;
    background: rgba(255, 62, 62, 0.08) !important;
    border: 1px solid var(--border-red) !important;
}

.mt-profile-badge--rank img {
    display: block !important;
    max-height: 26px !important;
    width: auto !important;
}

.mt-profile-badge--admin, .mt-profile-badge--owner {
    background: rgba(255, 62, 62, 0.15) !important;
    border: 1px solid var(--border-red-bright) !important;
    color: var(--red-bright) !important;
}

.mt-profile-badge-label {
    display: none !important;
}

.mt-profile-tagline {
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

.mt-profile-meta {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    font-size: 0.72rem !important;
    color: var(--text-faint) !important;
}
.mt-profile-actions {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.mt-profile-btn {
    min-height: 40px !important;
    white-space: nowrap !important;
}
.mt-profile-private {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 1rem 1.5rem !important;
    color: var(--text-faint) !important;
    font-size: 0.85rem !important;
    border-top: 1px solid var(--border-softer) !important;
}
@media (max-width: 768px) {
    .mt-profile-hero-body {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        text-align: center !important;
        gap: 0.75rem !important;
        padding: 0 1rem 1rem !important;
    }
    .mt-profile-identity {
        align-items: center !important;
    }
    .mt-profile-avatar-wrap {
        margin-top: -40px !important;
    }
}

@media (max-width: 480px) {
    .mt-profile-banner {
        height: 100px !important;
    }
    .mt-profile-avatar {
        width: 84px !important;
        height: 84px !important;
        border-width: 3px !important;
    }
    .mt-profile-avatar-wrap {
        margin-top: -35px !important;
    }
    .mt-profile-username {
        font-size: 1.25rem !important;
    }
    .mt-profile-badge--rank img {
        max-height: 22px !important;
    }
    .mt-profile-btn {
        width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mt-profile-hero * {
        transition: none !important;
    }
}
.mt-profile-banner {
    background-color: #09090b !important;
    background-color: var(--bg-dark) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.mt-profile-banner::after {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 40% !important;
    background: linear-gradient(to bottom, transparent 0%, rgba(9, 9, 11, 0.4) 100%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}
.mt-profile-banner::before {
    display: none !important;
    content: none !important;
}
.mt-topic-header {
    padding: 1.5rem 1.5rem 1.25rem;
    background: linear-gradient(180deg, rgba(24,24,27,0.9), rgba(20,6,7,0.5));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
}

.mt-topic-badges {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.mt-topic-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mt-topic-badge--pinned { background: rgba(255,62,62,0.1); border: 1px solid var(--border-red); color: var(--red-bright); }
.mt-topic-badge--locked { background: rgba(153,153,157,0.08); border: 1px solid var(--border-soft); color: var(--text-muted); }
.mt-topic-badge--hot { background: rgba(255,62,62,0.1); border: 1px solid var(--border-red-bright); color: var(--red-bright); }
.mt-topic-badge--trending {
    background: rgba(255,170,0,0.10);
    border: 1px solid rgba(255,170,0,0.30);
    color: #ffaa00;
}

.mt-topic-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.4rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.mt-topic-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}
.mt-topic-byline {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0 0 0.6rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-faint);
}
.mt-topic-byline-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.mt-topic-byline-item img { flex-shrink: 0; opacity: 0.7; }
.mt-topic-byline-author {
    color: var(--text-light);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: color 150ms ease, border-color 150ms ease;
}
.mt-topic-byline-author:hover {
    color: var(--red-bright);
    border-bottom-color: var(--red-bright);
}
.mt-topic-byline-author:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}
.mt-topic-byline-sep {
    color: var(--text-faint);
    opacity: 0.6;
    margin: 0 0.15rem;
}
.mt-topic-byline-item time {
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
    .mt-topic-byline { font-size: 0.72rem; }
}

.mt-topic-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.mt-topic-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--text-faint);
}

.mt-topic-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.mt-topic-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 150ms ease, color 150ms ease;
}

.mt-topic-action-btn:hover { border-color: var(--border-red-bright); color: var(--text-light); }
.mt-topic-action-btn.is-active { border-color: var(--red-bright); color: var(--red-bright); }
.mt-topic-action-btn:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 1px; }
.mt-topic-toolbar {
    position: sticky;
    top: 0;

    z-index: 500;
    background: rgba(18, 18, 20, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
    pointer-events: none;
}
.mt-topic-toolbar.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mt-topic-toolbar-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.85rem;
    min-width: 0;
}

.mt-topic-toolbar-crumbs {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    max-width: 35%;
    overflow: hidden;
}
.mt-topic-toolbar-crumb {
    color: var(--text-faint);
    font-size: 0.7rem;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mt-topic-toolbar-crumb:hover { color: var(--red-bright); }
.mt-topic-toolbar-sep { flex-shrink: 0; opacity: 0.6; }

.mt-topic-toolbar-title {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.mt-topic-toolbar-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}
.mt-topic-toolbar-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--text-faint);
}
.mt-topic-toolbar-jump {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.55rem;
    border-radius: var(--radius-xs);
    background: rgba(255, 62, 62, 0.08);
    border: 1px solid rgba(255, 62, 62, 0.25);
    color: var(--red-bright);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 150ms ease, border-color 150ms ease;
}
.mt-topic-toolbar-jump:hover {
    background: rgba(255, 62, 62, 0.16);
    border-color: rgba(255, 62, 62, 0.4);
}
.mt-topic-toolbar-jump:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 1px;
}
.mt-jump-latest {
    position: fixed;
    right: 1.25rem;
    bottom: 1.5rem;
    z-index: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 62, 62, 0.92), rgba(200, 30, 30, 0.92));
    border: 1px solid rgba(255, 62, 62, 0.55);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 62, 62, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    pointer-events: none;
}
.mt-jump-latest.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.mt-jump-latest:hover {
    background: linear-gradient(180deg, rgba(255, 80, 80, 1), rgba(220, 40, 40, 1));
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 32px rgba(255, 62, 62, 0.28);
}
.mt-jump-latest:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 3px;
}
.mt-jump-latest-label { line-height: 1; }
.mt-post--latest {
    border-color: rgba(255, 62, 62, 0.20);
}
.mt-post--latest::after {
    content: "LATEST";
    position: absolute;
    top: 0.5rem;
    right: -1px;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--red-bright);
    background: rgba(255, 62, 62, 0.10);
    border-left: 1px solid rgba(255, 62, 62, 0.30);
    border-bottom: 1px solid rgba(255, 62, 62, 0.30);
    border-radius: 0 var(--radius-md) 0 var(--radius-xs);
    padding: 0.15rem 0.5rem;
    pointer-events: none;

}
.mt-post { position: relative; }
@media (max-width: 768px) {
    .mt-topic-toolbar-crumbs { display: none; }
    .mt-topic-toolbar-inner { padding: 0.4rem 0.55rem; gap: 0.4rem; }
    .mt-topic-toolbar-title { font-size: 0.78rem; text-align: left; }
    .mt-topic-toolbar-jump-label { display: none; }
    .mt-topic-toolbar-jump { padding: 0.3rem 0.4rem; }
    .mt-jump-latest { right: 0.75rem; bottom: 1rem; padding: 0.5rem 0.7rem; }
    .mt-jump-latest-label { display: none; }
    .mt-post--latest::after { font-size: 0.5rem; padding: 0.1rem 0.35rem; }
}

@media (max-width: 480px) {
    .mt-topic-toolbar-stat { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .mt-topic-toolbar,
    .mt-jump-latest {
        transition: none !important;
        transform: none !important;
    }
}
.mt-post {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.mt-post--op { border-color: var(--border-red); }
.mt-post-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1.25rem 0.75rem;
    background: rgba(0,0,0,0.2);
    border-right: 1px solid var(--border-softer);
    text-align: center;
}

.mt-post-avatar-wrap { margin-bottom: 0.2rem; }
.mt-post-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-soft);
}

.mt-post-author-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}
.mt-post-author-name:hover { color: var(--red-bright); }

.mt-post-author-stats {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.4rem;
    font-size: 0.68rem;
    color: var(--text-faint);
}
.mt-post-body {
    padding: 1rem 1.25rem;
    min-width: 0;
}

.mt-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-softer);
}

.mt-post-number {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-faint);
    text-decoration: none;
}

.mt-post-date {
    font-size: 0.72rem;
    color: var(--text-faint);
}

.mt-post-content {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.65;
}

.mt-post-content p { margin: 0 0 0.75rem; }
.mt-post-content p:last-child { margin-bottom: 0; }
.mt-post-content img { max-width: 100%; border-radius: var(--radius-sm); }

.mt-post-edited {
    margin: 0.5rem 0 0;
    font-size: 0.72rem;
    color: var(--text-faint);
}
.mt-post-actions {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-softer);
}

.mt-post-action {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.55rem;
    border-radius: var(--radius-xs);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: background 150ms ease, color 150ms ease;
}

.mt-post-action:hover { background: rgba(255,255,255,0.04); color: var(--text-light); }
.mt-post-action--danger:hover { color: var(--red-bright); background: rgba(255,62,62,0.06); }
.mt-post-action:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 1px; }
@media (max-width: 768px) {
    .mt-post {
        grid-template-columns: 1fr;
    }

    .mt-post-author {
        flex-direction: row;
        align-items: center;
        gap: 0.6rem;
        padding: 0.75rem;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid var(--border-softer);
    }

    .mt-post-avatar { width: 48px; height: 48px; }
    .mt-post-author-stats,
    .mt-post-author-meta { flex-direction: row; gap: 0.5rem; margin-top: 0; font-size: 0.65rem; }

    .mt-topic-title { font-size: 1.25rem; }
    .mt-topic-header { padding: 1rem; }
    .mt-topic-meta { gap: 0.6rem; }
    .mt-post-body { padding: 0.85rem; }
}

@media (max-width: 480px) {
    .mt-post-author { flex-wrap: wrap; }
    .mt-post-author-stats,
    .mt-post-author-meta { flex-basis: 100%; margin-top: 0.2rem; }
    .mt-topic-actions .mt-topic-action-btn { flex: 1 1 calc(50% - 0.2rem); justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .mt-post-action, .mt-topic-action-btn { transition: none !important; }
}
.mt-post-author-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.4rem;
    font-size: 0.68rem;
    color: var(--text-faint);
    line-height: 1.4;
}

.mt-post-author-meta-card {
    width: 120px !important;
    min-height: 76px !important;
    height: auto !important;

    box-sizing: border-box;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;

    padding: 9px !important;

    position: relative;
    overflow: hidden;

    border: 1px solid rgba(255, 62, 62, 0.35) !important;
    border-radius: 10px !important;

    background:
        linear-gradient(
            145deg,
            rgba(31, 18, 20, 0.98),
            rgba(17, 17, 20, 0.98)
        ) !important;

    box-shadow:
        0 0 0 1px rgba(255, 62, 62, 0.04),
        0 5px 15px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.mt-post-author-meta-card::before {
    content: "";
    position: absolute;

    width: 70px;
    height: 70px;

    top: -35px;
    left: 50%;

    transform: translateX(-50%);

    background: rgba(255, 62, 62, 0.08);

    filter: blur(25px);

    pointer-events: none;
}

.mt-post-author-stat {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
}

.mt-post-author-stat + .mt-post-author-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.mt-post-author-stat strong {
    display: block;

    font-size: 15px;
    line-height: 17px;

    font-weight: 800;

    color: #f5f5f7;

    text-shadow:
        0 0 10px rgba(255, 62, 62, 0.15);
}

.mt-post-author-stat span {
    display: block;

    margin-top: 2px;

    font-size: 8px;
    line-height: 10px;

    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;

    color: rgba(255, 255, 255, 0.42);
}

.mt-post-author-joined {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    margin-top: 7px;
    padding-top: 6px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    position: relative;
    z-index: 1;

    white-space: nowrap;
}

.mt-post-author-joined span {
    font-size: 8px;

    text-transform: uppercase;
    letter-spacing: 0.5px;

    color: rgba(255, 255, 255, 0.32);
}

.mt-post-author-joined strong {
    font-size: 8px;

    font-weight: 700;

    color: rgba(255, 255, 255, 0.58);
}

.mt-post-author-meta-item { white-space: nowrap; }
.mt-post-role {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    display: inline-block;
    line-height: 1.4;
}
.mt-post-role--admin     { background: rgba(255, 62, 62, 0.15);  color: var(--red-bright); border: 1px solid rgba(255, 62, 62, 0.3); }
.mt-post-role--moderator{ background: rgba(255, 170, 0, 0.12);  color: #ffaa00;           border: 1px solid rgba(255, 170, 0, 0.25); }
.mt-post-role--member   { background: rgba(255, 255, 255, 0.04); color: var(--text-faint); border: 1px solid var(--border-softer); }
.mt-post-role--owner    { background: rgba(255, 62, 62, 0.18);  color: var(--red-bright); border: 1px solid rgba(255, 62, 62, 0.45); }
.mt-post-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 0.2rem;
}
.mt-post-presence {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    pointer-events: none;
}
.mt-post-presence.presence-dot--online { background: #4ade80; }
.mt-post-presence.presence-dot--idle    { background: #facc15; }
.mt-post-presence.presence-dot--dnd     { background: #ef4444; }
.mt-post-presence.presence-dot--offline { background: #6b7280; opacity: 0.55; }
.mt-post--op {
    border-color: rgba(255, 62, 62, 0.30);
    box-shadow: 0 0 30px rgba(255, 62, 62, 0.04);
}
.mt-post--reply {
    border-color: var(--border-soft);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.mt-post--reply:hover,
.mt-post--reply:focus-within {
    border-color: rgba(255, 62, 62, 0.16);
    box-shadow: 0 0 18px rgba(255, 62, 62, 0.03);
}
.mt-post--reply + .mt-post--reply { margin-top: 0.5rem; }
.mt-post--reply.mt-post--compact {
    grid-template-columns: 120px 1fr;
}
.mt-post--reply.mt-post--compact .mt-post-author {
    padding: 0.85rem 0.5rem;
}
.mt-post--reply.mt-post--compact .mt-post-avatar {
    width: 48px;
    height: 48px;
}
.mt-post--reply.mt-post--compact .mt-post-author-name {
    font-size: 0.78rem;
}
.mt-post--reply.mt-post--compact .mt-post-author-meta {
    font-size: 0.62rem;
    gap: 0.1rem;
}
.mt-post--reply.mt-post--compact .mt-post-body {
    padding: 0.7rem 0.95rem;
}
.mt-post--reply.mt-post--compact .mt-post-content {
    font-size: 0.88rem;
    line-height: 1.55;
}
.mt-post--reply.mt-post--compact-tiny {
    grid-template-columns: 88px 1fr;
}
.mt-post--reply.mt-post--compact-tiny .mt-post-author-meta {
    display: none;
}
.mt-post--reply.mt-post--compact-tiny .mt-post-avatar {
    width: 40px;
    height: 40px;
}
.mt-post--reply.mt-post--compact-tiny .mt-post-body {
    padding: 0.55rem 0.8rem;
}
.mt-post--reply.mt-post--compact-tiny .mt-post-header {
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
}
.mt-post-number {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-faint);
    text-decoration: none;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-xs);
    transition: background 150ms ease, color 150ms ease;
}
.mt-post-number:hover { background: rgba(255,255,255,0.05); color: var(--red-bright); }
.mt-post-number:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 1px; }
.mt-post:target,
.mt-post--highlight {
    border-color: rgba(255, 62, 62, 0.45);
    box-shadow:
        0 0 0 1px rgba(255, 62, 62, 0.12),
        0 0 35px rgba(255, 62, 62, 0.08);
    animation: mt-post-target 1.8s ease;
}
@keyframes mt-post-target {
    0% {
        box-shadow:
            0 0 0 1px rgba(255, 62, 62, 0.45),
            0 0 0 0 rgba(255, 62, 62, 0.18);
    }
    35% {
        box-shadow:
            0 0 0 1px rgba(255, 62, 62, 0.30),
            0 0 50px 4px rgba(255, 62, 62, 0.14);
    }
    100% {
        box-shadow:
            0 0 0 1px rgba(255, 62, 62, 0.12),
            0 0 35px rgba(255, 62, 62, 0.08);
    }
}
@media (prefers-reduced-motion: reduce) {
    .mt-post:target, .mt-post--highlight { animation: none; }
}
.mt-replies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-softer);
}
.mt-replies-header h2 {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.mt-topic-empty-replies {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    margin: 0.75rem 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-softer);
    border-radius: var(--radius-md);
    color: var(--text-muted);
}
.mt-topic-empty-replies img {
    flex-shrink: 0;
    opacity: 0.55;
}
.mt-topic-empty-replies-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.mt-topic-empty-replies-text strong {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 700;
}
.mt-topic-empty-replies-text span {
    color: var(--text-faint);
    font-size: 0.78rem;
}
.mt-topic-empty-replies-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 62, 62, 0.10);
    border: 1px solid rgba(255, 62, 62, 0.30);
    color: var(--red-bright);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 150ms ease, border-color 150ms ease;
}
.mt-topic-empty-replies-cta:hover {
    background: rgba(255, 62, 62, 0.18);
    border-color: rgba(255, 62, 62, 0.45);
}
.mt-topic-empty-replies-cta:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 2px;
}
@media (max-width: 480px) {
    .mt-topic-empty-replies {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.85rem;
    }
    .mt-topic-empty-replies-cta {
        flex: 1 1 100%;
        justify-content: center;
    }
}
.mt-topic-notice {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    margin: 0.75rem 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-softer);
    border-left: 3px solid var(--text-faint);
    border-radius: var(--radius-md);
    color: var(--text-muted);
}
.mt-topic-notice img {
    flex-shrink: 0;
    opacity: 0.75;
}
.mt-topic-notice-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.mt-topic-notice-body strong {
    color: var(--text-light);
    font-size: 0.92rem;
    font-weight: 700;
}
.mt-topic-notice-body span {
    color: var(--text-faint);
    font-size: 0.8rem;
    line-height: 1.5;
}
.mt-topic-notice-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-softer);
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease;
}
.mt-topic-notice-cta:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-soft);
}
.mt-topic-notice-cta:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 2px;
}
.mt-topic-notice-cta--primary {
    background: rgba(255, 62, 62, 0.12);
    border-color: rgba(255, 62, 62, 0.30);
    color: var(--red-bright);
}
.mt-topic-notice-cta--primary:hover {
    background: rgba(255, 62, 62, 0.20);
    border-color: rgba(255, 62, 62, 0.45);
}

.mt-topic-notice--locked {
    border-left-color: var(--red-bright);
    background: rgba(255, 62, 62, 0.04);
}
.mt-topic-notice--locked img { opacity: 1; }
.mt-topic-notice--denied {
    border-left-color: var(--text-faint);
}
.mt-topic-notice--signin {
    border-left-color: rgba(255, 170, 0, 0.4);
}
.mt-topic-notice--mod {
    border-left-color: var(--red-bright);
    background: rgba(255, 62, 62, 0.06);
}

@media (max-width: 480px) {
    .mt-topic-notice {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.85rem;
    }
    .mt-topic-notice-cta {
        flex: 1 1 100%;
        justify-content: center;
    }
}
.mt-post-content { line-height: 1.75; }

.mt-post-content .bbcode-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 0.5rem 0;
    border: 1px solid var(--border-soft);
}

.mt-post-content .bbcode-quote,
.mt-post-content blockquote.md-quote {
    border-left: 3px solid var(--red-primary);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-muted);
}
.mt-post-content .bbcode-quote cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: var(--red-bright);
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
}

.mt-post-content .bbcode-quote cite a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 62, 62, 0.45);
    padding-bottom: 1px;
    transition: border-color 150ms ease, color 150ms ease;
}
.mt-post-content .bbcode-quote cite a:hover {
    color: #ff6b6b;
    border-bottom-color: var(--red-bright);
}
.mt-post-content .bbcode-quote cite a:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

.mt-post-content .bbcode-list,
.mt-post-content ul.md-list,
.mt-post-content ol.md-list {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.mt-post-content .bbcode-hr,
.mt-post-content hr {
    border: none;
    border-top: 1px solid var(--border-soft);
    margin: 1rem 0;
}

.mt-post-content .bbcode-spoiler,
.mt-post-content details {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
}
.mt-post-content .bbcode-spoiler summary,
.mt-post-content details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--red-bright);
    font-size: 0.85rem;
}

.mt-post-content a {
    color: var(--red-bright);
    text-decoration: underline;
}
.mt-post-content a:hover { color: #ff6b6b; }

.mt-post-content strong,
.mt-post-content b {
    color: var(--text-light);
    font-weight: 700;
}

.mt-post-content h3.md-h1,
.mt-post-content h4.md-h2,
.mt-post-content h5.md-h3 {
    color: var(--text-light);
    margin: 1rem 0 0.5rem;
    line-height: 1.3;
}
.mt-post-content h3.md-h1 { font-size: 1.25rem; font-weight: 800; }
.mt-post-content h4.md-h2 { font-size: 1.1rem;  font-weight: 700; }
.mt-post-content h5.md-h3 { font-size: 0.95rem; font-weight: 700; }

.mt-post-content .md-spoiler {
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-xs);
    padding: 0 0.25rem;
    cursor: pointer;
    user-select: none;
}
.mt-post-content .md-spoiler[data-revealed="true"] { background: transparent; color: inherit; }

.mt-post-content sup { font-size: 0.75em; vertical-align: super; }
.mt-post-content sub { font-size: 0.75em; vertical-align: sub; }
.mt-post-author .rank-badge {
    margin: 0.1rem 0;
    max-width: 100%;
}
.mt-post-content .forum-code-block,
.forum-code-block {
    margin: 0.75rem 0;
    background: #0b0b0d;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', Consolas, monospace;
    font-size: 0.85rem;
}

.forum-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-softer);
    gap: 0.75rem;
}

.forum-code-language {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red-bright);
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-xs);
    background: rgba(255, 62, 62, 0.08);
    border: 1px solid rgba(255, 62, 62, 0.2);
}

.forum-code-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-softer);
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.forum-code-copy:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border-color: var(--border-soft);
}
.forum-code-copy:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 1px;
}
.forum-code-copy.copied {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.35);
}

.forum-code-block pre.line-numbers {
    margin: 0;
    padding: 0.85rem 0.95rem;
    overflow-x: auto;
    counter-reset: codeline;
    color: #e4e4e7;
    line-height: 1.55;
    background: transparent;
}
.forum-code-block pre.line-numbers code {
    font-family: inherit;
    font-size: inherit;
    counter-increment: codeline;
    display: block;
    white-space: pre;
    min-width: 100%;
}
.forum-code-block pre.line-numbers code .codeline,
.forum-code-block pre.line-numbers code > span {
    display: block;
}
.forum-code-block pre.line-numbers code::before {

    content: "";
}
.forum-code-block.is-wordwrap pre.line-numbers {
    white-space: pre-wrap;
    word-break: break-word;
}
.mt-post-content .inline-code,
.mt-post-content code:not(pre code) {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-softer);
    border-radius: var(--radius-xs);
    padding: 0.05rem 0.35rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', Consolas, monospace;
    font-size: 0.85em;
    color: #ffb8c4;
}
.mt-post-content + .forum-reactions,
.mt-post .forum-reactions,
.mt-post .reactions-bar,
.mt-post .reactions {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}
@media (max-width: 768px) {
    .mt-post-presence {
        width: 10px;
        height: 10px;
        bottom: 1px;
        right: 1px;
    }
    .forum-code-header { padding: 0.35rem 0.55rem; }
    .forum-code-language { font-size: 0.6rem; padding: 0.1rem 0.35rem; }
    .forum-code-copy { font-size: 0.65rem; padding: 0.2rem 0.45rem; }
    .forum-code-block pre.line-numbers { padding: 0.65rem 0.7rem; font-size: 0.78rem; }
    .mt-replies-header { padding: 1rem 0 0.4rem; }
}

@media (max-width: 480px) {
    .mt-post-author-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
        font-size: 0.62rem;
        margin-top: 0.2rem;
    }
    .mt-post-author-meta-item { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    .forum-code-copy, .mt-post-number { transition: none !important; }
    .mt-post:target, .mt-post--highlight { animation: none !important; }
}


.mt-pulse-member {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mt-pulse-member-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-light);
    transition: all 150ms ease;
}

.mt-pulse-member-link:hover {
    background: rgba(255, 62, 62, 0.08);
    border-color: var(--red-bright);
    transform: translateY(-1px);
}

.mt-pulse-member-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-soft);
}

.mt-pulse-member-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.mt-pulse-member-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #48ff8b;
    box-shadow: 0 0 6px rgba(72, 255, 139, 0.55);
    flex-shrink: 0;
}


.mt-activity-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .25rem;
}

.mt-activity-count {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-faint);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border-softer);
  border-radius: 999px;
  padding: .18rem .55rem;
  white-space: nowrap;
}

.mt-activity-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mt-activity-item {
  --node-bg: var(--red-bright);
  --node-glow: rgba(255, 62, 62, .35);
  position: relative;
  display: flex;
  gap: .85rem;
  padding: 2px 6px 14px 0;
}

.mt-activity-item--topic  { --node-bg: #ff3e3e; --node-glow: rgba(255, 62, 62, .35); }
.mt-activity-item--reply  { --node-bg: #6495ed; --node-glow: rgba(100, 149, 237, .35); }
.mt-activity-item--joined { --node-bg: #48ff8b; --node-glow: rgba(72, 255, 139, .3); }

.mt-activity-item::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 40px;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--node-glow), rgba(255, 255, 255, .05));
}
.mt-activity-item:last-child::after { display: none; }

.mt-activity-node {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--node-bg);
  box-shadow: 0 0 0 3px var(--bg-card), 0 0 14px var(--node-glow);
  z-index: 1;
  transition: transform 180ms var(--ease);
}

.mt-activity-item:hover .mt-activity-node {
  transform: scale(1.08);
}

@keyframes mt-activity-pulse {
  0%   { box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 0 var(--node-glow); }
  70%  { box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 0 transparent; }
}

.mt-activity-item--latest .mt-activity-node {
  animation: mt-activity-pulse 2.4s ease-out infinite;
}

.mt-activity-content {
  flex: 1;
  min-width: 0;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 10px;
  transition: background 150ms ease;
}

.mt-activity-item:hover .mt-activity-content {
  background: rgba(255, 255, 255, .025);
}

.mt-activity-top {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.mt-activity-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}

.mt-activity-badge {
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  background: var(--red-bright);
  border-radius: 999px;
  padding: .12rem .4rem;
  box-shadow: 0 0 8px rgba(255, 62, 62, .4);
}

.mt-activity-title {
  display: block;
  margin-top: .2rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mt-activity-title--link {
  text-decoration: none;
  transition: color 150ms ease;
}
.mt-activity-title--link:hover { color: var(--red-bright); }

.mt-activity-time {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .4rem;
  font-size: .7rem;
  color: var(--text-faint);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border-softer);
  border-radius: 999px;
  padding: .12rem .5rem;
}

.mt-activity-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-faint);
  font-size: .85rem;
}
.mt-activity-empty p { margin: 0; }

@media (max-width: 480px) {
  .mt-activity-item { padding-bottom: 10px; }
  .mt-activity-item::after { left: 14px; top: 36px; }
  .mt-activity-node { width: 30px; height: 30px; min-width: 30px; }
  .mt-activity-node img { width: 13px; height: 13px; }
}

        .profile-message-btn--disabled {
            opacity: .5;
            pointer-events: none;
        }
        .social-cube:focus-visible,
        .btn:focus-visible {
            outline: 2px solid #ff3e3e;
            outline-offset: 2px;
        }
        .mt-profile-avatar-wrap { position: relative; }
        .mt-profile-avatar-wrap .presence-dot,
        #profile-dot {
            position: absolute;
            width: 30px;
            height: 30px;
            right: 6px;
            bottom: 6px;
            border-radius: 50%;
            border: 4px solid var(--bg-card, #18181b);
            background: #6d6d72;
            box-shadow: 0 0 12px rgba(0, 0, 0, .35);
            z-index: 2;
            pointer-events: none;
        }
        .mt-profile-avatar-wrap .presence-dot--online,
        #profile-dot.presence-dot--online { background: #48ff8b; }
        .mt-profile-avatar-wrap .presence-dot--idle,
        #profile-dot.presence-dot--idle { background: #ffaa00; }
        .mt-profile-avatar-wrap .presence-dot--dnd,
        #profile-dot.presence-dot--dnd { background: #ff3e3e; }
        @media (max-width: 720px) {
            .mt-profile-avatar-wrap .presence-dot,
            #profile-dot {
                width: 24px;
                height: 24px;
                right: 3px;
                bottom: 3px;
                border-width: 3px;
            }
        }
        .mt-profile-meta--presence {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            flex-wrap: wrap;
        }
        .mt-presence-inline-dot {
            position: relative !important;
            display: inline-block;
            width: 8px !important;
            height: 8px !important;
            min-width: 8px;
            border-radius: 50%;
            background: #6d6d72 !important;
            border: none !important;
            box-shadow: none !important;
            flex-shrink: 0;
        }
        .mt-presence-inline-dot::before,
        .mt-presence-inline-dot::after {
            content: none !important;
            display: none !important;
        }
        .mt-presence-inline-dot.presence-dot--online { background: #48ff8b !important; }
        .mt-presence-inline-dot.presence-dot--idle { background: #ffaa00 !important; }
        .mt-presence-inline-dot.presence-dot--dnd { background: #ff3e3e !important; }
        .mt-presence-lastseen { color: var(--text-faint, #6d6d72); }
        .mt-profile-tab-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            margin-left: .35rem;
            border-radius: 999px;
            background: rgba(255, 62, 62, .15);
            color: var(--red-bright, #ff3e3e);
            font-size: .65rem;
            font-weight: 700;
        }
        .mt-profile-tab.is-active .mt-profile-tab-count {
            background: rgba(255, 62, 62, .3);
            color: #fff;
        }
        .mt-profile-view-all {
            display: inline-flex;
            align-items: center;
            gap: .3rem;
            margin-top: .75rem;
            font-size: .78rem;
            font-weight: 600;
            color: var(--red-bright, #ff3e3e);
            text-decoration: none;
            cursor: pointer;
            background: none;
            border: none;
            font-family: inherit;
            padding: 0;
        }
        .mt-profile-view-all:hover { text-decoration: underline; }
        .mt-profile-social-row.social-cube--copied .mt-profile-social-handle { color: #34c759; }
        .mt-activity-heading {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .75rem;
            margin-bottom: .25rem;
        }
        .mt-activity-count {
            font-size: .68rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .05em;
            color: var(--text-faint, #6d6d72);
            background: rgba(255, 255, 255, .03);
            border: 1px solid var(--border-softer, rgba(255, 255, 255, .06));
            border-radius: 999px;
            padding: .18rem .55rem;
            white-space: nowrap;
        }
        .mt-activity-timeline {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .mt-activity-item {
            --node-bg: #ff3e3e;
            --node-glow: rgba(255, 62, 62, .35);
            position: relative;
            display: flex;
            gap: .85rem;
            padding: 2px 6px 14px 0;
        }
        .mt-activity-item--topic  { --node-bg: #ff3e3e; --node-glow: rgba(255, 62, 62, .35); }
        .mt-activity-item--reply  { --node-bg: #6495ed; --node-glow: rgba(100, 149, 237, .35); }
        .mt-activity-item--joined { --node-bg: #48ff8b; --node-glow: rgba(72, 255, 139, .3); }
        .mt-activity-item::after {
            content: "";
            position: absolute;
            left: 16px;
            top: 40px;
            bottom: 0;
            width: 2px;
            border-radius: 2px;
            background: linear-gradient(to bottom, var(--node-glow), rgba(255, 255, 255, .05));
        }
        .mt-activity-item:last-child::after { display: none; }
        .mt-activity-node {
            width: 34px;
            height: 34px;
            min-width: 34px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--node-bg);
            box-shadow: 0 0 0 3px var(--bg-card, #18181b), 0 0 14px var(--node-glow);
            z-index: 1;
            transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
        }
        .mt-activity-item:hover .mt-activity-node { transform: scale(1.08); }
        @keyframes mt-activity-pulse {
            0%   { box-shadow: 0 0 0 3px var(--bg-card, #18181b), 0 0 0 0 var(--node-glow); }
            70%  { box-shadow: 0 0 0 3px var(--bg-card, #18181b), 0 0 0 9px transparent; }
            100% { box-shadow: 0 0 0 3px var(--bg-card, #18181b), 0 0 0 0 transparent; }
        }
        .mt-activity-item--latest .mt-activity-node {
            animation: mt-activity-pulse 2.4s ease-out infinite;
        }
        .mt-activity-content {
            flex: 1;
            min-width: 0;
            align-self: flex-start;
            padding: 4px 8px;
            border-radius: 10px;
            transition: background 150ms ease;
        }
        .mt-activity-item:hover .mt-activity-content {
            background: rgba(255, 255, 255, .025);
        }
        .mt-activity-top {
            display: flex;
            align-items: center;
            gap: .5rem;
            flex-wrap: wrap;
        }
        .mt-activity-label {
            font-size: .72rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: .05em;
            color: var(--text-muted, #99999d);
        }
        .mt-activity-badge {
            font-size: .58rem;
            font-weight: 800;
            letter-spacing: .08em;
            color: #fff;
            background: var(--red-bright, #ff3e3e);
            border-radius: 999px;
            padding: .12rem .4rem;
            box-shadow: 0 0 8px rgba(255, 62, 62, .4);
        }
        .mt-activity-title {
            display: block;
            margin-top: .2rem;
            font-size: .88rem;
            font-weight: 600;
            color: var(--text-light, #e8e8e8);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .mt-activity-title--link {
            text-decoration: none;
            transition: color 150ms ease;
        }
        .mt-activity-title--link:hover { color: var(--red-bright, #ff3e3e); }
        .mt-activity-time {
            display: inline-flex;
            align-items: center;
            gap: .3rem;
            margin-top: .4rem;
            font-size: .7rem;
            color: var(--text-faint, #6d6d72);
            background: rgba(255, 255, 255, .03);
            border: 1px solid var(--border-softer, rgba(255, 255, 255, .06));
            border-radius: 999px;
            padding: .12rem .5rem;
        }
        .mt-activity-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: .6rem;
            padding: 2rem 1rem;
            text-align: center;
            color: var(--text-faint, #6d6d72);
            font-size: .85rem;
        }
        .mt-activity-empty p { margin: 0; }
@media (max-width: 480px) {
            .mt-activity-item { padding-bottom: 10px; }
            .mt-activity-item::after { left: 14px; top: 36px; }
            .mt-activity-node { width: 30px; height: 30px; min-width: 30px; }
            .mt-activity-node img { width: 13px; height: 13px; }
}


.spinner {
  --mt-red: #ff3e3e;
  --mt-red-soft: rgba(255, 62, 62, 0.22);
  --mt-dark: #0b0c10;

  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--mt-red) 55deg,
    transparent 115deg,
    transparent 175deg,
    rgba(255, 62, 62, 0.7) 220deg,
    transparent 285deg,
    transparent 360deg
  );
  animation: mt-spin 1.15s linear infinite;
  box-shadow:
    0 0 12px rgba(255, 62, 62, 0.22),
    0 0 28px rgba(255, 62, 62, 0.1);
}

.spinner::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--mt-dark);
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 62, 62, 0.16);
}

.spinner::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid var(--mt-red-soft);
  background:
    radial-gradient(
      circle,
      rgba(255, 62, 62, 0.12) 0,
      rgba(255, 62, 62, 0.025) 42%,
      transparent 70%
    );
  box-shadow:
    inset 0 0 10px rgba(255, 62, 62, 0.08);
  animation: mt-pulse 1.5s ease-in-out infinite;
}

.spinner1 {
  position: absolute;
  inset: 21px;
  width: auto;
  height: auto;
  border-radius: 50%;
  background: #14151a;
  border: 1px solid rgba(255, 62, 62, 0.2);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.04),
    inset 0 -4px 8px rgba(0, 0, 0, 0.8);
  z-index: 2;
}

.spinner1::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #ff6868 0,
    var(--mt-red) 18%,
    #a91f1f 35%,
    transparent 60%
  );
  filter: blur(2px);
  opacity: 0.85;
  animation: mt-core 1.2s ease-in-out infinite;
}

.spinner1::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #08090c;
  box-shadow:
    0 0 6px rgba(255, 62, 62, 0.7),
    inset 0 0 5px rgba(255, 62, 62, 0.25);
}

@keyframes mt-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes mt-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.94);
  }

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

@keyframes mt-core {
  0%,
  100% {
    transform: scale(0.72);
    opacity: 0.55;
  }

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

@media (prefers-reduced-motion: reduce) {
  .spinner,
  .spinner::after,
  .spinner1::before {
    animation: none;
  }
}

.mt-donation-page {
    width: min(100% - 32px, 1180px);
    min-height: calc(100svh - 92px);
    margin: 0 auto;
    padding: 56px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
}

.mt-donation-page::before {
    content: "";
    position: absolute;
    width: min(700px, 90vw);
    height: 520px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(205, 32, 44, 0.085) 0%,
            rgba(205, 32, 44, 0.035) 34%,
            transparent 70%
        );
    filter: blur(20px);
    pointer-events: none;
    z-index: -2;
}

.mt-donation-card {
    --accent: #e23b46;
    --accent-bright: #ff5661;
    --accent-soft: rgba(226, 59, 70, 0.13);
    --accent-glow: rgba(226, 59, 70, 0.2);

    position: relative;
    width: min(100%, 500px);
    min-height: 680px;
    padding: 42px 34px 27px;
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background:
        radial-gradient(
            circle at 50% -12%,
            rgba(226, 59, 70, 0.12),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #19191c 0%,
            #111113 58%,
            #0d0d0f 100%
        );
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 30px 8px 30px 8px;
    clip-path: polygon(
        34px 0,
        100% 0,
        100% calc(100% - 34px),
        calc(100% - 34px) 100%,
        0 100%,
        0 34px
    );
    box-shadow:
        0 36px 90px rgba(0, 0, 0, 0.58),
        0 14px 35px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.mt-donation-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        linear-gradient(
            115deg,
            transparent 0%,
            transparent 42%,
            rgba(255, 255, 255, 0.018) 50%,
            transparent 58%,
            transparent 100%
        );
}

.mt-donation-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 34px;
    right: 34px;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(226, 59, 70, 0.9) 25%,
        rgba(255, 91, 101, 0.95) 50%,
        rgba(226, 59, 70, 0.9) 75%,
        transparent
    );
    box-shadow: 0 0 18px rgba(226, 59, 70, 0.35);
}

.mt-donation-card:hover {
    transform: translateY(-7px);
    border-color: rgba(226, 59, 70, 0.23);
    box-shadow:
        0 48px 110px rgba(0, 0, 0, 0.64),
        0 0 55px rgba(226, 59, 70, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.mt-donation-glow {
    position: absolute;
    width: 290px;
    height: 290px;
    top: -170px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -2;
    background: rgba(226, 59, 70, 0.2);
    filter: blur(72px);
    opacity: 0.85;
}

.mt-donation-icon {
    position: relative;
    width: 108px;
    height: 108px;
    margin: 0 auto 23px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.018)
        ),
        #242428;
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.065),
        0 0 0 1px rgba(226, 59, 70, 0.025);
}

.mt-donation-icon::before {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 18px;
    border: 1px solid rgba(226, 59, 70, 0.09);
    pointer-events: none;
}

.mt-donation-icon::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background:
        linear-gradient(
            145deg,
            rgba(226, 59, 70, 0.58),
            transparent 42%,
            rgba(255, 255, 255, 0.08)
        );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.mt-donation-icon svg {
    width: 72px;
    height: 72px;
    display: block;
    color: var(--accent-bright);
    filter:
        drop-shadow(0 0 12px rgba(226, 59, 70, 0.2))
        drop-shadow(0 5px 12px rgba(0, 0, 0, 0.25));
}

.mt-donation-icon svg path {
    stroke: currentColor;
}

.mt-donation-heading {
    text-align: center;
}

.mt-donation-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-bright);
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.mt-donation-title {
    display: block;
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.15rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.mt-donation-text {
    display: block;
    max-width: 390px;
    margin: 12px auto 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.93rem;
    font-weight: 400;
    line-height: 1.58;
    text-align: center;
}

.mt-donation-text-secondary {
    max-width: 360px;
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.43);
    font-size: 0.8rem;
    line-height: 1.62;
}

.mt-donation-actions {
    width: 100%;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mt-donation-payment {
    --payment-accent: #fff;
    --payment-accent-soft: rgba(255, 255, 255, 0.12);
    --payment-accent-border: rgba(255, 255, 255, 0.2);
    --payment-glow: rgba(255, 255, 255, 0.08);

    position: relative;
    display: block;
    width: 100%;
    height: 74px;
    margin: 0;
    box-sizing: border-box;
    color: #fff;
    text-decoration: none;
    border-radius: 16px;
    isolation: isolate;
    overflow: hidden;
    transform: translateZ(0);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.35s ease;
}

.mt-donation-payment::before {
    content: "";
    position: absolute;
    inset: -55%;
    z-index: -2;
    border-radius: 50%;
    background:
        conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 65deg,
            var(--payment-accent) 105deg,
            transparent 140deg,
            transparent 360deg
        );
    opacity: 0.38;
    filter: blur(13px);
    animation: mtDonationPaymentSpin 8s linear infinite;
}

.mt-donation-payment::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(
            135deg,
            var(--payment-accent-soft),
            rgba(255, 255, 255, 0.018) 50%,
            rgba(0, 0, 0, 0.15)
        );
    border: 1px solid var(--payment-accent-border);
    box-shadow:
        0 0 24px var(--payment-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mt-donation-payment-border {
    position: absolute;
    inset: 1px;
    display: block;
    border-radius: 15px;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.012)
        ),
        #111216;
    border: 1px solid rgba(255, 255, 255, 0.055);
}

.mt-donation-payment-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 18px;
    box-sizing: border-box;
    gap: 14px;
    overflow: hidden;
    border-radius: inherit;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.045),
            transparent 50%
        );
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s ease;
}

.mt-donation-payment-inner::before {
    content: "";
    position: absolute;
    top: -70%;
    left: -35%;
    width: 30%;
    height: 240%;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.11),
        transparent
    );
    transform: rotate(18deg) translateX(-250%);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.mt-donation-payment img {
    position: relative;
    z-index: 2;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.32));
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.35s ease;
}

.mt-donation-payment-inner > span {
    position: relative;
    z-index: 2;
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.mt-donation-payment strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mt-donation-payment small {
    display: block;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.71rem;
    font-weight: 500;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mt-donation-payment-arrow {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.32);
    font-size: 1.2rem;
    line-height: 1;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.mt-donation-payment:hover {
    transform: translateY(-3px);
    text-decoration: none;
    filter: brightness(1.05);
}

.mt-donation-payment:hover::before {
    opacity: 0.7;
    animation-duration: 4s;
}

.mt-donation-payment:hover .mt-donation-payment-inner {
    transform: translateY(-1px);
    background:
        linear-gradient(
            135deg,
            var(--payment-accent-soft),
            rgba(255, 255, 255, 0.025)
        );
}

.mt-donation-payment:hover .mt-donation-payment-inner::before {
    transform: rotate(18deg) translateX(550%);
}

.mt-donation-payment:hover img {
    transform: scale(1.08);
    filter:
        drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3))
        drop-shadow(0 0 12px var(--payment-glow));
}

.mt-donation-payment:hover .mt-donation-payment-arrow {
    color: var(--payment-accent);
    transform: translateX(4px);
}

.mt-donation-payment:active {
    transform: translateY(-1px) scale(0.992);
}

.mt-donation-payment:focus-visible {
    outline: 2px solid var(--payment-accent);
    outline-offset: 4px;
}

.mt-donation-payment.paypal,
.mt-donation-paypal {
    --payment-accent: #4da3ff;
    --payment-accent-soft: rgba(0, 112, 243, 0.13);
    --payment-accent-border: rgba(77, 163, 255, 0.38);
    --payment-glow: rgba(0, 112, 243, 0.16);
}

.mt-donation-payment.cashplus,
.mt-donation-cashplus {
    --payment-accent: #ffd23f;
    --payment-accent-soft: rgba(255, 204, 0, 0.11);
    --payment-accent-border: rgba(255, 204, 0, 0.36);
    --payment-glow: rgba(255, 204, 0, 0.13);
}

.mt-donation-payment.kofi,
.mt-donation-kofi {
    --payment-accent: #ff6433;
    --payment-accent-soft: rgba(255, 100, 51, 0.12);
    --payment-accent-border: rgba(255, 100, 51, 0.4);
    --payment-glow: rgba(255, 100, 51, 0.16);
}

.mt-donation-payment.kofi .mt-donation-payment-inner svg,
.mt-donation-kofi .mt-donation-payment-inner svg {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: block;
}

.mt-donation-payment-icon {
    position: relative;
    z-index: 3;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--payment-accent-border);
    border-radius: 11px;
    background: var(--payment-accent-soft);
    color: var(--payment-accent);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.mt-donation-payment-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    color: currentColor;
}

.mt-donation-payment:hover .mt-donation-payment-icon {
    transform: scale(1.07);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 0 18px var(--payment-glow);
}

.mt-donation-cashplus .mt-donation-payment-icon {
    color: #ffd23f;
}

.mt-donation-cashplus .mt-donation-payment-icon svg {
    fill: currentColor;
}

.mt-donation-kofi .mt-donation-payment-icon svg {
    width: 27px;
    height: 27px;
}

.mt-donation-kofi .mt-donation-payment-icon {
    color: #ff6433;
}

.mt-donation-footer {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.29);
    font-size: 0.67rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.mt-donation-footer-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow:
        0 0 8px rgba(226, 59, 70, 0.7),
        0 0 18px rgba(226, 59, 70, 0.3);
}

@keyframes mtDonationPaymentSpin {
    from {
        transform: rotate(0deg);
    }

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

@media (max-width: 600px) {
    .mt-donation-page {
        width: min(100% - 20px, 500px);
        min-height: calc(100svh - 76px);
        padding: 34px 0;
    }

    .mt-donation-card {
        width: 100%;
        min-height: 650px;
        padding: 34px 21px 23px;
        border-radius: 24px 6px 24px 6px;
        clip-path: polygon(
            27px 0,
            100% 0,
            100% calc(100% - 27px),
            calc(100% - 27px) 100%,
            0 100%,
            0 27px
        );
    }

    .mt-donation-card:hover {
        transform: none;
    }

    .mt-donation-card::after {
        left: 27px;
        right: 27px;
    }

    .mt-donation-icon {
        width: 94px;
        height: 94px;
        margin-bottom: 19px;
        border-radius: 20px;
    }

    .mt-donation-icon::before {
        inset: 8px;
        border-radius: 15px;
    }

    .mt-donation-icon svg {
        width: 64px;
        height: 64px;
    }

    .mt-donation-eyebrow {
        font-size: 0.63rem;
        letter-spacing: 0.16em;
    }

    .mt-donation-title {
        font-size: 1.7rem;
    }

    .mt-donation-text {
        max-width: 350px;
        font-size: 0.88rem;
    }

    .mt-donation-text-secondary {
        max-width: 330px;
        font-size: 0.77rem;
    }

    .mt-donation-actions {
        margin-top: 25px;
        gap: 10px;
    }

    .mt-donation-payment {
        height: 66px;
        border-radius: 14px;
    }

    .mt-donation-payment-border {
        border-radius: 13px;
    }

    .mt-donation-payment-inner {
        padding: 0 13px;
        gap: 11px;
    }

    .mt-donation-payment img {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .mt-donation-payment-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 10px;
    }

    .mt-donation-payment strong {
        font-size: 0.85rem;
    }

    .mt-donation-payment small {
        font-size: 0.65rem;
    }

    .mt-donation-payment-arrow {
        font-size: 1.05rem;
    }

    .mt-donation-kofi .mt-donation-payment-icon svg {
        width: 24px;
        height: 24px;
    }

    .mt-donation-footer {
        padding-top: 23px;
        font-size: 0.62rem;
    }
}

@media (max-width: 380px) {
    .mt-donation-page {
        width: calc(100% - 14px);
        padding: 25px 0;
    }

    .mt-donation-card {
        min-height: 625px;
        padding: 29px 15px 20px;
    }

    .mt-donation-icon {
        width: 88px;
        height: 88px;
    }

    .mt-donation-icon svg {
        width: 59px;
        height: 59px;
    }

    .mt-donation-title {
        font-size: 1.55rem;
    }

    .mt-donation-text {
        font-size: 0.83rem;
    }

    .mt-donation-text-secondary {
        font-size: 0.72rem;
    }

    .mt-donation-payment {
        height: 62px;
    }

    .mt-donation-payment-inner {
        padding: 0 10px;
        gap: 9px;
    }

    .mt-donation-payment img {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .mt-donation-payment-icon {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .mt-donation-payment strong {
        font-size: 0.79rem;
    }

    .mt-donation-payment small {
        font-size: 0.61rem;
    }

    .mt-donation-payment-arrow {
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mt-donation-card,
    .mt-donation-payment,
    .mt-donation-payment-inner,
    .mt-donation-payment-inner::before,
    .mt-donation-payment img,
    .mt-donation-payment-icon,
    .mt-donation-payment-arrow,
    .mt-donation-payment::before {
        animation: none !important;
        transition: none !important;
    }

    .mt-donation-card:hover,
    .mt-donation-payment:hover {
        transform: none;
    }

    .mt-donation-payment:hover .mt-donation-payment-inner,
    .mt-donation-payment:hover .mt-donation-payment-icon,
    .mt-donation-payment:hover img,
    .mt-donation-payment:hover .mt-donation-payment-arrow {
        transform: none;
    }
}

@media (hover: none) {
    .mt-donation-card:hover {
        transform: none;
    }

    .mt-donation-payment:hover {
        transform: none;
        filter: none;
    }
}

.page-loader-spinner-wrap {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mt-loader {
    width: 58px;
    height: 58px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mt-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(226, 59, 70, 0.12);
    border-top-color: #e23b46;
    border-right-color: rgba(226, 59, 70, 0.45);
    animation: mtLoaderSpin 1s linear infinite;
    filter: drop-shadow(0 0 8px rgba(226, 59, 70, 0.22));
}

.mt-loader-ring-inner {
    inset: 8px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.06);
    border-bottom-color: #ff5a63;
    border-left-color: rgba(226, 59, 70, 0.35);
    animation: mtLoaderSpinReverse 0.75s linear infinite;
    filter: drop-shadow(0 0 7px rgba(226, 59, 70, 0.18));
}

.mt-loader-core {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 90, 99, 0.2),
            rgba(226, 59, 70, 0.06) 60%,
            transparent 100%
        );
    box-shadow:
        0 0 16px rgba(226, 59, 70, 0.2),
        inset 0 0 8px rgba(255, 255, 255, 0.04);
}

.mt-loader-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff5a63;
    box-shadow:
        0 0 7px rgba(255, 90, 99, 0.8),
        0 0 14px rgba(226, 59, 70, 0.45);
    animation: mtLoaderPulse 1s ease-in-out infinite;
}

@keyframes mtLoaderSpin {
    from {
        transform: rotate(0deg);
    }

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

@keyframes mtLoaderSpinReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes mtLoaderPulse {
    0%,
    100% {
        transform: scale(0.72);
        opacity: 0.55;
    }

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

@media (prefers-reduced-motion: reduce) {
    .mt-loader-ring,
    .mt-loader-ring-inner,
    .mt-loader-dot {
        animation: none;
    }
}

.loader-wrapper {
    --red: #ff3030;
    --red-hot: #ff5a3d;
    --orange: #ff8a3d;
    --dark: #050507;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 240px;
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #fff;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at center,
            rgba(255, 48, 48, 0.14) 0%,
            rgba(255, 48, 48, 0.055) 30%,
            transparent 64%
        );
    user-select: none;
    isolation: isolate;
    filter:
        drop-shadow(0 0 12px rgba(255, 48, 48, 0.18))
        drop-shadow(0 0 50px rgba(255, 48, 48, 0.08));
    transform: translateZ(0);
}

.loader-wrapper::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            transparent 40%,
            rgba(255, 48, 48, 0.025) 55%,
            rgba(255, 48, 48, 0.12) 68%,
            transparent 76%
        );
    box-shadow:
        0 0 35px rgba(255, 48, 48, 0.12),
        0 0 90px rgba(255, 48, 48, 0.07);
    pointer-events: none;
    z-index: -2;
    animation: mt-loader-breathe 3s ease-in-out infinite;
}

.loader-wrapper::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 70, 50, 0.18);
    box-shadow:
        0 0 20px rgba(255, 48, 48, 0.09),
        inset 0 0 25px rgba(255, 48, 48, 0.07);
    pointer-events: none;
    z-index: -1;
    animation: mt-loader-ring 4s ease-in-out infinite;
}

.loader {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: transparent;
    animation:
        loader-rotate 2.8s linear infinite,
        mt-loader-pulse 2.8s ease-in-out infinite;
    z-index: 0;
    transform-origin: center;
}

.loader-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    white-space: nowrap;
}

.loader-letter {
    position: relative;
    display: inline-block;
    opacity: 0.28;
    color: #fff;
    transform: translateY(0) scale(1);
    animation: loader-letter-anim 2.2s ease-in-out infinite;
    z-index: 2;
    border: none;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.35),
        0 0 12px rgba(255, 48, 48, 0.4),
        0 0 25px rgba(255, 48, 48, 0.2);
    will-change: transform, opacity, filter;
}

.loader-letter:nth-child(1) { animation-delay: 0s; }
.loader-letter:nth-child(2) { animation-delay: 0.08s; }
.loader-letter:nth-child(3) { animation-delay: 0.16s; }
.loader-letter:nth-child(4) { animation-delay: 0.24s; }
.loader-letter:nth-child(5) { animation-delay: 0.32s; }
.loader-letter:nth-child(6) { animation-delay: 0.40s; }
.loader-letter:nth-child(7) { animation-delay: 0.48s; }
.loader-letter:nth-child(8) { animation-delay: 0.56s; }
.loader-letter:nth-child(9) { animation-delay: 0.64s; }
.loader-letter:nth-child(10) { animation-delay: 0.72s; }

@keyframes loader-rotate {
    0% {
        transform: rotate(0deg);
        box-shadow:
            0 8px 18px 0 rgba(255, 255, 255, 0.95) inset,
            0 20px 34px 0 rgba(255, 75, 55, 0.95) inset,
            0 55px 70px 0 rgba(170, 20, 20, 0.85) inset,
            0 0 35px rgba(255, 45, 35, 0.2);
    }

    25% {
        box-shadow:
            0 10px 22px 0 rgba(255, 255, 255, 0.75) inset,
            0 26px 38px 0 rgba(255, 95, 55, 0.95) inset,
            0 65px 80px 0 rgba(125, 8, 18, 0.9) inset,
            0 0 50px rgba(255, 40, 30, 0.25);
    }

    50% {
        transform: rotate(180deg);
        box-shadow:
            0 8px 16px 0 rgba(255, 255, 255, 0.9) inset,
            0 22px 32px 0 rgba(255, 48, 48, 0.95) inset,
            0 50px 75px 0 rgba(105, 8, 16, 0.95) inset,
            0 0 40px rgba(255, 30, 20, 0.2);
    }

    75% {
        box-shadow:
            0 12px 25px 0 rgba(255, 255, 255, 0.78) inset,
            0 30px 42px 0 rgba(255, 105, 60, 0.95) inset,
            0 70px 85px 0 rgba(145, 10, 18, 0.88) inset,
            0 0 55px rgba(255, 45, 30, 0.28);
    }

    100% {
        transform: rotate(360deg);
        box-shadow:
            0 8px 18px 0 rgba(255, 255, 255, 0.95) inset,
            0 20px 34px 0 rgba(255, 75, 55, 0.95) inset,
            0 55px 70px 0 rgba(170, 20, 20, 0.85) inset,
            0 0 35px rgba(255, 45, 35, 0.2);
    }
}

@keyframes mt-loader-pulse {
    0%,
    100% {
        opacity: 0.82;
        scale: 0.96;
    }

    50% {
        opacity: 1;
        scale: 1;
    }
}

@keyframes loader-letter-anim {
    0%,
    100% {
        opacity: 0.28;
        transform: translateY(0) scale(1);
        filter:
            brightness(0.8)
            drop-shadow(0 0 0 transparent);
    }

    20% {
        opacity: 1;
        transform: translateY(-3px) scale(1.16);
        filter:
            brightness(1.35)
            drop-shadow(0 0 7px rgba(255, 65, 45, 0.75))
            drop-shadow(0 0 18px rgba(255, 40, 30, 0.45));
    }

    40% {
        opacity: 0.72;
        transform: translateY(0) scale(1.04);
        filter:
            brightness(1.05)
            drop-shadow(0 0 5px rgba(255, 48, 48, 0.4));
    }
}

@keyframes mt-loader-breathe {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.96);
    }

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

@keyframes mt-loader-ring {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.97);
    }

    50% {
        opacity: 0.75;
        transform: scale(1.015);
    }
}

@media (max-width: 600px) {
    .loader-wrapper {
        width: 180px;
        height: 180px;
        font-size: 0.85rem;
        letter-spacing: 0.16em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loader,
    .loader-wrapper::before,
    .loader-wrapper::after,
    .loader-letter {
        animation: none !important;
    }

    .loader-letter {
        opacity: 0.8;
    }
}


/* From Uiverse.io by Praashoo7 */ 
/* Design Inspired by one of Stefan Devai's Design on Dribble */

.main_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30em;
  height: 30em;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 5em;
}

.antenna {
  width: 5em;
  height: 5em;
  border-radius: 50%;
  border: 2px solid black;
  background-color: #f27405;
  margin-bottom: -6em;
  margin-left: 0em;
  z-index: -1;
}
.antenna_shadow {
  position: absolute;
  background-color: transparent;
  width: 50px;
  height: 56px;
  margin-left: 1.68em;
  border-radius: 45%;
  transform: rotate(140deg);
  border: 4px solid transparent;
  box-shadow:
    inset 0px 16px #a85103,
    inset 0px 16px 1px 1px #a85103;
  -moz-box-shadow:
    inset 0px 16px #a85103,
    inset 0px 16px 1px 1px #a85103;
}
.antenna::after {
  content: "";
  position: absolute;
  margin-top: -9.4em;
  margin-left: 0.4em;
  transform: rotate(-25deg);
  width: 1em;
  height: 0.5em;
  border-radius: 50%;
  background-color: #f69e50;
}
.antenna::before {
  content: "";
  position: absolute;
  margin-top: 0.2em;
  margin-left: 1.25em;
  transform: rotate(-20deg);
  width: 1.5em;
  height: 0.8em;
  border-radius: 50%;
  background-color: #f69e50;
}
.a1 {
  position: relative;
  top: -102%;
  left: -130%;
  width: 12em;
  height: 5.5em;
  border-radius: 50px;
  background-image: linear-gradient(
    #171717,
    #171717,
    #353535,
    #353535,
    #171717
  );
  transform: rotate(-29deg);
  clip-path: polygon(50% 0%, 49% 100%, 52% 100%);
}
.a1d {
  position: relative;
  top: -211%;
  left: -35%;
  transform: rotate(45deg);
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  border: 2px solid black;
  background-color: #979797;
  z-index: 99;
}
.a2 {
  position: relative;
  top: -210%;
  left: -10%;
  width: 12em;
  height: 4em;
  border-radius: 50px;
  background-color: #171717;
  background-image: linear-gradient(
    #171717,
    #171717,
    #353535,
    #353535,
    #171717
  );
  margin-right: 5em;
  clip-path: polygon(
    47% 0,
    47% 0,
    34% 34%,
    54% 25%,
    32% 100%,
    29% 96%,
    49% 32%,
    30% 38%
  );
  transform: rotate(-8deg);
}
.a2d {
  position: relative;
  top: -294%;
  left: 94%;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  border: 2px solid black;
  background-color: #979797;
  z-index: 99;
}

.notfound_text {
  background-color: black;
  padding-left: 0.3em;
  padding-right: 0.3em;
  font-size: 0.75em;
  color: white;
  letter-spacing: 0;
  border-radius: 5px;
  z-index: 10;
}
.tv {
  width: 17em;
  height: 9em;
  margin-top: 3em;
  border-radius: 15px;
  background-color: #d36604;
  display: flex;
  justify-content: center;
  border: 2px solid #1d0e01;
  box-shadow: inset 0.2em 0.2em #e69635;
}
.tv::after {
  content: "";
  position: absolute;
  width: 17em;
  height: 9em;
  border-radius: 15px;
  background:
    repeating-radial-gradient(#d36604 0 0.0001%, #00000070 0 0.0002%) 50% 0/2500px
      2500px,
    repeating-conic-gradient(#d36604 0 0.0001%, #00000070 0 0.0002%) 60% 60%/2500px
      2500px;
  background-blend-mode: difference;
  opacity: 0.09;
}
.curve_svg {
  position: absolute;
  margin-top: 0.25em;
  margin-left: -0.25em;
  height: 12px;
  width: 12px;
}
.display_div {
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  border-radius: 15px;
  box-shadow: 3.5px 3.5px 0px #e69635;
}
.screen_out {
  width: auto;
  height: auto;

  border-radius: 10px;
}
.screen_out1 {
  width: 11em;
  height: 7.75em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.screen {
  width: 13em;
  height: 7.85em;
  font-family: Montserrat;
  border: 2px solid #1d0e01;
  background:
    repeating-radial-gradient(#000 0 0.0001%, #ffffff 0 0.0002%) 50% 0/2500px
      2500px,
    repeating-conic-gradient(#000 0 0.0001%, #ffffff 0 0.0002%) 60% 60%/2500px
      2500px;
  background-blend-mode: difference;
  animation: b 0.2s infinite alternate;
  border-radius: 10px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #252525;
  letter-spacing: 0.15em;
  text-align: center;
}

.screenM {
  width: 13em;
  height: 7.85em;
  position: relative;
  font-family: Montserrat;
  background: linear-gradient(
    to right,
    #002fc6 0%,
    #002bb2 14.2857142857%,
    #3a3a3a 14.2857142857%,
    #303030 28.5714285714%,
    #ff0afe 28.5714285714%,
    #f500f4 42.8571428571%,
    #6c6c6c 42.8571428571%,
    #626262 57.1428571429%,
    #0affd9 57.1428571429%,
    #00f5ce 71.4285714286%,
    #3a3a3a 71.4285714286%,
    #303030 85.7142857143%,
    white 85.7142857143%,
    #fafafa 100%
  );
  border-radius: 10px;
  border: 2px solid black;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #252525;
  letter-spacing: 0.15em;
  text-align: center;
  overflow: hidden;
}
.screenM:before,
.screenM:after {
  content: "";
  position: absolute;
  left: 0;
  z-index: 1;
  width: 100%;
}
.screenM:before {
  top: 0;
  height: 68.4782608696%;
  background: linear-gradient(
    to right,
    white 0%,
    #fafafa 14.2857142857%,
    #ffe60a 14.2857142857%,
    #f5dc00 28.5714285714%,
    #0affd9 28.5714285714%,
    #00f5ce 42.8571428571%,
    #10ea00 42.8571428571%,
    #0ed600 57.1428571429%,
    #ff0afe 57.1428571429%,
    #f500f4 71.4285714286%,
    #ed0014 71.4285714286%,
    #d90012 85.7142857143%,
    #002fc6 85.7142857143%,
    #002bb2 100%
  );
}
.screenM:after {
  bottom: 0;
  height: 21.7391304348%;
  background: linear-gradient(
    to right,
    #006c6b 0%,
    #005857 16.6666666667%,
    white 16.6666666667%,
    #fafafa 33.3333333333%,
    #001b75 33.3333333333%,
    #001761 50%,
    #6c6c6c 50%,
    #626262 66.6666666667%,
    #929292 66.6666666667%,
    #888888 83.3333333333%,
    #3a3a3a 83.3333333333%,
    #303030 100%
  );
}

@keyframes b {
  100% {
    background-position:
      50% 0,
      60% 50%;
  }
}

.lines {
  display: flex;
  column-gap: 0.1em;
  align-self: flex-end;
}
.line1,
.line3 {
  width: 2px;
  height: 0.5em;
  background-color: black;
  border-radius: 25px 25px 0px 0px;
  margin-top: 0.5em;
}
.line2 {
  flex-grow: 1;
  width: 2px;
  height: 1em;
  background-color: black;
  border-radius: 25px 25px 0px 0px;
}

.buttons_div {
  width: 4.25em;
  align-self: center;
  height: 8em;
  background-color: #e69635;
  border: 2px solid #1d0e01;
  padding: 0.6em;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  row-gap: 0.75em;
  box-shadow: 3px 3px 0px #e69635;
}
.b1 {
  width: 1.65em;
  height: 1.65em;
  border-radius: 50%;
  background-color: #7f5934;
  border: 2px solid black;
  box-shadow:
    inset 2px 2px 1px #b49577,
    -2px 0px #513721,
    -2px 0px 0px 1px black;
}
.b1::before {
  content: "";
  position: absolute;
  margin-top: 1em;
  margin-left: 0.5em;
  transform: rotate(47deg);
  border-radius: 5px;
  width: 0.1em;
  height: 0.4em;
  background-color: #000000;
}
.b1::after {
  content: "";
  position: absolute;
  margin-top: 0.9em;
  margin-left: 0.8em;
  transform: rotate(47deg);
  border-radius: 5px;
  width: 0.1em;
  height: 0.55em;
  background-color: #000000;
}
.b1 div {
  content: "";
  position: absolute;
  margin-top: -0.1em;
  margin-left: 0.65em;
  transform: rotate(45deg);
  width: 0.15em;
  height: 1.5em;
  background-color: #000000;
}
.b2 {
  width: 1.65em;
  height: 1.65em;
  border-radius: 50%;
  background-color: #7f5934;
  border: 2px solid black;
  box-shadow:
    inset 2px 2px 1px #b49577,
    -2px 0px #513721,
    -2px 0px 0px 1px black;
}
.b2::before {
  content: "";
  position: absolute;
  margin-top: 1.05em;
  margin-left: 0.8em;
  transform: rotate(-45deg);
  border-radius: 5px;
  width: 0.15em;
  height: 0.4em;
  background-color: #000000;
}
.b2::after {
  content: "";
  position: absolute;
  margin-top: -0.1em;
  margin-left: 0.65em;
  transform: rotate(-45deg);
  width: 0.15em;
  height: 1.5em;
  background-color: #000000;
}
.speakers {
  display: flex;
  flex-direction: column;
  row-gap: 0.5em;
}
.speakers .g1 {
  display: flex;
  column-gap: 0.25em;
}
.speakers .g1 .g11,
.g12,
.g13 {
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background-color: #7f5934;
  border: 2px solid black;
  box-shadow: inset 1.25px 1.25px 1px #b49577;
}
.speakers .g {
  width: auto;
  height: 2px;
  background-color: #171717;
}

.bottom {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 8.7em;
}
.base1 {
  height: 1em;
  width: 2em;
  border: 2px solid #171717;
  background-color: #4d4d4d;
  margin-top: -0.15em;
  z-index: -1;
}
.base2 {
  height: 1em;
  width: 2em;
  border: 2px solid #171717;
  background-color: #4d4d4d;
  margin-top: -0.15em;
  z-index: -1;
}
.base3 {
  position: absolute;
  height: 0.15em;
  width: 17.5em;
  background-color: #171717;
  margin-top: 0.8em;
}

.text_404 {
  position: absolute;
  display: flex;
  flex-direction: row;
  column-gap: 6em;
  z-index: -5;
  margin-bottom: 2em;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  font-family: Montserrat;
}
.text_4041 {
  transform: scaleY(24.5) scaleX(9);
}
.text_4042 {
  transform: scaleY(24.5) scaleX(9);
}
.text_4043 {
  transform: scaleY(24.5) scaleX(9);
}

@media only screen and (max-width: 495px) {
  .text_404 {
    column-gap: 6em;
  }
}
@media only screen and (max-width: 395px) {
  .text_404 {
    column-gap: 4em;
  }
  .text_4041 {
    transform: scaleY(25) scaleX(8);
  }
  .text_4042 {
    transform: scaleY(25) scaleX(8);
  }
  .text_4043 {
    transform: scaleY(25) scaleX(8);
  }
}

@media (max-width: 275px), (max-height: 520px) {
  .main {
    position: relative;
  }
}

@media only screen and (max-width: 1024px) {
  .screenM {
    display: flex;
  }
  .screen {
    display: none;
  }
}
@media only screen and (min-width: 1025px) {
  .screen {
    display: flex;
  }
  .screenM {
    display: none;
  }
}


.notfound-404 {
    padding-top: 1%;
    padding-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}