.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.webp") 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.webp") 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 {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    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 > * {
    position: relative;
    z-index: 1;
}

.dashboard-server-card.has-custom-background {
    background: rgba(255, 255, 255, 0.98);
}

.dashboard-server-card.has-custom-background::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 200px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.22) 34%, rgba(255, 255, 255, 0.82) 78%, rgba(255, 255, 255, 0.98) 100%),
        var(--dashboard-server-background) center/cover no-repeat;
    z-index: 0;
    pointer-events: none;
}

.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;
}

.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;
    flex: 1 1 auto;
}

.dashboard-server-card.has-custom-background .dashboard-server-copy {
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.48));
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(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: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, max-content));
    gap: 10px;
    align-items: start;
    justify-content: flex-start;
}

.dashboard-server-meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    color: #516172;
    font-size: 0.8rem;
    font-weight: 800;
    background: #f7fafc;
    border: 1px solid #e5edf5;
    border-radius: 999px;
    white-space: nowrap;
}

.dashboard-server-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding-top: 2px;
    grid-row: 2;
}

.dashboard-server-card.has-custom-background .dashboard-server-actions {
    padding: 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.56));
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
}

.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);
}

.dashboard-hero .btn-auth-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #12311b;
    background: linear-gradient(180deg, #ffffff, #eef8f1);
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 28px rgba(8, 24, 13, 0.22);
}

.dashboard-hero .btn-auth-register:hover {
    color: #0d2615;
    background: linear-gradient(180deg, #ffffff, #e4f3e8);
    border-color: #ffffff;
    box-shadow: 0 18px 34px rgba(8, 24, 13, 0.26);
    filter: none;
}

.dashboard-hero .btn-auth-register:focus,
.dashboard-hero .btn-auth-register:focus-visible {
    color: #0d2615;
    background: linear-gradient(180deg, #ffffff, #e4f3e8);
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22), 0 18px 34px rgba(8, 24, 13, 0.26);
    outline: none;
}

.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-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-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #8d9aa8;
}

.analytics-list-head h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
}

.analytics-list-switches {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.analytics-list-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.analytics-list-switch:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
}

.analytics-list-switch.is-active {
    color: #264334;
    background: #ffffff;
    border-color: #ffffff;
}

.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 [data-copy-label] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 160ms ease;
}

.server-address-copy [data-copy-label].is-copied,
.server-address-copy.is-copied [data-copy-label] {
    color: #166534;
}

.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-card .accordion-body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.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;
    align-items: center;
    gap: 8px;
    padding: 0 0 12px;
    color: var(--mc-muted);
    background: transparent;
    border: 0;
    text-decoration: none;
    font-weight: 800;
}

.detail-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #2fb24c 0%, #1f8b3f 100%);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(31, 139, 63, 0.18);
}

.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: min(100%, 720px) !important;
    max-height: 420px !important;
    border-radius: 8px;
    margin: 16px 0;
    object-fit: contain;
}

.server-description-full figure {
    margin: 18px 0;
}

.server-description-full img.richtext-image,
.server-description-full figure.richtext-image img,
.server-description-full figure.image img,
.server-description-full figure.image-style-align-left img,
.server-description-full figure.image-style-align-center img,
.server-description-full figure.image-style-align-right img {
    max-width: min(100%, 720px) !important;
    max-height: 420px !important;
}

.server-description-full img.align-left,
.server-description-full img.image-style-align-left,
.server-description-full figure.align-left img,
.server-description-full figure.image-style-align-left img {
    margin-left: 0;
    margin-right: auto;
}

.server-description-full img.align-center,
.server-description-full img.image-style-align-center,
.server-description-full figure.align-center img,
.server-description-full figure.image-style-align-center img {
    margin-left: auto;
    margin-right: auto;
}

.server-description-full p[style*="text-align: center"] img,
.server-description-full div[style*="text-align: center"] img,
.server-description-full figure[style*="text-align: center"] img {
    margin-left: auto;
    margin-right: auto;
}

.server-description-full img.align-right,
.server-description-full img.image-style-align-right,
.server-description-full figure.align-right img,
.server-description-full figure.image-style-align-right img {
    margin-left: auto;
    margin-right: 0;
}

.server-description-full p[style*="text-align: right"] img,
.server-description-full div[style*="text-align: right"] img,
.server-description-full figure[style*="text-align: right"] img {
    margin-left: auto;
    margin-right: 0;
}

.server-description-full figcaption {
    margin-top: 8px;
    color: var(--mc-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.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-copy [data-copy-label] {
    transition: color 160ms ease;
}

.server-info-copy.is-copied strong {
    color: #166534;
}

.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-address-copy button.is-copied,
.server-info-copy button.is-copied {
    color: #ffffff;
    border-color: #1f7a3b;
    background: linear-gradient(180deg, #28a745, #1f7a3b);
    box-shadow: 0 10px 22px rgba(31, 122, 59, 0.22);
    transform: translateY(-1px) scale(1.03);
}

.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-list {
        grid-template-columns: 1fr;
    }

    .new-server-row {
        grid-template-columns: 38px minmax(0, 1fr);
        min-height: 0;
    }

    .new-server-row em {
        margin-top: 0;
    }

    .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-trend-card,
    .server-stats-top-card,
    .server-stats-history-card {
        padding: 16px;
    }

    .server-stats-card-head {
        gap: 14px;
        margin-bottom: 14px;
    }

    .server-stats-card-head h3 {
        font-size: 1.04rem;
    }

    .server-stats-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .server-stats-mini-grid div {
        padding: 9px 10px;
    }

    .server-stats-mini-grid strong {
        font-size: 1rem;
    }

    .server-stats-mini-grid span {
        font-size: 0.72rem;
    }

    .server-trend-chart {
        padding: 12px 10px 10px;
        border-radius: 12px;
    }

    .server-trend-labels {
        grid-template-columns: repeat(14, minmax(0, 1fr));
        font-size: 0.66rem;
        gap: 4px;
        margin-top: 8px;
    }

    .server-top-tab-list {
        flex-wrap: nowrap;
        gap: 6px;
        margin: 0 -2px 14px;
        padding: 0 2px 2px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .server-top-tab-button {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 8px 11px;
        font-size: 0.76rem;
        white-space: nowrap;
    }

    .server-top-voters-chart {
        gap: 10px;
    }

    .server-top-voter-row {
        grid-template-columns: 24px 34px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .server-top-voter-rank {
        font-size: 0.74rem;
    }

    .server-top-voter-avatar {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .server-top-voter-main {
        display: grid;
        gap: 6px;
    }

    .server-top-voter-meta {
        display: grid;
        gap: 2px;
        margin-bottom: 0;
    }

    .server-top-voter-meta span {
        white-space: normal;
        font-size: 0.72rem;
    }

    .server-top-voter-value {
        display: none;
    }

    .vote-history {
        gap: 10px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .analytics-head {
        align-items: stretch;
        flex-direction: column;
    }

    .analytics-list-head {
        align-items: stretch;
        flex-direction: column;
    }

    .analytics-list-switches {
        width: 100%;
    }

    .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%;
    }

    .admin-search-bar {
        padding: 14px;
        gap: 10px;
    }

    .admin-search-form {
        flex: 0 0 auto;
        width: 100%;
        gap: 8px;
    }

    .admin-search-form .form-control,
    .admin-search-form .form-select,
    .admin-search-form .btn {
        flex: 0 0 auto;
    }

    .admin-search-form .form-control,
    .admin-search-form .form-select {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 0.95rem;
    }

    .admin-search-form .btn {
        min-height: 40px;
        padding: 8px 14px;
    }

    .admin-search-bar > .text-secondary.small {
        width: 100%;
    }

    .admin-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
    }

    .admin-hero .btn {
        width: 100%;
        justify-content: center;
    }

    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }

    .admin-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .table-responsive {
        overflow: visible;
    }

    .admin-table {
        min-width: 0;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .admin-table tr {
        display: block;
        padding: 14px;
        background: #ffffff;
        border: 1px solid #dbe4ef;
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    }

    .admin-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        padding: 8px 0;
        border: 0;
        text-align: left !important;
    }

    .admin-table td::before {
        content: attr(data-label);
        flex: 0 0 108px;
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .admin-table td.admin-table-actions {
        display: block;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid #e2e8f0;
    }

    .admin-table td.admin-table-actions::before {
        display: block;
        margin-bottom: 10px;
    }

    .admin-table td.admin-table-actions .d-inline-flex {
        display: flex !important;
        width: 100%;
        justify-content: stretch !important;
    }

    .admin-table td.admin-table-actions .d-inline,
    .admin-table td.admin-table-actions form,
    .admin-table td.admin-table-actions .btn {
        width: 100%;
    }

    .admin-table td.admin-table-actions .btn {
        justify-content: center;
    }

    .admin-table tr.admin-table-empty-row {
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .admin-table tr.admin-table-empty-row td {
        display: block;
        padding: 20px 8px;
        text-align: center !important;
    }

    .admin-table tr.admin-table-empty-row td::before {
        display: none;
    }

    .analytics-hash,
    .admin-table td code {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .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: minmax(0, 1fr) auto;
        gap: 10px 12px;
        padding: 11px 12px;
        align-items: start;
    }

    .vote-history-date {
        min-width: 0;
    }

    .vote-history-date strong {
        font-size: 0.86rem;
    }

    .vote-history-date span {
        font-size: 0.72rem;
    }

    .vote-history-bar {
        grid-column: 1 / -1;
        height: 12px;
    }

    .vote-history-value {
        align-self: center;
        font-size: 0.88rem;
    }

    .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 {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .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: center;
    }

    .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-card {
        padding: 18px;
    }

    .dashboard-server-card.has-custom-background {
        background: rgba(255, 255, 255, 0.97);
    }

    .dashboard-server-card.has-custom-background::before {
        height: 150px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.28) 34%, rgba(255, 255, 255, 0.84) 74%, rgba(255, 255, 255, 0.98) 100%),
            var(--dashboard-server-background) center/cover no-repeat;
    }

    .dashboard-server-copy {
        width: 100%;
    }

    .dashboard-server-card.has-custom-background .dashboard-server-copy,
    .dashboard-server-card.has-custom-background .dashboard-server-actions {
        width: 100%;
        padding: 12px;
        backdrop-filter: blur(8px);
    }

    .dashboard-server-copy h2 {
        font-size: 1.1rem;
    }

    .dashboard-server-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .dashboard-server-meta span {
        width: auto;
        min-height: 0;
        padding: 10px 12px;
        border-radius: 18px;
        white-space: normal;
        justify-content: flex-start;
    }

    .dashboard-server-actions {
        align-items: stretch;
        gap: 8px;
    }

    .dashboard-server-actions .btn {
        width: 100%;
    }

    .dashboard-server-log-head,
    .dashboard-vote-log-item {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-log-search {
        align-items: stretch;
    }

    .dashboard-log-search .form-control,
    .dashboard-log-search .btn {
        width: 100%;
        flex: 1 1 auto;
    }

    .admin-vote-log-item {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-vote-log-status {
        min-width: 0;
        align-items: flex-start;
        text-align: left;
    }

    .admin-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-settings-panel[hidden] {
    display: none !important;
}

.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 {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #dbe4ef;
    background: rgba(248, 250, 252, 0.96);
    color: #334155;
}

.votifier-test-result.is-success {
    border-color: rgba(34, 197, 94, 0.28);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(220, 252, 231, 0.92));
    color: #166534;
}

.votifier-test-result.is-error {
    border-color: rgba(239, 68, 68, 0.24);
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(254, 226, 226, 0.92));
    color: #b91c1c;
}

.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-text p,
.comment-text ul,
.comment-text ol {
    margin-bottom: 0.9rem;
}

.comment-text p:last-child,
.comment-text ul:last-child,
.comment-text ol:last-child {
    margin-bottom: 0;
}

.comment-form-card .tox.tox-tinymce {
    border-color: #dbe4ef;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.comment-form-card .tox .tox-editor-header {
    border-bottom: 1px solid #e2e8f0;
    box-shadow: none;
}

.comment-form-card .tox .tox-toolbar,
.comment-form-card .tox .tox-toolbar__primary {
    background: #f8fafc;
}

.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: 3;
    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;
    grid-row: 3;
    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-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.dashboard-log-search .form-control {
    flex: 1 1 260px;
    min-width: 0;
}

.dashboard-log-search .btn {
    flex: 0 0 auto;
}

.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;
}

.admin-vote-log-list {
    display: grid;
    gap: 12px;
}

.admin-vote-log-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid #e3ebf3;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.96), rgba(255, 255, 255, 0.99));
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.admin-vote-log-main {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-vote-log-headline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-vote-log-headline strong {
    color: #111827;
    font-size: 1rem;
    font-weight: 900;
}

.admin-vote-log-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.55;
}

.admin-vote-log-meta span {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.admin-vote-log-meta a {
    color: var(--mc-green-dark);
    font-weight: 800;
    text-decoration: none;
}

.admin-vote-log-meta a:hover {
    text-decoration: underline;
}

.admin-vote-log-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 220px;
    text-align: right;
}

.admin-vote-log-status small {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.5;
}

.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;
    }
}
