* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #e5e7eb;
    background: radial-gradient(circle at top, #1b2234 0%, #0f1422 55%, #0a0f1a 100%);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.servers-page {
    min-height: 100vh;
    max-width: 1040px;
    margin: 48px auto;
    padding: 0 20px;
}

.servers-page__header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
    color: #f8fafc;
}

.servers-page__header p {
    margin: 10px 0 0;
    color: #94a3b8;
}

.servers-card {
    margin-top: 24px;
    border: 1px solid #243049;
    border-radius: 14px;
    background: rgba(14, 20, 33, 0.86);
    overflow: hidden;
}

.servers-table {
    width: 100%;
    border-collapse: collapse;
}

.servers-table th,
.servers-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #243049;
    text-align: left;
    vertical-align: middle;
}

.servers-table thead th {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #93a7cc;
    background: rgba(25, 35, 55, 0.55);
}

.servers-table tbody tr:hover {
    background: rgba(34, 47, 74, 0.4);
}

.servers-table tbody tr.server-row--dev {
    background: rgba(44, 33, 74, 0.24);
    opacity: 0.72;
}

.servers-table tbody tr.server-row--dev:hover {
    background: rgba(57, 42, 97, 0.34);
}

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

.servers-table--servers th,
.servers-table--servers td {
    text-align: center;
}

.servers-table--servers th:first-child,
.servers-table--servers td:first-child {
    text-align: left;
}

.server-name {
    font-weight: 600;
    color: #f8fafc;
}

.status-badge {
    display: inline-block;
    min-width: 88px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.status-badge--online {
    color: #86efac;
    background: rgba(22, 101, 52, 0.35);
    border: 1px solid rgba(134, 239, 172, 0.25);
}

.status-badge--maintenance {
    color: #fcd34d;
    background: rgba(133, 77, 14, 0.35);
    border: 1px solid rgba(252, 211, 77, 0.3);
}

.status-badge--dev {
    color: #c4b5fd;
    background: rgba(91, 33, 182, 0.28);
    border: 1px solid rgba(196, 181, 253, 0.32);
}

.status-badge--offline {
    color: #fca5a5;
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(252, 165, 165, 0.25);
}

.status-badge--warning {
    color: #fcd34d;
    background: rgba(133, 77, 14, 0.35);
    border: 1px solid rgba(252, 211, 77, 0.3);
}

.motd-link {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 600;
}

.motd-link:hover {
    color: #bfdbfe;
    text-decoration: underline;
}

.motd-link-button {
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

/* Server info page layout */
.server-info-page {
    min-height: 100vh;
    max-width: 1040px;
    margin: 48px auto;
    padding: 0 20px;
}

.server-info-page header h1 {
    margin: 0 0 8px 0;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    color: #f8fafc;
}

.server-details {
    margin-top: 18px;
    background: rgba(14, 20, 33, 0.6);
    border: 1px solid rgba(36, 48, 73, 0.6);
    border-radius: 12px;
    padding: 18px;
}

.server-details dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 16px;
}

.server-details dt {
    color: #93a7cc;
    font-weight: 700;
}

.server-details dd {
    margin: 0 0 8px 0;
    color: #e6eef8;
}

.server-links {
    margin-top: 12px;
}

.portal-cart-item-actions form,
.servers-table td form,
.auth-popup__actions form {
    margin: 0;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
    color: #bfdbfe;
}

.empty-state {
    text-align: center;
    color: #94a3b8;
}

.home-links {
    display: flex;
    gap: 18px;
    padding: 22px;
    align-items: center;
}

@media (max-width: 840px) {
    .servers-table th,
    .servers-table td {
        padding: 12px;
        font-size: 0.9rem;
    }
}

.portal-home {
    min-height: 100vh;
}

.portal-shell {
    width: min(1140px, 92%);
    margin: 0 auto;
}

.portal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(58, 78, 114, 0.45);
    background: rgba(10, 15, 26, 0.78);
}

.portal-header__inner {
    min-height: 72px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.portal-logo {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.portal-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-self: center;
}

.portal-nav__link {
    color: #9db0d2;
    text-decoration: none;
    font-weight: 600;
}

.portal-nav__link:hover,
.portal-nav__link.is-active {
    color: #f8fafc;
}

.portal-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

.portal-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c7dbff;
    text-decoration: none;
    font-weight: 700;
}

.portal-cart-menu {
    position: relative;
}

.portal-cart-menu > summary {
    list-style: none;
    cursor: pointer;
}

.portal-cart-menu > summary::-webkit-details-marker {
    display: none;
}

.portal-cart__count {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: #0b1220;
    background: linear-gradient(90deg, #60a5fa, #38bdf8);
}

.portal-cart:hover {
    color: #f8fafc;
}

.portal-cart-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, 86vw);
    border: 1px solid #2a3b59;
    border-radius: 12px;
    background: #101a2a;
    padding: 12px;
    z-index: 45;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.portal-cart-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.portal-cart-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #dbeafe;
    border-bottom: 1px solid #1f2c45;
    padding-bottom: 6px;
}

.portal-cart-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.portal-cart-item-actions .motd-link {
    font-size: 0.82rem;
}

.portal-cart-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.portal-cart-total {
    margin: 10px 0;
    color: #9fb1d3;
}

.portal-cart-group {
    margin-bottom: 10px;
}

.portal-cart-group:last-of-type {
    margin-bottom: 0;
}

.portal-cart-group__title {
    margin: 0 0 6px;
    color: #93a7cc;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.portal-cart-empty {
    margin: 0 0 10px;
    color: #9fb1d3;
}

.portal-user-menu {
    position: relative;
}

.portal-user-menu > summary {
    list-style: none;
    cursor: pointer;
}

.portal-user-menu > summary::-webkit-details-marker {
    display: none;
}

.portal-user-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.portal-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #2a3b59;
}

.portal-user-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #dbeafe;
    background: rgba(42, 59, 89, 0.8);
}

.portal-user-name {
    color: #dbeafe;
    font-weight: 600;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(300px, 84vw);
    border: 1px solid #2a3b59;
    border-radius: 12px;
    background: #101a2a;
    padding: 12px;
    z-index: 45;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
    display: grid;
    gap: 10px;
}

.portal-user-id {
    margin: 0;
    color: #9fb1d3;
    font-size: 0.82rem;
}

.portal-user-points {
    margin: 0;
    color: #dbeafe;
    font-weight: 700;
}

.portal-online {
    color: #b5c6e8;
    font-size: 0.9rem;
}

.portal-section {
    padding: 56px 0;
}

.portal-hero {
    padding-top: 44px;
}

.portal-hero__grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.hero-card,
.project-list,
.panel,
.team-card,
.stat-card {
    border: 1px solid #243049;
    border-radius: 14px;
    background: rgba(14, 20, 33, 0.86);
}

.hero-card {
    padding: 28px;
}

.hero-card__kicker {
    margin: 0;
    color: #93a7cc;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.hero-card h1 {
    margin: 10px 0 14px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: #f8fafc;
}

.hero-card p {
    margin: 0;
    color: #a9bbdc;
    max-width: 62ch;
}

.hero-card__actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-list {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.project-list__item {
    padding: 14px;
    border-radius: 10px;
    background: rgba(29, 41, 63, 0.48);
    border: 1px solid #2e3c5c;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.project-list__item h2 {
    margin: 6px 0 0;
    color: #f8fafc;
    font-size: 1.05rem;
}

.project-list__game,
.project-list__players {
    margin: 0;
    color: #99add2;
    font-size: 0.86rem;
}

.split {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.split h2,
.portal-shell > h2 {
    margin: 0 0 10px;
    color: #f8fafc;
}

.muted {
    margin: 0;
    color: #9fb1d3;
    line-height: 1.7;
}

.panel {
    padding: 24px;
}

.panel--accent {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    border-color: rgba(96, 165, 250, 0.45);
}

.cta-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
}

.portal-btn--primary {
    color: #0b1220;
    background: linear-gradient(90deg, #60a5fa, #38bdf8);
}

.portal-btn--primary:hover {
    filter: brightness(1.06);
}

.portal-btn--outline {
    color: #c7dbff;
    border-color: #345084;
    background: rgba(24, 34, 53, 0.6);
}

.portal-btn--outline:hover {
    background: rgba(39, 56, 86, 0.62);
}

.team-grid,
.stats-grid {
    display: grid;
    gap: 14px;
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.team-card {
    text-decoration: none;
    padding: 18px;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #2a3b59;
    margin-bottom: 0;
    flex: 0 0 auto;
}

.team-card__avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #dbeafe;
    background: rgba(42, 59, 89, 0.8);
}

.team-card__content {
    display: grid;
    gap: 6px;
}

.team-card h3 {
    margin: 0;
    font-size: 1rem;
}

.team-card p {
    margin: 0;
    color: #9fb1d3;
    font-size: 0.9rem;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
    padding: 20px;
    text-align: center;
}

.stat-card__value {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 800;
    color: #f8fafc;
}

.stat-card__label {
    margin: 8px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.82rem;
    color: #9fb1d3;
}

@keyframes stat-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.stat-loading {
    animation: stat-pulse 1.2s ease-in-out infinite;
    color: #4a6080;
}

.portal-footer {
    padding: 24px 0 34px;
    border-top: 1px solid rgba(58, 78, 114, 0.45);
}

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

.portal-footer__inner p {
    margin: 0;
    color: #9fb1d3;
}

.portal-footer__links {
    display: flex;
    gap: 14px;
}

.portal-footer__links a {
    color: #b5c6e8;
    text-decoration: none;
}

.portal-footer__links a:hover {
    color: #f8fafc;
}

.auth-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 15, 0.72);
    display: grid;
    place-items: center;
    z-index: 40;
    padding: 20px;
}

.auth-popup {
    width: min(560px, 100%);
    border: 1px solid #2a3b59;
    border-radius: 14px;
    background: #101a2a;
    padding: 22px;
}

.auth-popup h2 {
    margin: 0 0 10px;
    color: #f8fafc;
}

.auth-popup p {
    margin: 0;
    color: #9fb1d3;
}

.auth-popup__actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid #243049;
}

.shop-server-title {
    padding: 14px 16px;
    font-weight: 700;
    color: #dbeafe;
    border-bottom: 1px solid #243049;
    background: rgba(25, 35, 55, 0.55);
}

.shop-table {
    table-layout: fixed;
}

.shop-table__col-product {
    width: 52%;
}

.shop-table__col-price {
    width: 16%;
}

.shop-table__col-cart,
.shop-table__col-action {
    width: 16%;
}

.shop-table th:nth-child(3),
.shop-table th:nth-child(4),
.shop-table td:nth-child(3),
.shop-table td:nth-child(4) {
    text-align: center;
}

.toast-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 55;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 28px));
}

.shop-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #2a3b59;
    border-radius: 12px;
    background: #101a2a;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.shop-toast p {
    margin: 2px 0 0;
    color: #dbeafe;
}

.shop-toast--hide {
    opacity: 0;
    transform: translateY(12px);
}

.shop-toast--success {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(20, 83, 54, 0.4);
}

.shop-toast--warning {
    border-color: rgba(234, 179, 8, 0.3);
    background: rgba(78, 65, 20, 0.4);
}

.shop-toast--warning p {
    color: #fef3c7;
}

@media (max-width: 980px) {
    .portal-hero__grid,
    .split {
        grid-template-columns: 1fr;
    }

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 780px) {
    .portal-header__inner {
        min-height: auto;
        padding: 12px 0;
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .portal-nav {
        flex-wrap: wrap;
        justify-self: start;
    }

    .portal-header__actions {
        justify-self: start;
    }

    .portal-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Product detail toggle styles */
.shop-product-toggle {
    color: #60a5fa;
    font-weight: 600;
    transition: color 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.shop-product-toggle:hover {
    color: #93c5fd;
}

.shop-product-toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

.shop-product-toggle-icon.open {
    transform: rotate(90deg);
}

.shop-product-details {
    background: rgba(34, 47, 74, 0.2);
    animation: slideDown 0.3s ease-out;
}

.shop-product-details[style*="display: none"] {
    animation: slideUp 0.3s ease-out;
}

.hidden {
    display: none !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 200px;
    }
    to {
        opacity: 0;
        max-height: 0;
    }
}

.shop-product-description-cell {
    padding: 1rem 1.5rem !important;
}

.shop-product-description {
    margin: 0;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.product-modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95) 0%, rgba(30, 10, 40, 0.95) 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #60a5fa;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.product-modal-close:hover {
    color: #93c5fd;
}

#product-modal-name {
    color: #60a5fa;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

#product-modal-description {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Product info button */
.shop-info-btn {
    background: none;
    border: none;
    color: #60a5fa;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    transition: color 0.2s ease;
    vertical-align: middle;
}

.shop-info-btn:hover {
    color: #93c5fd;
}

/* Form base styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #60a5fa;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 0.5rem;
    color: #e5e7eb;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-control::placeholder {
    color: #6b7280;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Forum styles */
.forum-home-section {
    background: transparent;
    border: none;
    padding: 0;
}

.forum-home-intro {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: #d1d5db;
    text-align: center;
}

.forum-dev-notice {
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.forum-dev-notice p {
    margin: 0.5rem 0;
}

.dev-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.3), rgba(249, 115, 22, 0.3));
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.forum-engine-section {
    margin-top: 3rem;
}

.forum-engine-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #60a5fa;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(96, 165, 250, 0.2);
}

.forum-engine-icon {
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
}

.forum-servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.forum-server-card-link {
    text-decoration: none;
}

.forum-server-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(30, 20, 60, 0.4) 100%);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.forum-server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top, rgba(96, 165, 250, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.forum-server-card-link:hover .forum-server-card {
    background: linear-gradient(135deg, rgba(34, 47, 74, 0.8) 0%, rgba(40, 20, 80, 0.6) 100%);
    border-color: rgba(96, 165, 250, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(96, 165, 250, 0.2);
}

.forum-server-card-link:hover .forum-server-card::before {
    opacity: 1;
}

.forum-server-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.forum-server-name {
    color: #60a5fa;
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.forum-server-desc {
    color: #9ca3af;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

.forum-server-cta {
    color: #93c5fd;
    font-weight: 600;
    font-size: 0.95rem;
}

.forum-categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.forum-category-card-link {
    text-decoration: none;
}

.forum-category-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    text-align: left;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    gap: 1.5rem;
}

.forum-category-card-link:hover .forum-category-card {
    background: rgba(34, 47, 74, 0.7);
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-3px);
}

.forum-category-card:hover {
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.15);
}

.forum-category-name {
    color: #60a5fa;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.forum-category-icon {
    font-size: 2rem;
    margin: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forum-section {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.forum-section-title {
    color: #60a5fa;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(96, 165, 250, 0.2);
}

.forum-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forum-post-item {
    display: block;
    background: rgba(20, 30, 48, 0.4);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 0.625rem;
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.forum-post-item:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.forum-post-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.forum-post-item-title {
    color: #f1f5f9;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    flex: 1;
}

.forum-post-item-category {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.forum-post-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    color: #9ca3af;
    font-size: 0.85rem;
}

.forum-post-item-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    object-fit: cover;
    border: 1px solid rgba(96, 165, 250, 0.2);
    flex-shrink: 0;
}

.forum-post-item-avatar-default {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(59, 130, 246, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
    flex-shrink: 0;
}

.forum-post-item-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forum-post-item-author strong {
    color: #b3d9ff;
}

.forum-post-item-date {
    display: flex;
    align-items: center;
}

.forum-post-item-replies {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forum-badge {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    padding: 0.25rem 0.65rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.forum-badge-count {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 0.75rem;
}

.forum-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

.forum-breadcrumb span {
    color: #6b7280;
}

.forum-breadcrumb .motd-link {
    color: #60a5fa;
}

/* Post view styles */
.forum-post-main {
    margin-top: 2rem;
}

.forum-post-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 0.75rem;
    overflow: hidden;
}

.forum-post-header-tpl {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(20, 30, 48, 0.4);
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
    flex-wrap: wrap;
}

.forum-post-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.forum-author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(59, 130, 246, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
    flex-shrink: 0;
}

.forum-author-steam-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
    flex-shrink: 0;
    object-fit: cover;
}

.forum-author-details {
    display: none;
}

.forum-author-role {
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1.5px solid;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.forum-post-date {
    color: #9ca3af;
    font-size: 0.85rem;
    white-space: nowrap;
}

.forum-author-name {
    color: #f1f5f9;
    font-size: 0.95rem;
}

.forum-post-body, .forum-reply-body {
    padding: 1.25rem;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.8;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.forum-replies-section {
    margin-top: 2.5rem;
}

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

.forum-replies-title {
    color: #f1f5f9;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.forum-replies-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.forum-reply-box {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 0.65rem;
    overflow: hidden;
}

.forum-reply-header-tpl {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(20, 30, 48, 0.3);
    border-bottom: 1px solid rgba(96, 165, 250, 0.05);
}

.forum-empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: #6b7280;
}

.forum-empty-state p {
    margin: 0.5rem 0;
}

.forum-empty-state p:first-child {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.forum-header-action {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
}

.forum-header-action div {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.text-center {
    text-align: center;
}

/* Form styles */
.form-help {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.35rem;
}

.forum-form-section {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-top: 2rem;
}

.forum-new-post-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.forum-reply-form-section {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.forum-reply-form {
    margin-top: 1rem;
}

.forum-cta-section {
    background: rgba(96, 165, 250, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.15);
}

.forum-search-section {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.forum-search-form {
    display: flex;
    gap: 1rem;
}

.forum-search-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 0 !important;
}

.forum-search-input {
    flex: 1;
}

.forum-results-section {
    margin-top: 2rem;
}

.forum-results-title {
    color: #f1f5f9;
    font-size: 1.1rem;
    margin: 0 0 1.5rem;
}

.forum-results-title em {
    color: #60a5fa;
    font-style: italic;
    font-weight: 600;
}

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

    .forum-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .forum-header-action {
        flex-direction: column;
        gap: 1rem !important;
    }

    .forum-post-item-header {
        flex-direction: column;
    }

    .forum-post-item-category {
        width: fit-content;
    }

    .forum-search-group {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button,
    .form-actions a {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .forum-categories-grid {
        grid-template-columns: 1fr;
    }

    .forum-post-item-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .forum-breadcrumb {
        flex-wrap: wrap;
    }
}

