:root{
  /* Base tokens (names kept for compatibility across existing views) */
  --red-rgb:46,168,255;     /* primary accent (blue) */
  --red2-rgb:124,92,255;    /* secondary accent (violet) */
  --link:#d6e4ff;
  --link2:#c9d3ff;
  --bg:#070a12;
  --panel:#0b1020;
  --panel2:#0d1630;
  --text:#e9edff;
  --muted:#b8c0ff;
  --red:#2ea8ff;
  --red2:#7c5cff;
  --border:#1b2740;
  --ok:#23c55e;
  --warn:#f59e0b;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial;
  background:
    radial-gradient(1200px 700px at 12% 0%, rgba(var(--red-rgb),.22), transparent 60%),
    radial-gradient(900px 640px at 72% -10%, rgba(var(--red2-rgb),.20), transparent 62%),
    radial-gradient(900px 620px at 62% 120%, rgba(255,255,255,.06), transparent 62%),
    var(--bg);
  color:var(--text);
}
a{color:var(--link); text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1320px;margin:0 auto;padding:20px}
.nav{
  position:sticky; top:0; z-index:50;
  background: rgba(11,10,11,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.nav-inner{display:flex;align-items:center;gap:14px;justify-content:space-between}
.brand{display:flex;align-items:center;gap:10px}
.brand img{width:36px;height:36px}
.brand span{font-weight:800;letter-spacing:.6px}
.nav-links{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);border:1px solid var(--border);padding:6px 10px;border-radius:999px;background:rgba(18,16,19,.7)}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:10px 14px;border-radius:12px;border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(var(--red-rgb),.9), rgba(90,0,0,.9));
  color:#fff; font-weight:700; cursor:pointer; text-decoration:none;
}
.btn.steam{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.28));
  border-color: rgba(255,255,255,.10);
  color: var(--text);
}
.steam-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:6px;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.08);font-weight:900}
.btn:hover{filter:brightness(1.05); text-decoration:none}
.btn.secondary{background:rgba(18,16,19,.85); color:var(--text)}
.btn.danger{background: linear-gradient(180deg, rgba(var(--red2-rgb),.95), rgba(110,0,0,.95))}
.btn.small{padding:7px 10px;border-radius:10px;font-size:13px}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.22));
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.card .pad{padding:16px}
.grid{display:grid;gap:16px}
.grid-2{grid-template-columns:1.2fr .8fr}
@media (max-width: 920px){ .grid-2{grid-template-columns:1fr} .nav-inner{flex-direction:column;align-items:flex-start} }
.hero{position:relative; overflow:visible; border-radius:18px; min-height:420px}
.hero .hero-bg{position:absolute; inset:0; background-size:cover; background-position:center; filter:contrast(1.1) saturate(1.08)}
.hero .overlay{position:absolute; inset:0;
  background:
    radial-gradient(900px 420px at 20% 15%, rgba(var(--red2-rgb),.35), rgba(0,0,0,0)),
    radial-gradient(700px 360px at 80% 10%, rgba(var(--red-rgb),.28), rgba(0,0,0,0)),
    linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.28));
}
.hero .content{position:relative; padding:24px; display:flex; align-items:stretch; justify-content:space-between; gap:16px}
.hero h1{margin:0;font-size:44px;letter-spacing:.4px;line-height:1.03}
.hero p{margin:8px 0 0 0;color:var(--muted);max-width:760px}


/* Themes (accent colors) */
body[data-theme="red"]{--red:#8b0000;--red2:#b30000;--red-rgb:139,0,0;--red2-rgb:179,0,0;--link:#ffd0d0;--link2:#ffb3c2}
body[data-theme="blue"]{--red:#0b3d91;--red2:#1e66f5;--red-rgb:11,61,145;--red2-rgb:30,102,245;--link:#d6e4ff;--link2:#b6d4fe}
body[data-theme="green"]{--red:#0b6b3a;--red2:#11a85c;--red-rgb:11,107,58;--red2-rgb:17,168,92;--link:#d2ffe6;--link2:#a9ffcf}
body[data-theme="purple"]{--red:#5b1a8a;--red2:#8a3ffc;--red-rgb:91,26,138;--red2-rgb:138,63,252;--link:#ead7ff;--link2:#d2b6ff}
body[data-theme="orange"]{--red:#9a2f00;--red2:#ff6a00;--red-rgb:154,47,0;--red2-rgb:255,106,0;--link:#ffe0d0;--link2:#ffc2a3}

body[data-theme="cyan"]{--red:#004e57;--red2:#22d3ee;--red-rgb:0,78,87;--red2-rgb:34,211,238;--link:#d9faff;--link2:#b4f2ff}
body[data-theme="pink"]{--red:#7a0033;--red2:#ff4d9d;--red-rgb:122,0,51;--red2-rgb:255,77,157;--link:#ffe0f0;--link2:#ffc2df}
body[data-theme="gold"]{--red:#6b4e00;--red2:#fbbf24;--red-rgb:107,78,0;--red2-rgb:251,191,36;--link:#fff1c2;--link2:#ffe08a}
body[data-theme="slate"]{--red:#0f172a;--red2:#64748b;--red-rgb:15,23,42;--red2-rgb:100,116,139;--link:#e2e8f0;--link2:#cbd5e1}

.hero-left{flex:1;min-width:0;background:rgba(0,0,0,.52);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:18px;backdrop-filter: blur(10px)}
.hero-right{width:340px;max-width:100%}
.hero-right .mini{height:100%;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.08);border-radius:16px;backdrop-filter: blur(10px)}
.hero-right .q{display:block;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.06);margin-top:10px;background:rgba(0,0,0,.18)}
.hero-right .q:hover{border-color:rgba(255,255,255,.12);transform:translateY(-1px)}

@media (max-width: 900px){
  .hero .content{flex-direction:column}
  .hero-right{width:auto}
  .hero{min-height:0}
}

/* Funplay-ish blocks */
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.section-title{font-size:20px;font-weight:900;margin:0}
.section-sub{color:var(--muted);font-size:13px;margin-top:4px}

.hero-badges{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.badge-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.24);color:#ffd0d0;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}

/* Server strip */
.server-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.server-card{background:rgba(0,0,0,.16)}
.server-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}

/* News layout like portal */
.news-layout{display:grid;grid-template-columns:1.6fr .9fr;gap:12px}
@media (max-width: 980px){ .news-layout{grid-template-columns:1fr} }
.news-featured{display:block;border:1px solid rgba(255,255,255,.08);border-radius:18px;overflow:hidden;background:rgba(0,0,0,.16);color:var(--text)}
.news-featured:hover{text-decoration:none;border-color:rgba(var(--red2-rgb),.35);background:rgba(var(--red2-rgb),.08)}
.news-featured img{width:100%;height:260px;object-fit:cover;display:block}
.nf-body{padding:14px 14px 16px}
.nf-title{font-size:22px;font-weight:1000;letter-spacing:.2px;margin-bottom:8px}
.nf-excerpt{color:var(--muted);line-height:1.35}
.news-mini{display:grid;gap:10px}
.mini-card{display:flex;gap:10px;align-items:stretch;border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden;background:rgba(0,0,0,.16);color:var(--text)}
.mini-card:hover{text-decoration:none;border-color:rgba(var(--red2-rgb),.35);background:rgba(var(--red2-rgb),.08)}
.mini-card img{width:140px;min-width:140px;height:90px;object-fit:cover;display:block}
.mini-body{padding:10px 10px}
.mini-title{font-weight:900;margin-bottom:6px;line-height:1.2}

@media (max-width: 520px){
  .mini-card{flex-direction:column}
  .mini-card img{width:100%;min-width:0;height:140px}
}

.h{font-size:18px;font-weight:800;margin:0 0 10px 0}
.muted{color:var(--muted)}
hr.sep{border:0;border-top:1px solid var(--border);margin:14px 0}

.form-row{display:grid;gap:10px;margin:10px 0}
label{font-size:13px;color:var(--muted)}
input,textarea,select{
  width:100%;
  padding:10px 12px;
  background: rgba(11,10,11,.65);
  border:1px solid var(--border);
  border-radius:12px;
  color:var(--text);
}
textarea{min-height:120px;resize:vertical}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:10px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}
.table th{color:var(--muted);font-size:13px;font-weight:700}
.flash{padding:10px 12px;border-radius:12px;border:1px solid var(--border);margin:12px 0}
.flash.ok{border-color:rgba(35,197,94,.35);background:rgba(35,197,94,.08)}
.flash.err{border-color:rgba(var(--red2-rgb),.35);background:rgba(var(--red2-rgb),.10)}
.kbd{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New"; font-size:12px;border:1px solid var(--border);padding:2px 6px;border-radius:8px;background:rgba(0,0,0,.25)}
.thumb{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px;border:1px solid var(--border)}
.pill{display:inline-flex;gap:6px;align-items:center;padding:5px 10px;border-radius:999px;border:1px solid var(--border);font-size:12px;color:var(--muted);background:rgba(0,0,0,.18)}
.sidebar .item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:12px;color:var(--text);border:1px solid transparent}
.sidebar .item:hover{border-color:var(--border);text-decoration:none;background:rgba(0,0,0,.18)}
.sidebar .item.active{border-color:rgba(var(--red2-rgb),.4);background:rgba(var(--red2-rgb),.10)}
.footer{margin:30px 0 10px;color:var(--muted);font-size:13px}
details summary{cursor:pointer;color:#ffd0d0}


/* --- PortalPlus widgets --- */
.row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.pill.ok{border-color:rgba(46,255,138,.35); color:#bfffd8; background:rgba(0,0,0,.18)}
.pill.info{border-color:rgba(80,160,255,.35); color:#cfe6ff; background:rgba(0,0,0,.18)}
.pill.warn{border-color:rgba(255,200,80,.35); color:#ffe6bf; background:rgba(0,0,0,.18)}
.badge.danger{border-color:rgba(255,80,80,.35); color:#ffd0d0}

/* User name badges (core roles + cosmetic tags) */
.uname-wrap{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.ubadges{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.ubadge{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.18);font-size:12px;line-height:1.2;white-space:nowrap}
.ubadge.tag{border-color:rgba(255,255,255,.12);background:rgba(0,0,0,.14);box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.ubadge.tag{--badge-color:#4F8CFF;color:rgba(255,255,255,.92)}
.ubadge.tag{border-color:rgba(79,140,255,.35)}
.ubadge.tag .ubadge-text{font-weight:800;letter-spacing:.2px}
.ubadge-ico{
  width:16px;
  height:16px;
  border-radius:6px;
  object-fit:cover;
  display:inline-block;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 10px 22px rgba(0,0,0,.35);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.55));
}
.ubadge-emoji{
  font-size:14px;
  line-height:1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.55));
}
.role-admin{border-color:rgba(155,231,255,.35)}
.role-moderator{border-color:rgba(156,255,196,.35)}
.role-editor{border-color:rgba(255,213,155,.35)}
.role-verified{border-color:rgba(110,255,170,.35)}

/* Ticker */
.ticker{overflow:hidden}
.ticker-inner{display:flex;align-items:center;gap:12px;padding:10px 12px}
.ticker-badge{background:linear-gradient(180deg, rgba(var(--red2-rgb),.85), rgba(120,0,0,.55));border:1px solid rgba(255,255,255,.08);color:#fff;font-weight:900;padding:6px 10px;border-radius:12px;letter-spacing:.6px}
.ticker-window{position:relative;overflow:hidden;flex:1;min-width:0}
.ticker-track{display:inline-flex;align-items:center;gap:14px;white-space:nowrap;will-change:transform;animation:ticker 28s linear infinite}
.ticker-track a{color:var(--link);text-decoration:none}
.ticker-track a:hover{text-decoration:underline}
.ticker .dot{opacity:.45}
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-45%)} }
@media (prefers-reduced-motion: reduce){ .ticker-track{animation:none} }

/* Hero readability */
.hero .content.hero-split{left:18px;right:18px;bottom:18px;display:flex;align-items:flex-end;justify-content:space-between;gap:14px}
.hero-left{
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:16px;
  backdrop-filter: blur(10px);
  max-width:780px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.hero-right .mini{background:rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.08)}
.hero-kicker{font-size:12px;color:#ffd0d0;letter-spacing:.22em;text-transform:uppercase;font-weight:800;margin-bottom:6px}
.hero-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.hero-stats{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.stat{min-width:120px;background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:10px 12px}
.stat-num{font-size:22px;font-weight:900;margin-top:4px}
.q{display:block;padding:10px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.20);margin-top:10px;color:var(--text)}
.q:hover{text-decoration:none;border-color:rgba(var(--red2-rgb),.35);background:rgba(var(--red2-rgb),.10)}

/* Tabs + lists */
.tabs{display:flex;gap:8px;flex-wrap:wrap}
.tab{display:inline-flex;align-items:center;padding:9px 12px;border-radius:999px;border:1px solid var(--border);background:rgba(0,0,0,.18);color:var(--text);font-size:13px}
.tab:hover{text-decoration:none;border-color:rgba(var(--red2-rgb),.35)}
.tab.active{background:rgba(var(--red2-rgb),.18);border-color:rgba(var(--red2-rgb),.45)}
.list{display:flex;flex-direction:column;gap:8px}
.list-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.16);color:var(--text)}
.list-item:hover{text-decoration:none;border-color:rgba(var(--red2-rgb),.35);background:rgba(var(--red2-rgb),.08)}
.li-title{font-weight:900}
.li-right{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}

/* News cards */
.news-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
@media (max-width: 760px){ .news-grid{grid-template-columns:1fr} }
.news-card{display:block;border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden;background:rgba(0,0,0,.16);color:var(--text)}
.news-card:hover{text-decoration:none;border-color:rgba(var(--red2-rgb),.35);background:rgba(var(--red2-rgb),.08)}
.news-card img{width:100%;height:140px;object-fit:cover;display:block}
.nc-body{padding:10px 12px}
.nc-title{font-weight:900;margin-bottom:6px}

/* Servers */
.server-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media (max-width: 760px){ .server-grid{grid-template-columns:1fr} }
.server-card{background:rgba(0,0,0,.16)}
.server-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.server-name{font-weight:900;font-size:16px}
.server-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:6px}
.server-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.server-stats > div{background:rgba(0,0,0,.12);border:1px solid rgba(255,255,255,.06);border-radius:14px;padding:10px 12px}

/* New server cards (CSSPanel-like) */
.sv-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
@media (max-width: 760px){ .sv-grid{grid-template-columns:1fr} }
.sv-card{border:1px solid rgba(255,255,255,.10);border-radius:22px;overflow:hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.30));
  box-shadow: 0 18px 55px rgba(0,0,0,.40);
}
.sv-media{position:relative;height:178px;background-size:cover;background-position:center;}
.sv-media::before{content:"";position:absolute;inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.78));
}
.sv-top{position:absolute;left:12px;right:12px;top:12px;display:flex;justify-content:space-between;align-items:center;gap:10px;z-index:2}
.sv-status{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;
  font-size:12px;font-weight:900;letter-spacing:.6px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(235,235,236,.92);
}
.sv-status.online{background: rgba(70,255,170,.12);border-color: rgba(70,255,170,.25);color: rgba(130,255,200,.95)}
.sv-status.offline{background: rgba(255,255,255,.06);border-color: rgba(255,255,255,.10);color: rgba(235,235,236,.82)}
.sv-menu{width:34px;height:34px;border-radius:12px;border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);color:rgba(255,255,255,.88);cursor:pointer
}
.sv-menu:hover{filter:brightness(1.05)}
.sv-titlewrap{position:absolute;left:16px;right:16px;bottom:14px;z-index:2;min-width:0}
.sv-name{font-weight:950;font-size:20px;letter-spacing:.3px;text-shadow:0 10px 25px rgba(0,0,0,.55);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sv-sub{margin-top:6px;color:rgba(235,235,236,.82);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sv-accent{position:absolute;left:0;right:0;bottom:0;height:4px;z-index:2;
  background: linear-gradient(90deg, rgba(59,130,246,.0), rgba(59,130,246,.95), rgba(59,130,246,.0));
}
.sv-body{padding:14px 14px 16px}
.sv-iprow{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 12px;border-radius:16px;border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.sv-ip{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:13px;color:rgba(235,235,236,.92);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sv-copy{width:34px;height:34px;border-radius:12px;border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);color:rgba(255,255,255,.90);cursor:pointer
}
.sv-copy:hover{filter:brightness(1.05)}
.sv-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.sv-m{padding:10px 12px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background: rgba(0,0,0,.14);min-width:0}
.sv-k{color:rgba(235,235,236,.68);font-size:12px}
.sv-v{font-weight:900;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sv-connect{display:block;margin-top:14px;text-align:center;padding:12px 14px;border-radius:16px;
  font-weight:900;letter-spacing:.2px;text-decoration:none;color:#071427;
  background: linear-gradient(180deg, rgba(59,130,246,.98), rgba(37,99,235,.92));
  border:1px solid rgba(59,130,246,.35);
  box-shadow: 0 18px 45px rgba(59,130,246,.18);
}
.sv-connect:hover{text-decoration:none;filter:brightness(1.03)}

/* Servers: card menu dropdown */
.sv-menubox{position:relative;display:inline-flex;align-items:center;justify-content:flex-end}
.sv-dropdown{position:absolute;right:0;top:40px;min-width:170px;z-index:50;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(10,12,22,.92);
  box-shadow: 0 18px 55px rgba(0,0,0,.55);
  overflow:hidden;
}
.sv-dditem{display:flex;align-items:center;gap:10px;padding:10px 12px;
  color:rgba(235,235,236,.92);text-decoration:none;font-weight:800;font-size:13px
}
.sv-dditem:hover{background:rgba(255,255,255,.06);text-decoration:none}

/* Servers: details page */
.sv-detail{overflow:hidden}
.svd-hero{position:relative;min-height:220px;background-size:cover;background-position:center;}
.svd-hero::before{content:"";position:absolute;inset:0;
  background: radial-gradient(700px 420px at 20% 0%, rgba(59,130,246,.18), transparent 60%),
              linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.82));
}
.svd-top{position:absolute;left:14px;right:14px;top:14px;display:flex;align-items:center;justify-content:space-between;gap:10px;z-index:2}
.svd-title{position:absolute;left:18px;right:18px;bottom:18px;z-index:2;min-width:0}
.svd-grid{display:grid;grid-template-columns: 1fr 1fr;gap:14px}
@media (max-width: 860px){.svd-grid{grid-template-columns:1fr}}
.svd-box{border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.14);border-radius:18px;padding:14px;min-width:0}
.svd-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.svd-players{margin-top:10px;border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden;max-height:340px;overflow:auto}
.svd-player{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.06)}
.svd-player:last-child{border-bottom:0}
.svd-pname{font-weight:800;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.svd-pscore{color:rgba(235,235,236,.72);font-weight:900}

/* Media embeds */
.video{position:relative;width:100%;aspect-ratio:16/9;border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.18)}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.discord{width:100%;height:380px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.18)}


/* Funplay-style footer */
.portal-footer{
  margin-top:36px;
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(var(--red-rgb),.14), transparent 60%),
    radial-gradient(900px 520px at 85% 10%, rgba(var(--red2-rgb),.12), transparent 60%),
    rgba(7,8,18,.92);
  border-top:1px solid rgba(255,255,255,.08);
}
.footer-inner{padding:28px 18px 30px}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1.1fr 1fr 1fr;
  gap:26px;
}
@media (max-width: 980px){
  .footer-grid{grid-template-columns:1fr 1fr; gap:18px}
}
@media (max-width: 620px){
  .footer-grid{grid-template-columns:1fr}
}
.footer-col{min-width:0}
.footer-title{
  font-weight:800;
  letter-spacing:.2px;
  margin:0 0 12px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(var(--red2-rgb),.55);
}
.footer-text{color:rgba(233,233,234,.86); font-size:14px; line-height:1.55; margin:0 0 12px}
.footer-brand{display:flex; align-items:center; gap:12px; margin-top:14px}
.footer-logo{height:40px; width:auto; opacity:.95}
.footer-copy{margin-top:10px}
.footer-links-2{display:grid; grid-template-columns:1fr 1fr; gap:18px}
@media (max-width: 620px){ .footer-links-2{grid-template-columns:1fr} }
.footer-links{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px}
.footer-links a{color:rgba(233,233,234,.86); text-decoration:none}
.footer-links a:hover{color:#fff}
.footer-meta{margin-top:14px; font-size:13px}
.footer-meta a{color:rgba(233,233,234,.72); text-decoration:none}
.footer-meta a:hover{color:#fff}
.footer-social{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px}
.footer-social a{color:rgba(233,233,234,.86); text-decoration:none}
.footer-social a:hover{color:#fff}
.sm-ic{
  display:inline-block;
  width:18px;height:18px;
  border-radius:6px;
  margin-right:10px;
  background: rgba(255,255,255,.08);
  vertical-align:-4px;
  position:relative;
}
.icon-discord{background:rgba(88,101,242,.22)}
.icon-facebook{background:rgba(24,119,242,.22)}
.icon-instagram{background:rgba(255,0,128,.18)}
.icon-youtube{background:rgba(255,0,0,.18)}
.icon-tiktok{background:rgba(0,0,0,.18); outline:1px solid rgba(255,255,255,.08)}
.icon-twitch{background:rgba(145,70,255,.18)}
.icon-globe{background:rgba(255,255,255,.08)}
.footer-btn{margin-top:10px}
.footer-partners{display:flex; gap:12px; flex-wrap:wrap; margin-top:12px}
.footer-partners a{display:inline-flex;align-items:center;justify-content:center}
.footer-partners img{width:64px;height:64px;object-fit:contain;border-radius:12px;background:rgba(255,255,255,0.03);padding:10px;border:1px solid rgba(255,255,255,0.06)}
@media (min-width: 900px){ .footer-partners img{width:128px;height:128px;padding:14px;border-radius:16px} }
.mt-18{margin-top:18px}

/* Partners */
.partner-thumb{width:64px;height:64px;object-fit:contain;border-radius:10px;background:rgba(255,255,255,0.03);padding:10px;border:1px solid rgba(255,255,255,0.06)}

/* Theme presets (client-side switcher) */
body[data-theme="red"]{--red:#8b0000;--red2:#b30000;--red-rgb:139,0,0;--red2-rgb:179,0,0;--link:#ffd0d0}
body[data-theme="blue"]{--red:#0b3d91;--red2:#1e66f5;--red-rgb:11,61,145;--red2-rgb:30,102,245;--link:#d6e4ff}
body[data-theme="green"]{--red:#0b6b3a;--red2:#16a34a;--red-rgb:11,107,58;--red2-rgb:22,163,74;--link:#d6ffe6}
body[data-theme="purple"]{--red:#4b196e;--red2:#a855f7;--red-rgb:75,25,110;--red2-rgb:168,85,247;--link:#f1d6ff}
body[data-theme="orange"]{--red:#7a2e00;--red2:#f97316;--red-rgb:122,46,0;--red2-rgb:249,115,22;--link:#ffe2d1}

body[data-theme="cyan"]{--red:#004e57;--red2:#22d3ee;--red-rgb:0,78,87;--red2-rgb:34,211,238;--link:#d9faff;--link2:#b4f2ff}
body[data-theme="pink"]{--red:#7a0033;--red2:#ff4d9d;--red-rgb:122,0,51;--red2-rgb:255,77,157;--link:#ffe0f0;--link2:#ffc2df}
body[data-theme="gold"]{--red:#6b4e00;--red2:#fbbf24;--red-rgb:107,78,0;--red2-rgb:251,191,36;--link:#fff1c2;--link2:#ffe08a}
body[data-theme="slate"]{--red:#0f172a;--red2:#64748b;--red-rgb:15,23,42;--red2-rgb:100,116,139;--link:#e2e8f0;--link2:#cbd5e1}
.theme-select select{width:auto; padding:9px 12px; font-size:13px; border-radius:999px}


/* Penalties badges */
.badge.ok{border:1px solid rgba(0,255,150,.35);background:rgba(0,255,150,.10)}
.badge.info{border:1px solid rgba(80,160,255,.35);background:rgba(80,160,255,.10);color:#cfe6ff}
.badge.warn{border:1px solid rgba(255,200,80,.35);background:rgba(255,200,80,.10);color:#ffe6bf}
.badge.muted{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06)}

/* ===================== Dashboard (3-column like screenshot) ===================== */
.dash{display:grid;grid-template-columns:260px 1fr 300px;gap:16px;align-items:start}

/* Dashboard/admin panels use a wider container than the public site */
.panel-wrap{max-width:1400px;margin:0 auto;padding:18px 18px 30px 18px}
.dash-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);font-weight:900;margin-bottom:12px}
.dash-brand img{width:30px;height:30px;border-radius:10px}
.dash-side-title{font-weight:900;margin:10px 0 10px 0;letter-spacing:.2px}
.dash-side.card,.dash-right.card{position:sticky;top:88px}
.dash-nav{display:flex;flex-direction:column;gap:8px}
.dash-link{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:16px;border:1px solid rgba(255,255,255,.07);background:linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.12));color:var(--text);text-decoration:none;box-shadow:0 10px 30px rgba(0,0,0,.16) inset}
.dash-link:hover{text-decoration:none;filter:brightness(1.06)}
.dash-link.active{background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.28));border-color:rgba(255,255,255,.14);box-shadow:0 12px 34px rgba(0,0,0,.22) inset}
.dash-link .ic{width:20px;display:inline-flex;justify-content:center;opacity:.95}

/* Live notification badge (tickets etc.) */
.notif-badge{margin-left:auto;min-width:18px;height:18px;padding:0 6px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;line-height:18px;background:rgba(var(--red2-rgb),.20);border:1px solid rgba(var(--red2-rgb),.40);color:var(--text);}
.dash-top{display:flex;justify-content:flex-end;margin-bottom:12px}
.dash-user{display:flex;align-items:center;gap:10px}
.dash-avatar{width:38px;height:38px;border-radius:12px;border:1px solid rgba(255,255,255,.10);object-fit:cover}
.dash-avatar.placeholder{display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.08);color:var(--muted);font-weight:900}
.dash-user-name{font-weight:900}
.dash-user-meta{display:flex;flex-direction:column;line-height:1.1}
.dash-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.dash-card{min-height:92px}
.dash-num{font-size:38px;font-weight:900;margin-top:6px}
.discord-tall{height:520px}

@media (max-width: 1100px){
  .dash{grid-template-columns:240px 1fr}
  .dash-right{display:none}
}
@media (max-width: 820px){
  .dash{grid-template-columns:1fr}
  .dash-side.card{position:relative;top:auto}
  .dash-top{justify-content:flex-start}
}

/* ===================== Tickets ===================== */
.ticket-thread{display:flex;flex-direction:column;gap:12px}
.ticket-msg{border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.18);border-radius:16px;padding:12px}
.ticket-msg.staff{background:linear-gradient(180deg, rgba(var(--red-rgb),.14), rgba(0,0,0,.18));border-color:rgba(var(--red-rgb),.28)}
.ticket-msg-head{display:flex;gap:10px;align-items:center}
.ticket-av{width:34px;height:34px;border-radius:12px;border:1px solid rgba(255,255,255,.10);object-fit:cover}
.ticket-av.placeholder{background:rgba(255,255,255,.08)}
.ticket-name{font-weight:900}
.ticket-body{margin-top:8px;color:var(--text);line-height:1.45;white-space:normal}




/* v21 home */
.home-wrap{max-width:1320px;margin:0 auto;padding:20px}
.home-grid{display:grid;grid-template-columns:1fr 340px;gap:16px;align-items:start}
.home-grid.home-grid-2{grid-template-columns:1fr 360px}
@media (max-width:980px){.home-grid{grid-template-columns:1fr}}

.home-mini-stats{display:grid;gap:10px;min-width:160px}
.home-mini-stat{background:rgba(0,0,0,.14);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:4px}
.home-mini-stat b{font-size:22px}
.home-mini-stat span{opacity:.8;font-size:12px}

.home-hero{position:relative;overflow:hidden}
.home-hero::before{
  content:"";
  position:absolute;inset:-2px;
  background:
    radial-gradient(800px 420px at 18% 12%, rgba(var(--red2-rgb),.24), transparent 60%),
    radial-gradient(700px 420px at 85% 18%, rgba(var(--red-rgb),.18), transparent 58%),
    radial-gradient(900px 560px at 60% 120%, rgba(255,255,255,.06), transparent 60%);
  pointer-events:none;
}
.home-hero > *{position:relative}

.home-hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;align-items:stretch}
@media (max-width:980px){.home-hero-grid{grid-template-columns:1fr}}

.home-badge{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:9px 12px;background:rgba(0,0,0,.10);color:var(--muted);font-size:13px}
.home-h1{margin:12px 0 10px;font-size:clamp(30px,4vw,48px);line-height:1.06;letter-spacing:-.6px}
.home-sub{margin:0 0 16px;color:var(--muted);max-width:65ch}
.home-cta{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

.home-stats{display:grid;gap:10px}
.home-stat{padding:14px;border-radius:16px;border:1px solid var(--border);background:rgba(0,0,0,.12)}
.home-stat b{display:block;font-size:16px}
.home-stat span{color:var(--muted);font-size:13px}

.home-section-title{margin:18px 6px 10px;font-size:13px;color:var(--muted);letter-spacing:.2px;text-transform:uppercase}
.home-features{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:980px){.home-features{grid-template-columns:1fr}}
.home-feature{padding:16px;border-radius:16px;border:1px solid var(--border);background:rgba(18,16,19,.65)}
.home-feature .t{font-weight:800;margin-bottom:6px}
.home-feature .d{margin:0;color:var(--muted);font-size:13px}

.home-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:980px){.home-steps{grid-template-columns:1fr}}
.home-step{padding:16px;border-radius:16px;border:1px solid var(--border);background:rgba(18,16,19,.65)}
.home-num{width:34px;height:34px;border-radius:12px;display:inline-grid;place-items:center;background:rgba(var(--red2-rgb),.18);border:1px solid rgba(var(--red2-rgb),.35);margin-bottom:10px;font-weight:900;color:#ffd0d0}

.home-list{margin:10px 0 0 18px;color:var(--muted)}

.home-sidebar{position:sticky;top:86px}
.home-widget{padding:0;overflow:hidden}
.home-widget iframe{width:100%;height:560px;border:0;display:block}
.home-widget .pad{padding:16px}


.home-hero-card{padding:22px}
.home-accent{color:#ffd0d0}
.home-hero-side{padding:22px;display:flex;flex-direction:column;gap:10px}
.home-side-title{font-weight:900;margin-bottom:4px}
.home-link{display:block;padding:12px;border-radius:14px;border:1px solid var(--border);background:rgba(0,0,0,.12)}
.home-link b{display:block}
.home-link span{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.home-link:hover{border-color:rgba(255,255,255,.18);text-decoration:none}

.home-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:980px){.home-cards{grid-template-columns:1fr}}
.home-card{padding:14px;border-radius:16px;border:1px solid var(--border);background:rgba(0,0,0,.12)}
.home-card-top{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.home-card-row{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:10px}
.home-code{padding:6px 8px;border-radius:10px;border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.20);color:var(--text)}

.home-2col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:980px){.home-2col{grid-template-columns:1fr}}
.home-list{display:flex;flex-direction:column;gap:10px}
.home-list-item{display:block;padding:12px;border-radius:14px;border:1px solid var(--border);background:rgba(0,0,0,.10)}
.home-list-item:hover{border-color:rgba(255,255,255,.18);text-decoration:none}
.home-li-title{font-weight:800}
.home-li-sub{color:var(--muted);font-size:13px;margin-top:2px}

.home-join{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px}
.home-join-title{font-weight:900;font-size:18px}

.home-hero-card{padding:22px;display:grid;gap:12px}
.home-hero-side{padding:22px;display:flex;flex-direction:column;gap:10px}
.home-side-title{font-weight:900;color:var(--text);margin-bottom:2px}
.home-link{display:grid;gap:2px;padding:12px;border-radius:14px;border:1px solid var(--border);background:rgba(0,0,0,.12)}
.home-link:hover{border-color:rgba(255,255,255,.16);text-decoration:none}
.home-link b{color:var(--text)}
.home-link span{color:var(--muted);font-size:13px}

.home-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:980px){.home-cards{grid-template-columns:1fr}}
.home-card{border:1px solid var(--border);background:rgba(0,0,0,.12);border-radius:16px;padding:14px;display:grid;gap:10px}
.home-card-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.home-card-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.home-code{display:inline-block;padding:6px 8px;border-radius:12px;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.08)}

.home-2col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:980px){.home-2col{grid-template-columns:1fr}}
.home-list{display:grid;gap:8px}
.home-list-item{display:block;padding:12px;border-radius:14px;border:1px solid var(--border);background:rgba(0,0,0,.12)}
.home-list-item:hover{border-color:rgba(255,255,255,.16);text-decoration:none}
.home-li-title{font-weight:800;color:var(--text)}
.home-li-sub{margin-top:3px;color:var(--muted);font-size:13px}

.home-join{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px}
.home-join-title{font-weight:900;font-size:18px}

/* v21 home extras */
.home-hero-card{padding:22px;display:grid;gap:12px}
.home-accent{color:#ffd0d0}
.home-hero-side{padding:22px;display:flex;flex-direction:column;gap:10px}
.home-side-title{font-weight:900;color:var(--text);margin-bottom:2px}
.home-link{display:grid;gap:2px;padding:12px;border-radius:14px;border:1px solid var(--border);background:rgba(0,0,0,.12)}
.home-link:hover{border-color:rgba(255,255,255,.18);text-decoration:none}
.home-link b{font-weight:900}
.home-link span{color:var(--muted);font-size:13px}

.home-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:980px){.home-cards{grid-template-columns:1fr}}
.home-card{padding:14px;border-radius:16px;border:1px solid var(--border);background:rgba(18,16,19,.65);display:grid;gap:10px}
.home-card-top{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.home-card-row{display:flex;justify-content:space-between;gap:10px;align-items:center}
.home-code{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;padding:6px 8px;border-radius:10px;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.18);color:var(--text);font-size:12px}

.home-2col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:980px){.home-2col{grid-template-columns:1fr}}
.home-list{display:grid;gap:8px}
.home-list-item{display:block;padding:12px;border-radius:14px;border:1px solid var(--border);background:rgba(0,0,0,.10)}
.home-list-item:hover{border-color:rgba(255,255,255,.18);text-decoration:none}
.home-li-title{font-weight:800}
.home-li-sub{color:var(--muted);font-size:12px;margin-top:3px}

.home-join{padding:18px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.home-join-title{font-weight:900;font-size:18px}

/* Notifications (bell + dropdown + modal) */
.notif-wrap{position:relative;display:inline-flex;align-items:center}
.notif-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 12px;border-radius:12px;border:1px solid var(--border);background:rgba(0,0,0,.18);color:var(--text);cursor:pointer}
.notif-bell:hover{background:rgba(0,0,0,.26)}
.notif-bell.has-notif .notif-icon{animation:notif-pulse 1.1s infinite}
@keyframes notif-pulse{0%{transform:scale(1)}50%{transform:scale(1.12)}100%{transform:scale(1)}}
.notif-count{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:rgba(255,80,120,.22);border:1px solid rgba(255,80,120,.35);color:#ffd6e2;font-size:12px;display:inline-flex;align-items:center;justify-content:center}

.notif-dd{position:absolute;right:0;top:44px;width:320px;max-width:88vw;display:none;border:1px solid var(--border);border-radius:14px;background:rgba(16,16,20,.98);box-shadow:0 18px 60px rgba(0,0,0,.55);overflow:hidden;z-index:999}
.notif-dd-head{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid var(--border)}
.notif-dd-title{font-weight:700}
.notif-dd-actions .link-btn{background:none;border:none;color:var(--muted);cursor:pointer;font-size:12px}
.notif-dd-actions .link-btn:hover{color:var(--text)}

/* Generic inline link helper (used in bans/mutes lists) */
.link{color:var(--accent);text-decoration:none}
.link:hover{text-decoration:underline}
.notif-dd-list{max-height:360px;overflow:auto}
.notif-item{display:block;padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.06);color:var(--text);text-decoration:none}
.notif-item:hover{background:rgba(255,255,255,.04)}
.notif-item.unread .notif-title{color:#fff}
.notif-title{font-weight:700;font-size:13px;margin-bottom:2px}
.notif-msg{font-size:12px;color:var(--muted)}
.notif-when{font-size:11px;color:rgba(255,255,255,.45);margin-top:6px}

.notif-modal{position:fixed;inset:0;z-index:2000}
.notif-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.65)}
.notif-modal-card{position:relative;max-width:520px;width:92vw;margin:10vh auto 0 auto;border:1px solid var(--border);border-radius:18px;background:rgba(16,16,20,.98);box-shadow:0 24px 80px rgba(0,0,0,.65);overflow:hidden}
.notif-modal-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid var(--border)}
.notif-modal-title{font-weight:800}
.notif-close{background:none;border:none;color:var(--muted);font-size:24px;cursor:pointer;line-height:1}
.notif-close:hover{color:var(--text)}
.notif-modal-body{padding:12px 14px;max-height:45vh;overflow:auto}
.notif-modal-item{padding:10px 10px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.03);margin-bottom:10px}
.notif-modal-item{display:block;text-decoration:none;color:var(--text);cursor:pointer}
.notif-modal-item:hover{background:rgba(255,255,255,.06)}
.notif-modal-item-title{font-weight:800;margin-bottom:4px}
.notif-modal-item-msg{color:var(--muted);font-size:13px}
.notif-modal-foot{padding:12px 14px;border-top:1px solid var(--border);display:flex;justify-content:flex-end}

/* --- Post/announcement cards layout + text clamping --- */
.posts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;}
@media (max-width: 900px){.posts-grid{grid-template-columns:1fr;}}
.post-card{min-width:0;overflow:hidden;}
.post-card-link{display:block;min-width:0;}
.post-title{overflow-wrap:anywhere;word-break:break-word;}
.post-excerpt{overflow-wrap:anywhere;word-break:break-word;}

.clamp-1,.clamp-2,.clamp-3,.clamp-4{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  overflow:hidden;
  max-width:100%;
  min-width:0;
  /* Long tokens (URLs / MySQLMySQL...) must not overflow cards */
  overflow-wrap:anywhere;
  word-break:break-all;
}
.clamp-1{-webkit-line-clamp:1;}
.clamp-2{-webkit-line-clamp:2;}
.clamp-3{-webkit-line-clamp:3;}
.clamp-4{-webkit-line-clamp:4;}

/* Notification dropdown badge */
.notif-pill{display:inline-flex;align-items:center;justify-content:center;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;background:rgba(220,50,50,.16);border:1px solid rgba(220,50,50,.35);color:#ffbcbc;margin-left:8px;}

/* Notifications page (dashboard) */
.notif-page-list{display:flex;flex-direction:column;gap:10px;}
.notif-page-item{display:block;text-decoration:none;color:var(--text);border:1px solid var(--border);border-radius:14px;background:rgba(0,0,0,.12);padding:12px;overflow:hidden;min-width:0;}
.notif-page-item:hover{background:rgba(255,255,255,.04);}
.notif-page-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0;}
.notif-page-top > *{min-width:0;}
.notif-page-item .notif-title{font-size:14px;line-height:1.25;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.notif-page-item .notif-body{margin-top:8px;color:var(--muted);font-size:13px;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;}


/* --- v45: Announcements readability + nicer cards --- */
.post-card-link{
  padding:24px;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  gap:12px;
  text-decoration:none;
}
.post-card-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
  border-color: rgba(120,170,255,.22);
}
.post-card-link:focus{outline:2px solid rgba(120,170,255,.35); outline-offset:2px;}
.post-card .pill{align-self:flex-start}
.post-title{font-size:18px;font-weight:800;letter-spacing:.2px;line-height:1.2;margin-top:2px}
.post-excerpt{line-height:1.5; margin-top:4px; overflow-wrap:anywhere; word-break:break-all;}
.post-body{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-all;
  line-height:1.6;
}
.post-body a{overflow-wrap:anywhere; word-break:break-all;}
/* If clamping causes '...'
   keep cards tidy but never overflow horizontally. */
.post-excerpt{max-width:100%;}


/* --- v47: Prose / long text wrapping (announcements, posts, forum bodies) --- */
.prose{white-space:pre-wrap;line-height:1.65;font-size:15px;max-width:100%;min-width:0;}
.prose,.prose *{overflow-wrap:anywhere;word-break:break-word;}
.prose a{word-break:break-all;overflow-wrap:anywhere;}


/* --- v47: Online users widget --- */
.online-users{display:flex;flex-direction:column;gap:10px;max-height:520px;overflow:auto;padding-right:6px;}
.ou-row{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);}
.ou-row.ou-click:hover{background:rgba(255,255,255,.05);border-color:rgba(124,92,255,.35);} 
.ou-row.ou-click:active{transform:translateY(1px);} 
.ou-avatar{width:34px;height:34px;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;background:rgba(120,170,255,.14);color:#dbe7ff;flex:0 0 auto;}
.ou-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.ou-dot{width:9px;height:9px;border-radius:999px;flex:0 0 auto;}
.ou-dot.on{background:rgba(80,220,140,1);box-shadow:0 0 0 4px rgba(80,220,140,.12);}
.ou-dot.off{background:rgba(160,170,190,.55);}
.ou-name{
  min-width:0;
  overflow:hidden;
  font-weight:700;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}
.ou-name-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.ou-badges{display:flex;align-items:center;gap:6px;flex-wrap:wrap;max-width:100%}
.ou-badge{
  width:20px;
  height:20px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  line-height:1;
  box-shadow: 0 0 0 1px rgba(0,0,0,.30), 0 12px 28px rgba(0,0,0,.30);
}
.ou-badge img{
  width:100%;
  height:100%;
  border-radius:10px;
  object-fit:cover;
  display:block;
}
.ou-badge{filter: drop-shadow(0 2px 8px rgba(0,0,0,.55));}
.ou-tag{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);font-size:11px;line-height:1.2;}
.ou-tag img{
  width:16px;
  height:16px;
  border-radius:6px;
  object-fit:cover;
  display:inline-block;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 10px 22px rgba(0,0,0,.35);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.55));
}

/* Public profile */
.profile-page{max-width:980px;margin:0 auto;padding:22px 16px;}
.profile-card{border:1px solid rgba(255,255,255,.10);background:rgba(10,14,22,.68);border-radius:18px;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,.35);}
.profile-head{display:flex;gap:18px;align-items:center;padding:18px;}
.profile-avatar{width:92px;height:92px;border-radius:18px;border:1px solid rgba(255,255,255,.12);object-fit:cover;background:rgba(255,255,255,.04);}
.profile-title{min-width:0;}
.profile-name{font-size:22px;font-weight:900;line-height:1.1;}
.profile-meta{margin-top:6px;display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.profile-body{padding:18px;}
.profile-bio{white-space:pre-wrap;word-break:break-word;}
.plinks{display:flex;gap:14px;row-gap:14px;flex-wrap:wrap;margin-top:10px;}
/* Back-compat: public profile uses .profile-links container */
.profile-links{display:flex;gap:14px;row-gap:14px;flex-wrap:wrap;justify-content:flex-end;align-items:center;}
.plink{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);font-weight:800;font-size:13px;}
.plink:hover{background:rgba(255,255,255,.07);}
.plink .dot{width:8px;height:8px;border-radius:999px;background:#4F8CFF;box-shadow:0 0 0 2px rgba(79,140,255,.22);}

.avatar-xl{width:88px;height:88px;border-radius:18px;border:1px solid rgba(255,255,255,.12);object-fit:cover;background:rgba(255,255,255,.04);}
.profile-edit-grid{display:grid;grid-template-columns:120px 1fr;gap:14px;align-items:start;}
.profile-edit-forms input[type=file]{max-width:100%;}
@media(max-width:720px){
  .profile-head{flex-direction:column;align-items:flex-start}
  .profile-edit-grid{grid-template-columns:1fr;}
}

/* Penalties tables (Bans/Mutes/Kazne) */
.penalty-search .input{max-width:320px;}
.penalty-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}
.penalty-table thead th{
  position:sticky;
  top:0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  z-index:1;
}
.penalty-table td, .penalty-table th{
  padding:12px 14px;
}
.penalty-table tbody tr{
  background: rgba(0,0,0,.28);
}
.penalty-table tbody tr:nth-child(even){
  background: rgba(0,0,0,.22);
}
.penalty-table tbody tr:hover{
  background: rgba(79,140,255,.08);
}
.penalty-table tbody td{
  border-top: 1px solid rgba(255,255,255,.06);
}

.p-user{display:flex;gap:10px;align-items:center;min-width:0;}
.p-avatar{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  object-fit:cover;
  background: rgba(255,255,255,.05);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  flex:0 0 auto;
}
.p-meta{min-width:0;}
.p-name{font-weight:900;display:block;max-width:280px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

.pill{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.12);font-weight:900;font-size:12px;line-height:1.15;}
.pill-red{background: rgba(255, 71, 87, .18);border-color: rgba(255, 71, 87, .35);}
.pill-blue{background: rgba(79, 140, 255, .18);border-color: rgba(79, 140, 255, .35);}

.p-reason{max-width:380px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

.p-ends{min-width:120px;}
.ends-text{font-size:12px;font-weight:800;color: rgba(255,255,255,.82);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ends-bar{display:block;margin-top:6px;height:6px;border-radius:999px;background: rgba(255,71,87,.45);box-shadow: 0 0 0 1px rgba(0,0,0,.35) inset;}
.ends-bar.perm{width:44px;}

@media(max-width:900px){
  .p-name{max-width:200px;}
  .p-reason{max-width:220px;}
}

/* Pill tag (role/badge label) */
.pill.pill-tag{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;}
.pill.pill-tag .pill-text{font-weight:700;}
.pill.pill-tag .ubadge-ico{width:14px;height:14px;border-radius:5px;box-shadow:none;filter:none;}
.pill.pill-tag .ubadge-emoji{font-size:13px;filter:none;}
