:root {
  color-scheme: dark;
  --page: #0b0d14;
  --page-soft: #111827;
  --panel: #161b2a;
  --panel-raised: #1b2132;
  --panel-dark: #0f1420;
  --panel-soft: rgba(255,255,255,0.02);
  --border: #2a324a;
  --text: #eef2ff;
  --muted: #9aa7c6;
  --purple: #7d6bff;
  --purple-strong: #9c8dff;
  --green: #42db96;
  --green-soft: rgba(66,219,150,0.15);
  --red: #ff6c7c;
  --red-soft: rgba(255,108,124,0.15);
  --gold: #f3c76d;
  --shadow: rgba(2,4,12,0.54);
  --font: "Trebuchet MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; scroll-padding-top: 85px; }
body { position: relative; min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(ellipse at 80% -5%, rgba(151,125,255,0.22), transparent 30%), radial-gradient(ellipse at 15% 15%, rgba(66,219,150,0.12), transparent 25%), linear-gradient(180deg, #090d15 0%, #0b0e16 100%); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body::before { position: fixed; inset: 0; background: linear-gradient(180deg, rgba(16, 30, 25, 0.05), rgba(12, 14, 20, 0.5)); pointer-events: none; content: ""; }
body.dialog-open { overflow: hidden; }
.nature-ambient { position: fixed; inset: 74px 0 auto 0; height: 220px; pointer-events: none; z-index: 0; opacity: 0.9; }
.nature-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.8; }
.nature-glow-one { width: 360px; height: 360px; left: 8%; top: -20px; background: rgba(96, 213, 155, 0.18); }
.nature-glow-two { width: 420px; height: 420px; right: 8%; top: 20px; background: rgba(129, 109, 255, 0.18); }
.forest { position: absolute; left: -5%; right: -5%; bottom: -18px; height: 150px; opacity: 0.35; }
.forest-back { background: linear-gradient(180deg, rgba(71, 120, 92, 0.26), rgba(14, 19, 26, 0)); clip-path: polygon(0 100%, 0 65%, 7% 76%, 13% 42%, 18% 70%, 25% 34%, 31% 78%, 39% 48%, 46% 72%, 53% 36%, 58% 70%, 66% 38%, 72% 78%, 79% 44%, 87% 76%, 100% 62%, 100% 100%); }
.forest-front { bottom: -28px; height: 120px; background: linear-gradient(180deg, rgba(34, 88, 65, 0.4), rgba(9, 12, 18, 0.08)); clip-path: polygon(0 100%, 0 72%, 10% 53%, 14% 82%, 24% 44%, 30% 74%, 38% 40%, 45% 80%, 56% 37%, 64% 82%, 74% 44%, 80% 74%, 88% 42%, 92% 78%, 100% 60%, 100% 100%); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #a69aff; outline-offset: 3px; }
[hidden] { display: none !important; }

.forum-header { position: sticky; z-index: 20; top: 0; display: flex; height: 74px; align-items: center; gap: 18px; padding: 0 clamp(16px,3vw,40px); border-bottom: 1px solid rgba(127,139,197,0.26); background: rgba(10,12,19,0.82); box-shadow: 0 10px 30px rgba(0,0,0,0.25); backdrop-filter: blur(18px); }
.forum-layout { position: relative; z-index: 1; }
.icon-button { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(143,152,210,0.22); border-radius: 12px; background: rgba(255,255,255,0.02); color: var(--text); font-size: 19px; }
.sidebar-toggle { font-size: 17px; }
.forum-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 24px; font-weight: 900; letter-spacing: -.8px; }
.brand-mark { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgba(255,255,255,0.2); border-radius: 11px; background: linear-gradient(135deg, var(--purple-strong), var(--purple)); color: white; font-size: 21px; box-shadow: 0 8px 18px rgba(122,109,255,0.35); }
.brand-domain { color: #b7adff; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.button { display: inline-flex; min-height: 41px; align-items: center; justify-content: center; gap: 7px; padding: 0 17px; border: 1px solid transparent; border-radius: 11px; font-size: 12px; font-weight: 800; transition: background .16s, border-color .16s, transform .16s, box-shadow .16s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-accent { background: linear-gradient(135deg, var(--purple-strong), var(--purple)); color: white; box-shadow: 0 10px 24px rgba(125,107,255,0.3); }
.button-accent:hover:not(:disabled) { background: linear-gradient(135deg, #a89aff, #8575ff); }
.button-outline { border-color: rgba(143,152,210,0.22); background: rgba(255,255,255,0.02); color: #dad8ff; }
.button-outline:hover { border-color: rgba(125,107,255,0.45); background: rgba(122,109,255,0.08); }
.button-wide { width: 100%; }
.button:disabled { cursor: wait; opacity: .7; }

.forum-layout { min-height: calc(100vh - 74px); }
.forum-sidebar { position: fixed; z-index: 15; top: 74px; bottom: 0; left: 0; display: flex; width: 266px; flex-direction: column; padding: 19px 16px 21px; overflow-y: auto; border-right: 1px solid rgba(145,154,204,0.15); background: rgba(10,12,19,0.88); scrollbar-color: #38384b transparent; scrollbar-width: thin; }
.sidebar-main, .sidebar-categories { display: grid; gap: 5px; }
.sidebar-link { display: flex; min-height: 44px; align-items: center; gap: 12px; padding: 0 13px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: #aaa9db; text-align: left; font-size: 13px; font-weight: 700; }
.sidebar-link > span:first-child { width: 19px; text-align: center; font-size: 15px; }
.sidebar-link:hover, .sidebar-link.is-active { border-color: rgba(125,107,255,0.32); background: rgba(122,109,255,0.08); color: #b8aeff; }
.sidebar-divider { height: 1px; margin: 18px 0; background: rgba(145,154,204,0.12); }
.sidebar-heading { margin: 0 0 11px; padding-left: 9px; color: #7d84b8; font-size: 10px; font-weight: 900; letter-spacing: 1.8px; text-transform: uppercase; }
.sidebar-category { display: flex; min-height: 40px; align-items: center; gap: 10px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #a5a4ce; text-align: left; font-size: 12px; font-weight: 700; }
.sidebar-category:hover, .sidebar-category.is-active { border-color: rgba(145,154,204,0.18); background: rgba(255,255,255,0.02); }
.sidebar-category-icon { width: 20px; font-size: 15px; text-align: center; }
.sidebar-category-count { display: grid; min-width: 23px; height: 22px; place-items: center; margin-left: auto; padding: 0 6px; border-radius: 20px; background: rgba(122,109,255,0.08); color: #a9a0ff; font-size: 10px; }
.sidebar-account { margin-top: auto; padding: 17px 9px 0; border-top: 1px solid rgba(145,154,204,0.12); }
.sidebar-account .sidebar-heading { display: block; padding: 0; }
.sidebar-account p { margin: 8px 0; color: #8f96be; font-size: 11px; line-height: 1.6; }
.text-action { padding: 0; border: 0; background: transparent; color: #a396ff; font-size: 11px; font-weight: 800; }
.text-action:hover { color: #f0edff; }
.sidebar-backdrop { display: none; }

.forum-main { width: min(1120px,calc(100% - 266px)); margin-left: 266px; padding: 39px clamp(20px,4vw,48px) 25px; }
.welcome-row { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding: 23px; overflow: hidden; border: 1px solid rgba(143,152,210,0.18); border-radius: 20px; background: linear-gradient(145deg, rgba(20, 27, 39, 0.95), rgba(13, 17, 28, 0.96)); box-shadow: 0 16px 40px rgba(0,0,0,0.22); }
.welcome-row::before { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(52, 132, 99, 0.12), rgba(150, 124, 255, 0.04), transparent 65%); content: ""; }
.welcome-row > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 9px; color: #8a91c9; font-size: 9px; font-weight: 900; letter-spacing: 1.7px; }
.status-pulse, .online-indicator { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(66,219,150,0.8); }
.welcome-row h1 { margin: 0 0 9px; font-size: clamp(29px,4vw,42px); letter-spacing: -.9px; line-height: 1.1; }
.welcome-row h1 span { color: #a99dff; }
.welcome-copy { max-width: 700px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.create-topic-button { flex: 0 0 auto; min-height: 43px; }

.games-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.game-card { position: relative; overflow: hidden; }
.game-card::before { position: absolute; inset: auto 0 -38px 0; height: 76px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(44, 64, 52, 0.2)); clip-path: polygon(0 100%, 0 57%, 12% 62%, 17% 44%, 25% 60%, 36% 38%, 43% 65%, 51% 32%, 59% 55%, 68% 42%, 76% 68%, 86% 48%, 100% 62%, 100% 100%); opacity: 0.5; content: ""; }
.game-card { position: relative; display: flex; min-height: 184px; flex-direction: column; padding: 17px; overflow: hidden; border: 1px solid rgba(96, 174, 122, 0.4); border-radius: 16px; background: linear-gradient(145deg,#102719,#0d1814 80%); box-shadow: 0 12px 30px rgba(0,0,0,0.18), 0 0 25px rgba(66,219,150,0.08); transition: border-color .18s, transform .18s, box-shadow .18s; }
.game-card::after { position: absolute; right: 3px; bottom: -34px; color: rgba(255,255,255,0.04); font-size: 106px; font-weight: 900; content: "Z"; }
.game-card:hover { transform: translateY(-3px); border-color: rgba(104,189,138,0.7); box-shadow: 0 18px 36px rgba(0,0,0,0.25), 0 0 25px rgba(66,219,150,0.14); }
.game-cs2 { border-color: rgba(214,150,60,0.38); background: linear-gradient(145deg,#221b10,#151821 82%); box-shadow: 0 0 25px rgba(243,199,109,0.06); }
.game-cs2:hover { border-color: rgba(243,199,109,0.6); }
.game-metin { border-color: rgba(202,95,117,0.38); background: linear-gradient(145deg,#2b1219,#171620 82%); box-shadow: 0 0 25px rgba(255,108,124,0.06); }
.game-metin:hover { border-color: rgba(255,108,124,0.6); }
.game-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(86,190,126,0.36); border-radius: 12px; background: rgba(33,79,54,0.65); font-size: 18px; }
.game-cs2 .game-icon { border-color: rgba(222,176,80,0.35); background: rgba(74,58,22,0.7); }
.game-metin .game-icon { border-color: rgba(201,92,109,0.35); background: rgba(78,28,38,0.7); }
.game-live, .game-tag { display: flex; align-items: center; gap: 6px; color: #62d895; font-size: 9px; font-weight: 900; }
.game-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.game-tag { color: #d3a94a; letter-spacing: .5px; }
.game-metin .game-tag { color: #f07287; }
.game-card h2 { position: relative; z-index: 1; margin: 14px 0 5px; font-size: 21px; }
.game-card > p { position: relative; z-index: 1; margin: 0 0 14px; color: #9695b8; font-size: 10px; line-height: 1.6; }
.game-address { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.08); color: #65d998; font-size: 10px; font-weight: 800; }
.game-cs2 .game-address { color: #e7bd63; }
.game-metin .game-address { color: #f27b8e; }

.community-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 16px 0 34px; }
.community-strip > div { display: grid; min-height: 70px; align-content: center; justify-items: center; gap: 5px; border: 1px solid rgba(143,152,210,0.18); border-radius: 13px; background: linear-gradient(145deg,#191d2c,#131821); box-shadow: 0 8px 22px rgba(0,0,0,0.18); }
.community-strip strong { color: #9b8cff; font-size: 21px; }
.community-strip span { color: #8483ae; font-size: 9px; }
.content-section { margin: 27px 0 35px; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.section-title-row .eyebrow { margin-bottom: 5px; }
.section-title-row h2 { margin: 0; font-size: 21px; letter-spacing: -.3px; }
.category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.category-card { min-width: 0; min-height: 131px; padding: 15px; border: 1px solid rgba(143,152,210,0.18); border-radius: 14px; background: linear-gradient(145deg,#191d2c,#131821); box-shadow: 0 8px 22px rgba(0,0,0,0.18); text-align: left; transition: background .16s, border-color .16s, transform .16s, box-shadow .16s; }
.category-card:hover { transform: translateY(-2px); border-color: rgba(125,107,255,0.42); background: linear-gradient(145deg,#20263b,#171d2c); box-shadow: 0 12px 26px rgba(0,0,0,0.25); }
.category-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.category-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: rgba(122,109,255,0.12); font-size: 17px; }
.category-card h3 { margin: 0; font-size: 13px; }
.category-card p { margin: 0 0 11px; color: #8988b6; font-size: 10px; line-height: 1.6; }
.category-count { color: #8e8bc4; font-size: 9px; }
.category-card[data-color="green"] .category-icon { background: rgba(66,219,150,0.12); }
.category-card[data-color="gold"] .category-icon { background: rgba(243,199,109,0.12); }
.category-card[data-color="red"] .category-icon { background: rgba(255,108,124,0.12); }
.category-card[data-color="blue"] .category-icon { background: rgba(115,173,255,0.12); }
.loading-state, .empty-state, .error-state { grid-column: 1/-1; margin: 0; padding: 22px 15px; border: 1px solid rgba(143,152,210,0.18); border-radius: 13px; background: rgba(255,255,255,0.02); color: var(--muted); text-align: center; font-size: 11px; line-height: 1.6; }
.error-state { border-color: rgba(255,108,124,0.25); color: #ffa9b2; }

.topics-heading { align-items: center; margin-bottom: 13px; }
.search-box { display: flex; width: min(240px,45%); min-height: 37px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid rgba(143,152,210,0.18); border-radius: 10px; background: rgba(255,255,255,0.02); color: #a49dff; }
.search-box > span { font-size: 19px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 10px; }
.search-box input::placeholder { color: #77769d; }
.thread-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.topic-filter { min-height: 32px; padding: 0 11px; border: 1px solid rgba(143,152,210,0.18); border-radius: 999px; background: rgba(255,255,255,0.02); color: #c4c1e8; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; transition: all .16s ease; }
.topic-filter:hover { border-color: rgba(125,107,255,0.4); transform: translateY(-1px); }
.topic-filter.is-active { border-color: rgba(125,107,255,0.4); background: linear-gradient(135deg, rgba(122,109,255,0.18), rgba(125,107,255,0.08)); box-shadow: 0 10px 18px rgba(122,109,255,0.13); color: #ece9ff; }
.thread-list { display: grid; gap: 9px; }
.thread-card { display: grid; grid-template-columns: 39px minmax(0,1fr) auto; gap: 12px; padding: 14px; border: 1px solid rgba(143,152,210,0.16); border-radius: 14px; background: linear-gradient(120deg,#191d2c,#141925); box-shadow: 0 8px 22px rgba(0,0,0,0.18); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.thread-card.is-open { border-color: rgba(66,219,150,0.38); background: linear-gradient(120deg, rgba(18, 31, 27, .94), rgba(13, 18, 26, .96)); }
.thread-card.is-locked { border-color: rgba(255,108,124,0.38); background: linear-gradient(120deg, rgba(32, 15, 20, .96), rgba(13, 18, 26, .96)); }
.thread-card.is-pinned:not(.is-locked) { border-color: rgba(243,199,109,0.42); background: linear-gradient(120deg, rgba(44, 37, 25, .92), rgba(13, 18, 26, .96)); }
.thread-card:hover { transform: translateY(-1px); border-color: rgba(125,107,255,0.45); }
.thread-avatar { display: grid; width: 37px; height: 37px; place-items: center; overflow: hidden; border: 1px solid rgba(160,152,255,0.4); border-radius: 50%; background: rgba(39,39,61,0.9); color: #b7aaff; font-size: 11px; font-weight: 900; }
.thread-avatar img, .thread-post-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.thread-content { min-width: 0; }
.thread-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.thread-pin-badge { display: inline-flex; min-height: 20px; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid rgba(243,199,109,0.35); border-radius: 999px; background: rgba(243,199,109,0.1); color: #f3cf83; font-size: 8px; font-weight: 900; letter-spacing: .04em; }
.thread-open { display: inline; padding: 0; border: 0; background: transparent; color: var(--text); text-align: left; font-size: 12px; font-weight: 800; line-height: 1.55; }
.thread-open:hover { color: #d8d3ff; }
.thread-status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.thread-status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255,255,255,.04); }
.thread-status-pill.is-open { border-color: rgba(105,255,176,0.35); background: rgba(47,151,99,0.12); color: #7df0b3; }
.thread-status-pill.is-locked { border-color: rgba(255,128,139,0.32); background: rgba(171,46,60,0.12); color: #ff8ca1; }
.thread-chip { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border-radius: 999px; background: rgba(122,109,255,0.08); border: 1px solid rgba(125,107,255,0.22); color: #b6abff; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.thread-description { display: -webkit-box; margin: 4px 0 8px; overflow: hidden; color: #8988b5; font-size: 10px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.thread-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #8584ad; font-size: 9px; }
.thread-category { padding: 3px 7px; border: 1px solid rgba(144,156,255,0.18); border-radius: 7px; background: rgba(122,109,255,0.08); color: #b1a6ff; }
.thread-stats { display: flex; align-items: center; gap: 10px; align-self: center; color: #9997c6; font-size: 9px; white-space: nowrap; }
.thread-stats span { display: inline-flex; align-items: center; gap: 4px; }

.online-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin: 31px 0; padding: 16px; border: 1px solid rgba(143,152,210,0.18); border-radius: 14px; background: linear-gradient(135deg,#191d2c,#121821); box-shadow: 0 8px 22px rgba(0,0,0,0.18); }
.online-panel > div { display: flex; align-items: center; gap: 8px; }
.online-panel .online-indicator { width: 7px; height: 7px; margin: 0; }
.online-panel h2 { margin: 0; font-size: 12px; }
.online-panel > strong { color: #56db97; font-size: 10px; }
.online-panel > p { grid-column: 1/-1; margin: 0; color: #8887b1; text-align: center; font-size: 10px; }
.online-player-list { grid-column: 1/-1; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.online-player-name { padding: 6px 10px; border: 1px solid rgba(66,219,150,.24); border-radius: 999px; background: rgba(66,219,150,.08); color: #b7f2d3; font-size: 10px; font-weight: 800; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.online-player-name:hover { transform: translateY(-1px); border-color: rgba(66,219,150,.45); background: rgba(66,219,150,.14); color: #e0ffef; }
.online-player-name:focus-visible { outline: 2px solid #65dfa1; outline-offset: 2px; }
.forum-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; padding: 17px 0 5px; border-top: 1px solid rgba(145,154,204,0.12); color: #77769b; font-size: 9px; }
.forum-footer > a, .forum-footer span a { color: #aaa1ff; font-weight: 800; }

.modal-dialog { position: fixed; width: min(510px,calc(100% - 28px)); max-width: 510px; max-height: min(88vh,820px); padding: 28px; overflow-y: auto; border: 1px solid rgba(143,152,210,0.18); border-radius: 18px; background: rgba(16,18,26,0.98); color: var(--text); box-shadow: 0 24px 100px rgba(0,0,0,0.55); }
.modal-dialog::backdrop { background: rgba(4,5,10,0.8); backdrop-filter: blur(5px); }
.modal-dialog h2 { margin: 0 32px 7px 0; font-size: 24px; letter-spacing: -.4px; }
.modal-dialog > .eyebrow { margin: 2px 32px 8px 0; }
.dialog-close-form { position: absolute; top: 13px; right: 13px; }
.dialog-close { width: 34px; height: 34px; font-size: 21px; }
.dialog-description, .dialog-footnote { color: var(--muted); font-size: 10px; line-height: 1.7; }
.dialog-description { margin: 0 0 18px; }
.dialog-footnote { margin: 15px 0 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 16px; padding: 4px; border-radius: 10px; background: rgba(255,255,255,0.02); }
.auth-tab { min-height: 35px; border: 0; border-radius: 8px; background: transparent; color: #9593bc; font-size: 11px; font-weight: 800; }
.auth-tab.is-active { background: linear-gradient(135deg, var(--purple-strong), var(--purple)); color: white; }
.forum-form { display: grid; gap: 9px; }
.forum-form[hidden] { display: none; }
.forum-form label { margin-top: 3px; color: #d3d1eb; font-size: 10px; font-weight: 700; }
.forum-form input, .forum-form textarea, .forum-form select { width: 100%; min-height: 41px; padding: 10px 11px; border: 1px solid rgba(143,152,210,0.18); border-radius: 9px; outline: none; background: rgba(10,13,19,0.9); color: var(--text); font-size: 11px; }
.forum-form textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.forum-form input::placeholder, .forum-form textarea::placeholder { color: #767592; }
.forum-form input:focus, .forum-form textarea:focus, .forum-form select:focus { border-color: rgba(125,107,255,0.5); box-shadow: 0 0 0 3px rgba(125,107,255,0.1); }
.forum-form .button { margin-top: 5px; }
.form-message { margin: 0 0 13px; padding: 10px 11px; border: 1px solid rgba(255,108,124,0.25); border-radius: 8px; background: rgba(255,108,124,0.08); color: #ffa8b2; font-size: 10px; line-height: 1.6; }
.form-message[data-state="success"] { border-color: rgba(66,219,150,0.25); background: rgba(66,219,150,0.08); color: #76e3a9; }

.thread-dialog { width: min(760px,calc(100% - 24px)); max-width: 760px; padding: 25px; }
.thread-detail-head { padding-right: 38px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.thread-detail-head h2 { margin: 0 0 9px; overflow-wrap: anywhere; }
.thread-detail-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 9px; }
.thread-detail-title-row h2 { margin: 0; }
.thread-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.thread-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.thread-detail-actions .button { min-height: 34px; }
.thread-status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid transparent; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.thread-status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255,255,255,.04); }
.thread-status-badge.is-open { border-color: rgba(105,255,176,0.35); background: rgba(47,151,99,0.12); color: #7df0b3; }
.thread-status-badge.is-locked { border-color: rgba(255,128,139,0.32); background: rgba(171,46,60,0.12); color: #ff8ca1; }
.thread-edit-form { margin-top: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-dark); }
.thread-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.thread-posts { display: grid; max-height: 42vh; gap: 9px; margin: 13px 0; padding: 1px 5px 1px 0; overflow-y: auto; }
.thread-post { padding: 12px; border: 1px solid rgba(143,152,210,0.15); border-radius: 11px; background: rgba(255,255,255,0.02); }
.thread-post-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.thread-post-identity { display: flex; min-width: 0; align-items: center; gap: 7px; }
.thread-post-avatar { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; overflow: hidden; border: 1px solid rgba(160,152,255,0.35); border-radius: 50%; background: rgba(39,39,61,0.9); color: #b7aaff; font-size: 8px; font-weight: 900; }
.thread-post-head strong { color: #ac9fff; font-size: 10px; }
.thread-post-head time { color: #777694; font-size: 8px; }
.thread-post p { margin: 0; color: #d1d0e3; font-size: 11px; line-height: 1.75; overflow-wrap: anywhere; white-space: pre-wrap; }
.thread-post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(143,152,210,0.12); }
.thread-post-actions .button { min-height: 31px; padding: 6px 10px; font-size: 9px; }
.post-helpful-button.is-active { border-color: rgba(85,224,160,.45); background: rgba(47,151,99,.16); color: #7df0b3; }
.thread-post-actions .text-action { min-height: 31px; font-size: 9px; }
.thread-post-actions .post-delete-button { min-height: 31px; padding: 6px 10px; font-size: 9px; }
.thread-post .post-action-status { flex-basis: 100%; margin: 0; color: #ff9aa7; font-size: 9px; line-height: 1.5; }
.thread-post .post-action-status[data-state="success"] { color: #76e3a9; }
.post-report-form { flex-basis: 100%; margin-top: 4px; padding: 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-dark); }
.post-report-form textarea { min-height: 75px; }
.thread-report-form { flex-basis: 100%; margin-top: 4px; padding: 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-dark); }
.thread-report-form textarea { min-height: 75px; }
.thread-report-status { flex-basis: 100%; margin: 0; color: #ff9aa7; font-size: 9px; line-height: 1.5; }
.thread-report-status[data-state="success"] { color: #76e3a9; }
.thread-reply-form { padding-top: 12px; border-top: 1px solid var(--border); }
.thread-reply-form .form-message { margin-top: 10px; }
.thread-locked-message { margin: 12px 0 0; color: #9291b6; font-size: 10px; line-height: 1.7; }

:root {
  --page: #0a0e17;
  --panel: #131a27;
  --panel-raised: #192234;
  --panel-dark: #0e1420;
  --border: #293348;
  --text: #f3f5ff;
  --muted: #9aa8c2;
  --purple: #8171ff;
  --green: #55e0a0;
  --font: Inter, "Segoe UI", system-ui, sans-serif;
}

body {
  background:
    radial-gradient(ellipse at 83% 5%, rgba(81,65,165,0.3), transparent 35%),
    radial-gradient(ellipse at 8% 30%, rgba(27,156,131,0.15), transparent 32%),
    var(--page);
  background-attachment: fixed;
}

.forum-header {
  border-color: rgba(120,129,164,0.18);
  background: rgba(10,14,23,0.9);
  box-shadow: 0 12px 32px rgba(2,4,10,0.42);
}

.forum-sidebar {
  border-color: rgba(34,43,61,0.7);
  background: rgba(13,18,29,0.94);
}

.forum-brand { letter-spacing: -.7px; }
.brand-mark {
  border: 1px solid rgba(255,255,255,0.25);
  background: linear-gradient(145deg, #9a89ff, #6855e9);
  box-shadow: 0 6px 18px rgba(102,84,231,0.35), inset 0 1px rgba(255,255,255,0.5);
}

.button-accent {
  background: linear-gradient(135deg, #8877ff, #6956e7);
  box-shadow: 0 8px 20px rgba(101,82,231,0.25), inset 0 1px rgba(255,255,255,0.4);
}

.button-accent:hover:not(:disabled) {
  background: linear-gradient(135deg, #9b8cff, #7664f2);
  box-shadow: 0 10px 24px rgba(101,82,231,0.35), inset 0 1px rgba(255,255,255,0.55);
}

.button-outline {
  border-color: rgba(52,61,82,0.8);
  background: rgba(255,255,255,0.02);
}
  color: #e4e6f8;
}

.welcome-row {
  position: relative;
  min-height: 216px;
  align-items: center;
  padding: clamp(24px, 3.8vw, 40px);
  overflow: hidden;
  isolation: isolate;
  border-color: #3a3b5c;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 88% 12%, #7862df33, transparent 36%),
    radial-gradient(ellipse at 70% 120%, #2fa98720, transparent 42%),
    linear-gradient(125deg, #171d2c, #101722 72%);
  box-shadow: 0 20px 50px #02040a70, inset 0 1px #ffffff12;
}

.welcome-row::before {
  position: absolute;
  z-index: 0;
  top: -170px;
  right: 115px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: #7262ee21;
  content: "";
  filter: blur(28px);
  pointer-events: none;
}

.welcome-row::after {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 37px;
  color: #b7adff0d;
  content: "Z";
  font-size: clamp(170px, 22vw, 260px);
  font-weight: 900;
  letter-spacing: -.12em;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-53%) rotate(8deg);
}

.welcome-row > * { position: relative; z-index: 1; }
.welcome-row .eyebrow { color: #aaa1ef; }
.welcome-row h1 { letter-spacing: -1.6px; }
.welcome-row h1 span {
  background: linear-gradient(105deg, #b9aaff 8%, #8c82ff 50%, #62dbc3 100%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
}

.welcome-copy { color: #a4afc6; }

.game-card {
  min-height: 198px;
  border-radius: 18px;
  box-shadow: 0 14px 34px #02040a55, inset 0 1px #ffffff0a;
}

.game-card::before {
  position: absolute;
  z-index: 0;
  top: -75px;
  right: -65px;
  width: 205px;
  height: 205px;
  border-radius: 50%;
  background: radial-gradient(circle, #4bdc9a24, transparent 68%);
  content: "";
  pointer-events: none;
}

.game-card::after { pointer-events: none; }
.game-cs2::before { background: radial-gradient(circle, #f3bd4b25, transparent 68%); }
.game-metin::before { background: radial-gradient(circle, #ef6d8624, transparent 68%); }
.game-card:hover { box-shadow: 0 18px 40px #02040a70, inset 0 1px #ffffff0d; }

.game-icon {
  border-radius: 13px;
  box-shadow: inset 0 1px #ffffff20, 0 6px 16px #0003;
}

.game-live, .game-tag {
  padding: 6px 9px;
  border: 1px solid #39725480;
  border-radius: 999px;
  background: #0b2119b8;
}

.game-cs2 .game-tag {
  border-color: #8d713b80;
  background: #282111b8;
}

.game-metin .game-tag {
  border-color: #8d465480;
  background: #2b151db8;
}

.community-strip > div {
  position: relative;
  min-height: 78px;
  overflow: hidden;
  border-color: #293348;
  border-radius: 16px;
  background: linear-gradient(145deg, #182131, #111824);
  box-shadow: 0 10px 26px #02040a45, inset 0 1px #ffffff0b;
}

.community-strip > div::before {
  position: absolute;
  top: 0;
  right: 20%;
  left: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #9a8bff80, transparent);
  content: "";
}

.community-strip strong {
  background: linear-gradient(110deg, #b5a8ff, #7d8cff);
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  -webkit-background-clip: text;
}

.community-strip span { color: #9ba8be; }

.category-card {
  position: relative;
  overflow: hidden;
  border-color: #293348;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 100% 0, #ffffff08, transparent 48%),
    linear-gradient(145deg, #182131, #111824);
  box-shadow: 0 10px 26px #02040a40, inset 0 1px #ffffff09;
}

.category-card::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--category-accent, #9585ff);
  content: "";
  opacity: .7;
  transition: opacity .16s, top .16s, bottom .16s;
}

.category-card[data-color="green"] { --category-accent: #55d99a; }
.category-card[data-color="gold"] { --category-accent: #f1c15e; }
.category-card[data-color="red"] { --category-accent: #f17890; }
.category-card[data-color="blue"] { --category-accent: #7cbaff; }
.category-card:hover::before { top: 10px; bottom: 10px; opacity: 1; }
.category-card h3 { font-size: 14px; }
.category-card p, .category-count { color: #9aa8c2; }

.category-icon {
  border: 1px solid #ffffff10;
  box-shadow: inset 0 1px #ffffff10;
}

.thread-card {
  border-color: #293348;
  border-radius: 16px;
  background: linear-gradient(112deg, #171f2d, #111824);
  box-shadow: 0 10px 26px #02040a40, inset 0 1px #ffffff08;
}

.thread-card:hover {
  border-color: #665bb0;
  background: linear-gradient(112deg, #1d2336, #151b2a);
  box-shadow: 0 14px 32px #02040a65, inset 0 1px #ffffff0c;
}

.thread-avatar {
  border-color: #6358a0;
  background: linear-gradient(145deg, #38335c, #211f38);
  box-shadow: inset 0 1px #ffffff1a, 0 5px 14px #0003;
}

.thread-description { color: #a1adc3; }
.thread-meta, .thread-stats { color: #9aa8c2; }

.thread-category {
  border-color: #514783;
  background: #25233d;
  color: #c4baff;
}

.online-panel {
  border-color: #2d3b46;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 0 0, #35bd8615, transparent 42%),
    linear-gradient(135deg, #18222b, #111824);
  box-shadow: 0 12px 30px #02040a45, inset 0 1px #ffffff0b;
}

.online-panel > p { color: #a0afc2; }
.search-box { border-color: #30394c; background: #121926; }
.search-box:focus-within { border-color: #8575f5; box-shadow: 0 0 0 3px #8171ff1f; }

.modal-dialog {
  border-color: #41405f;
  background: linear-gradient(145deg, #1a2030, #111722);
}

.forum-footer { border-color: #273044; }

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c1b6ff;
  font-weight: 800;
}

.profile-link:hover { color: #e2dcff; }
.thread-post-author { color: #c1b6ff; font-size: 10px; text-decoration: none; }
.thread-post-author:hover { color: #e2dcff; }

.forum-layout.is-profile-view .forum-sidebar { display: none; }
.forum-layout.is-profile-view .profile-page { width: min(1280px, 100%); margin: 0 auto; padding: 30px clamp(22px, 4vw, 52px); }

.owner-badge {
  position: relative;
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  overflow: hidden;
  border: 1px solid #f1d88c8c;
  border-radius: 999px;
  background: linear-gradient(110deg, #74552c, #c99c52 42%, #f5df9b 52%, #8d6833 70%, #554126);
  background-size: 220% 100%;
  box-shadow: 0 0 10px #e4b85d5c, 0 0 24px #dca6422b, inset 0 1px #fff3cc70;
  color: #fff4d3;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .25px;
  text-shadow: 0 1px 5px #3b260d;
  white-space: nowrap;
  animation: owner-badge-glow 3.2s ease-in-out infinite;
}

.owner-badge::after {
  position: absolute;
  inset: -50% auto -50% -60%;
  width: 42%;
  background: linear-gradient(90deg, transparent, #fff8df99, transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-22deg);
  animation: owner-badge-shine 4.8s ease-in-out infinite;
}

@keyframes owner-badge-glow {
  0%, 100% { box-shadow: 0 0 8px #e4b85d45, 0 0 19px #dca64220, inset 0 1px #fff3cc70; }
  50% { box-shadow: 0 0 13px #ffe08b9c, 0 0 31px #dca64245, inset 0 1px #fffbe090; }
}

@keyframes owner-badge-shine {
  0%, 58% { left: -60%; }
  82%, 100% { left: 125%; }
}

.profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  min-height: 282px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #343d52;
  border-radius: 20px;
  background: #101722;
  box-shadow: 0 18px 45px #02040a70;
}

.profile-banner {
  position: absolute;
  inset: 0 0 54px;
  background:
    radial-gradient(ellipse at 76% 8%, #a392ff38, transparent 33%),
    radial-gradient(ellipse at 16% 90%, #41ddb52c, transparent 40%),
    linear-gradient(122deg, #263c4b 0%, #242844 46%, #111824 100%);
}
.profile-banner.has-custom-background { background-position: center; background-size: cover; }

.profile-banner::before,
.profile-banner::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.profile-banner::before {
  background:
    linear-gradient(135deg, transparent 55%, #c4b9ff10 55.2%, transparent 68%),
    repeating-linear-gradient(145deg, transparent 0 38px, #ffffff08 39px, transparent 40px 78px);
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}

.profile-banner::after {
  background: linear-gradient(0deg, #101722 0%, #10172206 58%);
}

.profile-hero-owner {
  border-color: #92713f9c;
}

.profile-hero-owner .profile-banner {
  background:
    radial-gradient(ellipse at 78% 6%, #ffd8754d, transparent 33%),
    radial-gradient(ellipse at 12% 80%, #d2994733, transparent 41%),
    linear-gradient(122deg, #51432d 0%, #302c35 48%, #131a25 100%);
}

.profile-avatar {
  position: relative;
  z-index: 1;
  display: grid;
  width: 146px;
  height: 146px;
  margin-bottom: -2px;
  place-items: center;
  border: 5px solid #151c29;
  border-radius: 24px;
  background: linear-gradient(145deg, #6253a0, #252b3b);
  box-shadow: 0 14px 35px #02040a8c, inset 0 1px #ffffff45;
  color: #f4f0ff;
  font-size: 38px;
  font-weight: 950;
}
.profile-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

.profile-hero-owner .profile-avatar {
  background: linear-gradient(145deg, #bf8d3c, #493823);
  box-shadow: 0 0 26px #e7b75045, 0 14px 35px #02040a8c, inset 0 1px #fff4ce75;
}

.profile-identity { position: relative; z-index: 1; min-width: 0; padding-bottom: 11px; }
.profile-identity h2 { margin: 0; overflow-wrap: anywhere; font-size: clamp(26px, 4vw, 40px); letter-spacing: -.8px; }
.profile-identity .owner-badge { margin-top: 11px; }
.owner-badge-large { min-height: 28px; padding: 4px 12px; font-size: 11px; }

.profile-presence {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid #ffffff20;
  border-radius: 10px;
  background: #0c121dc9;
  color: #adb9cb;
  font-size: 10px;
  font-weight: 800;
}

.profile-presence::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #7e899b;
  content: "";
}

.profile-presence.is-online { border-color: #3a916d7a; color: #73e5ad; }
.profile-presence.is-online::before { background: #55e0a0; box-shadow: 0 0 10px #55e0a0a0; }

.profile-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #858fa5;
  font-size: 11px;
}

.profile-breadcrumbs a { color: #c4cce0; font-weight: 800; }
.profile-breadcrumbs a:hover { color: #fff; }
#profile-breadcrumb-name { color: #e8eaff; font-weight: 800; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.profile-stats > div {
  display: grid;
  min-height: 82px;
  align-content: center;
  justify-items: start;
  gap: 6px;
  padding: 12px 18px;
  border: 1px solid #2d3749;
  border-radius: 14px;
  background: linear-gradient(145deg, #192334, #121a27);
  box-shadow: inset 0 1px #ffffff0b;
}

.profile-stats strong { color: #c2b8ff; font-size: 20px; font-variant-numeric: tabular-nums; }
.profile-stats > div:last-child strong { font-size: 13px; }
.profile-hero-owner + .profile-stats strong { color: #f0ce7d; }
.profile-stats span { color: #9aa8c2; font-size: 9px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }

.profile-columns { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(0, 1.8fr); align-items: start; gap: 16px; }
.profile-sidebar { display: grid; gap: 13px; }
.profile-about, .profile-info-card, .profile-activity-card {
  overflow: hidden;
  border: 1px solid #2d3749;
  border-radius: 15px;
  background: linear-gradient(145deg, #171f2d, #111824);
  box-shadow: 0 10px 24px #02040a3d, inset 0 1px #ffffff08;
}

.profile-card-heading {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid #ffffff0c;
  background: #ffffff04;
}

.profile-card-heading > span {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #796be954;
  border-radius: 9px;
  background: #5143ac36;
  color: #c0b5ff;
  font-size: 15px;
}

.profile-hero-owner ~ .profile-columns .profile-card-heading > span {
  border-color: #c89b514d;
  background: #c18b3326;
  color: #f0ce7d;
}

.profile-card-heading h3 { margin: 0; font-size: 13px; }
.profile-about > p { margin: 0; padding: 14px; color: #b2bdd0; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-wrap; }
.profile-info-row { display: flex; justify-content: space-between; gap: 10px; padding: 14px; font-size: 10px; }
.profile-info-row > span { color: #96a2b7; }
.profile-info-row > strong { color: #e0e5f1; }

.profile-activity-list { display: grid; }
.profile-activity-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 17px 18px;
  border-bottom: 1px solid #ffffff0b;
}

.profile-activity-item:last-child { border-bottom: 0; }
.profile-activity-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #514783;
  border-radius: 50%;
  background: #25233d;
  color: #c4baff;
  font-size: 17px;
  font-weight: 800;
}

.profile-activity-item:not(:last-child)::after {
  position: absolute;
  top: 46px;
  bottom: -17px;
  left: 33px;
  width: 1px;
  background: #38364d;
  content: "";
}

.profile-activity-content { min-width: 0; }
.profile-activity-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #9aa8c2; font-size: 9px; }
.profile-activity-category { padding: 3px 7px; border: 1px solid #393457; border-radius: 999px; background: #211f37; color: #bdb1ff; }
.profile-activity-meta time { margin-left: auto; }
.profile-activity-thread { display: block; margin: 8px 0 4px; padding: 0; border: 0; background: transparent; color: #f0efff; text-align: left; font-size: 13px; font-weight: 850; line-height: 1.5; overflow-wrap: anywhere; }
.profile-activity-thread:hover { color: #c1b6ff; }
.profile-activity-content > p { display: -webkit-box; margin: 0; overflow: hidden; color: #9daac0; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.profile-empty-activity, .profile-empty { margin: 0; padding: 24px 18px; color: #9aa8c2; font-size: 11px; line-height: 1.7; text-align: center; }
.profile-empty { display: grid; justify-items: center; gap: 12px; padding: 55px 20px; border: 1px solid #2d3749; border-radius: 15px; background: linear-gradient(145deg, #171f2d, #111824); }
.profile-empty p { margin: 0; }

.profile-edit-form { margin: 0 14px 14px; padding-top: 14px; border-top: 1px solid #30394c; }
.profile-edit-form textarea { min-height: 78px; }
.profile-edit-form .form-message { margin: 0; }
.profile-media-editor { display: grid; gap: 12px; margin: 0 14px 14px; padding-top: 14px; border-top: 1px solid #30394c; }
.profile-media-editor h3, .profile-media-editor p { margin: 0; }
.profile-media-editor h3 { color: #e8e7ff; font-size: 13px; }
.profile-media-editor > p:not(.form-message) { color: #9aa8c2; font-size: 10px; line-height: 1.6; }
.profile-media-control { display: grid; min-width: 0; gap: 7px; }
.profile-media-control > label { color: #c3cbe0; font-size: 10px; font-weight: 800; }
.profile-media-control input[type="file"] { width: 100%; min-width: 0; color: #9aa8c2; font-size: 10px; }
.profile-media-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-media-actions .button { min-height: 33px; padding: 7px 12px; font-size: 9px; }
.profile-media-editor .form-message { margin: 0; }
.profile-youtube-editor { display: grid; gap: 10px; margin: 0 14px 14px; padding-top: 14px; border-top: 1px solid #30394c; }
.profile-youtube-editor h3, .profile-youtube-editor p { margin: 0; }
.profile-youtube-editor h3 { color: #e8e7ff; font-size: 13px; }
.profile-youtube-editor > p { color: #9aa8c2; font-size: 10px; line-height: 1.6; }
.profile-youtube-form { display: grid; gap: 8px; margin: 0; }
.profile-youtube-form label { color: #c3cbe0; font-size: 10px; font-weight: 800; }
.profile-youtube-form input[type="url"] { width: 100%; min-width: 0; }
.profile-youtube-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-youtube-form .form-message { margin: 0; }
.profile-youtube { display: grid; gap: 11px; margin: 0 auto 16px; padding: 17px; max-width: 800px; border: 1px solid #2d3749; border-radius: 15px; background: linear-gradient(145deg, #171f2d, #111824); }
.profile-youtube h3, .profile-youtube p { margin: 0; }
.profile-youtube h3 { color: #e8e7ff; font-size: 14px; }
.profile-youtube-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 11px; background: #05070b; }
.profile-youtube p { color: #9aa8c2; font-size: 10px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .owner-badge, .owner-badge::after { animation: none; }
}

@media (max-width: 760px) {
  .welcome-row { min-height: 0; }
  .welcome-row::after { right: 4px; font-size: 190px; }
  .forum-layout.is-profile-view .forum-sidebar { display: none; }
  .forum-layout.is-profile-view .profile-page { width: 100%; margin: 0; padding: 22px 18px; }
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-hero { grid-template-columns: 104px minmax(0, 1fr); gap: 15px; min-height: 248px; padding: 0 17px 18px; }
  .profile-banner { bottom: 42px; }
  .profile-avatar { width: 104px; height: 104px; border-width: 4px; border-radius: 19px; font-size: 30px; }
  .profile-identity { padding-bottom: 7px; }
  .profile-identity h2 { font-size: 27px; }
  .profile-presence { grid-column: 2; justify-self: start; margin: -7px 0 2px; }
  .profile-columns { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 440px) {
  .welcome-row::after { right: -28px; font-size: 160px; }
  .forum-layout.is-profile-view .profile-page { padding: 18px 12px; }
  .profile-hero { grid-template-columns: 82px minmax(0, 1fr); gap: 12px; min-height: 218px; padding: 0 12px 15px; }
  .profile-avatar { width: 82px; height: 82px; border-radius: 16px; font-size: 24px; }
  .profile-identity h2 { font-size: 22px; }
  .profile-stats { gap: 7px; }
  .profile-stats > div { min-height: 72px; padding: 9px; }
  .profile-stats strong { font-size: 17px; }
  .profile-stats > div:last-child strong { font-size: 11px; }
  .profile-stats span { font-size: 8px; letter-spacing: .4px; }
  .profile-activity-item { grid-template-columns: 29px minmax(0, 1fr); gap: 8px; padding: 14px 11px; }
  .profile-activity-marker { width: 28px; height: 28px; }
  .profile-activity-item:not(:last-child)::after { left: 24px; }
}

@media (min-width: 1386px) {
  .forum-main { margin-right: auto; margin-left: calc(266px + (100vw - 266px - 1120px) / 2); }
}
@media (max-width: 1040px) {
  .forum-sidebar { width: 234px; }
  .forum-main { width: calc(100% - 234px); margin-left: 234px; padding-right: 24px; padding-left: 24px; }
  .games-grid { gap: 9px; }
  .game-card { padding: 13px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  .forum-header { height: 66px; gap: 11px; padding: 0 14px; }
  .forum-brand { gap: 8px; font-size: 19px; }
  .brand-mark { width: 31px; height: 31px; font-size: 18px; }
  .icon-button { width: 38px; height: 38px; }
  .header-actions { gap: 7px; }
  .button { min-height: 37px; padding-right: 11px; padding-left: 11px; font-size: 10px; }
  .forum-sidebar { z-index: 31; top: 66px; width: min(290px,84vw); transform: translateX(-105%); transition: transform .2s ease; }
  .forum-sidebar.is-open { transform: translateX(0); }
  .sidebar-backdrop:not([hidden]) { position: fixed; z-index: 30; inset: 66px 0 0; display: block; background: #05060bbb; }
  .forum-main { width: 100%; margin-left: 0; padding: 27px 18px 22px; }
  .welcome-row { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 17px; padding: 18px; }
  .welcome-row h1 { font-size: 34px; }
  .create-topic-button { min-height: 39px; }
  .games-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .game-card { min-height: 168px; padding: 14px; }
  .game-card h2 { font-size: 18px; }
  .game-card > p { font-size: 10px; }
  .community-strip { gap: 7px; margin-top: 13px; }
  .community-strip > div { min-height: 62px; }
  .community-strip strong { font-size: 18px; }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .category-card { min-height: 126px; }
}
@media (max-width: 440px) {
  .forum-header { gap: 8px; padding: 0 10px; }
  .forum-brand { gap: 6px; font-size: 17px; }
  .header-actions { gap: 5px; }
  .header-actions .button { min-height: 34px; padding: 0 8px; font-size: 9px; }
  .forum-main { padding-right: 14px; padding-left: 14px; }
  .welcome-row { padding: 16px; }
  .welcome-row h1 { font-size: 30px; }
  .welcome-copy { font-size: 11px; }
  .community-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-title-row h2 { font-size: 19px; }
  .search-box { width: min(190px,52%); }
  .games-grid, .category-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 154px; }
  .category-card { min-height: 116px; }
  .thread-card { grid-template-columns: 33px minmax(0,1fr); gap: 9px; padding: 11px; }
  .thread-avatar { width: 32px; height: 32px; font-size: 9px; }
  .thread-open { font-size: 11px; }
  .thread-stats { grid-column: 2; justify-self: start; }
  .modal-dialog { padding: 22px 17px; }
  .thread-dialog { padding: 20px 14px; }
  .thread-dialog .dialog-close-form { top: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.owner-panel-link { color: #d7ceff; }
.owner-panel-link > span:first-child { font-size: 15px; }
.forum-layout.is-admin-view .forum-sidebar { display: none; }
.forum-layout.is-admin-view .admin-page { width: min(920px, 100%); margin: 0 auto; padding: 30px clamp(22px, 4vw, 52px); }
.admin-hero { margin: 0 0 18px; padding: 24px; border: 1px solid #3a3b5c; border-radius: 20px; background: radial-gradient(ellipse at 95% 0, #7862df25, transparent 40%), linear-gradient(125deg, #171d2c, #101722); box-shadow: 0 16px 38px #02040a55, inset 0 1px #ffffff12; }
.admin-hero h1 { margin: 0 0 9px; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.8px; }
.admin-hero > p:last-child { max-width: 720px; margin: 0; color: #a4afc6; font-size: 11px; line-height: 1.7; }
.admin-account-list { display: grid; gap: 12px; }
.admin-account-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 17px; border: 1px solid #293348; border-radius: 16px; background: linear-gradient(145deg, #182131, #111824); box-shadow: 0 10px 26px #02040a40, inset 0 1px #ffffff08; }
.admin-account-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #293348; }
.admin-account-head h2 { margin: 0 0 4px; font-size: 16px; }
.admin-account-head p { margin: 0; color: #9aa8c2; font-size: 10px; }
.admin-account-form { min-width: 0; padding: 12px; border: 1px solid #293348; border-radius: 12px; background: rgba(8, 12, 19, .45); }
.admin-account-form label { margin: 0; color: #c9cce0; font-size: 10px; }
.admin-account-form input { min-width: 0; }
.admin-account-form .button { justify-self: start; margin-top: 0; }
.admin-search-row { display: grid; justify-items: start; gap: 7px; margin: 0 0 14px; }
.admin-search-box { width: min(420px, 100%); min-height: 44px; }
.admin-search-box input { font-size: 11px; }
#admin-results-summary { margin: 0; color: #9aa8c2; font-size: 10px; }
.admin-reports-section { margin-top: 30px; padding-top: 25px; border-top: 1px solid #293348; }
.admin-reports-header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.admin-reports-header .eyebrow { margin: 0 0 5px; }
.admin-reports-header h2 { margin: 0; font-size: 21px; }
#admin-reports-summary { margin: 0; color: #9aa8c2; font-size: 10px; }
.admin-reports-note { margin: 0 0 14px; color: #a4afc6; font-size: 10px; line-height: 1.6; }
.admin-report-list { display: grid; gap: 11px; }
.admin-report-card { min-width: 0; padding: 15px; border: 1px solid #34354f; border-radius: 14px; background: linear-gradient(145deg, #191d2d, #111824); }
.admin-report-card h3 { margin: 0 0 5px; font-size: 13px; overflow-wrap: anywhere; }
.admin-report-context { margin: 0 0 12px; color: #9aa8c2; font-size: 9px; line-height: 1.6; }
.admin-report-card > strong { display: block; margin: 10px 0 5px; color: #c9cce0; font-size: 9px; }
.admin-report-reason { margin: 0; color: #f0efff; font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-report-card blockquote { margin: 0; padding: 10px; border-left: 2px solid #8171ff; border-radius: 0 8px 8px 0; background: rgba(8,12,19,.45); color: #d1d0e3; font-size: 10px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.admin-report-actions .button { min-height: 34px; }
.button-danger { border-color: #833c4b; background: linear-gradient(135deg, #8f3548, #672738); color: #fff0f2; box-shadow: 0 7px 18px #681b2e44; }
.button-danger:hover:not(:disabled) { background: linear-gradient(135deg, #a64055, #793044); }
.admin-account-card > .button-danger { justify-self: end; align-self: end; }
#admin-message { margin: 0 0 14px; }

@media (max-width: 760px) {
  .forum-layout.is-admin-view .admin-page { width: 100%; margin: 0; padding: 22px 18px; }
  .admin-account-card { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 13px; }
  .admin-account-card > .button-danger { justify-self: start; }
  .admin-hero { padding: 19px; }
}

@media (max-width: 440px) {
  .forum-layout.is-admin-view .admin-page { padding: 18px 12px; }
  .admin-hero { padding: 16px; }
  .admin-account-head h2 { font-size: 14px; }
}

.users-page .profile-breadcrumbs { margin-bottom: 20px; }
.users-hero { margin: 0 0 22px; padding: 25px; border: 1px solid #354050; border-radius: 20px; background: radial-gradient(ellipse at 92% 0, #7d6bff24, transparent 38%), linear-gradient(125deg, #17231f, #111824); box-shadow: 0 16px 38px #02040a45, inset 0 1px #ffffff0d; }
.users-hero .eyebrow { margin: 0 0 8px; }
.users-hero h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.7px; }
.users-hero > p:last-child { max-width: 720px; margin: 0; color: #a4afc6; font-size: 11px; line-height: 1.7; }
.users-directory-heading { align-items: end; }
.users-directory-heading .eyebrow { margin: 0 0 5px; }
.users-search-box { width: min(340px, 100%); min-height: 43px; }
.users-search-box input { font-size: 11px; }
.users-summary { min-height: 16px; margin: -5px 0 12px; color: #9aa8c2; font-size: 10px; }
.user-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.user-directory-card { display: grid; min-width: 0; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 11px; padding: 13px; border: 1px solid #293348; border-radius: 14px; background: linear-gradient(145deg, #182131, #111824); box-shadow: 0 8px 20px #02040a35, inset 0 1px #ffffff08; transition: transform .16s, border-color .16s, background .16s; }
.user-directory-card:hover { transform: translateY(-2px); border-color: #786bce; background: linear-gradient(145deg, #20263a, #141b27); }
.user-directory-card.is-online { border-color: #32644f; }
.user-directory-card.is-online:hover { border-color: #55b88a; }
.user-directory-avatar { display: grid; width: 44px; height: 44px; place-items: center; overflow: hidden; border: 1px solid #7469c777; border-radius: 14px; background: linear-gradient(145deg, #393459, #202538); color: #d3ccff; font-size: 12px; font-weight: 900; }
.user-directory-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.user-directory-card.is-online .user-directory-avatar { border-color: #42db9670; background: linear-gradient(145deg, #234438, #1a2830); color: #a9f4ce; }
.user-directory-info { display: grid; min-width: 0; gap: 5px; }
.user-directory-identity { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 7px; }
.user-directory-name { min-width: 0; overflow-wrap: anywhere; color: #e8e7ff; font-size: 12px; }
.user-directory-presence { display: inline-flex; align-items: center; gap: 6px; color: #8e98ae; font-size: 9px; }
.user-directory-presence::before { width: 6px; height: 6px; border-radius: 50%; background: #727b8f; content: ""; }
.user-directory-presence.is-online { color: #83e7b5; }
.user-directory-presence.is-online::before { background: #42db96; box-shadow: 0 0 8px #42db967a; }
.user-directory-last-seen, .user-directory-activity, .user-directory-joined { color: #9aa8c2; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.forum-layout.is-users-view .users-page { min-height: calc(100vh - 74px); }

@media (max-width: 760px) {
  .user-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .users-directory-heading { align-items: stretch; flex-direction: column; }
  .users-search-box { width: 100%; }
  .users-hero { padding: 20px; }
}

@media (max-width: 440px) {
  .user-directory-grid { grid-template-columns: minmax(0, 1fr); }
  .users-directory-heading { align-items: stretch; flex-direction: column; }
  .users-search-box { width: 100%; }
  .users-hero { padding: 17px; }
}
