:root {
    --bg: #090b10;
    --surface: #11141c;
    --surface-light: #171b25;
    --text: #f2f3f7;
    --muted: #979daa;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --border: rgba(255, 255, 255, 0.08);
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 10%, rgba(139, 92, 246, 0.13), transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(76, 29, 149, 0.10), transparent 30%),
        var(--bg);
}

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

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
}


/* Header */

.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(9, 11, 16, 0.75);
    backdrop-filter: blur(14px);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 10px;
}

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

.nav-link {
    padding: 10px 14px;
    color: var(--muted);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text);
}


/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-weight: 650;
    transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    border-color: transparent;
    background: var(--accent);
    color: white;
}

.button-primary:hover {
    background: var(--accent-light);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.04);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}


/* Hero */

.hero {
    padding: 110px 0 100px;
}

.hero-content {
    max-width: 780px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--accent-light);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 800px;
    font-size: clamp(48px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero-description {
    max-width: 650px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 34px;
}


/* Information */

.info-section {
    padding: 20px 0 100px;
}

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

.info-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.info-card h2 {
    margin: 0 0 12px;
    font-size: 19px;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}


/* Footer */

.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

/* Authentication */

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

.auth-container {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    padding: 38px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(17, 20, 28, 0.82);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
}

.auth-heading {
    margin-bottom: 30px;
}

.auth-heading h1 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -0.03em;
}

.auth-heading p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 650;
}

.form-group input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.form-group input::placeholder {
    color: #686f7e;
}

.form-group input:hover {
    background: rgba(255, 255, 255, 0.055);
}

.form-group input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.13);
}

.auth-submit {
    width: 100%;
    margin-top: 6px;
    cursor: pointer;
    font: inherit;
}

.auth-footer {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

.auth-footer a {
    color: var(--accent-light);
    font-weight: 650;
}

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

.flash-messages {
    margin-bottom: 24px;
}

.flash-message {
    padding: 13px 15px;
    border: 1px solid rgba(248, 113, 113, 0.25);
    border-radius: 10px;
    background: rgba(248, 113, 113, 0.08);
    color: #fca5a5;
    font-size: 14px;
}

/* Dashboard */

.dashboard-page {
    min-height: calc(100vh - 77px);
    padding: 80px 0 100px;
}

.dashboard-hero {
    max-width: 760px;
    margin-bottom: 46px;
}

.dashboard-hero h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.dashboard-hero p {
    max-width: 650px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

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

.dashboard-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.02)
        );
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.3);
    background:
        linear-gradient(
            180deg,
            rgba(139, 92, 246, 0.07),
            rgba(255, 255, 255, 0.025)
        );
}

.dashboard-card-label {
    margin-bottom: 22px;
    color: var(--accent-light);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dashboard-card h2 {
    margin: 0 0 12px;
    font-size: 21px;
}

.dashboard-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.dashboard-coming {
    margin-top: auto;
    padding-top: 28px;
    color: #666d7b;
    font-size: 13px;
    font-weight: 650;
}

/* Community home */

.community-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.community-nav a {
    padding: 10px 11px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 550;
}

.community-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.member-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
}

.community-home {
    padding: 65px 0 24px;
}

.community-welcome {
    margin-bottom: 38px;
}

.community-welcome h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 54px);
    letter-spacing: -0.04em;
}

.community-welcome p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.home-main,
.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-panel {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.panel-heading a {
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 650;
}

.panel-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.featured-news h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.025em;
}

.content-meta {
    margin-top: 10px;
    color: #6f7685;
    font-size: 13px;
}

.featured-news p {
    max-width: 700px;
    margin: 20px 0;
    color: var(--muted);
    line-height: 1.7;
}

.text-link {
    color: var(--accent-light);
    font-weight: 650;
}

.update-list {
    display: flex;
    flex-direction: column;
}

.update-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    border-top: 1px solid var(--border);
}

.update-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.update-item:last-child {
    padding-bottom: 0;
}

.update-item div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.update-item span,
.update-item time {
    color: var(--muted);
    font-size: 13px;
}

.empty-state strong {
    display: block;
    margin-bottom: 7px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.server-placeholder {
    display: flex;
    align-items: center;
    gap: 13px;
}

.server-placeholder div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-placeholder span {
    color: var(--muted);
    font-size: 13px;
}

.status-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #22c55e;
}

.status-dot.offline {
    background: #ef4444;
}

/* News */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 850px;
}

.news-article h2 {
    margin: 10px 0 14px;
    font-size: 26px;
    letter-spacing: -0.02em;
}

.news-article p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    white-space: pre-line;
}

/* News editor */

.article-editor {
    max-width: 850px;
}

.form-group textarea {
    width: 100%;
    min-height: 320px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    resize: vertical;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
    line-height: 1.65;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.form-group textarea::placeholder {
    color: #686f7e;
}

.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.13);
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.editor-actions button {
    cursor: pointer;
    font: inherit;
}

/* Admin article actions */

.admin-article-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-article-actions form {
    margin: 0;
}

.delete-link {
    padding: 0;
    border: 0;
    background: none;
    color: #f87171;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.delete-link:hover {
    color: #fca5a5;
    text-decoration: underline;
}

/* Navigation dropdown */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-button {
    padding: 10px 11px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    font-weight: 550;
    cursor: pointer;
}

.nav-dropdown-button:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-arrow {
    margin-left: 4px;
    font-size: 11px;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #11141c;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        visibility 0.15s ease;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--muted);
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.owner-badge {
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 700;
}

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

/* Member dropdown */

.member-dropdown-menu {
    right: 0;
    min-width: 180px;
}

.member-dropdown-button {
    color: var(--text);
    font-weight: 650;
}

.dropdown-divider {
    height: 1px;
    margin: 6px 4px;
    background: var(--border);
}

.nav-dropdown-menu .logout-menu-link {
    color: #f87171;
}

.nav-dropdown-menu .logout-menu-link:hover {
    color: #fca5a5;
}

/* Profile settings */

.settings-section {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.settings-section-heading {
    margin-bottom: 22px;
}

.settings-section-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.form-help {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.visibility-options {
    display: grid;
    gap: 12px;
}

.visibility-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
}

.visibility-option:hover {
    background: rgba(255, 255, 255, 0.045);
}

.visibility-option input {
    margin-top: 4px;
}

.visibility-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.visibility-content strong {
    color: var(--text);
}

.visibility-content span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

/* Avatar settings */

.profile-avatar-section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.avatar-settings-layout {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 18px;
}

.avatar-current {
    flex-shrink: 0;
}

.avatar-preview-circle {
    width: 110px;
    height: 110px;
    border: 1px solid var(--border);
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.avatar-preview-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview-circle canvas {
    width: 100%;
    height: 100%;
}

.avatar-preview-circle canvas:not([hidden]) {
    display: block;
}

.avatar-preview-circle canvas[hidden] {
    display: none;
}
.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text);
    font-size: 36px;
    font-weight: 750;
}

.avatar-upload-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.avatar-cropper {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.avatar-cropper-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.avatar-cropper-heading strong {
    color: var(--text);
}

.avatar-cropper-heading span {
    color: var(--muted);
    font-size: 13px;
}

.avatar-crop-area {
    width: min(100%, 420px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    background: #090b10;
    cursor: grab;
    touch-action: none;
}

.avatar-crop-area:active {
    cursor: grabbing;
}

.avatar-crop-area canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.avatar-zoom-control {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 420px;
    margin: 18px auto 0;
}

.avatar-zoom-control label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.avatar-zoom-control input {
    flex: 1;
}

.avatar-crop-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    max-width: 420px;
    margin: 18px auto 0;
}

.avatar-ready-message {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 13px;
}

.remove-avatar-form {
    margin-top: 18px;
}

/* Profile page avatar */

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 14px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text);
    font-size: 42px;
    font-weight: 750;
}

.profile-header-info h1 {
    margin: 0;
}

.profile-username {
    margin: 5px 0 0;
    color: var(--muted);
}

/* =========================================================
   GAME MULTISELECT DROPDOWN
   ========================================================= */

.game-multiselect {
    position: relative;
    max-width: 520px;
}

.game-dropdown-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.game-dropdown-button:hover {
    background: rgba(255, 255, 255, 0.055);
}

.game-dropdown-button[aria-expanded="true"] {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.game-dropdown-button .dropdown-arrow {
    margin-left: 15px;
    color: var(--muted);
    transition: transform 0.15s ease;
}

.game-dropdown-button[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}


.game-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 100;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #11141b;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.45);
}

.game-dropdown-menu[hidden] {
    display: none;
}

.game-dropdown-options {
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
}


.game-dropdown-option {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 38px 0 12px;
    border-radius: 7px;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

.game-dropdown-option:hover {
    background: rgba(255, 255, 255, 0.06);
}


.game-dropdown-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


.game-dropdown-option span {
    display: block;
    width: 100%;
}


.game-dropdown-option:has(input:checked) {
    background: rgba(139, 92, 246, 0.12);
}

.game-dropdown-option:has(input:checked)::after {
    content: "✓";
    position: absolute;
    right: 13px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 800;
}


.selected-games {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.selected-games:empty {
    display: none;
}


.selected-game-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

/* =========================================================
   PROFILE GAMES
   ========================================================= */

.profile-games {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.profile-game {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.profile-game:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateY(-1px);
}

.profile-game-name {
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
}

.game-admin-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.game-admin-actions .button {
    padding: 6px 10px;
    min-height: auto;
    font-size: 13px;
    border-radius: 8px;
}

.whitelist-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.whitelist-status-active {
    color: #22c55e;
}

.whitelist-status-inactive {
    color: #9ca3af;
}

.whitelist-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #22c55e;
    border-radius: 6px;
    background: transparent;
    color: #22c55e;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.whitelist-add-button:hover {
    background: #22c55e;
    color: #ffffff;
}

.whitelist-remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #ef4444;
    border-radius: 6px;
    background: transparent;
    color: #ef4444;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.whitelist-remove-button:hover {
    background: #ef4444;
    color: #ffffff;
}

/* =========================================================
   DISCORD COMMUNITY BANNER
   ========================================================= */

.discord-community {
    margin-top: 16px;
    margin-bottom: 24px;
}

.discord-community-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 20px 24px;

    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(88, 28, 135, 0.22),
            rgba(15, 23, 42, 0.78)
        );
}

.discord-community-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.discord-community-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 56px;
    height: 56px;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #5865f2,
        #7c3aed
    );

    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
}

.discord-community-info strong {
    display: block;

    margin-bottom: 5px;

    color: #ffffff;
    font-size: 18px;
}

.discord-community-info p {
    margin: 0;

    color: #aeb4c0;
    font-size: 14px;
    line-height: 1.5;
}

.discord-community-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    min-width: 145px;
    padding: 12px 20px;

    border: 1px solid #8b5cf6;
    border-radius: 8px;

    background: linear-gradient(
        135deg,
        #6d28d9,
        #7c3aed
    );

    color: #ffffff;
    font-weight: 600;
    text-decoration: none;

    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}

.discord-community-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.15);
}

/* =========================================================
   MEMBERS
   ========================================================= */

.members-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.members-search {
    width: 100%;
    max-width: 420px;
}

.members-search input {
    width: 100%;
    padding: 12px 14px;

    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;

    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;

    font-size: 14px;
}

.members-search input::placeholder {
    color: #7f8795;
}

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

.member-card {
    display: flex;
    flex-direction: column;

    min-height: 100%;

    padding: 20px;

    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;

    background: rgba(15, 23, 42, 0.72);

    transition:
        transform 0.15s ease,
        border-color 0.15s ease;
}

.member-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.45);
}

.member-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.member-avatar {
    flex-shrink: 0;

    width: 62px;
    height: 62px;

    border-radius: 50%;
    overflow: hidden;

    border: 2px solid rgba(139, 92, 246, 0.5);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: linear-gradient(
        135deg,
        #6d28d9,
        #312e81
    );

    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

.member-identity {
    min-width: 0;
}

.member-identity h2 {
    margin: 0;

    color: #ffffff;
    font-size: 18px;
    line-height: 1.2;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-username {
    display: block;
    margin-top: 2px;

    color: #8f98a8;
    font-size: 13px;
}

.member-role {
    display: inline-flex;

    margin-top: 7px;
    padding: 3px 8px;

    border-radius: 999px;

    background: rgba(124, 58, 237, 0.16);
    color: #b79cff;

    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-card-body {
    flex: 1;

    margin-top: 18px;
}

.member-bio {
    min-height: 44px;

    margin: 0 0 16px;

    color: #b5bdc9;
    font-size: 14px;
    line-height: 1.55;
}

.member-bio-empty {
    color: #737b89;
}

.member-accounts {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.member-account {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;

    color: #c1c7d0;
    font-size: 13px;
}

.member-account-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    flex-shrink: 0;

    border-radius: 6px;

    background: rgba(124, 58, 237, 0.12);
}

.member-account-icon svg {
    width: 15px;
    height: 15px;
}

.member-account-icon-twitch {
    color: #a970ff;
    background: rgba(145, 70, 255, 0.12);
}

.member-account-icon-steam {
    color: #c7d5e0;
    background: rgba(199, 213, 224, 0.08);
}

.member-account-icon-discord {
    color: #5865f2;
    background: rgba(88, 101, 242, 0.14);
}

.member-account span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-card-footer {
    margin-top: 20px;
}

.member-profile-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 10px 14px;

    border: 1px solid rgba(139, 92, 246, 0.42);
    border-radius: 8px;

    background: rgba(124, 58, 237, 0.08);
    color: #c4b5fd;

    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.member-profile-button:hover {
    background: rgba(124, 58, 237, 0.18);
    border-color: rgba(139, 92, 246, 0.7);
    color: #ffffff;
}
/* =========================================================
   MEMBER PROFILE
   ========================================================= */

.member-profile-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.member-profile-hero {
    padding: 28px;
}

.member-profile-hero-content {
    display: flex;
    align-items: center;
    gap: 22px;
}

.member-profile-avatar {
    width: 110px;
    height: 110px;

    flex-shrink: 0;

    border-radius: 50%;
    overflow: hidden;

    border: 3px solid rgba(139, 92, 246, 0.55);
}

.member-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-profile-identity h1 {
    margin: 6px 0 2px;

    color: #ffffff;
    font-size: 32px;
}

.member-profile-username {
    display: block;

    margin-bottom: 8px;

    color: #8f98a8;
    font-size: 14px;
}

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

.member-profile-about,
.member-profile-accounts {
    padding: 24px;
}

.member-profile-bio {
    margin: 0 0 24px;

    color: #b5bdc9;
    font-size: 15px;
    line-height: 1.65;
}

.member-profile-detail {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 12px 0;

    border-top: 1px solid rgba(148, 163, 184, 0.1);

    color: #c5ccd6;
    font-size: 14px;
}

.member-profile-detail-label {
    color: #7f8795;
}

.member-profile-account-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-profile-account {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px;

    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 9px;

    background: rgba(15, 23, 42, 0.45);
}

.member-profile-account-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    flex-shrink: 0;

    border-radius: 8px;

    background: rgba(124, 58, 237, 0.14);
    color: #a78bfa;

    font-size: 14px;
    font-weight: 700;
}

.member-profile-account-icon svg {
    width: 20px;
    height: 20px;
}

.member-profile-account-icon-twitch {
    color: #a970ff;
    background: rgba(145, 70, 255, 0.14);
}

.member-profile-account-icon-steam {
    color: #c7d5e0;
    background: rgba(199, 213, 224, 0.09);
}

.member-profile-account-icon-discord {
    color: #5865f2;
    background: rgba(88, 101, 242, 0.16);
}.member-profile-account div:last-child {
    min-width: 0;
}

.member-profile-account span {
    display: block;

    margin-bottom: 2px;

    color: #7f8795;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-profile-account strong {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #ffffff;
    font-size: 14px;
}

.member-profile-back {
    padding-top: 4px;
}

.member-role-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.member-private-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.member-private-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

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

.twitch-summary > strong {
    color: #f3f4f6;
    font-size: 14px;
    line-height: 1.5;
}

.twitch-stream-details {
    display: block;
}

.twitch-stream-details summary {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: #a970ff;
    font-size: 13px;
    font-weight: 600;
    list-style: none;
    user-select: none;
}

.twitch-stream-details summary::-webkit-details-marker {
    display: none;
}

.twitch-stream-details summary::after {
    content: "›";
    margin-left: 6px;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.twitch-stream-details[open] summary::after {
    transform: rotate(90deg);
}

.twitch-stream-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.twitch-stream-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(145, 70, 255, 0.08);
    border: 1px solid rgba(145, 70, 255, 0.14);
}

.twitch-stream-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.twitch-stream-info strong {
    color: #f3f4f6;
    font-size: 13px;
}

.twitch-stream-info span {
    color: #9ca3af;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.twitch-stream-item .text-link {
    flex-shrink: 0;
    color: #a970ff;
}

/* Mobile */

@media (max-width: 700px) {
    .navbar {
        min-height: 66px;
    }

    .brand span {
        display: none;
    }

    .nav-link {
        display: none;
    }

    .hero {
        padding: 75px 0 65px;
    }

    .hero h1 {
        font-size: clamp(44px, 15vw, 64px);
    }

    .hero-description {
        font-size: 17px;
    }

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

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

    .info-section {
        padding-bottom: 65px;
    }
    .auth-page {
        padding: 35px 0;
        align-items: flex-start;
    }

    .auth-card {
        padding: 26px 22px;
    }

    .auth-heading h1 {
        font-size: 30px;
    }
    .dashboard-page {
        padding: 50px 0 70px;
    }

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

    .dashboard-hero {
        margin-bottom: 32px;
    }

    .dashboard-hero p {
        font-size: 16px;
    }
    .community-nav {
        display: none;
    }

    .member-nav span {
        display: none;
    }

    .community-home {
        padding: 45px 0 20px;
    }

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

    .community-welcome {
        margin-bottom: 28px;
    }

    .featured-news h2 {
        font-size: 25px;
    }

.discord-community-banner {
    flex-direction: column;
    align-items: stretch;
}

.discord-community-button {
    width: 100%;
}

.member-profile-hero-content {
    flex-direction: column;
    align-items: flex-start;
}

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

.member-profile-identity h1 {
    font-size: 26px;
}
