:root {
    --mc-bg: #ffffff;
    --mc-surface: #ffffff;
    --mc-surface-soft: #f8f9fa;
    --mc-line: #dee2e6;
    --mc-text: #212529;
    --mc-muted: #6c757d;
    --mc-blue: #007bff;
    --mc-blue-dark: #0056b3;
    --mc-blue-glow: rgba(0, 123, 255, 0.26);
    --mc-green: #28a745;
    --mc-green-dark: #218838;
    --mc-green-glow: rgba(40, 167, 69, 0.24);
    --mc-red: #dc3545;
    --mc-red-dark: #b02a37;
    --mc-red-glow: rgba(220, 53, 69, 0.26);
    --mc-lime: #9bdc45;
    --mc-gold: #f0b429;
    --mc-radius: 8px;
    --mc-space-1: 8px;
    --mc-space-2: 12px;
    --mc-space-3: 16px;
    --mc-space-4: 20px;
    --mc-space-5: 24px;
    --mc-space-6: 32px;
    --mc-shadow-soft: 0 8px 18px rgba(15, 23, 42, 0.08);
    --mc-shadow-card: 0 14px 32px rgba(15, 23, 42, 0.10);
    --mc-shadow-hero: 0 18px 44px rgba(15, 23, 42, 0.18);
    --mc-btn-radius: 10px;
    --mc-btn-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    --mc-btn-shadow-hover: 0 12px 24px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background-color: #ffffff;
    background-image: url("/assets/background.png");
    background-size: 297px 297px;
    background-repeat: repeat;
    background-attachment: fixed;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    background: transparent;
    color: var(--mc-text);
    line-height: 1.6;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--mc-blue);
    font-weight: 500;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    line-height: 1.2;
}

p:last-child {
    margin-bottom: 0;
}

.mc-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--mc-line);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
    padding: 8px 0;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin-right: 28px;
}

.brand-logo {
    display: block;
    width: 236px;
    max-width: 48vw;
    height: auto;
}

.navbar .nav-link,
.navbar .navbar-text {
    color: var(--mc-muted) !important;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--mc-blue) !important;
}

.navbar .nav-link {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 15px !important;
}

.nav-notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 8px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc3545;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    vertical-align: middle;
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.22);
}

.navbar .nav-link:hover {
    background: #f1f3f5;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    align-items: center;
    background: transparent;
    color: var(--mc-text);
    border-bottom: 0;
}

.hero-copy {
    max-width: 1080px;
    padding-inline: 12px;
}

.hero .lead {
    color: var(--mc-muted);
    font-size: 1.1rem;
}

.server-browser {
    margin-top: -24px;
    position: relative;
    z-index: 2;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 290px);
    gap: 14px;
    align-items: center;
    padding: 0;
    margin-bottom: 18px;
}

.search-input-wrap {
    position: relative;
}

.search-input {
    height: 60px;
    padding-left: 62px;
    border: 1px solid var(--mc-line);
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #8a9aa0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.search-icon i {
    font-size: 0.95rem;
}

.sort-dropdown {
    position: relative;
    min-width: 0;
}

.sort-dropdown-trigger {
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 18px 13px 20px;
    border: 1px solid #d7e3dc;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.97));
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    color: #0f172a;
    text-align: left;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.sort-dropdown-trigger:hover {
    border-color: #bad1c1;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.sort-dropdown.is-open .sort-dropdown-trigger,
.sort-dropdown-trigger:focus-visible {
    border-color: var(--mc-green);
    box-shadow: 0 0 0 4px rgba(46, 164, 79, 0.14), 0 16px 32px rgba(15, 23, 42, 0.12);
    outline: none;
}

.sort-dropdown-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sort-dropdown-label {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sort-dropdown-copy strong {
    display: block;
    min-width: 0;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sort-dropdown-caret {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 140ms ease, border-color 140ms ease;
}

.sort-dropdown.is-open .sort-dropdown-caret {
    border-color: var(--mc-green);
    transform: rotate(-135deg) translateX(-1px);
}

.sort-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 50;
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(32, 84, 51, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(245, 248, 251, 0.98));
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.sort-dropdown.is-open .sort-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.sort-dropdown-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 800;
    text-align: left;
    transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.sort-dropdown-option:hover,
.sort-dropdown-option:focus-visible {
    background: rgba(46, 164, 79, 0.1);
    color: #134e2a;
    outline: none;
    transform: translateX(2px);
}

.sort-dropdown-option.is-active {
    background: linear-gradient(135deg, rgba(46, 164, 79, 0.16), rgba(24, 120, 54, 0.1));
    color: #14532d;
}

.sort-dropdown-check {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2ea44f, #1f7c3a);
    box-shadow: 0 8px 18px rgba(46, 164, 79, 0.22);
    position: relative;
}

.sort-dropdown-check::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 6px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
}

.panel,
.server-card {
    background: var(--mc-surface);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.panel {
    border: 2px solid var(--mc-line);
}

.server-card {
    border: 0;
}

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

.server-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 112px;
    padding: 0;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.server-card > :not(.server-banner) {
    position: relative;
    z-index: 1;
}

.server-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.server-card {
    cursor: pointer;
}

.server-card:focus-visible {
    outline: 3px solid rgba(46, 164, 79, 0.28);
    outline-offset: 1px;
}

.rank {
    display: grid;
    place-items: center;
    width: 76px;
    flex: 0 0 76px;
    min-height: 112px;
    border-radius: 0;
    background: transparent;
    color: var(--mc-text);
    font-size: 1.3rem;
    font-weight: 900;
    border-right: 0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.rank.is-gold {
    color: #d4a017;
    background: transparent;
    text-shadow: 0 0 16px rgba(212, 160, 23, 0.18);
}

.rank.is-silver {
    color: #b6c0cc;
    background: transparent;
    text-shadow: 0 0 16px rgba(182, 192, 204, 0.18);
}

.rank.is-bronze {
    color: #b8662e;
    background: transparent;
    text-shadow: 0 0 16px rgba(184, 102, 46, 0.18);
}

.server-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 22px 24px;
}

.server-quick-panel {
    position: relative;
    z-index: 3;
    flex: 0 0 214px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding: 18px 18px 18px 0;
}

.server-banner {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
        linear-gradient(135deg, rgba(0, 123, 255, 0.06), rgba(40, 167, 69, 0.05));
    opacity: 1;
}

.server-card.has-custom-background .server-banner {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.82) 38%, rgba(255, 255, 255, 0.3) 74%, rgba(255, 255, 255, 0.16) 100%),
        var(--server-background) center/cover;
}

.new-servers-panel {
    padding: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--mc-line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.new-servers-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.new-servers-head h2 {
    margin: 2px 0 0;
    color: var(--mc-text);
    font-size: 1.35rem;
    font-weight: 900;
}

.new-server-list {
    display: grid;
    gap: 10px;
}

.new-server-row,
.new-server-empty {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.new-server-row {
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.new-server-row:hover {
    color: inherit;
    background: #f3fbf5;
    border-color: #cfead5;
    transform: translateY(-1px);
}

.new-server-row img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    image-rendering: pixelated;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}

.new-server-row strong,
.new-server-row span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.new-server-row strong {
    color: var(--mc-text);
    font-size: 0.98rem;
    font-weight: 900;
}

.new-server-row span,
.new-server-empty span {
    color: var(--mc-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.new-server-row em {
    color: #1f7a3b;
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.new-server-empty {
    grid-template-columns: 1fr;
    text-align: center;
}

.new-server-empty strong {
    color: var(--mc-text);
    font-weight: 900;
}

.server-background-preview {
    width: 100%;
    min-height: 140px;
    border: 1px solid var(--mc-line);
    border-radius: 8px;
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.server-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 760px;
}

.server-copy {
    min-width: 0;
    flex: 1 1 auto;
    width: clamp(420px, 46vw, 620px);
    max-width: 620px;
}

.server-card.has-custom-background .server-copy {
    padding: 10px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.42));
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.server-title-link {
    color: var(--mc-text);
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.server-card:hover .server-title-link {
    color: var(--mc-green-dark);
}

.server-list-description {
    max-width: 100%;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #5f6f64 !important;
    font-size: 0.92rem;
    line-height: 1.48;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.46);
}

.server-quick-stats {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
}

.server-quick-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #274233;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

.server-quick-chip svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    color: #3b5d4a;
}

.server-quick-chip i {
    font-size: 0.82rem;
    color: #3b5d4a;
}

.server-quick-chip strong {
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.server-quick-chip.is-highlight {
    background: rgba(197, 242, 210, 0.62);
    border-color: rgba(36, 132, 73, 0.16);
    color: #1d5a34;
}

.server-quick-chip.is-highlight svg {
    color: #1f7a3b;
}

.server-quick-copy {
    width: 100%;
    max-width: 214px;
}

.server-quick-copy-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 7px 8px 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.56);
    color: #1f2f25;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    text-align: left;
    position: relative;
    z-index: 4;
    pointer-events: auto;
}

.server-quick-copy-button * {
    pointer-events: none;
}

.server-quick-copy-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 9px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.08);
    color: #5d6d63;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.server-quick-copy-button strong {
    min-width: 0;
    flex: 1 1 auto;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.2;
    color: #223228;
}

.server-quick-copy-button strong.is-copied {
    color: #166534;
}

.server-quick-copy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 10px;
    background: rgba(46, 164, 79, 0.92);
    color: #ffffff;
}

.server-quick-copy-icon i {
    font-size: 0.92rem;
}

.server-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 8px;
    object-fit: cover;
    image-rendering: pixelated;
    background: #e7f7ec;
    border: 1px solid rgba(23, 115, 48, 0.16);
    box-shadow: 0 10px 22px rgba(19, 32, 24, 0.10);
}

.dashboard-server-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.dashboard-server-summary > div {
    min-width: 0;
}

.tag,
.month-pill,
.server-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--mc-surface-soft);
    border: 1px solid var(--mc-line);
    color: var(--mc-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.server-pill {
    min-height: 26px;
    padding: 4px 9px;
    background: rgba(255, 255, 255, 0.9);
    color: #74857a;
    border-color: #e1ebe5;
    font-size: 0.8rem;
}

.server-online {
    color: var(--mc-muted);
}

.server-online::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--mc-green);
    box-shadow: 0 0 0 3px rgba(39, 168, 68, 0.14);
}

.server-offline::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: #e23b54;
    box-shadow: 0 0 0 3px rgba(226, 59, 84, 0.14);
}

.server-pending::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: #f0b429;
    box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.18);
}

.version-badge {
    background: #e9ecef;
    border: 1px solid #dce2e8;
    color: var(--mc-muted);
}

.vote-box {
    min-width: 140px;
    padding: 16px;
    text-align: center;
    border-radius: 8px;
    background: #f8fbf9;
    border: 1px solid var(--mc-line);
}

.vote-button {
    position: relative;
    align-self: center;
    margin-right: 18px;
    min-width: 98px;
    z-index: 3;
}

.server-card > .vote-button {
    z-index: 3;
}

.vote-button::before {
    content: "\2665";
    margin-right: 7px;
}

.votes {
    font-size: 2.35rem;
    font-weight: 900;
    color: var(--mc-green-dark);
    line-height: 1;
}

.btn {
    border-radius: var(--mc-btn-radius);
    font-weight: 900;
    border-width: 1px;
    box-shadow: var(--mc-btn-shadow);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, filter 160ms ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--mc-btn-shadow-hover);
}

.btn:focus,
.btn:focus-visible,
.btn-check:focus + .btn {
    outline: 0;
    box-shadow: 0 0 0 4px var(--mc-green-glow), 0 10px 22px rgba(15, 23, 42, 0.12);
}

.btn:focus:not(:focus-visible) {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.btn:active,
.btn.active,
.btn.show {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10);
}

.btn,
.btn-auth-login,
.btn-auth-register,
.btn-auth-submit,
.btn-auth-logout,
.btn-dashboard-view,
.btn-dashboard-log,
.vote-button,
.search-button,
.detail-vote-button,
.discord-button,
.server-address-copy button,
.server-info-copy button,
.comment-report-button {
    -webkit-appearance: none;
    appearance: none;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.btn,
.btn-auth-login,
.btn-auth-register,
.btn-auth-submit,
.btn-auth-logout,
.btn-dashboard-view,
.btn-dashboard-log,
.vote-button,
.search-button,
.detail-vote-button,
.discord-button,
.server-address-copy button,
.server-info-copy button,
.comment-report-button {
    border-radius: var(--mc-btn-radius);
}

.btn,
.btn-auth-login,
.btn-auth-register,
.btn-auth-submit,
.btn-auth-logout,
.btn-dashboard-view,
.btn-dashboard-log,
.vote-button,
.search-button,
.detail-vote-button,
.discord-button,
.server-address-copy button,
.server-info-copy button,
.comment-report-button {
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, filter 160ms ease;
}

.btn-auth-login:focus,
.btn-auth-login:focus-visible,
.btn-auth-register:focus,
.btn-auth-register:focus-visible,
.btn-auth-submit:focus,
.btn-auth-submit:focus-visible,
.btn-auth-logout:focus,
.btn-auth-logout:focus-visible,
.btn-dashboard-view:focus,
.btn-dashboard-view:focus-visible,
.btn-dashboard-log:focus,
.btn-dashboard-log:focus-visible,
.vote-button:focus,
.vote-button:focus-visible,
.search-button:focus,
.search-button:focus-visible,
.detail-vote-button:focus,
.detail-vote-button:focus-visible,
.discord-button:focus,
.discord-button:focus-visible,
.server-address-copy button:focus,
.server-address-copy button:focus-visible,
.server-info-copy button:focus,
.server-info-copy button:focus-visible,
.comment-report-button:focus,
.comment-report-button:focus-visible {
    outline: 0;
}

.btn-success {
    --bs-btn-bg: #2ea44f;
    --bs-btn-border-color: var(--mc-green);
    --bs-btn-hover-bg: var(--mc-green-dark);
    --bs-btn-hover-border-color: var(--mc-green-dark);
    --bs-btn-active-bg: var(--mc-green-dark);
    --bs-btn-active-border-color: var(--mc-green-dark);
    --bs-btn-disabled-bg: #9ccfa9;
    --bs-btn-disabled-border-color: #9ccfa9;
    color: #ffffff;
    box-shadow: 0 8px 20px -8px var(--mc-green-glow);
}

.btn-outline-light {
    --bs-btn-color: var(--mc-text);
    --bs-btn-border-color: var(--mc-line);
    --bs-btn-hover-bg: #f1f3f5;
    --bs-btn-hover-border-color: var(--mc-line);
    --bs-btn-hover-color: var(--mc-text);
    --bs-btn-active-bg: #edf2f6;
    --bs-btn-active-border-color: var(--mc-line);
    --bs-btn-active-color: var(--mc-text);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.btn-outline-secondary,
.btn-outline-primary {
    color: #1f7a3b;
    background: #ffffff;
    border-color: #bfe8cb;
}

.btn-outline-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:active,
.btn-outline-primary:active {
    color: #16662f;
    background: #ecf9f0;
    border-color: #a7dfb8;
}

.btn-primary {
    --bs-btn-bg: var(--mc-blue);
    --bs-btn-border-color: var(--mc-blue);
    --bs-btn-hover-bg: var(--mc-blue-dark);
    --bs-btn-hover-border-color: var(--mc-blue-dark);
    --bs-btn-active-bg: var(--mc-blue-dark);
    --bs-btn-active-border-color: var(--mc-blue-dark);
}

.btn-danger {
    --bs-btn-bg: var(--mc-red);
    --bs-btn-border-color: var(--mc-red);
    --bs-btn-hover-bg: var(--mc-red-dark);
    --bs-btn-hover-border-color: var(--mc-red-dark);
    --bs-btn-active-bg: var(--mc-red-dark);
    --bs-btn-active-border-color: var(--mc-red-dark);
}

.btn-outline-warning,
.btn-outline-danger {
    background: #ffffff;
}

.btn-outline-warning {
    color: #936515;
    border-color: #f0d58a;
}

.btn-outline-warning:hover,
.btn-outline-warning:active {
    color: #6e4a0d;
    background: #fff6db;
    border-color: #ecc765;
}

.btn-outline-danger {
    color: var(--mc-red);
    border-color: #f0b8bf;
}

.btn-outline-danger:hover,
.btn-outline-danger:active {
    color: var(--mc-red-dark);
    background: #fff0f2;
    border-color: #e899a4;
}

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

.nav-submit-server-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
    color: var(--mc-green);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
    vertical-align: middle;
    transition: color 160ms ease, background 160ms ease;
}

.nav-submit-server-link:hover {
    color: var(--mc-green-dark);
}

.nav-submit-server-link:focus,
.nav-submit-server-link:focus-visible {
    color: var(--mc-green-dark);
    outline: 0;
}

.nav-submit-server-link:focus:not(:focus-visible) {
    color: var(--mc-green-dark);
}

.nav-submit-server-link.is-active {
    color: var(--mc-green-dark);
}

.navbar .nav-link.nav-submit-server-link,
.navbar .nav-link.nav-submit-server-link:hover,
.navbar .nav-link.nav-submit-server-link:focus,
.navbar .nav-link.nav-submit-server-link:focus-visible,
.navbar .nav-link.nav-submit-server-link.active {
    color: var(--mc-green-dark) !important;
}

.nav-submit-server-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    font-size: 0.98rem;
    font-weight: 900;
    color: currentColor;
    transform: translateY(1px);
}

.nav-submit-server-icon i {
    font-size: 0.95rem;
}

.nav-account-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    max-width: 230px;
    padding: 6px 12px 6px 7px;
    color: var(--mc-text);
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.09);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.nav-account-chip:hover {
    color: var(--mc-text);
    border-color: rgba(13, 110, 253, 0.36);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.13);
}

.nav-account-chip:focus,
.nav-account-chip:focus-visible,
.admin-tab:focus,
.admin-tab:focus-visible,
.auth-helper-links a:focus,
.auth-helper-links a:focus-visible,
.accordion-button:focus,
.detail-tabs button:focus,
.detail-tabs button:focus-visible,
.btn-close:focus,
.flash-close:focus,
.flash-close:focus-visible,
.server-address-copy button:focus,
.server-address-copy button:focus-visible,
.auth-helper-links button:focus,
.auth-helper-links button:focus-visible,
.navbar-toggler:focus {
    outline: 0;
    box-shadow: 0 0 0 4px var(--mc-green-glow), 0 10px 22px rgba(15, 23, 42, 0.12);
}

.nav-account-chip:focus:not(:focus-visible),
.admin-tab:focus:not(:focus-visible),
.auth-helper-links a:focus:not(:focus-visible),
.accordion-button:focus:not(:focus-visible),
.detail-tabs button:focus:not(:focus-visible),
.btn-close:focus:not(:focus-visible),
.flash-close:focus:not(:focus-visible),
.server-address-copy button:focus:not(:focus-visible),
.auth-helper-links button:focus:not(:focus-visible),
.navbar-toggler:focus:not(:focus-visible) {
    box-shadow: none;
}

.nav-account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(45deg, var(--mc-blue), var(--mc-blue-dark));
    border-radius: 8px;
    box-shadow: 0 7px 16px -8px var(--mc-blue-glow);
    overflow: hidden;
}

.nav-account-avatar img,
.account-profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.nav-account-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.08;
}

.nav-account-kicker {
    color: #8a96a3;
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-account-name {
    overflow: hidden;
    color: var(--mc-text);
    font-size: 0.9rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-auth-login,
.btn-auth-register,
.btn-auth-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: var(--mc-btn-radius);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, filter 160ms ease;
}

.btn-auth-login {
    color: var(--mc-text);
    background: #f8fafc;
    border: 1px solid #dbe4ef;
    box-shadow: var(--mc-btn-shadow);
}

.btn-auth-login:hover {
    color: var(--mc-text);
    background: #eef3f8;
    transform: translateY(-2px);
    box-shadow: var(--mc-btn-shadow-hover);
}

.btn-auth-login:active,
.btn-auth-login:focus,
.btn-auth-login:focus-visible {
    color: var(--mc-text);
    background: #eef3f8;
    border-color: #cdd9e5;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.16), var(--mc-btn-shadow-hover);
}

.btn-auth-register,
.btn-auth-submit {
    color: #ffffff;
    background: linear-gradient(45deg, var(--mc-green), var(--mc-green-dark));
    border: 1px solid var(--mc-green);
    box-shadow: 0 8px 20px -8px var(--mc-green-glow);
}

.btn-auth-register:hover,
.btn-auth-submit:hover {
    color: #ffffff;
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px var(--mc-green-glow);
}

.btn-auth-register:active,
.btn-auth-register:focus,
.btn-auth-submit:active,
.btn-auth-submit:focus,
.btn-auth-register:focus-visible,
.btn-auth-submit:focus-visible {
    color: #ffffff;
    border-color: var(--mc-green);
    box-shadow: 0 0 0 4px rgba(46, 164, 79, 0.18), 0 12px 24px -8px var(--mc-green-glow);
}

.btn-auth-logout {
    color: #ffffff;
    background: linear-gradient(45deg, #dc3545, #b02a37);
    border-color: #dc3545;
    box-shadow: 0 8px 20px -8px rgba(220, 53, 69, 0.52);
}

.btn-auth-logout:hover {
    color: #ffffff;
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(220, 53, 69, 0.58);
}

.btn-auth-logout:active,
.btn-auth-logout:focus,
.btn-auth-logout:focus-visible {
    color: #ffffff;
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.16), 0 12px 24px -8px rgba(220, 53, 69, 0.58);
}

.mc-nav .btn-success,
.search-button,
.vote-button {
    border-radius: var(--mc-btn-radius);
    background: #2ea44f;
    border-color: #2ea44f;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-color: #ffffff;
    box-shadow: 0 4px 12px rgba(46, 164, 79, 0.24);
}

.form-label,
.form-check-label {
    color: var(--mc-text);
    font-weight: 700;
}

.form-control {
    color: var(--mc-text);
    background: #ffffff;
    border: 1px solid #c8dccf;
    border-radius: 8px;
}

.form-select {
    -webkit-appearance: none;
    appearance: none;
    color: var(--mc-text);
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%),
        linear-gradient(to right, rgba(219, 228, 239, 0.9), rgba(219, 228, 239, 0.9));
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px),
        calc(100% - 42px) 50%;
    background-size: 6px 6px, 6px 6px, 1px 24px;
    background-repeat: no-repeat;
    border: 1px solid #c8dccf;
    border-radius: var(--mc-btn-radius);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    cursor: pointer;
}

.form-control:focus {
    color: var(--mc-text);
    background: #ffffff;
    border-color: var(--mc-blue);
    box-shadow: 0 0 0 3px var(--mc-blue-glow);
}

.form-select:focus {
    color: var(--mc-text);
    background-color: #ffffff;
    border-color: var(--mc-green);
    box-shadow: 0 0 0 4px rgba(46, 164, 79, 0.14);
    outline: 0;
}

.alert {
    border-radius: 8px;
    border: 1px solid var(--mc-line);
    box-shadow: 0 12px 32px rgba(25, 72, 39, 0.08);
}

.flash-stack {
    position: sticky;
    top: 86px;
    z-index: 1040;
    display: grid;
    gap: 12px;
    width: min(640px, calc(100% - 32px));
    margin: 18px auto -8px;
    pointer-events: none;
}

.flash-message {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dbe4ef;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    pointer-events: auto;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.flash-message p {
    margin: 0;
    color: var(--mc-text);
    font-weight: 800;
    line-height: 1.45;
}

.flash-close {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
}

.flash-close:hover {
    color: #0f172a;
    background: #ffffff;
}

.flash-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.flash-icon::before {
    color: #ffffff;
    font-weight: 900;
}

.flash-success {
    border-left: 5px solid var(--mc-green);
}

.flash-success .flash-icon {
    background: linear-gradient(135deg, var(--mc-green), #1f8f3a);
    box-shadow: 0 10px 20px rgba(39, 168, 68, 0.24);
}

.flash-success .flash-icon::before {
    content: "✓";
}

.flash-error {
    border-left: 5px solid #e23b54;
}

.flash-error .flash-icon {
    background: linear-gradient(135deg, #e23b54, #be123c);
    box-shadow: 0 10px 20px rgba(226, 59, 84, 0.24);
}

.flash-error .flash-icon::before {
    content: "!";
}

.flash-icon::before {
    display: inline-block;
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
}

.flash-success .flash-icon::before {
    content: "\f00c";
}

.flash-error .flash-icon::before {
    content: "\f071";
}

.text-secondary {
    color: var(--mc-muted) !important;
}

.text-light-emphasis {
    color: #eef7f1 !important;
}

.auth-page {
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
}

.server-submit-page {
    min-height: calc(100vh - 110px);
}

.server-submit-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 5vw, 56px);
    border: 1px solid rgba(36, 88, 58, 0.18);
    border-radius: var(--mc-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
        url("/assets/auth_background.png") center/cover;
    box-shadow: var(--mc-shadow-hero);
}

.server-submit-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 17, 31, 0.48), rgba(11, 17, 31, 0.82)),
        radial-gradient(circle at top center, rgba(74, 222, 128, 0.18), transparent 42%);
}

.server-submit-hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, 1040px);
    margin: 0 auto;
    color: #ffffff;
    text-align: center;
}

.server-submit-hero-content .auth-kicker {
    color: rgba(226, 232, 240, 0.9);
}

.server-submit-hero-content h1 {
    margin: 10px 0 18px;
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 4.3rem);
    font-weight: 900;
    line-height: 0.96;
    text-transform: uppercase;
    text-shadow: 0 4px 18px rgba(15, 23, 42, 0.55);
}

.server-submit-hero-content > p {
    width: min(100%, 780px);
    margin: 0 auto;
    color: rgba(248, 250, 252, 0.94);
    font-size: clamp(1rem, 1.5vw, 1.28rem);
    line-height: 1.7;
    text-shadow: 0 2px 12px rgba(15, 23, 42, 0.36);
}

.server-submit-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.server-submit-step {
    padding: 26px 22px 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.42));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: calc(var(--mc-radius) - 4px);
    box-shadow: 0 14px 32px rgba(2, 8, 23, 0.18);
    backdrop-filter: blur(10px);
}

.server-submit-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, rgba(46, 164, 79, 0.92), rgba(26, 127, 55, 0.92));
    border-radius: 14px;
    box-shadow: 0 14px 26px -18px rgba(74, 222, 128, 0.9);
}

.server-submit-step h2 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
}

.server-submit-step p {
    margin: 0;
    color: rgba(226, 232, 240, 0.94);
    font-size: 1rem;
    line-height: 1.65;
}

.server-submit-note {
    width: min(100%, 760px);
    margin: 28px auto 0;
    padding: 16px 18px;
    color: rgba(248, 250, 252, 0.94);
    font-size: 0.98rem;
    line-height: 1.65;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(10px);
}

.server-submit-note strong {
    color: #ffffff;
}

.server-submit-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.server-submit-primary,
.server-submit-secondary {
    min-width: 260px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    font-size: 1.04rem;
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
    min-height: 740px;
    width: min(100%, 1120px);
    max-width: 1120px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--mc-line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.auth-promo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px;
    background: url("/assets/auth_background.png") center/cover;
    overflow: hidden;
}

.auth-promo-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(8, 18, 32, 0.70), rgba(0, 86, 179, 0.42)),
        rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(1px);
}

.auth-promo-content {
    position: relative;
    z-index: 1;
    max-width: 430px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    text-align: center;
}

.auth-promo-logo {
    width: min(240px, 80%);
    margin-bottom: 26px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.auth-promo-content h2 {
    font-size: clamp(1.8rem, 2.6vw, 2.35rem);
    font-weight: 900;
    line-height: 1.15;
    min-height: 86px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 14px;
}

.auth-promo-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.04rem;
    min-height: 68px;
    margin-bottom: 24px;
}

.auth-feature-list {
    display: inline-grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.auth-feature-list li {
    position: relative;
    padding-left: 28px;
    font-weight: 800;
}

.auth-feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 13px;
    height: 13px;
    border-radius: 4px;
    background: var(--mc-blue);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.18);
}

.auth-form-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 56px clamp(42px, 5vw, 70px);
    background: #ffffff;
}

.auth-form-side > * {
    width: min(100%, 500px);
}

.auth-form-intro {
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 26px;
}

.auth-kicker {
    color: var(--mc-blue);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.auth-form-side h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 10px;
}

.auth-form-intro p {
    color: var(--mc-muted);
    min-height: 56px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.auth-form {
    margin: 0;
}

.auth-form .form-label {
    margin-bottom: 6px;
}

.auth-form .mb-3,
.auth-form .mb-4 {
    margin-bottom: 16px !important;
}

.auth-input {
    min-height: 52px;
    padding: 13px 16px;
    border-color: var(--mc-line);
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.04);
}

.remember-login-box {
    padding: 14px 16px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #f8fbfd;
}

.remember-login-box .form-check {
    margin-bottom: 4px;
}

.remember-login-box .form-check-input {
    margin-top: 0.2rem;
}

.remember-login-box .form-check-label {
    font-weight: 700;
    color: #1f2937;
}

.remember-login-help,
.remember-login-note {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

.remember-login-help {
    color: #6b7280;
}

.remember-login-note {
    margin-top: 6px;
    color: #8a6417;
}

.privacy-consent-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1080;
    width: min(420px, calc(100vw - 28px));
    padding: 18px 18px 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(12px);
}

.privacy-consent-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--mc-green-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.privacy-consent-toast h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    font-weight: 900;
    color: #111827;
}

.privacy-consent-toast p {
    margin: 0;
    color: #4b5563;
    font-size: 0.94rem;
    line-height: 1.65;
}

.privacy-consent-toast a {
    color: var(--mc-green-dark);
    font-weight: 700;
}

.privacy-consent-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.account-page {
    max-width: 1180px;
}

.account-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 28px 32px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #1f3b73 58%, var(--mc-blue));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.account-hero .auth-kicker,
.account-hero p {
    color: rgba(255, 255, 255, 0.76);
}

.account-hero h1 {
    margin: 4px 0 8px;
    font-weight: 900;
}

.account-hero p {
    max-width: 640px;
    margin: 0;
}

.account-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.7fr);
    gap: 24px;
    align-items: start;
}

.account-profile-card,
.account-settings-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

.account-profile-card {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px;
    overflow: hidden;
}

.account-profile-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 92px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.18), rgba(25, 135, 84, 0.14));
    pointer-events: none;
}

.account-profile-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--mc-blue), var(--mc-blue-dark));
    border: 5px solid #ffffff;
    border-radius: 8px;
    box-shadow: 0 16px 28px rgba(13, 110, 253, 0.28);
    overflow: hidden;
}

.account-profile-card h2 {
    margin: 0 0 6px;
    font-weight: 900;
}

.account-profile-card p {
    margin: 0;
    color: var(--mc-muted);
    overflow-wrap: anywhere;
}

.account-minecraft-name {
    margin-top: 6px !important;
    color: var(--mc-green-dark) !important;
    font-weight: 800;
}

.account-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    padding: 9px 12px;
    font-weight: 900;
    border-radius: 8px;
}

.account-status span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.account-status.is-verified {
    color: #0f7a3a;
    background: #eaf8ef;
}

.account-status.is-verified span {
    background: #17b857;
    box-shadow: 0 0 0 4px rgba(23, 184, 87, 0.14);
}

.account-status.is-unverified {
    color: #936515;
    background: #fff6db;
}

.account-status.is-unverified span {
    background: #f0ad1e;
    box-shadow: 0 0 0 4px rgba(240, 173, 30, 0.18);
}

.account-profile-note {
    padding: 16px;
    color: var(--mc-muted);
    background: #f6f9fc;
    border: 1px solid #e3ebf3;
    border-radius: 8px;
}

.account-settings-grid {
    display: grid;
    gap: 20px;
}

.account-settings-card {
    padding: 28px;
}

.account-danger-card {
    border: 1px solid rgba(196, 42, 69, 0.16);
    box-shadow: 0 18px 40px rgba(196, 42, 69, 0.08);
}

.account-danger-card .account-card-icon {
    background: linear-gradient(135deg, #ffebef, #ffd7df);
    color: #c42a45;
}

.settings-card-danger {
    border-color: rgba(196, 42, 69, 0.18);
    background: #fff6f8;
}

.settings-card-danger strong {
    color: #9f2036;
}

.account-card-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.account-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    color: var(--mc-blue);
    font-weight: 900;
    background: #edf5ff;
    border: 1px solid #d9e9ff;
    border-radius: 8px;
}

.account-card-icon i {
    font-size: 1.1rem;
}

.account-card-head h2 {
    margin: 0 0 6px;
    font-size: 1.32rem;
    font-weight: 900;
}

.account-card-head p {
    margin: 0;
    color: var(--mc-muted);
}

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

.account-form .btn {
    width: fit-content;
}

.dashboard-page {
    max-width: 1180px;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 28px 32px;
    color: #ffffff;
    background: linear-gradient(135deg, #102816, #1f6f38 58%, var(--mc-green));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.dashboard-hero .auth-kicker,
.dashboard-hero p {
    color: rgba(255, 255, 255, 0.76);
}

.dashboard-hero h1 {
    margin: 4px 0 8px;
    font-weight: 900;
}

.dashboard-hero p {
    max-width: 700px;
    margin: 0;
}

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

.dashboard-stat-card {
    position: relative;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dbe4ef;
    border-top: 4px solid var(--mc-green);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.dashboard-stat-card span {
    display: block;
    color: var(--mc-muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-stat-card strong {
    display: block;
    margin-top: 6px;
    color: #1f7a3b;
    font-size: 1.9rem;
    line-height: 1;
}

.dashboard-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.dashboard-section-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-section-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 900;
}

.dashboard-section-head p {
    max-width: 460px;
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: right;
}

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

.dashboard-server-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dashboard-server-card:hover {
    border-color: rgba(46, 164, 79, 0.36);
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.dashboard-server-main {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
}

.dashboard-server-icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    object-fit: cover;
    background: #eef3f8;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.dashboard-server-copy {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.dashboard-server-copy h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 900;
}

.dashboard-server-copy p {
    margin: 0;
    color: var(--mc-muted);
    overflow-wrap: anywhere;
}

.dashboard-server-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-server-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    color: #516172;
    font-size: 0.82rem;
    font-weight: 800;
    background: #f7fafc;
    border: 1px solid #e5edf5;
    border-radius: 999px;
}

.dashboard-server-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: flex-start;
}

.dashboard-page .btn-auth-register {
    color: #ffffff;
    background: linear-gradient(45deg, var(--mc-green), var(--mc-green-dark));
    border-color: var(--mc-green);
    box-shadow: 0 8px 20px -8px rgba(46, 164, 79, 0.58);
}

.dashboard-page .btn-auth-register:hover {
    color: #ffffff;
    filter: brightness(1.08);
    box-shadow: 0 12px 24px -8px rgba(46, 164, 79, 0.66);
}

.btn-dashboard-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    min-width: 116px;
    padding: 11px 18px;
    color: #1f7a3b;
    font-size: 0.94rem;
    font-weight: 900;
    background: #ecf9f0;
    border: 1px solid #bfe8cb;
    border-radius: var(--mc-btn-radius);
    box-shadow: var(--mc-btn-shadow);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-dashboard-view:hover {
    color: #16662f;
    background: #def4e5;
    transform: translateY(-2px);
    box-shadow: var(--mc-btn-shadow-hover);
}

.btn-dashboard-view:focus,
.btn-dashboard-view:focus-visible {
    color: #16662f;
    background: #def4e5;
    border-color: #a7dfb8;
    box-shadow: 0 0 0 4px rgba(46, 164, 79, 0.16), var(--mc-btn-shadow-hover);
}

.btn-dashboard-log {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    min-width: 116px;
    padding: 11px 18px;
    color: #1f7a3b;
    font-size: 0.94rem;
    font-weight: 900;
    background: #ecf9f0;
    border: 1px solid #bfe8cb;
    border-radius: var(--mc-btn-radius);
    box-shadow: var(--mc-btn-shadow);
    text-decoration: none;
    outline: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-dashboard-log:hover {
    color: #16662f;
    background: #def4e5;
    transform: translateY(-2px);
    box-shadow: var(--mc-btn-shadow-hover);
}

.btn-dashboard-log:focus,
.btn-dashboard-log:focus-visible {
    color: #16662f;
    background: #def4e5;
    border-color: #9fd6b0;
    box-shadow: 0 0 0 3px rgba(46, 164, 79, 0.18), 0 12px 24px rgba(15, 23, 42, 0.12);
    outline: none;
}

.btn-dashboard-log.is-active {
    color: #ffffff;
    background: linear-gradient(45deg, var(--mc-green), var(--mc-green-dark));
    border-color: var(--mc-green);
    box-shadow: 0 8px 20px -8px rgba(46, 164, 79, 0.58);
}

.btn-dashboard-log.is-active:hover,
.btn-dashboard-log.is-active:focus,
.btn-dashboard-log.is-active:focus-visible {
    color: #ffffff;
    background: linear-gradient(45deg, var(--mc-green), var(--mc-green-dark));
    border-color: var(--mc-green);
    box-shadow: 0 0 0 3px rgba(46, 164, 79, 0.2), 0 12px 24px -8px rgba(46, 164, 79, 0.66);
    filter: brightness(1.05);
    outline: none;
}

.dashboard-empty-state {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 34px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

.dashboard-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(45deg, var(--mc-green), var(--mc-green-dark));
    border-radius: 8px;
    box-shadow: 0 16px 28px rgba(46, 164, 79, 0.28);
}

.dashboard-empty-icon i {
    font-size: 1.8rem;
}

.dashboard-empty-state h2 {
    margin: 4px 0 8px;
    font-weight: 900;
}

.dashboard-empty-state p {
    max-width: 640px;
    color: var(--mc-muted);
}

.btn-auth-submit {
    min-height: 54px;
    border-radius: 8px;
    font-weight: 900;
}

.auth-switch {
    margin: 24px 0 0;
    text-align: center;
    color: var(--mc-muted);
}

.auth-helper-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    color: var(--mc-muted);
    font-size: 0.92rem;
}

.auth-helper-links a,
.auth-helper-links button {
    padding: 0;
    color: #1f7a3b;
    background: transparent;
    border: 0;
    font-weight: 800;
    text-decoration: none;
}

.auth-helper-links a:hover,
.auth-helper-links button:hover {
    color: #16662f;
    text-decoration: underline;
}

.auth-switch a {
    color: var(--mc-blue);
    font-weight: 900;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

footer {
    border-top: 1px solid var(--mc-line);
    background: rgba(255, 255, 255, 0.9);
}

.admin-shell {
    --admin-dark: #111827;
    --admin-muted: #64748b;
}

.admin-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 18px;
    padding: 30px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(30, 64, 175, 0.88)),
        linear-gradient(135deg, rgba(0, 123, 255, 0.28), rgba(40, 167, 69, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.admin-hero h1 {
    margin: 0 0 8px;
    font-weight: 900;
}

.admin-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.admin-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    color: #475569;
    text-decoration: none;
    font-weight: 900;
    border-radius: 8px;
}

.admin-tab:hover {
    color: #0f172a;
    background: #eef4ff;
}

.admin-tab.active {
    color: #ffffff;
    background: linear-gradient(45deg, var(--mc-blue), var(--mc-blue-dark));
    box-shadow: 0 8px 18px -10px var(--mc-blue-glow);
}

.admin-stat-grid {
    align-items: stretch;
}

.admin-stat-card {
    height: 100%;
    padding: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.admin-stat-card span {
    display: block;
    color: var(--admin-muted);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.admin-stat-card strong,
.admin-stat {
    color: var(--mc-blue);
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1.1;
}

.admin-panel {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
}

.admin-search-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid #dbe4ef;
    background: #fbfdff;
}

.admin-search-form {
    display: flex;
    flex: 1 1 720px;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-search-form .form-control {
    flex: 1 1 320px;
    min-width: 0;
}

.admin-search-form .form-select {
    flex: 0 0 220px;
    min-width: 180px;
}

.mc-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: var(--mc-space-5);
    padding: 16px 18px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--mc-shadow-soft);
}

.mc-page-link,
.mc-page-dots {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #dbe4ef;
    background: #f8fafc;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.mc-page-link:hover {
    transform: translateY(-1px);
    border-color: #b7dfc1;
    background: #eff7f1;
    color: #16662f;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.mc-page-link:focus,
.mc-page-link:focus-visible {
    border-color: #b7dfc1;
    background: #eff7f1;
    color: #16662f;
    box-shadow: 0 0 0 4px rgba(46, 164, 79, 0.14), 0 10px 18px rgba(15, 23, 42, 0.08);
    outline: 0;
}

.mc-page-link.is-active {
    border-color: var(--mc-green);
    background: linear-gradient(45deg, var(--mc-green), var(--mc-green-dark));
    color: #fff;
    box-shadow: 0 10px 22px rgba(46, 164, 79, 0.24);
}

.mc-page-link.is-disabled {
    pointer-events: none;
    opacity: 0.55;
    box-shadow: none;
}

.mc-page-dots {
    background: transparent;
    border-style: dashed;
    box-shadow: none;
    color: #64748b;
}

.admin-table {
    --bs-table-bg: transparent;
    --bs-table-color: #172033;
    --bs-table-hover-bg: #f6f9ff;
    --bs-table-hover-color: #172033;
    --bs-table-border-color: #e2e8f0;
}

.admin-table thead {
    background: #f8fafc;
    border-bottom: 1px solid #dbe4ef;
}

.admin-table th {
    padding: 16px 18px;
    color: #64748b;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-table td {
    padding: 18px;
}

.admin-table .btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.analytics-panel {
    display: grid;
    gap: 22px;
}

.analytics-head,
.analytics-card,
.analytics-list-card,
.analytics-table-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
}

.analytics-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px;
}

.analytics-head h2 {
    margin: 0 0 8px;
    font-weight: 900;
}

.analytics-head p {
    max-width: 760px;
    margin: 0;
    color: var(--mc-muted);
}

.analytics-live-state {
    margin-top: 6px !important;
    color: #8a96a3 !important;
    font-size: 0.86rem;
    font-weight: 800;
}

.analytics-online {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 96px;
    flex-direction: column;
    color: #1f7a3b;
    background: #ecf9f0;
    border: 1px solid #bfe8cb;
    border-radius: 8px;
}

.analytics-online strong {
    font-size: 2.25rem;
    line-height: 1;
}

.analytics-online span {
    color: var(--mc-muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.analytics-card-grid,
.analytics-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.analytics-card h3,
.analytics-list-card h3,
.analytics-table-card h3 {
    margin: 0;
    padding: 16px 18px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    background: #8d9aa8;
    border-radius: 8px 8px 0 0;
}

.analytics-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: #e2e8f0;
}

.analytics-metrics div {
    min-height: 98px;
    padding: 20px 18px;
    background: #f8fafc;
}

.analytics-metrics strong {
    display: block;
    color: #526274;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.1;
}

.analytics-metrics span {
    color: var(--mc-muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.analytics-list-card {
    overflow: hidden;
}

.analytics-list-card p {
    padding: 18px;
}

.analytics-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.analytics-list-row:last-child {
    border-bottom: 0;
}

.analytics-list-row span {
    color: #1f7a3b;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.analytics-list-row strong {
    color: #526274;
    white-space: nowrap;
}

.analytics-table-card {
    overflow: hidden;
}

.analytics-hash {
    color: #1f7a3b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-weight: 900;
}

.newsletter-unsubscribe-page {
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-unsubscribe-card {
    overflow: hidden;
    width: min(100%, 840px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.newsletter-unsubscribe-head {
    padding: 34px 42px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(135deg, #102816, #1f7a3b 62%, #28a745);
}

.newsletter-unsubscribe-head img {
    display: block;
    max-width: 300px;
    width: min(100%, 300px);
    height: auto;
    margin: 0 auto 18px;
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
}

.newsletter-unsubscribe-head .auth-kicker {
    color: rgba(255, 255, 255, 0.76);
}

.newsletter-unsubscribe-head h1 {
    margin: 6px 0 0;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 900;
}

.newsletter-unsubscribe-body {
    max-width: 620px;
    margin: 0 auto;
    padding: 42px;
    text-align: center;
}

.newsletter-unsubscribe-body form {
    text-align: left;
}

.newsletter-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 22px;
    align-items: start;
}

.newsletter-placeholder-box {
    padding: 18px;
    background: #f1f8f3;
    border: 1px solid #cfead5;
    border-radius: 8px;
}

.newsletter-placeholder-box strong {
    display: block;
    color: #172033;
    font-weight: 900;
    margin-bottom: 12px;
}

.newsletter-placeholder-box div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.newsletter-placeholder-box code {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    color: #166534;
    background: #ffffff;
    border: 1px solid #b7dfc1;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 900;
}

.newsletter-campaign-list {
    display: grid;
    gap: 14px;
}

.newsletter-campaign-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
}

.newsletter-campaign-card strong,
.newsletter-campaign-card span {
    display: block;
}

.newsletter-campaign-card strong {
    color: #172033;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.newsletter-campaign-card span {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 800;
}

.newsletter-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.newsletter-send-panel {
    text-align: center;
}

.newsletter-send-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.newsletter-send-stats div {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 22px;
    background: #f8fafc;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
}

.newsletter-send-stats strong {
    color: #1f7a3b;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.newsletter-send-stats span {
    margin-top: 8px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.email-log-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.import-layout,
.import-preview-grid {
    display: grid;
    gap: var(--mc-space-5);
}

.import-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    margin-bottom: var(--mc-space-5);
}

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

.import-rule-list,
.import-warning-list {
    display: grid;
    gap: var(--mc-space-3);
}

.import-rule-list div {
    display: grid;
    gap: 4px;
}

.import-rule-list strong {
    color: #172033;
    font-size: 0.98rem;
}

.import-rule-list span {
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.55;
}

.import-warning-list {
    padding-left: 1.2rem;
}

.import-warning-list li {
    color: #5b6475;
    line-height: 1.55;
}

.email-log-subject {
    display: block;
    max-width: 360px;
    color: #172033;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.email-type-list {
    display: grid;
    gap: 10px;
}

.email-type-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
}

.email-type-list span {
    color: #475569;
    font-weight: 900;
}

.email-type-list strong {
    color: #1f7a3b;
    font-weight: 900;
}

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

.settings-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 140px;
    padding: 22px;
    background: #f8fafc;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    cursor: pointer;
}

.settings-card .form-check-input {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 3px;
}

.settings-card strong,
.settings-card small {
    display: block;
}

.settings-card strong {
    color: #172033;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.settings-card small {
    color: #64748b;
    line-height: 1.55;
}

.settings-section {
    padding: 22px;
    background: #f8fafc;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
}

.settings-hint {
    display: inline-flex;
    padding: 8px 10px;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 800;
}

.maintenance-card {
    max-width: 760px;
    margin: 80px auto;
    padding: 48px;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.maintenance-card h1 {
    font-weight: 900;
    margin-bottom: 12px;
}

.maintenance-card p {
    color: var(--mc-muted);
    font-size: 1.08rem;
    margin-bottom: 26px;
}

.server-detail-hero {
    padding: 56px 0 24px;
    background: transparent;
}

.server-detail-hero + main.container.py-5 {
    padding-top: 0 !important;
}

.server-detail-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--mc-line);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.server-detail-card h1 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.server-detail-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
        linear-gradient(135deg, rgba(0, 123, 255, 0.06), rgba(40, 167, 69, 0.05));
    z-index: 0;
}

.server-detail-card.has-custom-background::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.40)),
        var(--server-background) center/cover;
}

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

.server-detail-icon {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    image-rendering: pixelated;
    border: 1px solid rgba(23, 115, 48, 0.16);
    box-shadow: 0 14px 28px rgba(19, 32, 24, 0.12);
}

.detail-vote-button {
    margin: 0;
    white-space: nowrap;
}

.server-detail-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.server-address-copy {
    display: inline-flex;
    overflow: hidden;
    align-items: stretch;
    min-height: 48px;
    border: 1px solid #dfe6ee;
    border-radius: var(--mc-btn-radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.server-address-copy span,
.server-address-copy button {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border: 0;
}

.server-address-copy span {
    max-width: 210px;
    color: var(--mc-text);
    font-weight: 900;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
}

.server-address-copy button {
    color: #1f7a3b;
    background: rgba(236, 249, 240, 0.95);
    border-left: 1px solid #dfe6ee;
    font-weight: 900;
    box-shadow: none;
    gap: 8px;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.server-address-copy button:hover {
    color: #16662f;
    background: #def4e5;
    box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0);
}

.server-address-copy button:focus,
.server-address-copy button:focus-visible {
    color: #16662f;
    background: #def4e5;
    box-shadow: 0 0 0 4px rgba(46, 164, 79, 0.16);
}

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

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 118px;
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--mc-line);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-card span {
    display: block;
    color: var(--mc-muted);
    font-size: 0.82rem;
    font-weight: 800;
    margin-top: 8px;
}

.stat-card strong {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--mc-text);
    font-size: 1.6rem;
    line-height: 1.1;
}

.stat-card small {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 700;
}

.status-value::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
}

.status-value.is-online::before {
    background: var(--mc-green);
    box-shadow: 0 0 0 4px rgba(39, 168, 68, 0.14);
}

.status-value.is-offline::before {
    background: #e23b54;
    box-shadow: 0 0 0 4px rgba(226, 59, 84, 0.14);
}

.status-value.is-pending::before {
    background: #f0b429;
    box-shadow: 0 0 0 4px rgba(240, 180, 41, 0.18);
}

.vote-collapse-panel {
    scroll-margin-top: 110px;
}

.faq-accordion {
    max-width: 920px;
    margin: 0 auto;
}

.faq-card {
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--mc-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-card .accordion-button {
    padding: 20px 22px;
    color: var(--mc-text);
    background: rgba(255, 255, 255, 0.98);
    font-weight: 900;
    box-shadow: none;
}

.faq-card .accordion-button:not(.collapsed) {
    color: var(--mc-text);
    background: #f7fbff;
}

.faq-card .accordion-body {
    padding: 0 22px 22px;
    color: var(--mc-muted);
    line-height: 1.75;
}

.faq-sort-list {
    display: grid;
    gap: 14px;
}

.faq-sort-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #f8fafc;
}

.faq-sort-item.is-dragging {
    opacity: 0.55;
}

.faq-drag-handle {
    color: #94a3b8;
    font-weight: 900;
    cursor: grab;
}

.faq-sort-copy {
    min-width: 0;
}

.faq-sort-copy strong {
    display: block;
    color: var(--mc-text);
    font-size: 1rem;
}

.faq-sort-copy p {
    margin: 5px 0 0;
    color: var(--mc-muted);
    font-size: 0.9rem;
}

.faq-sort-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.detail-tabs {
    display: flex;
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid var(--mc-line);
}

.detail-tabs button {
    display: inline-flex;
    padding: 0 0 12px;
    color: var(--mc-muted);
    background: transparent;
    border: 0;
    text-decoration: none;
    font-weight: 800;
}

.detail-tabs button.active {
    color: #1f7a3b;
    border-bottom: 3px solid var(--mc-green);
}

.server-description-full {
    white-space: normal;
    line-height: 1.75;
}

.server-description-full img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.server-description-full blockquote {
    margin: 16px 0;
    padding: 14px 18px;
    color: var(--mc-muted);
    background: #f8fafc;
    border-left: 4px solid var(--mc-blue);
    border-radius: 8px;
}

.server-description-full a {
    overflow-wrap: anywhere;
}

.server-overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.server-overview-sidebar {
    display: grid;
    gap: 18px;
}

.server-info-card {
    padding: 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.server-info-card h2 {
    margin: 0 0 16px;
    color: var(--mc-text);
    font-size: 1rem;
    font-weight: 900;
}

.server-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.server-info-row:first-of-type {
    border-top: 1px solid #e2e8f0;
}

.server-info-row span {
    color: var(--mc-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.server-info-row strong,
.server-info-row a {
    color: var(--mc-text);
    font-size: 0.88rem;
    font-weight: 900;
    text-align: right;
    overflow-wrap: anywhere;
}

.server-info-copy strong.is-copied {
    color: #1f7a3b;
}

.server-info-row a {
    color: var(--mc-blue);
    text-decoration: none;
}

.server-info-copy {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.server-info-copy button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: var(--mc-btn-radius);
    box-shadow: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.server-info-copy button:hover {
    color: #1f7a3b;
    border-color: #b7dfc1;
    background: #eff7f1;
    transform: translateY(-1px);
}

.server-info-copy button:focus,
.server-info-copy button:focus-visible {
    color: #1f7a3b;
    border-color: #b7dfc1;
    background: #eff7f1;
    box-shadow: 0 0 0 4px rgba(46, 164, 79, 0.16);
}

.server-info-copy svg {
    width: 17px;
    height: 17px;
}

.server-info-copy button i,
.server-address-copy button i {
    font-size: 0.92rem;
}

.discord-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    color: #ffffff;
    background: #5865f2;
    border-radius: var(--mc-btn-radius);
    border: 1px solid #5865f2;
    text-decoration: none;
    font-weight: 900;
    box-shadow: var(--mc-btn-shadow);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.discord-button:hover {
    color: #ffffff;
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: var(--mc-btn-shadow-hover);
}

.discord-button:focus,
.discord-button:focus-visible {
    color: #ffffff;
    background: #4752c4;
    border-color: #4752c4;
    box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.18), var(--mc-btn-shadow-hover);
}

.discord-button svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.discord-button i {
    font-size: 1.18rem;
}

.latest-voter-list {
    display: grid;
    gap: 2px;
}

.latest-voter-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.latest-voter-item:last-child {
    border-bottom: 0;
}

.latest-voter-item img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    image-rendering: pixelated;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10);
}

.latest-voter-item strong {
    min-width: 0;
    color: var(--mc-text);
    font-size: 0.92rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-voter-item span {
    color: var(--mc-muted);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.tox.tox-tinymce {
    border-color: #c8dccf;
    border-radius: 8px;
}

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

.server-stats-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.server-stats-secondary-grid {
    display: none;
}

.server-stats-trend-card,
.server-stats-distribution-card,
.server-stats-top-card,
.server-stats-history-card {
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.server-stats-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.server-stats-card-head h3 {
    margin: 2px 0 0;
    color: var(--mc-text);
    font-size: 1.18rem;
    font-weight: 900;
}

.server-stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-width: 320px;
}

.server-stats-mini-grid div {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
}

.server-stats-mini-grid strong,
.server-distribution-total strong {
    display: block;
    color: var(--mc-text);
    font-size: 1.1rem;
    font-weight: 900;
}

.server-stats-mini-grid span,
.server-distribution-total span {
    color: var(--mc-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.server-trend-chart {
    padding: 16px 16px 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 243, 0.96));
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.server-trend-chart svg {
    display: block;
    width: 100%;
    height: auto;
}

.server-trend-grid-line {
    stroke: rgba(148, 163, 184, 0.24);
    stroke-width: 1;
}

.server-trend-area {
    fill: rgba(46, 164, 79, 0.16);
}

.server-trend-line {
    fill: none;
    stroke: var(--mc-green);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.server-trend-point {
    fill: #ffffff;
    stroke: var(--mc-green-dark);
    stroke-width: 3;
}

.server-trend-labels {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    margin-top: 10px;
    color: var(--mc-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.server-trend-labels span {
    text-align: center;
}

.server-distribution-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.server-distribution-total {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
}

.server-distribution-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.server-distribution-legend-item {
    display: grid;
    gap: 8px;
    align-items: start;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.server-distribution-legend-copy {
    min-width: 0;
}

.server-distribution-legend-item strong {
    display: block;
    color: var(--mc-text);
    font-size: 0.92rem;
    font-weight: 900;
}

.server-distribution-legend-item span {
    color: var(--mc-muted);
    font-size: 0.78rem;
}

.server-distribution-bar {
    overflow: hidden;
    height: 10px;
    background: #e8f2ec;
    border-radius: 999px;
}

.server-distribution-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mc-green), var(--mc-lime));
}

.server-top-voters-chart {
    display: grid;
    gap: 12px;
}

.server-top-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.server-top-tab-button {
    border: 1px solid #d8e4db;
    background: #ffffff;
    color: var(--mc-muted);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

.server-top-tab-button:hover,
.server-top-tab-button:focus-visible {
    color: var(--mc-green-dark);
    border-color: rgba(46, 164, 79, 0.35);
    background: #f7fcf8;
}

.server-top-tab-button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--mc-green), var(--mc-green-dark));
    border-color: transparent;
    box-shadow: 0 10px 18px rgba(46, 164, 79, 0.18);
}

.server-top-tab-panel[hidden] {
    display: none !important;
}

.server-top-voter-row {
    display: grid;
    grid-template-columns: 34px 40px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.server-top-voter-rank {
    color: var(--mc-muted);
    font-size: 0.8rem;
    font-weight: 900;
}

.server-top-voter-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    image-rendering: pixelated;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.server-top-voter-main {
    min-width: 0;
}

.server-top-voter-meta {
    display: grid;
    gap: 4px;
    margin-bottom: 6px;
}

.server-top-voter-meta strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--mc-text);
    font-size: 0.92rem;
}

.server-top-voter-meta span {
    flex: 0 0 auto;
    color: var(--mc-muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

.server-top-voter-bar {
    overflow: hidden;
    height: 10px;
    background: #e8f2ec;
    border-radius: 999px;
}

.server-top-voter-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mc-green), var(--mc-lime));
}

.server-top-voter-value {
    color: var(--mc-text);
    font-size: 0.9rem;
    font-weight: 900;
}

.voter-period-card {
    min-height: 100%;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.voter-period-card h3 {
    color: var(--mc-text);
    font-weight: 900;
}

.voter-count {
    flex: 0 0 auto;
    padding: 4px 8px;
    color: var(--mc-muted);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 900;
}

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

.voter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 8px;
}

.voter-item img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 8px;
    image-rendering: pixelated;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10);
}

.voter-item div {
    min-width: 0;
}

.voter-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voter-item strong {
    color: var(--mc-text);
    font-size: 0.92rem;
}

.voter-item span {
    display: block;
    color: var(--mc-muted);
    font-size: 0.72rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

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

.vote-history-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 52px;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.vote-history-date strong {
    display: block;
    color: var(--mc-text);
    font-size: 0.9rem;
    font-weight: 900;
}

.vote-history-date span {
    display: block;
    margin-top: 3px;
    color: var(--mc-muted);
    font-size: 0.75rem;
}

.vote-history-bar {
    overflow: hidden;
    position: relative;
    height: 14px;
    border-radius: 999px;
    background: #e8f2ec;
}

.vote-history-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mc-green), var(--mc-lime));
}

.vote-history-value {
    color: var(--mc-text);
    font-size: 0.95rem;
    font-weight: 900;
    text-align: right;
}

/* Layout rhythm pass: keep the many page types visually aligned. */
.panel,
.server-card,
.auth-card,
.new-servers-panel,
.account-hero,
.dashboard-hero,
.admin-hero,
.account-profile-card,
.account-settings-card,
.dashboard-stat-card,
.dashboard-server-card,
.dashboard-empty-state,
.admin-panel,
.admin-stat-card,
.analytics-head,
.analytics-card,
.analytics-list-card,
.analytics-table-card,
.newsletter-unsubscribe-card,
.newsletter-placeholder-box,
.newsletter-campaign-card,
.newsletter-send-stats div,
.email-type-list div,
.settings-card,
.settings-section,
.maintenance-card,
.server-detail-card,
.stat-card,
.faq-card,
.faq-sort-item,
.server-info-card,
.voter-period-card,
.voter-item,
.server-background-preview {
    border-radius: var(--mc-radius);
}

.panel,
.auth-card,
.new-servers-panel,
.account-profile-card,
.account-settings-card,
.dashboard-stat-card,
.dashboard-server-card,
.dashboard-empty-state,
.admin-panel,
.admin-stat-card,
.analytics-head,
.analytics-card,
.analytics-list-card,
.analytics-table-card,
.newsletter-unsubscribe-card,
.maintenance-card {
    box-shadow: var(--mc-shadow-card);
}

.account-hero,
.dashboard-hero,
.admin-hero {
    gap: var(--mc-space-5);
    padding: 28px 32px;
    box-shadow: var(--mc-shadow-hero);
}

.auth-promo {
    padding: var(--mc-space-6);
}

.auth-form-side {
    padding: 48px clamp(40px, 5vw, 64px);
}

.auth-form-intro {
    margin-bottom: var(--mc-space-5);
}

.newsletter-unsubscribe-head,
.newsletter-unsubscribe-body {
    padding: var(--mc-space-6);
}

.server-detail-hero {
    padding: 48px 0 var(--mc-space-5);
}

.server-list,
.dashboard-list,
.account-settings-grid,
.analytics-panel,
.newsletter-campaign-list,
.faq-sort-list,
.voter-list,
.vote-history {
    gap: var(--mc-space-3);
}

.account-layout,
.newsletter-layout,
.email-log-layout,
.server-overview-layout {
    gap: var(--mc-space-5);
}

.new-servers-panel,
.settings-card,
.settings-section,
.server-info-card,
.dashboard-server-card {
    padding: var(--mc-space-5);
}

.admin-stat-card,
.dashboard-stat-card,
.account-settings-card,
.server-detail-card,
.analytics-head,
.maintenance-card {
    padding: var(--mc-space-5);
}

.admin-panel.p-4,
.panel.p-4 {
    padding: var(--mc-space-5) !important;
}

.server-main {
    padding: var(--mc-space-5);
}

.vote-button {
    margin-right: var(--mc-space-5);
}

.search-panel {
    gap: var(--mc-space-3);
    margin-bottom: var(--mc-space-5);
}

.search-input.form-control {
    min-height: 60px;
    padding-left: 68px !important;
    padding-right: 18px;
}

.search-input-wrap .search-icon {
    left: 24px;
}

.new-servers-head {
    gap: var(--mc-space-3);
    margin-bottom: var(--mc-space-3);
}

.new-server-list,
.latest-voter-list,
.email-type-list {
    gap: var(--mc-space-2);
}

.new-server-row,
.new-server-empty,
.newsletter-campaign-card,
.email-type-list div,
.faq-sort-item {
    padding: var(--mc-space-3);
}

.account-card-head {
    gap: var(--mc-space-3);
    margin-bottom: var(--mc-space-5);
}

.account-form {
    gap: var(--mc-space-3);
}

.settings-grid,
.dashboard-stat-grid,
.analytics-card-grid,
.analytics-list-grid,
.voter-period-grid,
.stats-row {
    gap: var(--mc-space-3);
}

.settings-card {
    min-height: 0;
}

.admin-tabs {
    gap: var(--mc-space-2);
    margin-bottom: var(--mc-space-5);
}

.admin-table th {
    padding: 14px 18px;
}

.admin-table td {
    padding: 16px 18px;
}

.form-control,
.form-select {
    min-height: 46px;
    padding: 10px 14px;
}

textarea.form-control {
    min-height: 120px;
}

.btn:not(.btn-sm):not(.btn-lg),
.admin-tab,
.btn-dashboard-view {
    min-height: 44px;
    padding: 10px 18px;
}

.btn-sm {
    min-height: 36px;
    padding: 7px 12px;
}

.btn-lg {
    min-height: 52px;
    padding: 12px 22px;
}

.server-description-full > *:first-child,
.faq-card .accordion-body > *:first-child {
    margin-top: 0;
}

.server-description-full > *:last-child,
.faq-card .accordion-body > *:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .admin-panel.p-md-5,
    .panel.p-md-5 {
        padding: var(--mc-space-6) !important;
    }
}

@media (min-width: 520px) and (max-width: 991px) {
    .server-card {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr) 170px;
        align-items: stretch;
    }

    .rank {
        width: 56px;
        flex: 0 0 56px;
        font-size: 1rem;
    }

    .server-main {
        padding: 14px 12px 14px 14px;
    }

    .server-content {
        align-items: flex-start;
        gap: 12px;
        max-width: none;
    }

    .server-copy {
        width: auto;
        max-width: none;
    }

    .server-card.has-custom-background .server-copy {
        padding: 8px 10px;
        border-radius: 14px;
    }

    .server-icon {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .server-list-head {
        gap: 6px !important;
        margin-bottom: 6px !important;
    }

    .server-list-head .h5 {
        font-size: 1rem;
        line-height: 1.2;
    }

    .server-list-description {
        max-width: 100%;
        margin-bottom: 8px !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        white-space: normal;
        font-size: 0.84rem;
        line-height: 1.34;
    }

    .server-list-meta {
        gap: 6px !important;
    }

    .server-pill {
        min-height: 22px;
        padding: 3px 7px;
        border-radius: 999px;
        font-size: 0.72rem;
        line-height: 1.2;
    }

    .server-quick-panel {
        flex: none;
        align-items: stretch;
        justify-content: center;
        gap: 8px;
        padding: 12px 12px 12px 0;
    }

    .server-quick-stats {
        justify-content: flex-end;
        gap: 6px;
    }

    .server-quick-chip {
        min-height: 28px;
        padding: 5px 9px;
    }

    .server-quick-chip strong {
        font-size: 0.82rem;
    }

    .server-quick-copy {
        max-width: none;
    }

    .server-quick-copy-button {
        min-height: 40px;
        padding: 6px 7px;
    }

    .server-quick-copy-prefix {
        min-width: 30px;
        height: 28px;
        padding: 0 7px;
        font-size: 0.68rem;
    }

    .server-quick-copy-button strong {
        font-size: 0.84rem;
    }

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

    .server-stats-card-head {
        flex-direction: column;
    }

    .server-stats-mini-grid {
        min-width: 0;
        width: 100%;
    }

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

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

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

    .server-top-voter-row {
        grid-template-columns: 28px 36px minmax(0, 1fr);
    }

    .server-top-voter-value {
        grid-column: 3;
        justify-self: end;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: 310px;
    }

    .server-browser {
        margin-top: -22px;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .server-card {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: stretch;
        min-height: 0;
    }

    .new-servers-head {
        align-items: stretch;
        flex-direction: column;
    }

    .new-servers-head .btn {
        width: 100%;
    }

    .new-server-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .new-server-row em {
        grid-column: 2;
    }

    .rank {
        grid-column: 1;
        grid-row: 1;
        width: 56px;
        align-self: stretch;
        min-height: 100%;
        border-right: 0;
        border-bottom: 0;
        font-size: 0.95rem;
    }

    .server-main {
        grid-column: 2;
        grid-row: 1;
        padding: 14px 14px 8px 14px;
    }

    .server-content {
        align-items: flex-start;
        gap: 12px;
        max-width: none;
    }

    .server-copy {
        min-width: 0;
        width: auto;
        max-width: none;
    }

    .server-card.has-custom-background .server-copy {
        padding: 8px 10px;
        border-radius: 14px;
    }

    .server-icon {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .server-list-head {
        gap: 6px !important;
        margin-bottom: 6px !important;
    }

    .server-list-head .h5 {
        font-size: 1rem;
        line-height: 1.2;
    }

    .server-list-description {
        max-width: 100%;
        margin-bottom: 8px !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        white-space: normal;
        font-size: 0.82rem;
        line-height: 1.34;
    }

    .server-list-meta {
        gap: 6px !important;
    }

    .server-pill {
        min-height: 22px;
        padding: 3px 7px;
        border-radius: 999px;
        font-size: 0.72rem;
        line-height: 1.2;
    }

    .server-quick-panel {
        grid-column: 2;
        grid-row: 2;
        flex: none;
        align-items: stretch;
        gap: 8px;
        padding: 0 14px 14px;
    }

    .server-quick-stats {
        justify-content: flex-start;
    }

    .server-quick-chip {
        min-height: 28px;
        padding: 5px 9px;
    }

    .server-quick-chip strong {
        font-size: 0.82rem;
    }

    .server-quick-copy {
        max-width: none;
    }

    .server-quick-copy-button {
        min-height: 42px;
        padding: 6px 7px;
    }

    .server-quick-copy-prefix {
        min-width: 30px;
        height: 28px;
        padding: 0 7px;
        font-size: 0.68rem;
    }

    .server-quick-copy-button strong {
        font-size: 0.84rem;
    }

    .server-detail-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-vote-button {
        width: 100%;
        margin: 0;
    }

    .server-detail-actions,
    .server-address-copy {
        width: 100%;
    }

    .server-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .server-address-copy span {
        flex: 1 1 auto;
        max-width: none;
    }

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

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

    .server-trend-chart {
        padding: 12px 10px 10px;
    }

    .server-trend-labels {
        font-size: 0.66rem;
    }

    .server-top-voter-meta {
        flex-direction: column;
        gap: 2px;
    }

    .server-top-voter-meta span {
        white-space: normal;
    }

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

    .analytics-head {
        align-items: stretch;
        flex-direction: column;
    }

    .analytics-online {
        width: 100%;
    }

    .analytics-card-grid,
    .analytics-list-grid {
        grid-template-columns: 1fr;
    }

    .admin-search-bar,
    .admin-search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-search-form .btn,
    .admin-search-form .form-control,
    .admin-search-form .form-select {
        width: 100%;
    }

    .newsletter-layout {
        grid-template-columns: 1fr;
    }

    .email-log-layout {
        grid-template-columns: 1fr;
    }

    .import-layout,
    .import-preview-grid {
        grid-template-columns: 1fr;
    }

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

    .voter-period-grid {
        grid-template-columns: 1fr;
    }

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

    .vote-box {
        width: 100%;
    }

    .faq-sort-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .faq-sort-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .privacy-consent-toast {
        right: 14px;
        left: 14px;
        bottom: 14px;
        width: auto;
    }

    .privacy-consent-actions {
        flex-direction: column;
    }

    .privacy-consent-actions .btn {
        width: 100%;
    }

    .hero .display-4 {
        font-size: 2.35rem;
    }
}

@media (min-width: 520px) and (max-width: 767px) {
    .server-card {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: stretch;
    }

    .rank {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 56px;
        align-self: stretch;
        min-height: 100%;
        font-size: 1rem;
    }

    .server-main {
        grid-column: 2;
        grid-row: 1;
        padding: 14px 14px 8px 14px;
    }

    .server-content {
        align-items: center;
        gap: 14px;
        max-width: none;
    }

    .server-copy {
        width: auto;
        max-width: none;
    }

    .server-card.has-custom-background .server-copy {
        padding: 10px 12px;
        border-radius: 14px;
    }

    .server-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        align-self: center;
    }

    .server-list-description {
        max-width: 100%;
        margin-bottom: 8px !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        white-space: normal;
        font-size: 0.86rem;
        line-height: 1.38;
    }

    .server-quick-panel {
        grid-column: 2;
        grid-row: 2;
        flex: none;
        align-items: stretch;
        gap: 8px;
        padding: 0 14px 14px;
    }

    .server-quick-stats {
        justify-content: flex-start;
        gap: 8px;
    }

    .server-quick-chip {
        min-height: 30px;
        padding: 6px 10px;
    }

    .server-quick-chip strong {
        font-size: 0.86rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .voter-period-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .server-submit-steps {
        grid-template-columns: 1fr;
    }

    .server-submit-hero-content h1 {
        line-height: 1.02;
    }

    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-profile-card {
        position: relative;
        top: auto;
    }

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

    .dashboard-server-card {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .dashboard-section-head p {
        max-width: none;
        text-align: left;
    }

    .dashboard-server-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .votifier-test-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth-promo {
        min-height: 360px;
    }

    .auth-promo-content {
        min-height: 0;
    }

    .auth-promo-content p {
        min-height: 0;
    }

    .auth-form-side {
        justify-content: center;
        padding: 40px var(--mc-space-5);
    }

    .auth-form-intro {
        min-height: 0;
    }

    .auth-form-intro p {
        min-height: 0;
    }
}

@media (max-width: 575px) {
    .server-submit-hero {
        padding: 26px 18px;
    }

    .server-submit-hero-content > p {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .server-submit-step {
        padding: 22px 18px;
    }

    .server-submit-primary,
    .server-submit-secondary {
        width: 100%;
        min-width: 0;
    }

    .account-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 24px;
    }

    .account-hero .btn {
        width: 100%;
    }

    .account-profile-card,
    .account-settings-card {
        padding: var(--mc-space-4);
    }

    .account-card-head {
        flex-direction: column;
    }

    .account-form .btn {
        width: 100%;
    }

    .dashboard-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 24px;
    }

    .dashboard-hero .btn {
        width: 100%;
    }

    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-server-main,
    .dashboard-empty-state {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-server-actions .btn {
        width: 100%;
    }

    .dashboard-server-log-head,
    .dashboard-vote-log-item {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-vote-log-status {
        min-width: 0;
        align-items: flex-start;
        text-align: left;
    }

    .dashboard-log-pagination {
        flex-direction: column;
    }

    .dashboard-empty-state {
        padding: var(--mc-space-5);
    }

    .analytics-metrics {
        grid-template-columns: 1fr;
    }

    .newsletter-unsubscribe-head,
    .newsletter-unsubscribe-body {
        padding: var(--mc-space-5) var(--mc-space-4);
    }

    .newsletter-send-stats {
        grid-template-columns: 1fr;
    }

    .voter-period-grid {
        grid-template-columns: 1fr;
    }

    .btn-auth-login,
    .btn-auth-register,
    .btn-auth-logout {
        width: 100%;
    }

    .nav-actions {
        width: 100%;
    }

    .nav-account-chip {
        width: 100%;
        max-width: none;
    }

.auth-page {
    align-items: flex-start;
}

.auth-promo {
    min-height: 300px;
    padding: var(--mc-space-6) var(--mc-space-4);
}
}

.short-description-counter {
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.short-description-counter--low {
    color: #22a447;
}

.short-description-counter--mid {
    color: #d9822b;
}

.short-description-counter--high {
    color: #dc3545;
}

.platform-stats-section,
footer.py-5.mt-5 {
    display: none;
}

.site-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.04);
    padding: 36px 0 20px;
}

.site-footer-top {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(420px, 720px);
    gap: 56px;
    align-items: start;
    justify-content: center;
    text-align: left;
    width: min(100%, 1240px);
    margin: 0 auto;
}

.site-footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px;
    width: min(720px, 100%);
    align-items: start;
}

.footer-column h2 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #111827;
}

.footer-column a {
    display: block;
    color: #4b5563;
    text-decoration: none;
    margin-bottom: 10px;
    padding: 2px 0;
}

.footer-column a:hover {
    color: #2f8f2f;
}

.footer-brand {
    justify-self: end;
    max-width: 420px;
    text-align: left;
    align-self: center;
}

.footer-brand img {
    width: min(220px, 100%);
    height: auto;
    margin-bottom: 14px;
}

.footer-brand p {
    margin: 0;
    color: #6b7280;
    line-height: 1.65;
}

.footer-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
    margin-bottom: 38px;
    width: min(100%, 1240px);
    margin-left: auto;
    margin-right: auto;
    padding: 16px 18px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.84);
}

.footer-stat-item {
    text-align: center;
}

.footer-stat-item strong,
.footer-stat-item span {
    display: block;
}

.footer-stat-item strong {
    font-size: 1.5rem;
    font-weight: 900;
    color: #111827;
    line-height: 1;
}

.footer-stat-item span {
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.site-footer-note {
    margin-top: 22px;
    margin-bottom: 32px;
    text-align: center;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.site-footer-bottom {
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    flex-wrap: wrap;
    gap: 16px;
    color: #6b7280;
    font-size: 0.9rem;
    width: min(100%, 1240px);
    margin-left: auto;
    margin-right: auto;
}

.contact-panel {
    max-width: 920px;
    margin: 0 auto;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 991px) {
    .site-footer {
        padding: 32px 0 20px;
    }

    .site-footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
        justify-items: center;
        text-align: center;
        width: 100%;
    }

    .footer-brand {
        justify-self: center;
        text-align: center;
        max-width: 420px;
    }

    .site-footer-nav {
        width: min(760px, 100%);
        gap: 28px;
    }

    .footer-stats-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-bottom: 30px;
    }

    .site-footer-bottom {
        gap: 10px 18px;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding: 28px 0 18px;
    }

    .site-footer-top {
        gap: 24px;
        width: 100%;
    }

    .site-footer-nav {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 20px;
    }

    .footer-column {
        padding: 14px 16px;
        border: 1px solid rgba(15, 23, 42, 0.07);
        border-radius: 8px;
        background: rgba(248, 250, 252, 0.72);
    }

    .footer-column a {
        margin-bottom: 8px;
        padding: 4px 0;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-brand img {
        width: min(190px, 100%);
        margin-bottom: 12px;
    }

    .footer-stats-bar {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 24px;
        margin-bottom: 24px;
        padding: 14px;
    }

    .footer-stat-item {
        padding: 4px 0;
    }

    .footer-stat-item strong {
        font-size: 1.35rem;
    }

    .site-footer-note {
        margin-top: 18px;
        margin-bottom: 24px;
        font-size: 0.88rem;
    }

    .site-footer-bottom {
        padding-top: 14px;
        font-size: 0.84rem;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 991px) {
    .site-footer-top,
    .footer-stats-bar {
        grid-template-columns: 1fr;
    }

    .site-footer-nav {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        justify-self: center;
        text-align: center;
    }

    .site-footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

.platform-stats-section {
    margin-top: 56px;
}

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

.platform-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    padding: 20px 24px;
}

.platform-stat-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(110, 193, 70, 0.18), rgba(56, 160, 74, 0.08));
    color: #245c1a;
    flex: 0 0 52px;
}

.platform-stat-icon svg {
    width: 28px;
    height: 28px;
}

.platform-stat-card strong,
.platform-stat-card span {
    display: block;
}

.platform-stat-card strong {
    color: #111827;
    font-size: clamp(1.75rem, 2.6vw, 2.15rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.platform-stat-card span:last-child {
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.comments-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.comment-summary-card,
.comment-form-card,
.comment-login-card,
.comment-card,
.comment-moderation-card,
.dashboard-comment-feed {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.comment-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    margin-bottom: 18px;
}

.comment-summary-stars,
.comment-stars,
.dashboard-rating-stars,
.rating-stars-display,
.rating-picker label {
    --rating-star-color: #f2b01e;
}

.comment-summary-stars,
.comment-stars {
    color: var(--rating-star-color);
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.comment-summary-stars {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.comment-summary-stars strong {
    color: #111827;
    font-size: 0.95rem;
    letter-spacing: normal;
}

.rating-stars-display {
    position: relative;
    display: inline-block;
    line-height: 1;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.rating-stars-base,
.rating-stars-fill {
    display: block;
    font-size: 1.05rem;
}

.rating-stars-base {
    color: var(--rating-star-color);
    opacity: 0.35;
}

.rating-stars-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--rating-width, 0%);
    overflow: hidden;
    color: var(--rating-star-color);
}

.server-rating-inline {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    text-align: right;
}

.vote-tip-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.06);
    border: 1px solid rgba(15, 118, 110, 0.14);
    color: #526274;
    font-size: 0.92rem;
    line-height: 1.55;
}

.vote-tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 1.35rem;
    color: #0f766e;
    margin-top: 0.05rem;
}

.vote-tip-icon svg {
    width: 100%;
    height: 100%;
}

.vote-tip-icon i {
    font-size: 1.1rem;
}

.vote-tip-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vote-tip-copy strong {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.2;
}

.vote-tip-copy span {
    display: block;
}

.vote-tip-text a {
    color: #1d4ed8;
    font-weight: 800;
    text-decoration: none;
}

.vote-tip-text a:hover {
    text-decoration: underline;
}

.votifier-test-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.96);
}

.votifier-test-panel,
.votifier-test-result {
    scroll-margin-top: 120px;
}

.votifier-test-panel strong {
    display: block;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 900;
}

.votifier-test-panel p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.55;
}

.votifier-test-button {
    min-width: 170px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.votifier-test-result strong {
    display: block;
    margin-bottom: 4px;
}

.votifier-test-result small {
    display: block;
    margin-top: 6px;
    color: inherit;
    opacity: 0.86;
}

.comment-form-card,
.comment-login-card {
    padding: 24px 26px;
    margin-bottom: 18px;
}

.rating-picker {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.rating-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-picker label {
    cursor: pointer;
    color: var(--rating-star-color);
    opacity: 0.35;
    font-size: 2rem;
    line-height: 1;
    transition: color 140ms ease, transform 140ms ease;
}

.rating-picker label:hover,
.rating-picker label:hover ~ label,
.rating-picker input:checked ~ label {
    color: var(--rating-star-color);
    opacity: 1;
}

.rating-picker label:hover {
    transform: translateY(-1px) scale(1.03);
}

.comment-report-details {
    position: relative;
}

.comment-report-details summary {
    list-style: none;
}

.comment-report-details summary::-webkit-details-marker {
    display: none;
}

.comment-report-form {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(320px, 82vw);
    padding: 14px;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
    z-index: 4;
}

.comment-report-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    text-align: left;
}

.comment-report-form-head strong {
    flex: 1 1 auto;
    text-align: left;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 900;
}

.comment-report-close {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background: #f3f6f9;
    border: 1px solid #d7e2ec;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    padding: 0;
    transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.comment-report-close:hover {
    color: #1f2937;
    background: #ffffff;
    border-color: #c7d6e4;
    transform: translateY(-1px);
}

.comment-login-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.comment-list,
.comment-moderation-list,
.dashboard-comment-list {
    display: grid;
    gap: 16px;
}

.comment-card,
.comment-moderation-card {
    padding: 22px 24px;
}

.comment-card-head,
.dashboard-comment-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.comment-author img,
.dashboard-comment-item img {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 54px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.comment-author strong,
.dashboard-comment-item strong {
    display: block;
    color: #111827;
    font-size: 1rem;
    font-weight: 900;
}

.comment-author span,
.dashboard-comment-item p,
.comment-moderation-meta span {
    color: #6b7280;
    font-size: 0.94rem;
}

.dashboard-comment-item p {
    margin: 4px 0 0;
}

.comment-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    text-align: right;
}

.comment-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.comment-status-badge.status-pending {
    color: #8a6417;
    background: rgba(240, 180, 41, 0.12);
    border-color: rgba(240, 180, 41, 0.28);
}

.comment-status-badge.status-approved {
    color: #1f7a34;
    background: rgba(40, 167, 69, 0.12);
    border-color: rgba(40, 167, 69, 0.25);
}

.comment-status-badge.status-rejected {
    color: #b02a37;
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.24);
}

.comment-report-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #dbe4ef;
    border-radius: var(--mc-btn-radius);
    font-size: 1rem;
    line-height: 1;
    box-shadow: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.comment-report-button i {
    font-size: 0.98rem;
}

.comment-report-button:hover {
    color: #b02a37;
    border-color: rgba(220, 53, 69, 0.25);
    background: #fff5f5;
}

.comment-report-button:focus,
.comment-report-button:focus-visible {
    color: #b02a37;
    border-color: rgba(220, 53, 69, 0.25);
    background: #fff5f5;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.14);
}

.comment-report-button.is-link {
    text-decoration: none;
}

.comment-text {
    margin: 16px 0 0;
    color: #273445;
    line-height: 1.72;
}

.comment-empty-state {
    padding: 28px 30px;
    border: 1px dashed #d7e2ec;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    text-align: center;
}

.comment-empty-state h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 900;
}

.dashboard-comment-feed {
    padding: 22px 24px;
}

.dashboard-comment-feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-comment-item {
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fbfd;
}

.dashboard-comment-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    color: #6b7280;
    font-size: 0.94rem;
}

.dashboard-comment-preview {
    display: block;
    margin-top: 8px;
    color: #526274;
    font-size: 0.9rem;
    line-height: 1.5;
}

.dashboard-comment-link {
    color: inherit;
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.dashboard-comment-link:hover {
    color: inherit;
    transform: translateY(-1px);
    border-color: #c8d7e5;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.dashboard-comment-badges {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.dashboard-rating-stars {
    color: var(--rating-star-color);
    letter-spacing: 0.1em;
    font-size: 0.98rem;
    line-height: 1;
}

.dashboard-rating-time {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 700;
}

.dashboard-inline-notification {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    margin-left: 10px;
    padding: 0 10px;
    border-radius: 999px;
    background: #dc3545;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    vertical-align: middle;
    box-shadow: 0 10px 18px rgba(220, 53, 69, 0.22);
}

.dashboard-server-ratings {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e8eef5;
}

.dashboard-server-ratings-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #4b5563;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-server-log {
    grid-column: 1 / -1;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e8eef5;
}

.dashboard-comment-list,
.dashboard-vote-log-list {
    gap: 12px;
}

.dashboard-server-log-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.dashboard-server-log-head h3 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 900;
}

.dashboard-server-log-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.dashboard-log-page-indicator {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-vote-log-list {
    display: grid;
    gap: 10px;
}

.dashboard-vote-log-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 16px;
    border: 1px solid #e3ebf3;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.96), rgba(255, 255, 255, 0.99));
}

.dashboard-vote-log-main {
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-vote-log-main strong {
    display: block;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 900;
}

.dashboard-vote-log-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.88rem;
}

.dashboard-vote-log-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 220px;
    text-align: right;
}

.dashboard-vote-log-status small {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.45;
}

.dashboard-votifier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.79rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.dashboard-votifier-badge.status-success {
    color: #1f7a34;
    background: rgba(40, 167, 69, 0.12);
    border-color: rgba(40, 167, 69, 0.24);
}

.dashboard-votifier-badge.status-pending {
    color: #8a6417;
    background: rgba(240, 180, 41, 0.12);
    border-color: rgba(240, 180, 41, 0.28);
}

.dashboard-votifier-badge.status-inactive {
    color: #475569;
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.22);
}

.dashboard-log-pagination {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.dashboard-log-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #dbe4ef;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.dashboard-log-page-link:hover {
    color: #0f172a;
    border-color: #bfd2e6;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.dashboard-log-empty-state {
    display: grid;
    gap: 4px;
    padding: 18px 20px;
    border: 1px dashed #d7e2ec;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
}

.dashboard-log-empty-state strong {
    color: #111827;
    font-size: 0.98rem;
}

.dashboard-log-empty-state span {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.55;
}

.comment-moderation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e7edf4;
}

.comment-report-reasons {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #fff8e8;
    border: 1px solid rgba(240, 180, 41, 0.22);
}

.comment-report-reasons strong {
    display: block;
    margin-bottom: 8px;
    color: #7c5b10;
}

.comment-report-reasons pre {
    margin: 0;
    white-space: pre-wrap;
    font: inherit;
    color: #5b6472;
}

.comment-moderation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

@media (max-width: 767px) {
    .comment-summary-card,
    .comment-card-head,
    .dashboard-comment-item,
    .dashboard-comment-feed-head {
        flex-direction: column;
        align-items: stretch;
    }

    .comment-card-meta,
    .comment-moderation-actions {
        justify-content: flex-start;
        text-align: left;
    }

    .dashboard-comment-badges {
        margin-left: 0;
        justify-content: flex-start;
    }

    .comment-summary-stars,
    .server-rating-inline {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }

    .comment-report-form {
        position: static;
        width: 100%;
        margin-top: 10px;
    }

    .comment-summary-card,
    .comment-form-card,
    .comment-login-card,
    .comment-card,
    .comment-moderation-card,
    .dashboard-comment-feed {
        padding: 20px;
    }
}
