/* =========================================================
   PIXLECIRCLE
   Main Homepage Styles
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background: #080b12;
    color: #e8edf5;
    line-height: 1.6;
}


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


img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   GLOBAL
   ========================================================= */

:root {

    --bg-main: #080b12;
    --bg-secondary: #0d111b;
    --bg-card: #111722;
    --bg-card-hover: #161d2b;

    --border: #202a3a;
    --border-light: #293548;

    --text-main: #f2f5f9;
    --text-secondary: #9ca8ba;
    --text-muted: #697689;

    --accent: #6c63ff;
    --accent-light: #8d86ff;
    --accent-dark: #5048d9;

    --gaming: #6c63ff;
    --community: #00b894;
    --safe: #ff5c8a;
    --tech: #00a8ff;

    --container: 1240px;
}


.container,
.nav-container,
.footer-container,
.feature-section,
.content-section,
.categories-section {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   BUTTONS
   ========================================================= */

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

    min-height: 44px;
    padding: 0 22px;

    border-radius: 8px;

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

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


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


.button-primary {
    background: var(--accent);
    color: #ffffff;

    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.25);
}


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


.button-outline {
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
}


.button-outline:hover {
    border-color: var(--accent);
    background: rgba(108, 99, 255, 0.08);
}


.button-large {
    min-height: 52px;
    padding: 0 28px;
    font-size: 15px;
}


/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.site-header {
    position: relative;
    z-index: 10;

    background: rgba(8, 11, 18, 0.95);
    border-bottom: 1px solid var(--border);
}


.nav-container {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
}


.brand > span:last-child > span {
    color: var(--accent-light);
}


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

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: var(--accent);
    color: white;

    font-size: 17px;

    box-shadow: 0 0 20px rgba(108, 99, 255, 0.35);
}


.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}


.nav-link {
    padding: 9px 12px;

    color: var(--text-secondary);

    font-size: 14px;
    font-weight: 600;

    border-radius: 6px;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.nav-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}


.nav-link.active {
    color: #ffffff;
    background: rgba(108, 99, 255, 0.12);
}


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


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 500px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 40%,
            rgba(108, 99, 255, 0.25),
            transparent 35%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(0, 168, 255, 0.12),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #080b12 0%,
            #0c1120 50%,
            #080b12 100%
        );

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


.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size: 40px 40px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent
    );
}


.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8,11,18,0.98) 0%,
            rgba(8,11,18,0.72) 45%,
            rgba(8,11,18,0.15) 100%
        );
}


.hero-content {
    position: relative;
    z-index: 2;

    width: min(1240px, calc(100% - 40px));

    margin: 0 auto;

    padding: 90px 0;
}


.hero-label {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--accent-light);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 3px;
}


.hero h1 {
    font-size: clamp(50px, 7vw, 92px);
    line-height: 0.95;

    letter-spacing: -4px;

    color: #ffffff;
}


.hero h1 span {
    color: var(--accent-light);
}


.hero-subtitle {
    margin-top: 22px;

    font-size: 25px;
    font-weight: 700;

    color: #ffffff;
}


.hero-description {
    max-width: 620px;

    margin-top: 14px;

    color: var(--text-secondary);

    font-size: 16px;
}


.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 30px;
}


/* =========================================================
   FEATURE CARDS
   ========================================================= */

.feature-section {
    position: relative;
    z-index: 3;

    margin-top: -55px;
}


.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;
}


.feature-card {
    min-height: 225px;

    padding: 25px;

    background: rgba(17, 23, 34, 0.96);

    border: 1px solid var(--border);

    border-radius: 12px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}


.feature-card:hover {
    transform: translateY(-5px);

    background: var(--bg-card-hover);

    border-color: var(--border-light);
}


.feature-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 10px;

    background: rgba(108, 99, 255, 0.12);

    font-size: 22px;
}


.feature-card h2 {
    margin-bottom: 9px;

    font-size: 20px;
}


.feature-card p {
    color: var(--text-secondary);

    font-size: 14px;
}


.feature-link {
    display: inline-block;

    margin-top: 18px;

    color: var(--accent-light);

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


.gaming-card,
.forums-card {
    border-top: 2px solid var(--gaming);
}


.community-card,
.chat-card {
    border-top: 2px solid var(--community);
}


.safe-card {
    border-top: 2px solid var(--safe);
}


.members-card {
    border-top: 2px solid var(--tech);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.content-section {
    margin-top: 55px;
}


.content-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.8fr)
        minmax(300px, 0.8fr);

    gap: 22px;
}


/* =========================================================
   PANELS
   ========================================================= */

.news-panel,
.side-panel,
.categories-section {
    background: var(--bg-secondary);

    border: 1px solid var(--border);

    border-radius: 12px;
}


.news-panel {
    overflow: hidden;
}


.panel-header {
    min-height: 65px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 22px;

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


.panel-header h2 {
    font-size: 18px;
}


.panel-header a {
    color: var(--accent-light);

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


.panel-header a:hover {
    color: #ffffff;
}


/* =========================================================
   NEWS
   ========================================================= */

.news-item {
    display: grid;

    grid-template-columns: 210px minmax(0, 1fr);

    gap: 20px;

    padding: 20px;

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

    transition: background 0.2s ease;
}


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


.news-item:hover {
    background: rgba(255,255,255,0.025);
}


.news-image {
    min-height: 145px;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            rgba(108,99,255,0.75),
            rgba(0,168,255,0.2)
        );
}


.news-image-two {
    background:
        linear-gradient(
            135deg,
            rgba(0,168,255,0.75),
            rgba(0,184,148,0.2)
        );
}


.news-image-three {
    background:
        linear-gradient(
            135deg,
            rgba(255,92,138,0.7),
            rgba(108,99,255,0.2)
        );
}

.news-image-announcement { height: 145px; min-height: 145px; overflow: hidden; background: #0c1320; }
.news-image-announcement img { display: block; width: 100%; height: 100%; max-height: none; min-height: 0; object-fit: cover; object-position: center; background: #0c1320; }
.news-image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #9d91ff; background: linear-gradient(135deg, rgba(108,99,255,.35), rgba(0,168,255,.18)); font-size: 42px; }

/* Social features */
.notification-menu { position: relative; z-index: 20; }.notification-toggle { position: relative; min-width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; color: var(--text-main); background: #111927; cursor: pointer; font-size: 16px; }.notification-count { position: absolute; top: -7px; right: -7px; min-width: 18px; padding: 2px 5px; border-radius: 999px; color: #fff; background: #f0526a; font-size: 10px; }.notification-panel { position: absolute; top: 50px; right: 0; width: min(340px, 84vw); overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #111927; box-shadow: 0 18px 44px rgba(0,0,0,.35); }.notification-panel > strong { display: block; padding: 14px 15px; border-bottom: 1px solid var(--border); }.notification-panel p { padding: 12px 15px; color: var(--text-secondary); }.notification-item { display: block; padding: 11px 15px; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--text-secondary); font-size: 13px; }.notification-item.is-unread { color: var(--text-main); background: rgba(108,99,255,.1); }.notification-item small { display: block; margin-top: 3px; color: var(--text-muted); }
.social-like { display: inline-flex; align-items: center; gap: 5px; margin-top: 15px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-secondary); background: rgba(16,24,38,.78); cursor: pointer; }.social-like:hover,.social-like.is-liked { color: #ff7193; border-color: rgba(255,113,147,.5); background: rgba(255,113,147,.09); }.thread-title-row { display: flex; align-items: start; justify-content: space-between; gap: 16px; }.thread-title-row .social-like { margin: 0; white-space: nowrap; }.profile-like-button { margin: 16px 0 0; }.social-like-post { margin-top: 18px; }
.announcement-item { cursor: pointer; }.announcement-item:hover { background: rgba(108,99,255,.06); }.social-modal[hidden] { display: none; }.social-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; }.social-modal-backdrop { position: absolute; inset: 0; background: rgba(2,6,13,.77); }.social-modal-content { position: relative; width: min(740px, 100%); max-height: min(88vh, 820px); overflow: auto; padding: 30px; border: 1px solid var(--border); border-radius: 16px; background: #101927; box-shadow: 0 25px 60px rgba(0,0,0,.45); }.social-modal-close { position: absolute; right: 14px; top: 12px; border: 0; color: var(--text-main); background: transparent; font-size: 28px; cursor: pointer; }.announcement-modal-image { display: block; width: 100%; max-height: 300px; margin: 16px 0; border-radius: 10px; object-fit: cover; }.announcement-modal-meta { margin: 8px 0 20px; color: var(--text-muted); }.announcement-full-body { color: var(--text-main); line-height: 1.7; }.social-comments { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }.social-comments h3 { margin-bottom: 12px; }.social-comment { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); }.social-comment p { margin: 4px 0; color: var(--text-main); line-height: 1.45; }.social-comment small { color: var(--text-muted); }.social-avatar { flex: 0 0 34px; width: 34px; height: 34px; overflow: hidden; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #6655ff; }.social-avatar img { width: 100%; height: 100%; object-fit: cover; }.social-comments textarea,.chat-compose textarea { width: 100%; min-height: 80px; margin: 12px 0; padding: 11px; resize: vertical; border: 1px solid var(--border); border-radius: 8px; color: var(--text-main); background: #0d1521; font: inherit; }
.chat-page { max-width: 860px; margin: 0 auto; }.chat-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 18px; }.chat-heading h1 { margin: 4px 0 7px; }.chat-heading p { color: var(--text-secondary); }.chat-status { margin-top: 20px; color: #47da8b; }.chat-messages { height: min(58vh, 600px); overflow-y: auto; padding: 8px 18px; border: 1px solid var(--border); border-radius: 14px; background: #101927; }.chat-message .social-comment { border: 0; }.chat-compose { position: relative; margin-top: 14px; }.chat-compose textarea { margin: 0 0 10px; }
.chat-mention-picker { position: absolute; z-index: 5; bottom: calc(100% + 8px); left: 0; width: min(340px, 100%); overflow: hidden; border: 1px solid #37445c; border-radius: 11px; background: #111a29; box-shadow: 0 16px 36px rgba(0,0,0,.38); }.chat-mention-picker p { margin: 0; padding: 12px 14px; color: var(--text-secondary); font-size: 13px; }.chat-mention-option { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--text-main); background: transparent; cursor: pointer; text-align: left; font: inherit; }.chat-mention-option:hover,.chat-mention-option.active { background: rgba(108,99,255,.18); }.chat-mention-option b,.chat-mention-option small { display: block; }.chat-mention-option small { color: var(--text-muted); font-size: 11px; }.chat-mention-avatar { display: grid; width: 32px; height: 32px; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: #6655ff; font-size: 12px; font-weight: 700; }.chat-mention-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dm-page { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: 650px; overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: #101927; }.dm-sidebar { position: relative; padding: 18px 12px; border-right: 1px solid var(--border); background: #0d1521; }.dm-sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 16px; }.dm-sidebar-header h1 { margin: 0; font-size: 23px; }.dm-sidebar-header p,.dm-search-label { color: var(--text-secondary); font-size: 12px; }.dm-sidebar-header > span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 9px; color: #c3bdff; background: rgba(108,99,255,.15); }.dm-search-label { display: block; padding: 0 4px; }.dm-search-label input { width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #2d3b53; border-radius: 8px; color: var(--text-main); background: #101a29; font: inherit; }.dm-search-results { position: absolute; z-index: 3; top: 116px; right: 12px; left: 12px; overflow: hidden; border: 1px solid #37445c; border-radius: 10px; background: #151f30; box-shadow: 0 14px 30px rgba(0,0,0,.35); }.dm-search-results button,.dm-conversation-item { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 8px; border: 0; color: var(--text-main); background: transparent; cursor: pointer; text-align: left; font: inherit; }.dm-search-results button:hover,.dm-conversation-item:hover,.dm-conversation-item.active { background: rgba(108,99,255,.15); }.dm-search-results small,.dm-conversation-item small { display: block; color: var(--text-muted); font-size: 11px; }.dm-search-results p { margin: 0; padding: 11px; color: var(--text-secondary); font-size: 12px; }.dm-conversations { margin-top: 14px; }.dm-avatar,.dm-header-avatar { display: grid; flex: 0 0 39px; width: 39px; height: 39px; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: #6655ff; font-size: 14px; font-weight: 700; }.dm-avatar img,.dm-header-avatar img { width: 100%; height: 100%; object-fit: cover; }.dm-conversation-text { min-width: 0; flex: 1; }.dm-conversation-text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }.dm-conversation-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.dm-conversation-meta { align-self: stretch; display: flex; flex-direction: column; align-items: end; justify-content: space-between; }.dm-conversation-meta i { display: grid; min-width: 18px; height: 18px; place-items: center; border-radius: 99px; color: #fff; background: #6c63ff; font-size: 10px; font-style: normal; }.dm-conversation { display: flex; min-width: 0; flex-direction: column; }.dm-conversation-header { display: flex; align-items: center; gap: 11px; min-height: 84px; padding: 18px 22px; border-bottom: 1px solid var(--border); }.dm-conversation-header h2 { margin: 0; font-size: 17px; }.dm-conversation-header p { color: var(--text-secondary); font-size: 12px; }.dm-message-list { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 9px; overflow-y: auto; padding: 22px; }.dm-bubble { max-width: min(76%, 520px); padding: 10px 12px; border-radius: 13px; }.dm-bubble p { margin: 0; line-height: 1.45; }.dm-bubble small { display: block; margin-top: 4px; opacity: .72; font-size: 10px; }.dm-bubble.outgoing { align-self: flex-end; border-bottom-right-radius: 3px; color: #fff; background: linear-gradient(135deg,#6258ed,#7a70fa); }.dm-bubble.incoming { align-self: flex-start; border-bottom-left-radius: 3px; color: var(--text-main); background: #1b2637; }.dm-compose { display: flex; align-items: end; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--border); }.dm-compose textarea { min-height: 48px; margin: 0; }.dm-compose .button { flex: 0 0 auto; } @media (max-width: 760px) { .dm-page { grid-template-columns: 1fr; }.dm-sidebar { border-right: 0; border-bottom: 1px solid var(--border); }.dm-conversation { min-height: 540px; }.dm-bubble { max-width: 88%; } }
.chat-mention { color: #a99cff; font-weight: 700; text-decoration: none; }.chat-mention:hover { color: #d0caff; text-decoration: underline; }
.social-delete-comment,.chat-report-button { display: inline-flex; margin: 7px 0 0; padding: 4px 7px; border: 1px solid rgba(255, 110, 135, .42); border-radius: 6px; color: #ffbac6; background: rgba(255, 92, 138, .09); cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }.social-delete-comment:hover,.chat-report-button:hover { color: #fff; background: rgba(255, 92, 138, .22); }.chat-report-button:disabled { opacity: .65; cursor: default; }
.chat-admin-menu { display: inline-block; margin: 6px 0 0 8px; vertical-align: middle; }.chat-admin-menu summary { width: 26px; height: 23px; display: grid; place-items: center; border: 1px solid #37445c; border-radius: 6px; color: #c3bdff; cursor: pointer; list-style: none; }.chat-admin-menu summary::-webkit-details-marker { display: none; }.chat-admin-menu { position: relative; }.chat-admin-menu > div { position: absolute; z-index: 4; top: 28px; left: 0; width: 100px; overflow: hidden; border: 1px solid #3b4964; border-radius: 8px; background: #151e2c; box-shadow: 0 10px 24px rgba(0,0,0,.32); }.chat-admin-menu button { display: block; width: 100%; padding: 7px 9px; border: 0; color: #dce4f4; background: transparent; cursor: pointer; text-align: left; font: inherit; font-size: 11px; }.chat-admin-menu button:hover { background: rgba(108,99,255,.18); }.chat-admin-menu button.danger { color: #ffabb9; }
.rules-hero { display: flex; align-items: center; gap: 18px; margin: 26px 0; }.rules-icon { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 16px; background: rgba(255,92,138,.13); font-size: 28px; }.rules-hero h1 { margin-bottom: 5px; }.rules-hero p { color: var(--text-secondary); }.rules-edit-link { margin-left: auto; white-space: nowrap; }.rules-jump-nav { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }.rules-jump-nav a { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--primary); background: var(--bg-card); font-weight: 700; font-size: 13px; }.rules-content { margin-top: 14px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); scroll-margin-top: 90px; }.rules-content h2 { margin-bottom: 13px; font-size: 20px; }.rules-content > div { color: var(--text-secondary); line-height: 1.75; white-space: normal; }.rules-content small { display: block; margin-top: 17px; color: var(--text-muted); font-size: 12px; } @media (max-width: 650px) { .rules-hero { align-items: flex-start; flex-wrap: wrap; }.rules-edit-link { margin-left: 80px; }.rules-content { padding: 18px; } }


.news-category {
    display: inline-block;

    margin-bottom: 7px;

    color: var(--accent-light);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


.news-category.tech {
    color: var(--tech);
}


.news-category.discussion {
    color: var(--community);
}


.news-content h3 {
    margin-bottom: 8px;

    font-size: 19px;
}


.news-content p {
    color: var(--text-secondary);

    font-size: 13px;
}

.announcement-preview {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.announcement-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 11px;
    padding: 0;
    border: 0;
    color: var(--accent-light);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.announcement-read-more:hover { color: #c5c1ff; text-decoration: underline; }


.news-meta {
    margin-top: 12px;

    color: var(--text-muted);

    font-size: 11px;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    display: flex;
    flex-direction: column;

    gap: 22px;
}


.side-panel {
    overflow: hidden;
}


.online-number {
    padding: 25px 22px 0;

    font-size: 42px;
    font-weight: 900;

    color: #ffffff;
}


.online-label {
    padding: 0 22px;

    color: var(--text-muted);

    font-size: 12px;
}


.avatar-row {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    padding: 20px 22px 22px;
}


.avatar,
.comment-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            #3c8cff
        );

    color: #ffffff;

    font-weight: 800;
}


.avatar {
    width: 34px;
    height: 34px;

    font-size: 12px;

    border: 2px solid var(--bg-secondary);
}


.avatar.more {
    background: var(--bg-card-hover);

    color: var(--text-secondary);

    font-size: 10px;
}

.avatar {
    overflow: hidden;
}

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

.home-online-description,
.home-latest-empty {
    padding: 0 22px 20px;
    color: var(--text-secondary);
    font-size: 12px;
}


/* =========================================================
   COMMENTS
   ========================================================= */

.comment {
    display: flex;

    gap: 12px;

    padding: 17px 20px;

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

    transition: background 0.2s ease;
}

.comment:hover {
    background: rgba(255, 255, 255, 0.025);
}


.comment:last-child {
    border-bottom: 0;
}


.comment-avatar {
    width: 34px;
    height: 34px;

    overflow: hidden;

    font-size: 12px;
}


.comment-content {
    min-width: 0;
}


.comment-content strong {
    display: block;

    margin-bottom: 3px;

    font-size: 12px;
}

.comment-content strong em {
    margin-left: 5px;
    color: var(--accent-light);
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
}


.comment-content p {
    color: var(--text-secondary);

    font-size: 12px;
}


.comment-content small {
    display: block;

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 10px;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.categories-section {
    display: none;
    margin-top: 22px;
    margin-bottom: 70px;

    overflow: hidden;
}


.category-grid {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 0;
}


.category-card {
    display: flex;

    gap: 14px;

    min-height: 145px;

    padding: 20px;

    border-right: 1px solid var(--border);

    transition:
        background 0.2s ease;
}


.category-card:last-child {
    border-right: 0;
}


.category-card:hover {
    background: rgba(108,99,255,0.06);
}


.category-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    background: rgba(108,99,255,0.12);

    font-size: 19px;
}


.category-card h3 {
    margin-bottom: 5px;

    font-size: 14px;
}


.category-card p {
    color: var(--text-secondary);

    font-size: 11px;
}


.category-card small {
    display: block;

    margin-top: 12px;

    color: var(--text-muted);

    font-size: 10px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #06080d;

    border-top: 1px solid var(--border);
}


.footer-container {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 50px;

    padding-top: 55px;
    padding-bottom: 45px;
}


.footer-brand p {
    margin-top: 18px;

    color: var(--text-muted);

    font-size: 13px;
}


.footer-column {
    display: flex;
    flex-direction: column;

    gap: 9px;
}


.footer-column h3 {
    margin-bottom: 8px;

    color: #ffffff;

    font-size: 13px;
}


.footer-column a {
    color: var(--text-muted);

    font-size: 12px;

    transition: color 0.2s ease;
}


.footer-column a:hover {
    color: var(--accent-light);
}


.social-links {
    display: flex;
    flex-direction: column;

    gap: 9px;
}


.footer-bottom {
    padding: 18px 20px;

    border-top: 1px solid var(--border);

    text-align: center;

    color: var(--text-muted);

    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .main-nav {
        display: none;
    }


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


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


    .category-card:nth-child(2n) {
        border-right: 0;
    }


    .category-card {
        border-bottom: 1px solid var(--border);
    }

}


@media (max-width: 850px) {

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


    .sidebar {
        display: grid;

        grid-template-columns:
            1fr 1fr;
    }


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

}


@media (max-width: 650px) {

    .nav-container {
        min-height: 68px;
    }


    .nav-actions .button-outline {
        display: none;
    }


    .hero {
        min-height: 460px;
    }


    .hero-content {
        padding: 70px 0;
    }


    .hero h1 {
        font-size: 52px;
        letter-spacing: -2px;
    }


    .hero-subtitle {
        font-size: 20px;
    }


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


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


    .feature-section {
        margin-top: 20px;
    }


    .news-item {
        grid-template-columns: 1fr;
    }


    .news-image {
        min-height: 180px;
    }

    .news-image-announcement {
        height: 180px;
    }


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


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


    .category-card {
        border-right: 0;
    }


    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}


@media (max-width: 450px) {

    .container,
    .nav-container,
    .footer-container,
    .feature-section,
    .content-section,
    .categories-section {
        width: min(100% - 24px, 1240px);
    }


    .brand {
        font-size: 16px;
    }


    .brand-icon {
        width: 30px;
        height: 30px;
    }


    .nav-actions .button-primary {
        padding: 0 14px;
    }

}

/* ========================================
   USER DROPDOWN
   ======================================== */

.user-dropdown {
    position: relative;
    display: inline-block;
}

/* User button in header */
.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-dropdown-toggle:hover {
    background: rgba(124, 92, 255, 0.10);
    border-color: rgba(124, 92, 255, 0.35);
}

/* Avatar */
.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #6c5ce7, #8b7cff);
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    box-shadow: 0 0 18px rgba(108, 92, 231, 0.35);
}

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

/* Username + profile text */
.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.user-info strong {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.user-info span {
    font-size: 11px;
    color: #8f9bb3;
    margin-top: 3px;
}

/* ========================================
   DROPDOWN MENU
   ======================================== */

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;

    width: 230px;
    padding: 8px;

    background: #111722;
    border: 1px solid #273149;
    border-radius: 14px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(108, 92, 231, 0.12);

    z-index: 1000;

    /* Hidden until JavaScript opens it */
    display: none;
}

/* Dropdown links */
.user-dropdown-menu a {
    display: flex;
    align-items: center;

    width: 100%;
    box-sizing: border-box;

    padding: 11px 12px;

    border-radius: 9px;

    color: #dce3f2;
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.user-dropdown-menu a:hover {
    background: rgba(124, 92, 255, 0.12);
    color: #ffffff;
    transform: translateX(2px);
}

/* ========================================
   DIVIDERS
   ======================================== */

.dropdown-divider {
    height: 1px;
    margin: 7px 4px;

    background: #273149;
}

/* ========================================
   ADMIN PANEL
   ======================================== */

.user-dropdown-menu .admin-link {
    color: #b7aaff;
}

.user-dropdown-menu .admin-link:hover {
    background: rgba(124, 92, 255, 0.18);
    color: #ffffff;
}

/* ========================================
   LOGOUT
   ======================================== */

.user-dropdown-menu .logout-link {
    color: #ff8fa3;
}

.user-dropdown-menu .logout-link:hover {
    background: rgba(255, 92, 120, 0.10);
    color: #ffb0bd;
}

.user-chevron {
    margin-left: 4px;
    color: #8f9bb3;
    font-size: 17px;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.user-dropdown-toggle:hover .user-chevron {
    color: #9b8cff;
}


.user-dropdown.open .user-chevron {
    transform: rotate(180deg);
    color: #9b8cff;
}

.social-editor { width: 100%; }
.social-editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 8px 9px; border: 1px solid var(--border); border-bottom: 0; border-radius: 8px 8px 0 0; background: #111a29; }
.social-editor-toolbar button { min-width: 30px; height: 28px; padding: 3px 7px; border: 1px solid transparent; border-radius: 6px; color: var(--text-secondary); background: transparent; cursor: pointer; font: inherit; font-size: 13px; }
.social-editor-toolbar button:hover { border-color: var(--border-light); color: var(--text-main); background: rgba(108,99,255,.16); }
.social-editor-divider { width: 1px; height: 20px; margin: 0 3px; background: var(--border); }
.social-editor textarea { width: 100%; min-height: 72px; margin: 0; padding: 11px; resize: vertical; border: 1px solid var(--border); border-radius: 0 0 8px 8px; outline: 0; color: var(--text-main); background: #0d1521; font: inherit; }
.social-editor textarea:focus { border-color: var(--accent); }
.chat-compose .button { margin-top: 10px; }
