:root{
  --bg:#070b0f;
  --bg2:#0b1015;
  --panel:#0d1217;
  --panel2:#10161c;
  --panel3:#0a0f14;
  --line:#20272e;
  --line-soft:#171e24;
  --text:#f3f5f7;
  --muted:#8d96a0;
  --muted2:#66717d;
  --gold:#f2bd5c;
  --gold2:#d79a38;
  --gold3:#8d6126;
  --gold-soft:rgba(242,189,92,.10);
  --green:#35e879;
  --red:#f04444;
  --sidebar:246px;
  --radius:9px;
  --shadow:0 14px 40px rgba(0,0,0,.22);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{margin:0;background:radial-gradient(circle at 80% -20%,rgba(226,153,50,.03),transparent 30%),linear-gradient(180deg,#080c10,#080c10 55%,#070b0f);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.45;min-height:100vh}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
::selection{background:rgba(242,189,92,.26);color:#fff}
.ui-icon{width:20px;height:20px;display:block;flex:0 0 auto}
.app-shell{min-height:100vh;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr)}

/* LEFT SIDEBAR */
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);z-index:60;background:linear-gradient(180deg,#090d12,#080d12 72%,#090d12);border-right:1px solid #1a2026;display:flex;flex-direction:column;padding:18px 0 22px;overflow-y:auto}
.brand{height:80px;padding:0 25px;display:flex;align-items:flex-start;gap:15px;border-bottom:1px solid #181e24}
.brand-shield{position:relative;width:33px;height:38px;margin-top:3px;clip-path:polygon(50% 0,100% 17%,93% 72%,50% 100%,7% 72%,0 17%);background:var(--gold);display:grid;place-items:center}
.brand-shield:before{content:"";position:absolute;inset:3px;clip-path:inherit;background:#0a0f14}
.brand-shield span{position:relative;z-index:1;color:var(--gold);font-size:17px;font-weight:900;transform:translateY(-1px)}
.brand-copy strong{display:block;font-size:25px;line-height:1;color:#f6d79b;letter-spacing:.4px;font-weight:800;margin-top:2px}
.brand-copy small{display:block;color:var(--gold);font-size:11px;letter-spacing:3.6px;font-weight:800;margin-top:10px}
.side-nav{padding:13px 13px 0;display:flex;flex-direction:column;gap:2px}
.side-nav a{height:45px;border-radius:7px;padding:0 14px;display:flex;align-items:center;gap:15px;color:#aab2bc;font-size:14px;border:1px solid transparent;transition:.16s}
.side-nav a .ui-icon{width:20px;height:20px;color:#7d8792;stroke-width:1.65}
.side-nav a:hover{background:#0f151a;color:#fff}
.side-nav a.active{background:linear-gradient(90deg,rgba(242,189,92,.13),rgba(242,189,92,.05));color:#f7ca72;border-color:rgba(242,189,92,.12);box-shadow:inset 2px 0 0 var(--gold)}
.side-nav a.active .ui-icon{color:var(--gold)}
.realm-block{margin-top:13px;padding:17px 17px 0;border-top:1px solid #181e24}
.realm-heading{display:flex;align-items:center;justify-content:space-between;color:#7f8994;font-size:10px;letter-spacing:1.8px;font-weight:800;margin:0 1px 12px}
.realm-heading b{font-weight:700;color:#c99343;letter-spacing:0;font-size:10px}
.realm-card{border:1px solid #212a31;border-radius:7px;background:linear-gradient(180deg,#11171d,#0f151b);padding:13px 13px 11px;box-shadow:inset 0 1px 0 rgba(255,255,255,.01)}
.realm-card-top,.realm-card-bottom{display:flex;align-items:center;justify-content:space-between}
.realm-card-top strong{font-size:13px;color:#f0f2f4}.realm-total{display:flex;align-items:center;gap:6px;color:#45dd70;font-weight:800;font-size:12px}.realm-total i{width:6px;height:6px;border-radius:50%;background:#42e472;box-shadow:0 0 8px rgba(66,228,114,.45)}
.realm-card-bottom{margin-top:8px;color:#78828c;font-size:11px}.realm-card-bottom b{color:#3bd86f;font-weight:500}
.play-button{margin-top:20px;height:49px;border-radius:8px;background:linear-gradient(180deg,#f6c876,#efa94b);display:flex;align-items:center;justify-content:center;gap:12px;color:#211509;font-size:16px;font-weight:800;box-shadow:0 8px 24px rgba(238,170,75,.12);transition:.16s}
.play-button:hover{filter:brightness(1.05);transform:translateY(-1px)}.play-button .ui-icon{width:19px;height:19px;stroke-width:2}
.sidebar-community{margin-top:auto;padding:0 20px}.side-section-title{font-size:10px;letter-spacing:1.8px;color:#727c87;font-weight:700;margin-bottom:11px}
.discord-link{display:flex;align-items:center;gap:12px}.discord-link>.ui-icon{width:33px;height:33px;color:#7677ff;stroke-width:1.6}.discord-link strong{display:block;color:#eceff3;font-size:14px;font-weight:650}.discord-link small{display:block;color:#76808a;font-size:11px;margin-top:2px}

/* TOP BAR */
.main-content{grid-column:2;min-width:0}.topbar{height:70px;position:sticky;top:0;z-index:50;background:rgba(8,12,16,.95);backdrop-filter:blur(14px);border-bottom:1px solid #191f25;display:flex;align-items:center;justify-content:space-between;padding:0 26px 0 28px}
.top-search{width:370px;height:38px;border:1px solid #252a2f;border-radius:6px;background:#0e1216;display:flex;align-items:center;overflow:hidden}
.top-search input{border:0!important;background:transparent!important;box-shadow:none!important;height:100%!important;min-width:0;flex:1;color:#dbe0e4;padding:0 12px;font-size:12px;outline:0}.top-search input::placeholder{color:#6e747a}.top-search button{width:42px;height:100%;border:0;background:transparent;color:var(--gold);display:grid;place-items:center}.top-search button .ui-icon{width:18px;height:18px}
.top-actions{display:flex;align-items:center;gap:18px}.notification-button{position:relative;color:#d6a84f}.notification-button .ui-icon{width:24px;height:24px}.notification-button>span{position:absolute;right:-7px;top:-7px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#f03431;color:white;font-size:10px;font-weight:800;border:2px solid #0a0e12}
.account-chip{display:flex;align-items:center;gap:8px}.account-avatar{width:37px;height:37px;border-radius:5px;background:linear-gradient(145deg,#202a33,#0d1115);border:1px solid #313943;display:grid;place-items:center;color:#f0c264;font-weight:900;box-shadow:inset 0 0 18px rgba(242,189,92,.08)}.account-chip strong{font-size:13px;font-weight:650}.account-caret{color:#d9a548;font-size:16px;margin-left:1px}.logout-button{width:40px;height:40px;border-radius:6px;border:1px solid rgba(242,189,92,.22);background:rgba(242,189,92,.08);display:grid;place-items:center;color:#e8ad49}.logout-button .ui-icon{width:18px;height:18px}.top-login{font-size:13px;color:#c8ced4}.top-register{height:36px;padding:0 14px;border:1px solid rgba(242,189,92,.25);background:rgba(242,189,92,.08);color:#f2bd5c;border-radius:6px;display:flex;align-items:center;font-size:12px;font-weight:700}

/* HOME */
.content-wrap{width:100%;max-width:none;margin:0 auto;padding:0 clamp(16px,2vw,36px) 48px}.alert{border:1px solid #29313a;border-radius:8px;padding:11px 14px;margin:12px 0;background:#11171d}.alert.error{border-color:rgba(240,68,68,.34);background:rgba(240,68,68,.08);color:#f6a5a5}.alert.success{border-color:rgba(53,232,121,.28);background:rgba(53,232,121,.07);color:#9ce3b7}.alert.fade{opacity:.15}
.forum-hero{position:relative;border:1px solid #232a31;border-radius:9px;overflow:hidden;background:#0a0f13;box-shadow:var(--shadow)}
.home-hero{height:220px;margin-top:0;background-image:url('../img/forum-hero.webp');background-size:auto 100%;background-position:right center;background-repeat:no-repeat}
.home-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0c1116 0%,#0c1116 29%,rgba(11,15,20,.94) 39%,rgba(11,15,20,.42) 60%,rgba(11,15,20,.03) 78%)}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.05));pointer-events:none}.hero-content{position:relative;z-index:2;height:100%;padding:27px 28px 22px;display:flex;flex-direction:column;align-items:flex-start}.hero-breadcrumb{display:flex;align-items:center;gap:9px;color:#959da5;font-size:12px;margin-bottom:21px}.hero-breadcrumb .ui-icon{width:14px;height:14px;color:var(--gold)}.hero-breadcrumb a{color:#efbe5d}.hero-breadcrumb b{font-size:17px;color:#6f767e;font-weight:400}.hero-content h1{font-size:36px;line-height:1;letter-spacing:.4px;margin:0;color:#f6d69c;font-weight:800;text-shadow:0 2px 16px rgba(0,0,0,.45)}.hero-content>p{margin:9px 0 0;color:#f0f1f2;font-size:14px;text-shadow:0 2px 12px rgba(0,0,0,.75)}.hero-stats{display:flex;align-items:stretch;gap:0;margin-top:auto}.hero-stat{display:flex;align-items:center;gap:11px;min-width:145px;padding-right:25px;margin-right:25px;border-right:1px solid rgba(255,255,255,.08)}.hero-stat:last-child{border-right:0}.hero-stat>.ui-icon{width:26px;height:26px;stroke-width:1.8}.gold-stat>.ui-icon{color:var(--gold)}.online-stat>.ui-icon{color:#55f083;filter:drop-shadow(0 0 5px rgba(53,232,121,.35))}.hero-stat span{display:block}.hero-stat strong{display:block;font-size:21px;line-height:1.05;color:#f2f3f4;font-weight:760}.hero-stat small{display:block;color:#8c949c;font-size:11px;margin-top:4px}
.home-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px;margin-top:16px;align-items:start}.home-forum-column{display:flex;flex-direction:column;gap:14px}.home-category-card,.widget-card,.topic-list-card,.form-card,.post-card,.reply-box,.profile-card{background:linear-gradient(180deg,#0d1217,#0b1015);border:1px solid #242b32;border-radius:9px;box-shadow:0 10px 30px rgba(0,0,0,.16);overflow:hidden}.home-category-titlebar{height:49px;padding:0 18px;border-bottom:1px solid #1f262d;display:flex;align-items:center;gap:12px;background:linear-gradient(180deg,#10151a,#0c1116)}.category-heading-icon{color:var(--gold)}.category-heading-icon .ui-icon{width:23px;height:23px;stroke-width:1.85}.home-category-titlebar h2{margin:0;color:#f0c567;font-size:14px;letter-spacing:.7px;font-weight:800}.forum-list{display:flex;flex-direction:column}.forum-row{min-height:59px;display:grid;grid-template-columns:44px minmax(200px,1fr) 77px 77px minmax(245px,285px) 22px;align-items:center;gap:12px;padding:8px 14px 8px 18px;border-bottom:1px solid #1b2228;transition:.15s}.forum-row:last-child{border-bottom:0}.forum-row:hover{background:#10161b}.forum-icon{width:40px;height:40px;border-radius:7px;background:linear-gradient(145deg,rgba(208,145,49,.20),rgba(115,73,24,.16));border:1px solid rgba(231,168,69,.18);display:grid;place-items:center;position:relative;color:#f1b957;box-shadow:inset 0 0 15px rgba(231,168,69,.04)}.forum-icon:after{font-size:19px;font-weight:800}.icon-general:after{content:"◈"}.icon-news:after{content:"♟"}.icon-support:after{content:"◉"}.icon-guide:after{content:"▤"}.icon-trade:after{content:"◇"}.icon-guild:after{content:"⌾"}.icon-event:after{content:"⚔"}.icon-offtopic:after{content:"☁"}.icon-bug:after{content:"✹"}.icon-report:after{content:"⚠"}.icon-idea:after{content:"✦"}.forum-row-main{min-width:0}.forum-row-main h3{margin:0 0 3px;font-size:13px;line-height:1.2;color:#f0f2f4;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.forum-row-main p{margin:0;color:#8a939d;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.forum-row-count{text-align:center}.forum-row-count strong{display:block;color:#d0d5da;font-size:13px;font-weight:500}.forum-row-count span{display:block;color:#737d87;font-size:10px;margin-top:2px}.forum-last-post{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:10px;min-width:0}.last-avatar,.mini-square-avatar{width:42px;height:42px;border-radius:6px;display:grid;place-items:center;color:#f6c765;font-weight:900;border:1px solid #815127;background:radial-gradient(circle at 50% 30%,#623117,#20120d 72%);box-shadow:inset 0 0 18px rgba(238,170,67,.12)}.empty-avatar{filter:grayscale(.5);opacity:.65}.forum-last-post div{min-width:0}.forum-last-post strong{display:block;font-size:11px;line-height:1.15;color:#e9ecef;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.forum-last-post span,.forum-last-post small{display:block;color:#87919a;font-size:10px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.forum-last-post small{color:#747e87}.row-chevron{color:#e9a839}.row-chevron .ui-icon{width:18px;height:18px}
.home-sidebar{display:flex;flex-direction:column;gap:10px}.widget-card{padding:0}.widget-title{height:45px;border-bottom:1px solid #1e252c;display:flex;align-items:center;padding:0 16px;color:#f0c15e}.widget-title>span,.widget-title>div>span{display:grid;place-items:center}.widget-title .ui-icon{width:19px;height:19px;stroke-width:1.8}.widget-title h3{margin:0;font-size:12px;letter-spacing:.5px;font-weight:800}.widget-title-action{justify-content:space-between}.widget-title-action>div{display:flex;align-items:center;gap:10px}.widget-title-action>a{font-size:10px;color:#eab34d}.widget-title-action>a b{font-size:12px}.players-table-head{display:grid;grid-template-columns:32px 1fr 55px 55px;gap:5px;padding:8px 13px 6px;color:#79838d;font-size:10px}.players-table-head span:nth-child(n+3){text-align:center}.players-list{padding:0 12px 10px}.player-row{height:35px;display:grid;grid-template-columns:32px 1fr 55px 55px;gap:5px;align-items:center;border-top:1px solid rgba(255,255,255,.018)}.rank-badge{width:27px;height:27px;border-radius:5px;display:grid;place-items:center;background:#1c2228;border:1px solid #303840;color:#b8c0c7;font-size:11px}.rank-1{background:linear-gradient(145deg,#9c6418,#52330e);border-color:#bc7b23;color:#ffe0a2;box-shadow:0 0 12px rgba(224,150,43,.12)}.rank-2{background:linear-gradient(145deg,#48515a,#252b31);border-color:#5c6670;color:#e1e6ea}.rank-3{background:linear-gradient(145deg,#633615,#2e1b10);border-color:#74441d;color:#e6b077}.player-name{display:flex;align-items:center;gap:8px;min-width:0}.player-name i{width:27px;height:27px;border-radius:5px;display:grid;place-items:center;background:#171d22;border:1px solid #313942;color:#e5a94b;font-style:normal;font-size:10px;font-weight:900}.player-name strong{font-size:11px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-row>b{text-align:center;font-size:11px;color:#e5e7e9;font-weight:600}.latest-posts-list{padding:0 12px 8px}.latest-posts-list>a{min-height:50px;display:grid;grid-template-columns:36px 1fr;align-items:center;gap:8px;border-bottom:1px solid #181f25}.latest-posts-list>a:last-child{border-bottom:0}.latest-posts-list .mini-square-avatar{width:34px;height:34px;font-size:10px}.avatar-tone-2{background:radial-gradient(circle at 50% 30%,#284f24,#0d1c0b 75%);border-color:#527d30;color:#a7d568}.avatar-tone-3{background:radial-gradient(circle at 50% 30%,#774727,#241510 75%);border-color:#81512c;color:#ffca9d}.avatar-tone-4{background:radial-gradient(circle at 50% 30%,#7e2d25,#21100f 75%);border-color:#8b3b32;color:#ffd0c4}.avatar-tone-5{background:radial-gradient(circle at 50% 30%,#224d7c,#0b1522 75%);border-color:#315e8c;color:#afdbff}.latest-posts-list strong{display:block;font-size:11px;color:#eceef0;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.latest-posts-list span{display:block;color:#818b94;font-size:9.7px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.widget-empty{padding:22px;color:#76808a;font-size:11px;text-align:center}.forum-stat-list{padding:10px 16px 12px}.forum-stat-list>div{display:flex;align-items:center;justify-content:space-between;padding:4px 0}.forum-stat-list span{font-size:11px;color:#89929c}.forum-stat-list strong{font-size:11px;color:#f0bf58;font-weight:800}
.footer{border-top:1px solid #181f25;min-height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 25px;color:#66717b;font-size:10px}

/* SHARED INNER-PAGE DESIGN */
.eyebrow{color:var(--gold);font-size:10px;letter-spacing:1.6px;font-weight:800;text-transform:uppercase}.muted{color:var(--muted)}
.button{display:inline-flex;align-items:center;justify-content:center;height:38px;border-radius:6px;border:1px solid #2a3239;padding:0 15px;background:#151c22;color:#e5e8eb;font-size:11px;font-weight:800}.button.primary{background:linear-gradient(180deg,#f2c16d,#dfa348);border-color:#e1aa50;color:#211609}.button.ghost:hover{border-color:#555f68}.button.full{width:100%}.tiny-button{height:29px;padding:0 10px;font-size:9px}
.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding:24px 2px 18px}.page-heading h1{font-size:28px;margin:5px 0 3px;color:#f5d69c}.page-heading p{margin:0;color:#8b949d;font-size:11px}.backline{font-size:10px;color:#8c959e;margin-bottom:8px}.backline a:hover{color:var(--gold)}
.topic-list-card{overflow:hidden}.topic-list-head{height:38px;padding:0 16px;display:grid;grid-template-columns:1fr 80px 145px;align-items:center;background:#0e1419;border-bottom:1px solid #1e252c;color:#727c86;text-transform:uppercase;font-size:8px;letter-spacing:1.1px}.topic-row{min-height:72px;padding:13px 16px;display:grid;grid-template-columns:1fr 80px 145px;align-items:center;border-bottom:1px solid #1b2228;transition:.15s}.topic-row:last-child{border-bottom:0}.topic-row:hover{background:#11171d}.topic-main{display:flex;align-items:center;gap:11px;min-width:0}.topic-main h3{margin:0 0 4px;font-size:12px}.topic-main p{margin:0;color:#75808a;font-size:9px}.topic-status{width:31px;height:31px;display:grid;place-items:center;border-radius:6px;background:rgba(242,189,92,.08);color:var(--gold);border:1px solid rgba(242,189,92,.18);font-size:10px}.topic-status.locked{color:#a7afb8}.reply-count{font-size:12px;color:#c1c7cc}.last-topic-post strong{display:block;font-size:10px}.last-topic-post span{display:block;color:#737d86;font-size:9px}.tag{font-size:7px;background:rgba(242,189,92,.1);border:1px solid rgba(242,189,92,.2);color:var(--gold);padding:2px 5px;border-radius:9px;margin-left:6px;vertical-align:1px}.muted-tag{color:#97a1ab;border-color:#35404a;background:#151d24}.empty-state{text-align:center;padding:44px 20px;color:#77828e}.empty-state h3{color:#cdd3d9;margin:0 0 5px;font-size:13px}.empty-state p{font-size:9px;margin:0}.pagination{display:flex;gap:6px;justify-content:center;margin-top:16px}.pagination a{min-width:30px;height:30px;display:grid;place-items:center;border:1px solid #283038;background:#111820;border-radius:6px;font-size:9px;color:#89949f}.pagination a.active{background:var(--gold);color:#17120b;border-color:var(--gold)}
.posts-stack{display:flex;flex-direction:column;gap:11px}.post-card{display:grid;grid-template-columns:150px 1fr}.post-author{padding:20px 14px;background:#0e1419;border-right:1px solid #1e252c;text-align:center;display:flex;flex-direction:column;align-items:center}.avatar{border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#28323d,#1c242d);border:1px solid #394655;color:#e8edf2;font-weight:800}.avatar.small{width:29px;height:29px;font-size:10px}.avatar.tiny{width:23px;height:23px;font-size:8px}.avatar.gold{width:38px;height:38px;background:linear-gradient(145deg,#d6a55d,#6f4c20);border-color:#b57b34;color:#1a1208}.avatar.large{width:58px;height:58px;font-size:19px}.admin-avatar{background:linear-gradient(145deg,#e6b465,#66441d);border-color:#d4a255;color:#171007}.post-author .avatar{margin-bottom:8px}.post-author strong{font-size:11px}.post-author span{font-size:8px;color:var(--gold);margin-top:2px}.post-author small{font-size:7px;color:#66727d;margin-top:9px}.post-body{padding:15px 18px 22px;min-width:0}.post-topline{display:flex;justify-content:space-between;padding-bottom:11px;border-bottom:1px solid #1e252c;color:#66717c;font-size:8px}.post-text{padding-top:16px;font-size:11px;color:#c7ced5;line-height:1.75;overflow-wrap:anywhere}.reply-box{padding:16px;margin-top:15px}.reply-box h3{font-size:12px;margin:0 0 10px}.login-callout{padding:18px;text-align:center;background:#111820;border:1px solid #252d35;border-radius:8px;margin-top:15px;color:#7f8a96;font-size:10px}.login-callout a{color:var(--gold)}
.form-card{padding:18px}.narrow-card{max-width:850px}.form-card h3{font-size:13px;margin:0 0 14px}.form-card form,.auth-card form{display:flex;flex-direction:column;gap:12px}label{display:flex;flex-direction:column;gap:5px;color:#89949f;font-size:9px;font-weight:700}input,textarea,select{width:100%;background:#0d1319;border:1px solid #29323c;border-radius:7px;color:#e7ebef;padding:10px 11px;outline:0;transition:.15s}input{height:40px}textarea{resize:vertical;min-height:100px;line-height:1.55}select{height:40px}input:focus,textarea:focus,select:focus{border-color:#9c713c;box-shadow:0 0 0 2px rgba(242,189,92,.08)}.form-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:2px}.form-actions .muted{font-size:8px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-card hr,.auth-card hr{width:100%;height:1px;border:0;background:#1e252c;margin:2px 0}
.auth-wrap{min-height:calc(100vh - 170px);display:grid;place-items:center;padding:30px 0}.auth-card{width:min(450px,100%);padding:26px;background:linear-gradient(180deg,#111820,#0e141a);border:1px solid #29323c;border-radius:10px;box-shadow:0 20px 65px rgba(0,0,0,.3)}.wide-auth{width:min(560px,100%)}.auth-card h1{font-size:25px;margin:5px 0 5px;color:#f4d193}.auth-card>p{font-size:9px;color:#7c8793;margin:0 0 18px}.auth-foot{text-align:center;margin-top:14px;color:#78838f;font-size:9px}.auth-foot a{color:var(--gold)}
.profile-card{overflow:hidden}.profile-banner{height:90px;background:radial-gradient(circle at 70% 20%,rgba(242,189,92,.22),transparent 28%),linear-gradient(120deg,#171e26,#0f151b)}.profile-head{display:flex;align-items:flex-end;gap:15px;padding:0 22px 20px;margin-top:-26px}.profile-avatar{width:76px;height:76px;font-size:24px;border:4px solid #11171e}.profile-head h1{font-size:21px;margin:0 0 3px}.profile-head p{margin:5px 0 0;color:#77828d;font-size:8px}.status-pill{display:inline-flex;border:1px solid rgba(242,189,92,.25);background:rgba(242,189,92,.08);color:var(--gold);padding:3px 7px;border-radius:12px;font-size:7px;font-weight:800}.profile-stats{display:flex;border-top:1px solid #1e252c;padding:13px 22px;gap:35px}.profile-stats strong{display:block;font-size:14px}.profile-stats span{display:block;color:#6e7984;font-size:8px}.profile-activity{margin-top:15px;padding:14px}.activity-list{padding-top:6px}.activity-list a{display:block;padding:9px 2px;border-bottom:1px solid #1e252c}.activity-list strong{display:block;font-size:9px}.activity-list span{display:block;color:#687480;font-size:8px;margin-top:2px}.search-form{display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important}.topic-list-head.single{grid-template-columns:1fr}.search-row{grid-template-columns:1fr auto}.search-results{margin-top:14px}
.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.admin-list{padding:6px 14px 14px}.admin-list>div{padding:10px 2px;border-bottom:1px solid #1e252c;display:flex;justify-content:space-between;gap:12px}.admin-list strong{font-size:10px}.admin-list span{display:block;color:#6f7b86;font-size:8px;margin-top:2px}.admin-topic{align-items:center}.admin-actions{display:flex!important;gap:5px}.admin-actions form{margin:0}
.installer-body{min-height:100vh;display:grid;place-items:center;padding:30px}.installer-wrap{width:min(650px,100%)}.installer-card{width:100%}.install-note{text-align:center!important;margin:14px 0 0!important}

/* RESPONSIVE */
@media(max-width:1220px){
  :root{--sidebar:210px}.brand{padding-left:18px}.brand-copy strong{font-size:21px}.brand-copy small{font-size:9px}.home-layout{grid-template-columns:1fr 285px}.forum-row{grid-template-columns:42px minmax(180px,1fr) 62px 62px minmax(205px,245px) 18px;gap:8px}.content-wrap{padding-left:16px;padding-right:16px}
}
@media(max-width:1040px){
  .home-layout{grid-template-columns:1fr}.home-sidebar{display:grid;grid-template-columns:repeat(3,1fr)}.hero-stat{min-width:130px}.forum-row{grid-template-columns:42px minmax(180px,1fr) 70px 70px minmax(220px,1fr) 18px}
}
@media(max-width:850px){
  :root{--sidebar:76px}.sidebar{padding-top:12px}.brand{height:60px;padding:0;justify-content:center}.brand-copy{display:none}.brand-shield{width:31px;height:36px}.side-nav{padding:12px 9px}.side-nav a{padding:0;justify-content:center}.side-nav a span{display:none}.side-nav a .ui-icon{width:21px;height:21px}.realm-block{padding:14px 9px 0}.realm-heading,.realm-card{display:none}.play-button{margin-top:0;height:45px}.play-button span{display:none}.sidebar-community{padding:0 9px}.side-section-title,.discord-link span{display:none}.discord-link{justify-content:center}.topbar{padding:0 14px}.top-search{width:min(360px,58vw)}.content-wrap{padding:0 12px 38px}.home-hero{height:210px}.hero-content{padding:22px}.hero-content h1{font-size:30px}.home-sidebar{grid-template-columns:1fr}.forum-row{grid-template-columns:42px minmax(0,1fr) 55px 55px 18px}.forum-last-post{display:none}.footer{padding:0 14px}.post-card{grid-template-columns:1fr}.post-author{border-right:0;border-bottom:1px solid #1e252c;flex-direction:row;text-align:left;gap:10px;padding:12px}.post-author .avatar{margin:0}.post-author small{margin:0 0 0 auto}.admin-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
  .top-search{width:54vw}.top-actions{gap:8px}.notification-button{display:none}.account-chip strong,.account-caret{display:none}.logout-button{display:none}.top-login{display:none}.home-hero{height:235px;background-position:62% center}.home-hero:before{background:linear-gradient(90deg,#0b1015 0%,rgba(11,16,21,.94) 57%,rgba(11,16,21,.45) 100%)}.hero-content h1{font-size:27px}.hero-content>p{font-size:12px;max-width:310px}.hero-stats{gap:14px}.hero-stat{min-width:0;padding-right:13px;margin-right:0;gap:7px}.hero-stat>.ui-icon{width:21px;height:21px}.hero-stat strong{font-size:16px}.hero-stat small{font-size:9px}.forum-row{grid-template-columns:42px minmax(0,1fr) 18px;min-height:64px}.forum-row-count{display:none}.home-category-titlebar h2{font-size:12px}.page-heading{align-items:flex-start;flex-direction:column}.two-fields{grid-template-columns:1fr}.topic-list-head{display:none}.topic-row{grid-template-columns:1fr}.topic-row>.reply-count,.topic-row>.last-topic-post{display:none}.post-author small{display:none}.footer{flex-direction:column;justify-content:center;gap:4px}.admin-list>div{flex-direction:column}.profile-stats{gap:18px;flex-wrap:wrap}
}

/* LEGIONXMU Forum v2: profile pictures and post/topic moderation */
.avatar.has-avatar,.account-avatar.has-avatar,.last-avatar.has-avatar,.mini-square-avatar.has-avatar,.player-avatar.has-avatar{overflow:hidden;padding:0;flex-shrink:0}
.avatar.has-avatar img,.account-avatar.has-avatar img,.last-avatar.has-avatar img,.mini-square-avatar.has-avatar img,.player-avatar.has-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.topic-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;max-width:600px}
.topic-heading-actions form,.post-actions form{display:inline-flex;align-items:center;margin:0}
.topic-heading-actions .status-pill .ui-icon{width:12px;height:12px;margin-right:4px}
.danger-button{border-color:#693330!important;color:#ffac9b!important;background:rgba(130,45,39,.13)!important}
.danger-button:hover{background:rgba(130,45,39,.27)!important}
.post-topline{gap:12px;align-items:center;flex-wrap:wrap;font-size:10px}
.post-actions{display:flex;justify-content:flex-end;align-items:center;gap:14px;flex-wrap:wrap}
.post-action-link,.post-permalink{font-size:10px;font-weight:700;color:#e7b867;text-decoration:none}
button.post-action-link{border:0;background:none;padding:0;cursor:pointer;font-family:inherit}
.post-action-link:hover,.post-permalink:hover{color:#ffe3ad}
.post-actions .delete-action{color:#e88e84}
.edited-badge{color:#7f8996;font-style:italic}
.post-author-name{font-weight:800;font-size:11px;color:#f4e4c7;word-break:break-all}
.post-author-name:hover{color:#f3bf60}
.post-author > a:has(.avatar){display:block}
.post-author > a .avatar{margin-bottom:8px}
.avatar-editor{display:flex;flex-direction:column;gap:16px}
.avatar-editor-head{display:flex;align-items:center;gap:15px}
.avatar-editor-head h3{margin:0 0 6px}
.avatar-editor-head p{margin:0;font-size:11px;line-height:1.6;color:#99a4af}
.avatar-editor-head .profile-avatar{margin:0;flex-shrink:0}
.avatar-editor .remove-avatar-form{border-top:1px solid #28313b;padding-top:14px}
.profile-edit-button{margin-top:12px}
.player-avatar{width:27px;height:27px;border-radius:5px;display:grid;place-items:center;background:#171d22;border:1px solid #313942;color:#e5a94b;font-size:10px;font-weight:900}
input[type=file]{height:auto;padding:9px;cursor:pointer}
button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:850px){.topic-heading-actions{justify-content:flex-start}.post-author > a .avatar{margin:0}}
@media(max-width:620px){.post-topline{align-items:flex-start}.post-actions{justify-content:flex-start;gap:12px}.topic-heading-actions{gap:5px}.topic-heading-actions .tiny-button{font-size:9px;padding:0 9px}}

.topic-author-line{display:flex;align-items:center;gap:6px}.topic-author-line .avatar.tiny{width:19px;height:19px;font-size:8px;flex-shrink:0}

/* LEGIONXMU v2.2: member directory, recent activity and topic replies */
.members-page-card,.activity-page-card{margin-top:16px}
.members-table-head,.members-table-row{display:grid;grid-template-columns:minmax(0,1fr) 90px 90px;align-items:center;gap:16px;padding:15px 20px}
.members-table-head{color:#929ba5;text-transform:uppercase;letter-spacing:.6px;font-size:11px;font-weight:700;background:#11171d;border-bottom:1px solid #232c33}
.members-table-row{border-bottom:1px solid #1e272f;transition:background .15s}.members-table-row:last-child{border-bottom:0}.members-table-row:hover,.activity-row:hover{background:#141b21}
.members-table-row>strong{text-align:center;font-size:13px;color:#f3c36a}.members-table-head>span:not(:first-child){text-align:center}
.member-identity{display:flex;align-items:center;gap:12px;min-width:0}.member-identity>span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}.member-identity strong{color:#f4f5f6;overflow-wrap:anywhere}.member-identity small{color:#8c96a0;font-size:11px}
.activity-row{display:flex;align-items:center;gap:13px;padding:16px 20px;border-bottom:1px solid #1e272f;transition:background .15s}.activity-row:last-child{border-bottom:0}.activity-row-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.activity-row-text>strong{color:#fff;font-size:13px;overflow-wrap:anywhere}.activity-row-text>small{font-size:11px;color:#e6b75b}.activity-row-text>span{font-size:12px;color:#9ba6b1;overflow-wrap:anywhere}.activity-chevron{color:#eab65d;font-weight:800}
@media(max-width:600px){.members-table-head,.members-table-row{grid-template-columns:minmax(0,1fr) 48px 48px;gap:8px;padding:12px}.activity-row{padding:13px;gap:10px}}


/* Forum v2.4: topic views and role administration */
.topic-list-card.has-topic-views .topic-list-head,
.topic-list-card.has-topic-views .topic-row{grid-template-columns:minmax(0,1fr) 76px 82px 145px}
.view-count{font-size:12px;color:#e2b25e;text-align:center}
.topic-list-card.has-topic-views .topic-list-head>span:nth-child(2),.topic-list-card.has-topic-views .topic-list-head>span:nth-child(3){text-align:center}
.topic-views-mobile{display:none}
.topic-view-summary{color:#e0b669}.topic-view-summary strong{color:#f4cb87}
.post-author .moderator-role{color:#87bdff;font-weight:800}
.role-badge-small{color:#efc270!important;font-weight:800!important}
.admin-role-panel{margin-bottom:16px}
.admin-roles-content{padding:18px}
.admin-roles-content>.muted{font-size:11px;margin:0 0 16px}
.admin-user-search{display:block;margin-bottom:18px}
.admin-user-search>label{margin-bottom:7px}
.admin-user-search>div{display:flex;gap:8px}
.admin-user-search input{max-width:460px}
.admin-role-list{border-top:1px solid #25313a}
.admin-role-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 0;border-bottom:1px solid #25313a}
.admin-role-user{display:flex;flex-direction:column;min-width:0;gap:5px}
.admin-role-user strong{font-size:12px;color:#f4e4c7}
.admin-role-user span{font-size:10px;color:#88939d;overflow-wrap:anywhere}
.admin-role-user b{color:#eab661}
.admin-role-form{display:flex;align-items:center;gap:9px;flex-shrink:0}
.admin-role-form label{margin:0}
.admin-role-form select{width:155px;height:34px;font-size:11px}
.admin-role-hint{font-size:9px;color:#7d8b97;margin:14px 0 0}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){
  .topic-list-card.has-topic-views .topic-row{grid-template-columns:minmax(0,1fr) 65px 70px}
  .topic-list-card.has-topic-views .last-topic-post{display:none}
  .topic-list-card.has-topic-views .topic-list-head{grid-template-columns:minmax(0,1fr) 65px 70px}
  .topic-list-card.has-topic-views .topic-list-head>span:last-child{display:none}
  .admin-role-row{align-items:flex-start;flex-direction:column}
  .admin-role-form{width:100%}
  .admin-role-form select{width:180px;max-width:55vw}
}
@media(max-width:620px){
  .topic-list-card.has-topic-views .topic-row{grid-template-columns:1fr}
  .topic-list-card.has-topic-views .reply-count,.topic-list-card.has-topic-views .view-count{display:none}
  .topic-views-mobile{display:inline;color:#e6bc71}
}

/* LEGIONXMU rich BBCode editor - shared by edit topic, new topic and replies. */
.lx-editor-card{max-width:none;width:100%}
.lx-editor{border:1px solid #313a44;border-radius:10px;background:#0b1117;overflow:hidden;min-width:0;font-size:13px}
.lx-editor-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:10px 12px;border-bottom:1px solid #26313a;background:linear-gradient(180deg,#161d25,#111920)}
.lx-editor-group{display:flex;align-items:center;gap:3px;padding-right:9px;margin-right:5px;border-right:1px solid #2b343f;min-height:32px}
.lx-editor-group:nth-last-of-type(1){border-right:0}
.lx-editor-spacer{flex:1;min-width:5px}
.lx-editor .lx-tool{min-width:31px;height:32px;padding:4px 7px;border:1px solid transparent;border-radius:5px;background:transparent;color:#d8e1eb;font-size:14px;display:inline-flex;justify-content:center;align-items:center;line-height:1;transition:background .15s,border-color .15s}
.lx-editor .lx-tool:hover,.lx-editor .lx-tool:focus-visible{background:#263440;border-color:#384957;color:#ffcf7a;outline:0}
.lx-editor .lx-tool-heading{font-weight:800;font-size:12px}.lx-editor .lx-tool-emoji{font-size:21px}
.lx-editor .lx-editor-select-label{display:block;color:transparent;font-size:0}
.lx-editor .lx-editor-select{width:auto;height:32px;max-width:86px;background:#101a24;color:#dbe2e9;border:1px solid #34404d;border-radius:5px;font-size:12px;padding:3px 7px;cursor:pointer}
.lx-editor .lx-preview-button{background:#233341;border:1px solid #405161;color:#f1c16b;padding:7px 12px;border-radius:6px;font-size:12px;font-weight:700;white-space:nowrap}
.lx-editor .lx-preview-button:hover,.lx-editor .lx-preview-button[aria-pressed="true"]{background:rgba(242,189,92,.15);border-color:#956f38}
.lx-editor .lx-preview-button:disabled{opacity:.6;cursor:wait}
.lx-editor-workspace{background:#0a1016}
.lx-editor textarea[data-lx-textarea]{display:block;width:100%;min-height:270px;border:0;background:transparent;color:#e8ecf0;padding:18px 19px;outline:0;border-radius:0;font-size:13px;line-height:1.72;box-shadow:none;resize:vertical}
.lx-editor textarea[data-lx-textarea]:focus{border:0;box-shadow:inset 0 0 0 1px rgba(242,189,92,.22)}
.lx-editor textarea[data-lx-textarea][hidden]{display:none}
.lx-editor-preview{min-height:270px;max-height:750px;overflow:auto;padding:19px!important;font-size:13px!important;white-space:pre-wrap;color:#e4ebf1}
.lx-editor-preview[hidden]{display:none}
.lx-editor-footnote{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:9px 14px;border-top:1px solid #25303a;background:#10171e;color:#84939f;font-size:11px}
.lx-count-warning{color:#ffac5d}
.lx-emoji-panel{padding:12px;display:flex;gap:5px;flex-wrap:wrap;border-bottom:1px solid #28333f;background:#182129}
.lx-emoji-panel[hidden]{display:none}
.lx-editor .lx-emoji{height:32px;width:34px;border:1px solid transparent;border-radius:5px;background:#111923;font-size:19px;display:grid;place-items:center}
.lx-editor .lx-emoji:hover{border-color:#b58443;background:#283039}
.post-text{white-space:pre-wrap}
.lx-post-link{color:#72b7ff;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.lx-post-link:hover{color:#bddfff}
.lx-post-image{display:block;width:auto;max-width:100%;max-height:650px;object-fit:contain;height:auto;margin:12px 0;border:1px solid #2b3945;border-radius:7px;background:#0c1218}
.lx-post-heading{color:#f5c46f;font-size:1.65em;line-height:1.3;margin:15px 0 8px;font-weight:800}
.lx-post-quote{background:rgba(80,104,133,.12);border-left:3px solid #c89548;padding:12px 15px;margin:10px 0;border-radius:0 6px 6px 0;color:#d5dee7}
.lx-post-quote-title{display:block;font-size:12px;color:#f2c572;font-weight:800;margin-bottom:6px}
.lx-post-code{font-family:Consolas,Monaco,monospace;font-size:12px;white-space:pre-wrap;overflow:auto;padding:15px;margin:10px 0;border:1px solid #303d49;border-radius:7px;background:#070d12;color:#dbe8f0}
.lx-post-list{white-space:normal;margin:7px 0 12px;padding-left:27px}.lx-post-list>li{margin:3px 0;white-space:pre-wrap}
.lx-post-align-center{text-align:center}.lx-post-align-right{text-align:right}.lx-post-align-left{text-align:left}
@media(max-width:700px){.lx-editor-toolbar{padding:7px}.lx-editor-group{padding-right:5px;margin-right:3px}.lx-editor .lx-tool{min-width:29px}.lx-editor-spacer{flex-basis:100%;height:0}.lx-editor .lx-preview-button{margin-left:auto}.lx-editor textarea[data-lx-textarea],.lx-editor-preview{min-height:220px}.lx-editor-footnote{font-size:10px}}

/* v2.9 Rich Copy & Typography — forum topic content only.
   Restore visual hierarchy of copied news articles without rendering untrusted HTML. */
.post-text{font-size:14px;line-height:1.85;color:#e5e9ee;white-space:pre-wrap;overflow-wrap:anywhere}
.post-text .lx-post-heading{font-weight:800;letter-spacing:.15px;line-height:1.32;color:#f5c46f;margin:15px 0 6px}
.post-text .lx-post-h1{font-size:30px}
.post-text .lx-post-h2{font-size:24px}
.post-text .lx-post-h3{font-size:18px}
.post-text .lx-post-quote{font-size:14px;line-height:1.6}
.post-text .lx-post-link{color:#89c4ff}
.post-text .lx-post-image{max-width:100%;height:auto}
.lx-editor-preview{font-size:14px!important;line-height:1.85}
.lx-editor-preview .lx-post-h1{font-size:30px}
.lx-editor-preview .lx-post-h2{font-size:24px}
.lx-editor-preview .lx-post-h3{font-size:18px}
.lx-editor .lx-effect-select{min-width:86px}
.lx-post-effect{display:inline-block;max-width:100%;vertical-align:baseline}
.lx-effect-glow{color:#f7c66f;animation:lxForumGlow 2.5s ease-in-out infinite alternate}
.lx-effect-pulse{animation:lxForumPulse 2.2s ease-in-out infinite;transform-origin:center}
.lx-effect-shimmer{color:transparent;background:linear-gradient(105deg,#de9d3d 20%,#fff4cf 48%,#de9d3d 70%);background-size:250% 100%;background-clip:text;-webkit-background-clip:text;animation:lxForumShimmer 4s linear infinite}
@keyframes lxForumGlow{from{text-shadow:0 0 2px rgba(245,183,79,.25)}to{text-shadow:0 0 10px rgba(245,183,79,.8),0 0 22px rgba(244,153,39,.35)}}
@keyframes lxForumPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.045)}}
@keyframes lxForumShimmer{0%{background-position:120% 50%}100%{background-position:-120% 50%}}
@media(prefers-reduced-motion:reduce){.lx-post-effect{animation:none!important;transform:none!important}.lx-effect-shimmer{background-position:50% 50%}}
@media(max-width:700px){.post-text{font-size:13.5px}.post-text .lx-post-h1{font-size:24px}.post-text .lx-post-h2{font-size:20px}.post-text .lx-post-h3{font-size:17px}}

/* v3.1: Safe, real two-column tables for copied news / level rewards.
   No more vertical stack of "Level / Reward / 50 / Description". */
.post-text .lx-post-table-wrap,.lx-editor-preview .lx-post-table-wrap{
  display:block;width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;
  margin:13px 0 20px;white-space:normal;text-align:left;border:1px solid #30404c;border-radius:8px;
  background:#0b1219
}
.lx-post-table{width:100%;min-width:400px;border-collapse:collapse;table-layout:auto;
  line-height:1.55;text-align:left;white-space:normal;font-size:13px;color:#d9e2ec
}
.lx-post-table th,.lx-post-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;
  padding:11px 15px;border-bottom:1px solid #24323d;text-align:left
}
.lx-post-table th{background:linear-gradient(180deg,#1d2730,#162029);
  color:#f4c477;font-weight:800;letter-spacing:.2px
}
.lx-post-table td{background:transparent}
.lx-post-table tr:nth-child(even) td{background:#0f1820}
.lx-post-table tbody tr:last-child td{border-bottom:0}
.lx-post-table th:first-child,.lx-post-table td:first-child{width:15%;min-width:95px;font-weight:700;color:#f0c575}
.lx-post-table .lx-post-heading{margin:3px 0;font-size:1.15em}
@media(max-width:650px){.lx-post-table th,.lx-post-table td{padding:9px 10px}.lx-post-table{min-width:340px;font-size:12px}}


/* v3.2: Lists in centered announcements should NOT span the entire post.
   Without a compact list box, the bullets sit on the far left while their
   centered text sits in the middle of the topic. Existing posts are fixed
   automatically by CSS: no repost and no database change needed. */
.post-text .lx-post-align-center .lx-post-list,
.lx-editor-preview .lx-post-align-center .lx-post-list {
  display: block;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 8px auto 14px;
  padding-inline-start: 1.7em;
  list-style-position: outside;
  text-align: left;
  white-space: normal;
}
.post-text .lx-post-align-center .lx-post-list > li,
.lx-editor-preview .lx-post-align-center .lx-post-list > li {
  margin: 3px 0;
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
/* Make the fix work also for nested lists and narrow mobile screens. */
.post-text .lx-post-list .lx-post-list,
.lx-editor-preview .lx-post-list .lx-post-list {
  width: auto;
  max-width: 100%;
  margin: 4px 0 6px;
  padding-inline-start: 1.5em;
}

/* v3.3: private messages — responsive, dark/gold LegionXMU interface. */
.pm-nav-count{margin-left:auto;background:#eab75b;color:#1d1305;font-weight:900;font-size:10px;line-height:18px;min-width:18px;text-align:center;padding:0 4px;border-radius:12px;font-style:normal}
.pm-top-link{position:relative;display:inline-flex;align-items:center;justify-content:center;color:#eab65d;width:32px;height:32px;flex-shrink:0}
.pm-top-link .ui-icon{width:19px;height:19px}
.pm-top-count{position:absolute;top:-3px;right:-6px;background:#dfa649;color:#1b1207;border-radius:10px;font-size:9px;font-weight:900;min-width:16px;line-height:16px;text-align:center;padding:0 3px}
.pm-page-heading>.button{gap:7px}.pm-page-heading>.button .ui-icon{width:16px;height:16px}
.pm-layout{display:grid;grid-template-columns:minmax(250px,340px) minmax(0,1fr);gap:15px;align-items:start}
.pm-inbox,.pm-thread{overflow:hidden;min-width:0}
.pm-section-title,.pm-thread-header{min-height:65px;padding:17px 18px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #27323c;background:#111922}
.pm-section-title{justify-content:space-between}
.pm-section-title h2,.pm-thread-header h2{font-size:14px;font-weight:800;margin:0;color:#f0c276;display:flex;align-items:center;gap:9px}
.pm-section-title h2 .ui-icon{width:17px;height:17px}
.pm-section-title>span{font-size:10px;color:#83909c}
.pm-recipient-form{display:block;padding:17px;border-bottom:1px solid #242f39;background:#10171e}
.pm-recipient-form label,.pm-send-form label{font-size:11px;color:#c1cbd5;margin-bottom:8px;display:block;font-weight:700}
.pm-recipient-form>div{display:flex;gap:8px}
.pm-recipient-form input{min-width:0;height:37px}
.pm-recipient-form .button{height:37px}
.pm-empty-inbox,.pm-thread-empty{color:#8d9aa6;font-size:12px;line-height:1.6;padding:22px}
.pm-conversation-list{max-height:680px;overflow-y:auto}
.pm-conversation{display:flex;gap:10px;align-items:center;padding:15px 12px;border-bottom:1px solid #222b34;min-height:71px;transition:background .15s}
.pm-conversation:hover{background:#17212a}.pm-conversation.is-selected{background:#222b30;border-left:3px solid #e7ac50;padding-left:9px}
.pm-conversation .player-avatar{flex-shrink:0}
.pm-conversation-detail{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}
.pm-conversation-detail strong{font-size:12px;color:#f1eadf;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pm-conversation-detail small{font-size:10px;color:#8e9ba5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-conversation.has-unread .pm-conversation-detail strong{color:#f4c877}
.pm-conversation-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0}
.pm-conversation-side time{font-size:9px;color:#778591}.pm-conversation-side b{border-radius:10px;background:#eab75b;color:#16110b;font-size:10px;padding:2px 6px}
.pm-thread-header h2{font-size:15px}.pm-thread-header a{font-size:10px;color:#94b7d1;display:block;margin-top:5px}
.pm-message-history{min-height:260px;max-height:680px;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:13px;background:radial-gradient(circle at 88% 12%,rgba(223,166,73,.045),transparent 40%),#0c1319}
.pm-bubble-row{display:flex}.pm-bubble-row.is-mine{justify-content:flex-end}.pm-bubble-row.is-theirs{justify-content:flex-start}
.pm-bubble{max-width:min(82%,700px);border-radius:13px;background:#1a2731;border:1px solid #30424f;padding:12px 15px;overflow-wrap:anywhere}
.pm-bubble-row.is-mine .pm-bubble{background:#2c261c;border-color:#59452b}
.pm-message-text{white-space:normal;font-size:13px;line-height:1.65;color:#e6edf2}
.pm-bubble time{margin-top:8px;display:block;font-size:9px;color:#9fa9b0;text-align:right}
.pm-send-form{padding:17px 19px;border-top:1px solid #25303a;background:#10171e}
.pm-send-form textarea{min-height:97px;font-size:13px;resize:vertical}
.pm-send-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:12px}
.pm-send-actions small{max-width:65%;color:#8896a1;font-size:10px;line-height:1.6}
.pm-send-actions .button{gap:7px;white-space:nowrap}.pm-send-actions .ui-icon{width:15px;height:15px}
.pm-thread-placeholder{min-height:390px;padding:50px 25px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}
.pm-thread-placeholder>.ui-icon{width:44px;height:44px;color:#dbaa54;margin-bottom:17px}.pm-thread-placeholder h2{margin:0 0 7px;font-size:19px;color:#f2c77d}.pm-thread-placeholder p{max-width:300px;color:#8997a1;font-size:12px;line-height:1.7}
.profile-pm-button{display:inline-flex;align-items:center;gap:6px;margin-top:12px}.profile-pm-button .ui-icon{width:14px;height:14px}
.pm-post-link{margin-top:10px;display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#e0b768}.pm-post-link .ui-icon{width:13px;height:13px}
@media(max-width:900px){.pm-layout{grid-template-columns:1fr}.pm-conversation-list{max-height:320px}.pm-message-history{max-height:530px}}
@media(max-width:520px){.pm-section-title,.pm-thread-header{padding:13px}.pm-send-form{padding:12px}.pm-message-history{padding:12px}.pm-bubble{max-width:91%}.pm-send-actions{align-items:stretch;flex-direction:column}.pm-send-actions small{max-width:100%}.pm-send-actions button{width:100%}.pm-top-link{width:25px}.pm-top-link .ui-icon{width:17px}}


/* LEGIONXMU - NEW/UNREAD PUBLIC DISCUSSIONS */
.forum-row.has-unread,
.topic-row.has-unread{position:relative;background:linear-gradient(90deg,rgba(242,189,92,.105),rgba(242,189,92,.024) 58%,transparent);box-shadow:inset 3px 0 0 #f2bd5c,inset 0 1px 0 rgba(242,189,92,.11),inset 0 -1px 0 rgba(242,189,92,.11)}
.forum-row.has-unread:hover,
.topic-row.has-unread:hover{background:linear-gradient(90deg,rgba(242,189,92,.17),rgba(242,189,92,.055) 70%,rgba(242,189,92,.025))}
.forum-row.has-unread .forum-icon{border:2px solid #f2bd5c;background:linear-gradient(145deg,rgba(242,189,92,.27),rgba(123,75,20,.23));color:#ffda83;box-shadow:0 0 0 2px rgba(242,189,92,.09),0 0 18px rgba(242,189,92,.12)}
.forum-row.has-unread .forum-row-main h3,
.topic-row.has-unread .topic-main h3{color:#ffdc91}
.topic-row.has-unread .topic-status{border-color:#f2bd5c;background:rgba(242,189,92,.2);box-shadow:0 0 11px rgba(242,189,92,.14)}
.unread-badge{display:inline-flex;align-items:center;vertical-align:2px;margin-left:8px;padding:2px 6px;border:1px solid rgba(246,195,99,.45);border-radius:4px;background:rgba(242,189,92,.17);color:#ffd47b;font-weight:900;font-size:9px;line-height:1.1;letter-spacing:.5px;white-space:nowrap}
.forum-row.has-unread .forum-row-main h3{overflow:visible;white-space:normal}
.latest-posts-list>a.has-unread{background:linear-gradient(90deg,rgba(242,189,92,.08),transparent);box-shadow:inset 2px 0 0 var(--gold);padding-left:5px}
.latest-posts-list>a.has-unread strong{color:#ffd488}
@media(max-width:620px){.unread-badge{font-size:8px;margin-left:5px}.forum-row.has-unread,.topic-row.has-unread{box-shadow:inset 3px 0 0 #f2bd5c}}


/* v3.5: RPG-inspired author profiles on topic posts (RageZone-style layout). */
.post-card{
  grid-template-columns:192px minmax(0,1fr);
  background:linear-gradient(135deg,#111921 0%,#0c1218 58%,#0a1016 100%);
  border-color:#2b3640;
  border-radius:10px;
  scroll-margin-top:90px;
}
.post-author{
  position:relative;
  padding:20px 16px 17px;
  gap:0;
  align-items:stretch;
  text-align:center;
  background:linear-gradient(180deg,#131c26 0%,#0d151e 68%,#0e151d 100%);
  border-right:1px solid #2e3945;
  min-width:0;
}
/* Subtle profile-panel pointer, like classic forum postbits. */
.post-author::after{
  content:"";
  position:absolute;
  top:48px;
  right:-7px;
  width:12px;
  height:12px;
  transform:rotate(45deg);
  background:#131c26;
  border-top:1px solid #2e3945;
  border-right:1px solid #2e3945;
  z-index:1;
}
.post-author-identity{display:flex;flex-direction:column;align-items:center;gap:11px;min-width:0}
.post-author-avatar-link{display:block;position:relative;align-self:center;width:fit-content;flex:none}
.post-author .post-author-avatar,
.post-author .post-author-avatar.has-avatar{
  display:grid;
  width:94px;
  height:94px;
  margin:0;
  border:2px solid #445465;
  border-radius:12px;
  font-size:33px;
  color:#f8c878;
  background:linear-gradient(150deg,#263545,#131c27);
  box-shadow:0 4px 18px rgba(0,0,0,.35),inset 0 0 14px rgba(243,188,91,.07);
}
.post-author.is-admin .post-author-avatar{border-color:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.17),0 6px 23px rgba(0,0,0,.4)}
.post-author.is-moderator .post-author-avatar{border-color:#799fd0}
.post-avatar-online{
  display:block;
  position:absolute;
  right:-4px;
  bottom:-4px;
  width:16px;
  height:16px;
  background:#46e585;
  border:3px solid #131c26;
  border-radius:50%;
  box-shadow:0 0 10px rgba(70,229,133,.55);
}
.post-author-details{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;max-width:100%}
.post-author .post-author-name,
.post-author strong.post-author-name{
  display:block;
  font-size:13px;
  font-weight:800;
  line-height:1.3;
  letter-spacing:.1px;
  color:#f6c977;
  overflow-wrap:anywhere;
}
.post-author .post-author-name:hover{color:#ffe3a7}
.post-author .post-role-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:21px;
  padding:3px 11px;
  border:1px solid #384653;
  border-radius:20px;
  background:linear-gradient(180deg,#202c36,#17212a);
  color:#cbd6e1;
  font-size:10px;
  font-weight:800;
  line-height:1.1;
  letter-spacing:.12px;
  margin:2px 0 0;
}
.post-author.is-admin .post-role-badge{
  color:#ff7777;
  background:linear-gradient(180deg,#471b22,#281219);
  border-color:#ef4444;
  box-shadow:inset 0 0 0 1px rgba(255,110,110,.10),0 0 12px rgba(239,68,68,.10);
}
.post-author.is-moderator .post-role-badge{color:#b9d9ff;background:linear-gradient(180deg,#253b52,#182a3d);border-color:#547ca6}
.post-author .post-author-presence{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#82909f;
  font-size:10px;
  font-weight:600;
  line-height:1.3;
  margin-top:3px;
}
.post-author-presence i{display:inline-block;width:6px;height:6px;background:#64717e;border-radius:50%;flex:none}
.post-author .post-author-presence.is-online{color:#8bebac}
.post-author-presence.is-online i{background:#3be27c;box-shadow:0 0 7px rgba(59,226,124,.48)}
.post-author-stats{
  width:100%;
  margin:15px 0 0;
  padding:7px 10px;
  border:1px solid #2b3845;
  border-radius:8px;
  background:rgba(5,11,18,.4);
}
.post-author-stats>div{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0;padding:6px 0}
.post-author-stats>div+div{border-top:1px solid rgba(102,125,144,.15)}
.post-author-stats dt{font-size:10px;color:#90a0af;font-weight:500}
.post-author-stats dd{margin:0;font-size:10px;color:#e8ecf0;font-weight:800;min-width:0;overflow-wrap:anywhere;text-align:right;font-variant-numeric:tabular-nums}
.post-author-stats dd time{white-space:nowrap}
.post-author .post-message-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:100%;
  min-height:30px;
  padding:6px 8px;
  margin-top:12px;
  color:#f0c77b;
  border:1px solid rgba(227,174,84,.35);
  border-radius:6px;
  background:rgba(226,174,84,.07);
  font-size:10px;
  font-weight:800;
  transition:background .15s,border-color .15s;
}
.post-author .post-message-button:hover{background:rgba(226,174,84,.15);border-color:rgba(241,197,116,.65)}
.post-message-button .ui-icon{width:14px;height:14px}
.post-card .post-body{padding:18px 21px 25px;background:linear-gradient(130deg,rgba(28,41,53,.34),transparent 65%)}
.post-card .post-topline{font-size:10px;padding-bottom:12px;color:#8d9ba8;border-color:#293541}
.post-card .post-text{padding-top:17px}
@media(max-width:850px){
  .post-card{grid-template-columns:minmax(0,1fr)}
  .post-author{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    padding:14px 17px;
    border-right:0;
    border-bottom:1px solid #2e3945;
    text-align:left;
  }
  .post-author::after{display:none}
  .post-author-identity{grid-column:1;grid-row:1;flex-direction:row;align-items:center;gap:13px;min-width:0}
  .post-author .post-author-avatar,.post-author .post-author-avatar.has-avatar{width:66px;height:66px;font-size:24px;border-radius:10px}
  .post-author-details{align-items:flex-start;gap:3px}
  .post-author-stats{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:7px 12px}
  .post-author-stats>div{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:3px 0}
  .post-author-stats>div+div{border-top:0;border-left:1px solid rgba(102,125,144,.15);padding-left:12px}
  .post-author-stats dd{text-align:left}
  .post-author .post-message-button{grid-column:2;grid-row:1;margin:0;width:auto;white-space:nowrap;padding:7px 10px}
}
@media(max-width:560px){
  .post-author{grid-template-columns:minmax(0,1fr);gap:10px;padding:13px}
  .post-author-identity{grid-column:1;grid-row:1}
  .post-author .post-author-avatar,.post-author .post-author-avatar.has-avatar{width:62px;height:62px}
  .post-author-stats{grid-column:1;grid-row:2;padding:8px;gap:5px}
  .post-author-stats>div+div{padding-left:8px}
  .post-author-stats dt,.post-author-stats dd{font-size:9px}
  .post-author-stats dd time{white-space:normal}
  .post-author .post-message-button{grid-column:1;grid-row:3;justify-self:start;width:auto}
  .post-card .post-body{padding:14px 13px 18px}
}
