:root{
  --bg:#0F1210;
  --bg-alt:#161A16;
  --card:#181D18;
  --text:#EDEAE0;
  --text-dim:#9A9A8E;
  --orange:#FF7A29;
  --orange-2:#FFB347;
  --orange-dim:#B8551C;
  --green:#7CB342;
  --red:#d95c5c;
  --line:#262B24;
  --radius:10px;
  --glow-orange: 0 0 24px rgba(255,122,41,.35);
  --glow-orange-soft: 0 0 40px rgba(255,122,41,.18);
  --grad-orange: linear-gradient(135deg, var(--orange-2), var(--orange) 55%, #c2410c);
  --card-glass: rgba(24,29,24,.6);
  --bg-glass: rgba(15,18,16,.75);
}
html[data-theme="light"]{
  --card-glass: rgba(255,255,255,.65);
  --bg-glass: rgba(244,242,236,.85);
}
html[data-theme="light"]{
  --bg:#F4F2EC;
  --bg-alt:#EAE7DD;
  --card:#FFFFFF;
  --text:#191A15;
  --text-dim:#6B6B5F;
  --line:#DEDACD;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
::selection{background:var(--orange); color:#12130F;}
::-webkit-scrollbar{width:10px; height:10px;}
::-webkit-scrollbar-track{background:var(--bg);}
::-webkit-scrollbar-thumb{background:var(--line); border-radius:20px; border:2px solid var(--bg);}
::-webkit-scrollbar-thumb:hover{background:var(--orange-dim);}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'IBM Plex Sans', sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  transition:background .3s ease, color .3s ease;
  min-height:100vh;
  position:relative;
}
/* Aurora — soft drifting glow orbs behind everything */
.aurora{position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden;}
.aurora::before, .aurora::after{
  content:""; position:absolute; width:60vw; height:60vw; border-radius:50%;
  filter:blur(90px); opacity:.16;
}
.aurora::before{
  background:var(--orange); top:-20%; left:-10%;
  animation:auroraDrift1 22s ease-in-out infinite alternate;
}
.aurora::after{
  background:#5b8a3a; bottom:-25%; right:-15%;
  animation:auroraDrift2 26s ease-in-out infinite alternate;
}
html[data-theme="light"] .aurora::before, html[data-theme="light"] .aurora::after{opacity:.10;}
@keyframes auroraDrift1{ from{ transform:translate(0,0) scale(1); } to{ transform:translate(6vw,8vh) scale(1.15); } }
@keyframes auroraDrift2{ from{ transform:translate(0,0) scale(1); } to{ transform:translate(-5vw,-6vh) scale(1.1); } }
@media (prefers-reduced-motion: reduce){ .aurora::before, .aurora::after{ animation:none; } }
body::before{
  content:"";
  position:fixed; inset:0; z-index:0; pointer-events:none;
  opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > *{position:relative; z-index:1;}
h1,h2,h3,.display{font-family:'Space Grotesk', sans-serif; letter-spacing:-0.01em;}
.mono{font-family:'IBM Plex Mono', monospace;}
a{color:inherit; text-decoration:none;}
.wrap{max-width:1180px; margin:0 auto; padding:0 32px;}

/* ---------- Header ---------- */
header{
  position:fixed; top:0; left:0; right:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:22px 32px;
  backdrop-filter:blur(14px);
  background:linear-gradient(to bottom, rgba(15,18,16,.85), transparent);
}
html[data-theme="light"] header{background:linear-gradient(to bottom, rgba(244,242,236,.9), transparent);}
.brand{font-size:18px; font-weight:700; letter-spacing:.02em;}
.brand span{color:var(--orange); text-shadow:0 0 14px rgba(255,122,41,.5);}
nav.mainnav{display:flex; gap:28px;}
nav.mainnav a{
  position:relative; font-size:12.5px; font-weight:500; text-transform:uppercase; letter-spacing:.08em;
  color:var(--text-dim); transition:color .2s; padding-bottom:3px;
}
nav.mainnav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0; height:1.5px;
  background:var(--grad-orange); transition:right .25s ease;
}
nav.mainnav a:hover,nav.mainnav a.active{color:var(--text);}
nav.mainnav a:hover::after,nav.mainnav a.active::after{right:0;}

.header-right{display:flex; align-items:center; gap:18px; position:relative;}
.gear-btn{
  width:34px; height:34px; border-radius:50%; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  background:var(--card); color:var(--text-dim); transition:.2s;
}
.gear-btn:hover{color:var(--orange); border-color:var(--orange-dim); box-shadow:var(--glow-orange); transform:rotate(45deg);}
.gear-btn svg{width:16px; height:16px; transition:transform .2s;}
.gear-btn:hover svg{transform:rotate(-45deg);}

.settings-pop{
  position:absolute; top:44px; right:0; width:210px;
  background:var(--card); border:1px solid var(--line); border-radius:12px;
  padding:6px; display:none; flex-direction:column; gap:2px;
  box-shadow:0 20px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(255,122,41,.06);
}
.settings-pop.open{display:flex; animation:popIn .18s ease;}
@keyframes popIn{ from{ opacity:0; transform:translateY(-6px) scale(.98); } to{ opacity:1; transform:translateY(0) scale(1); } }
.settings-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 10px; border-radius:8px; cursor:pointer; font-size:13.5px; color:var(--text);
}
.settings-row:hover{background:var(--bg-alt);}
.settings-row .left{display:flex; align-items:center; gap:9px;}
.settings-row .chev{color:var(--text-dim); font-size:12px;}
.sub-options{display:none; flex-direction:column; padding:2px 4px 4px;}
.sub-options.open{display:flex;}
.sub-opt{padding:8px 16px; border-radius:7px; font-size:13px; cursor:pointer; color:var(--text-dim); display:flex; justify-content:space-between;}
.sub-opt:hover{background:var(--bg-alt); color:var(--text);}
.sub-opt.active{color:var(--orange);}

/* ---------- Hero ---------- */
.hero{
  position:relative; min-height:100svh; display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center; padding:120px 24px 60px; overflow:hidden;
}
.hero::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(255,122,41,.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(124,179,66,.06), transparent 60%);
  pointer-events:none;
}
.eyebrow{font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--orange); letter-spacing:.18em; text-transform:uppercase; margin-bottom:22px;}
.hero h1{font-size:clamp(38px, 7vw, 84px); line-height:.98; font-weight:700; max-width:900px;}
.hero h1 .accent{
  background:var(--grad-orange); -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 0 30px rgba(255,122,41,.35));
}
.hero p.sub{margin-top:22px; color:var(--text-dim); font-size:16px; max-width:520px; line-height:1.6;}
.hero-cta{display:flex; gap:14px; margin-top:38px; flex-wrap:wrap; justify-content:center;}
.btn{
  padding:14px 26px; border-radius:8px; font-size:13.5px; font-weight:500; letter-spacing:.03em; cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  border:1px solid transparent; display:inline-block; position:relative;
}
.btn-primary{background:var(--grad-orange); color:#12130F; box-shadow:0 8px 24px rgba(255,122,41,.25);}
.btn-primary:hover{transform:translateY(-2px); box-shadow:0 10px 34px rgba(255,122,41,.42), var(--glow-orange);}
.btn-primary:active{transform:translateY(0);}
.btn-ghost{border-color:var(--line); color:var(--text); background:rgba(255,255,255,.02);}
.btn-ghost:hover{border-color:var(--orange-dim); color:var(--orange); box-shadow:var(--glow-orange-soft); transform:translateY(-2px);}

.root-line{width:100%; max-width:260px; margin:56px auto 0; opacity:.8;}
.root-line path{stroke:var(--orange-dim); stroke-width:1.5; fill:none; stroke-dasharray:400; stroke-dashoffset:400; animation:draw 1.8s ease forwards .3s;}
html[data-theme="light"] .root-line path{stroke:var(--orange);}
.root-line circle{animation:nodePulse 2.4s ease-in-out infinite;}
@keyframes draw{to{stroke-dashoffset:0;}}
@keyframes nodePulse{0%,100%{opacity:1;} 50%{opacity:.35;}}
@media (prefers-reduced-motion: reduce){.root-line path{animation:none; stroke-dashoffset:0;} .root-line circle{animation:none;}}

/* ---------- Sections ---------- */
section{padding:100px 0;}
.section-head{margin-bottom:46px; max-width:560px;}
.section-head .eyebrow{margin-bottom:14px;}
.section-head h2{font-size:clamp(26px,4vw,38px); font-weight:700;}
.section-head p{color:var(--text-dim); margin-top:12px; font-size:14.5px; line-height:1.6;}

.grid{display:grid; grid-template-columns:repeat(2, 1fr); gap:18px;}
@media (max-width:760px){.grid{grid-template-columns:1fr;}}

.card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px; display:flex; flex-direction:column; gap:14px; transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position:relative; overflow:hidden;
}
.card::before{
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1px;
  background:var(--grad-orange); opacity:0; transition:opacity .25s ease;
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none;
}
.card:hover{border-color:transparent; transform:translateY(-3px); box-shadow:0 16px 40px rgba(0,0,0,.35), var(--glow-orange-soft);}
.card:hover::before{opacity:1;}
.card-top{display:flex; align-items:flex-start; justify-content:space-between;}
.card-icon{width:38px; height:38px; border-radius:8px; background:var(--bg-alt); display:flex; align-items:center; justify-content:center; color:var(--orange); transition:.25s;}
.card:hover .card-icon{background:var(--grad-orange); color:#12130F; box-shadow:var(--glow-orange);}
.card-icon svg{width:18px; height:18px;}
.status{display:flex; align-items:center; gap:6px; font-size:11px; color:var(--text-dim); font-family:'IBM Plex Mono',monospace;}
.dot{width:6px; height:6px; border-radius:50%; background:var(--green); box-shadow:0 0 6px var(--green); position:relative;}
.dot::after{
  content:""; position:absolute; inset:-4px; border-radius:50%; border:1px solid currentColor; opacity:0;
  animation:dotPing 2s ease-out infinite;
}
@keyframes dotPing{0%{opacity:.6; transform:scale(.6);} 100%{opacity:0; transform:scale(1.8);}}
@media (prefers-reduced-motion: reduce){.dot::after{animation:none;}}
.dot.off{background:var(--red); box-shadow:0 0 6px var(--red);}
.card h3{font-size:19px; font-weight:700;}
.card .domain{font-size:12.5px; color:var(--orange);}
.card p.desc{font-size:13.5px; color:var(--text-dim); line-height:1.55; flex:1;}
.card .launch{font-size:12.5px; font-weight:500; color:var(--text); display:flex; align-items:center; gap:6px; padding-top:8px; border-top:1px solid var(--line);}
.card .launch svg{width:12px; height:12px; transition:.2s;}
.card:hover .launch svg{transform:translate(2px,-2px);}

/* ---------- Announcements ---------- */
.ann-list{display:flex; flex-direction:column; gap:10px;}
.ann-item{
  display:grid; grid-template-columns:110px 1fr; gap:20px; align-items:start;
  padding:18px 20px; border:1px solid var(--line); border-radius:10px; background:var(--card);
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; position:relative; overflow:hidden;
}
.ann-item::before{content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--grad-orange); opacity:0; transition:opacity .2s;}
.ann-item:hover{border-color:var(--orange-dim); transform:translateX(3px); box-shadow:0 10px 26px rgba(0,0,0,.3);}
.ann-item:hover::before{opacity:1;}
@media (max-width:640px){.ann-item{grid-template-columns:1fr; gap:8px;}}
.ann-date{font-family:'IBM Plex Mono',monospace; font-size:11.5px; color:var(--text-dim); padding-top:2px;}
.ann-tag{
  font-size:10.5px; font-weight:600; letter-spacing:.05em; text-transform:uppercase;
  padding:3px 9px; border-radius:20px; width:fit-content;
}
.ann-tag.tag-minecraft{color:var(--orange); border:1px solid var(--orange-dim); background:rgba(255,122,41,.08);}
.ann-tag.tag-modpack{color:var(--green); border:1px solid #4f7a29; background:rgba(124,179,66,.08);}
.ann-tag.tag-media{color:#6fa8dc; border:1px solid #2f5f8a; background:rgba(111,168,220,.08);}
.ann-tag.tag-general{color:var(--text-dim); border:1px solid var(--line); background:rgba(255,255,255,.03);}
.ann-body h4{font-size:15px; font-weight:700; margin-bottom:4px;}
.ann-body p{font-size:13px; color:var(--text-dim); line-height:1.55;}
.empty-state{color:var(--text-dim); font-size:13.5px; padding:30px 0; border-top:1px solid var(--line);}

/* ---------- Footer ---------- */
footer{border-top:1px solid var(--line); padding:36px 0; margin-top:40px;}
.footer-row{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;}
.footer-row .fl{font-size:12px; color:var(--text-dim);}
.footer-row .fl a{color:var(--text-dim); margin-left:16px; transition:.2s;}
.footer-row .fl a:hover{color:var(--orange);}

/* ---------- Forms / Admin ---------- */
.admin-box{max-width:640px; margin:0 auto; padding:120px 24px 60px;}
.admin-lock{max-width:360px; margin:60px auto 0; text-align:center; display:flex; flex-direction:column; gap:14px;}
input[type=password], input[type=text], input[type=email], textarea, select{
  background:var(--bg-alt); border:1px solid var(--line); color:var(--text);
  padding:11px 13px; border-radius:8px; font-family:inherit; font-size:13.5px; width:100%;
  transition:border-color .2s ease, box-shadow .2s ease;
}
input[type=password]:focus, input[type=text]:focus, input[type=email]:focus, textarea:focus, select:focus{
  outline:none; border-color:var(--orange-dim); box-shadow:var(--glow-orange-soft);
}
textarea{resize:vertical; min-height:80px;}
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:14px; text-align:left;}
.field label{font-size:12px; color:var(--text-dim);}
.admin-list-item{display:flex; justify-content:space-between; align-items:flex-start; gap:14px; padding:16px; border:1px solid var(--line); border-radius:10px; margin-bottom:10px; background:var(--card);}
.admin-list-item .meta{font-size:11px; color:var(--text-dim); font-family:'IBM Plex Mono',monospace; margin-bottom:4px;}
.del-btn{color:var(--red); font-size:12px; cursor:pointer; white-space:nowrap;}
.del-btn:hover{text-decoration:underline;}
.error-msg{color:var(--red); font-size:12.5px; min-height:16px;}

/* Maintenance toggle switch */
.switch-row{display:flex; align-items:center; justify-content:space-between; padding:18px; border:1px solid var(--line); border-radius:10px; background:var(--card); margin-bottom:30px; transition:border-color .2s;}
.switch-row:has(input:checked){border-color:var(--orange-dim);}
.switch-row .label{font-size:14px; font-weight:600;}
.switch-row .sub{font-size:12px; color:var(--text-dim); margin-top:3px;}
.switch{position:relative; width:46px; height:26px; flex-shrink:0;}
.switch input{opacity:0; width:0; height:0;}
.slider{position:absolute; cursor:pointer; inset:0; background:var(--line); border-radius:30px; transition:.2s;}
.slider::before{content:""; position:absolute; height:20px; width:20px; left:3px; top:3px; background:var(--text); border-radius:50%; transition:.2s;}
.switch input:checked + .slider{background:var(--grad-orange); box-shadow:var(--glow-orange);}
.switch input:checked + .slider::before{transform:translateX(20px); background:#12130F;}

/* ---------- Admin: login screen ---------- */
.login-screen{
  position:relative; min-height:100vh; display:flex; align-items:center; justify-content:center;
  overflow:hidden; padding:24px;
}
.letter-bg{
  position:fixed; inset:0; z-index:0;
  display:flex; flex-wrap:wrap; align-content:flex-start;
  pointer-events:none; user-select:none;
}
.letter-bg span{
  width:64px; height:64px; display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:22px;
  color:var(--line); pointer-events:auto; transition:color .25s ease, text-shadow .25s ease, transform .25s ease;
}
.letter-bg span:hover{color:var(--orange); text-shadow:0 0 24px var(--orange); transform:scale(1.25);}
.login-card{
  position:relative; z-index:1; width:100%; max-width:380px;
  background:var(--card-glass); backdrop-filter:blur(16px); border:1px solid var(--line); border-radius:16px;
  padding:36px 32px; text-align:center; box-shadow:0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,122,41,.05);
}
.login-card h1{font-size:24px; font-weight:700; margin-bottom:8px;}
.login-card h1 .accent{color:var(--orange);}
.login-card p.sub{color:var(--text-dim); font-size:13px; margin-bottom:26px;}
.login-card .field{text-align:left;}

/* ---------- Admin: dashboard shell ---------- */
.dash-shell{display:flex; min-height:100vh;}
.dash-sidebar{
  width:250px; flex-shrink:0; background:var(--bg-alt); border-right:1px solid var(--line);
  display:flex; flex-direction:column; position:sticky; top:0; height:100vh;
}
.sidebar-top{padding:20px 16px; border-bottom:1px solid var(--line);}
.brand-badge{display:flex; align-items:center; gap:10px;}
.avatar-mark{
  width:34px; height:34px; border-radius:9px; flex-shrink:0;
  background:var(--grad-orange); box-shadow:var(--glow-orange-soft);
  display:flex; align-items:center; justify-content:center; color:#12130F; font-weight:700; font-size:15px;
  font-family:'Space Grotesk',sans-serif;
}
.brand-name{font-size:14.5px; font-weight:700;}
.brand-name span{color:var(--orange);}
.brand-sub{display:flex; align-items:center; gap:6px; font-size:11px; color:var(--text-dim); margin-top:2px;}
.live-dot{width:6px; height:6px; border-radius:50%; background:var(--green); box-shadow:0 0 5px var(--green); position:relative;}
.live-dot::after{content:""; position:absolute; inset:-3px; border-radius:50%; border:1px solid var(--green); animation:dotPing 2s ease-out infinite;}
.sidebar-scroll{flex:1; overflow-y:auto; padding:16px 10px;}
.nav-group{margin-bottom:18px;}
.group-label{font-size:10.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--text-dim); padding:0 10px 8px;}
.dash-nav{display:flex; flex-direction:column; gap:1px;}
.dash-nav button, .dash-nav a{
  display:flex; align-items:center; gap:10px; text-align:left; background:none; border:none;
  color:var(--text-dim); font-family:inherit; font-size:13.5px; padding:9px 10px; border-radius:8px;
  cursor:pointer; transition:.15s; width:100%; position:relative;
}
.dash-nav button svg, .dash-nav a svg{width:16px; height:16px; flex-shrink:0; transition:transform .2s;}
.dash-nav button:hover, .dash-nav a:hover{background:var(--card); color:var(--text);}
.dash-nav button:hover svg, .dash-nav a:hover svg{transform:translateX(2px);}
.dash-nav button.active, .dash-nav a.active{background:linear-gradient(90deg, rgba(255,122,41,.14), transparent); color:var(--orange); padding-left:16px;}
.dash-nav button.active::before, .dash-nav a.active::before{content:""; position:absolute; left:0; top:20%; bottom:20%; width:3px; border-radius:3px; background:var(--grad-orange); box-shadow:var(--glow-orange);}
.sidebar-profile{
  display:flex; align-items:center; gap:10px; padding:14px 16px; border-top:1px solid var(--line);
}
.profile-avatar{
  width:32px; height:32px; border-radius:50%; background:var(--grad-orange); border:none;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; color:#12130F;
  flex-shrink:0; box-shadow:var(--glow-orange-soft);
}
.profile-info{flex:1; min-width:0;}
.profile-email{font-size:12px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.profile-role{font-size:10.5px; color:var(--orange); margin-top:1px;}
.profile-logout{color:var(--text-dim); display:flex; padding:6px; border-radius:6px; transition:.15s;}
.profile-logout:hover{color:var(--red); background:var(--card);}
.profile-logout svg{width:15px; height:15px;}

.dash-main{flex:1; min-width:0;}
.dash-topbar{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:20px 40px; border-bottom:1px solid var(--line); position:sticky; top:0;
  background:var(--bg-glass); backdrop-filter:blur(12px); z-index:5;
}
html[data-theme="light"] .dash-topbar{background:rgba(244,242,236,.85);}
.dash-topbar h2{font-size:19px; font-weight:700;}
.dash-search{
  display:flex; align-items:center; gap:8px; background:var(--card); border:1px solid var(--line);
  border-radius:8px; padding:8px 12px; width:260px; max-width:40vw; transition:border-color .2s, box-shadow .2s;
}
.dash-search:focus-within{border-color:var(--orange-dim); box-shadow:var(--glow-orange-soft);}
.dash-search svg{width:14px; height:14px; color:var(--text-dim); flex-shrink:0;}
.dash-search input{background:none; border:none; padding:0; font-size:12.5px; width:100%;}
.dash-search .kbd{font-size:10px; color:var(--text-dim); border:1px solid var(--line); border-radius:4px; padding:1px 5px; flex-shrink:0;}
.dash-content{padding:32px 40px 60px; max-width:980px;}
.empty-state-card{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:60px 24px; border:1px dashed var(--line); border-radius:14px;
  background:rgba(255,255,255,.015); gap:12px; margin-top:14px;
}
.empty-state-card svg{width:36px; height:36px; color:var(--text-dim); opacity:.7;}
.empty-state-card h4{font-size:14.5px; font-weight:600; color:var(--text);}
.empty-state-card p{font-size:12.5px; color:var(--text-dim); max-width:320px; line-height:1.5;}
.dash-panel{display:none;}
.dash-panel.active{display:block; animation:panelIn .25s ease;}
@keyframes panelIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:translateY(0); } }

.overview-grid{display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; margin-bottom:8px;}
@media (max-width:760px){
  .overview-grid{grid-template-columns:1fr;}
  .dash-shell, .site-shell{flex-direction:column;}
  .dash-sidebar, .site-sidebar{width:100%; height:auto; position:relative;}
  .dash-topbar{padding:16px 20px; flex-wrap:wrap;}
  .dash-search{width:100%; max-width:none;}
  .dash-content{padding:24px 20px 40px;}
  .site-content{padding:28px 20px 50px !important;}
}

/* ---------- Public site shell (sidebar layout) ---------- */
.site-shell{display:flex; min-height:100vh;}
.site-sidebar{
  width:240px; flex-shrink:0; background:var(--bg-alt); border-right:1px solid var(--line);
  display:flex; flex-direction:column; position:sticky; top:0; height:100vh; z-index:20;
}
.site-main{flex:1; min-width:0;}
.site-content{padding:44px 48px 90px; max-width:1180px;}
.site-mini-status{display:flex; flex-direction:column; gap:6px; padding:12px 10px; margin:0 6px 14px; border:1px solid var(--line); border-radius:9px; background:var(--card);}
.site-mini-status .row{display:flex; align-items:center; justify-content:space-between; font-size:11px;}
.site-mini-status .row .name{color:var(--text-dim); font-family:'IBM Plex Mono',monospace;}
.site-mini-status .row .val{display:flex; align-items:center; gap:5px; font-weight:600;}
.sidebar-bottom{padding:12px 16px 16px; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:10px; position:relative;}
.settings-pop.pop-up{top:auto; bottom:54px; left:12px; right:auto;}

/* ---------- Bento grid (homepage) ---------- */
.bento-grid{display:grid; grid-template-columns:repeat(4, 1fr); grid-auto-rows:150px; gap:14px;}
.bento-tile{grid-column:span 2; grid-row:span 1;}
.bento-tile.b-small{grid-column:span 1;}
.bento-tile.b-wide{grid-column:span 4;}
.bento-tile.b-tall{grid-row:span 2;}
@media (max-width:900px){
  .bento-grid{grid-template-columns:repeat(2, 1fr);}
  .bento-tile.b-wide{grid-column:span 2;}
}
@media (max-width:560px){
  .bento-grid{grid-template-columns:1fr; grid-auto-rows:auto;}
  .bento-tile, .bento-tile.b-wide, .bento-tile.b-small, .bento-tile.b-tall{grid-column:span 1; grid-row:auto;}
}
.bento-tile.card{height:100%; margin:0;}
.stat-card{
  background:var(--card); border:1px solid var(--line); border-radius:10px; padding:20px;
  position:relative; overflow:hidden; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.stat-card::before{content:""; position:absolute; left:0; right:0; top:0; height:2px; background:var(--grad-orange); opacity:.7;}
.stat-card:hover{transform:translateY(-3px); box-shadow:0 14px 30px rgba(0,0,0,.3), var(--glow-orange-soft); border-color:var(--orange-dim);}
.stat-card .stat-label{font-size:11.5px; color:var(--text-dim); text-transform:uppercase; letter-spacing:.06em; margin-bottom:10px;}
.stat-card .stat-value{font-size:17px; font-weight:700; display:flex; align-items:center; gap:8px;}
.stat-card .stat-sub{font-size:12px; color:var(--text-dim); margin-top:6px; line-height:1.5;}

/* Announcement admin table */
.ann-table{border:1px solid var(--line); border-radius:10px; overflow:hidden;}
.ann-table-head{
  display:grid; grid-template-columns:110px 1fr 100px 70px; gap:14px; padding:11px 16px;
  background:var(--bg-alt); font-size:10.5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--text-dim);
}
.ann-table-row{
  display:grid; grid-template-columns:110px 1fr 100px 70px; gap:14px; padding:14px 16px; align-items:center;
  border-top:1px solid var(--line); background:var(--card); transition:background .15s;
}
.ann-table-row:hover{background:var(--bg-alt);}
@media (max-width:700px){
  .ann-table-head{display:none;}
  .ann-table-row{grid-template-columns:1fr; gap:6px;}
}
.ann-row-title{font-size:13.5px; font-weight:600;}
.ann-row-desc{display:block; font-size:12px; color:var(--text-dim); font-weight:400; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.ann-row-date{font-size:11.5px; color:var(--text-dim); font-family:'IBM Plex Mono',monospace;}

/* ---------- Tickets ---------- */
.auth-tabs{display:flex; gap:4px; background:var(--bg-alt); border-radius:9px; padding:4px; margin-bottom:22px;}
.auth-tab{flex:1; text-align:center; padding:8px; border-radius:6px; font-size:12.5px; font-weight:500; cursor:pointer; color:var(--text-dim); transition:.15s;}
.auth-tab.active{background:var(--card); color:var(--text);}

.ticket-toolbar{display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; flex-wrap:wrap; gap:12px;}
.ticket-list{display:flex; flex-direction:column; gap:10px;}
.ticket-row{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  background:var(--card); border:1px solid var(--line); border-radius:10px; padding:16px 18px;
  cursor:pointer; transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ticket-row:hover{border-color:var(--orange-dim); transform:translateX(3px); box-shadow:0 10px 24px rgba(0,0,0,.28);}
.ticket-row .subject{font-size:14px; font-weight:600;}
.ticket-row .meta{font-size:11.5px; color:var(--text-dim); margin-top:4px; font-family:'IBM Plex Mono',monospace;}
.status-badge{font-size:10.5px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; padding:4px 10px; border-radius:20px; flex-shrink:0;}
.status-badge.open{color:var(--green); background:rgba(124,179,66,.1); border:1px solid #4f7a29; box-shadow:0 0 12px rgba(124,179,66,.15);}
.status-badge.in_progress{color:var(--orange); background:rgba(255,122,41,.1); border:1px solid var(--orange-dim); box-shadow:0 0 12px rgba(255,122,41,.18);}
.status-badge.closed{color:var(--text-dim); background:rgba(255,255,255,.03); border:1px solid var(--line);}

.thread-header{display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:26px; flex-wrap:wrap;}
.thread-header h2{font-size:20px; font-weight:700; margin-bottom:6px;}
.thread-header .meta{font-size:12px; color:var(--text-dim);}
.msg-list{display:flex; flex-direction:column; gap:14px; margin-bottom:24px;}
.msg{max-width:74%; padding:12px 16px; border-radius:12px; font-size:13.5px; line-height:1.55; animation:msgIn .2s ease;}
@keyframes msgIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:translateY(0); } }
.msg .msg-meta{font-size:10.5px; color:var(--text-dim); margin-bottom:5px; font-family:'IBM Plex Mono',monospace;}
.msg.staff{align-self:flex-start; background:linear-gradient(135deg, rgba(255,122,41,.09), var(--card)); border:1px solid var(--orange-dim); border-top-left-radius:3px; box-shadow:0 0 20px rgba(255,122,41,.08);}
.msg.mine{align-self:flex-end; background:var(--card); border:1px solid var(--line); border-top-right-radius:3px;}
.msg .staff-tag{color:var(--orange); font-weight:600;}
@media (max-width:600px){.msg{max-width:90%;}}
.reply-box{display:flex; gap:10px; align-items:flex-end;}
.reply-box textarea{min-height:52px;}
.log-row{display:flex; align-items:center; justify-content:space-between; gap:14px; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:12px 16px;}
.log-row .action{font-size:13px; font-weight:600;}
.log-row .details{font-size:12px; color:var(--text-dim); margin-top:2px;}
.log-row .when{font-size:11px; color:var(--text-dim); font-family:'IBM Plex Mono',monospace; flex-shrink:0;}

/* ---------- FAQ ---------- */
.faq-item{border:1px solid var(--line); border-radius:10px; background:var(--card); margin-bottom:10px; overflow:hidden;}
.faq-item summary{
  padding:16px 20px; cursor:pointer; font-size:14px; font-weight:600; list-style:none;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:"+"; color:var(--orange); font-size:18px; font-weight:400; flex-shrink:0; transition:transform .2s;}
.faq-item[open] summary::after{transform:rotate(45deg);}
.faq-item .faq-answer{padding:0 20px 18px; font-size:13.5px; color:var(--text-dim); line-height:1.6;}

/* ---------- Launcher shell (icon rail + content + news) ---------- */
.launcher-shell{display:flex; min-height:100vh;}
.icon-rail{
  width:72px; flex-shrink:0; background:var(--bg-alt); border-right:1px solid var(--line);
  display:flex; flex-direction:column; align-items:center; padding:18px 0 14px; position:sticky; top:0; height:100vh; gap:5px; z-index:30;
}
.rail-logo{
  width:40px; height:40px; border-radius:11px; background:var(--grad-orange); box-shadow:var(--glow-orange-soft);
  display:flex; align-items:center; justify-content:center; font-weight:700; color:#12130F; margin-bottom:16px;
  font-family:'Space Grotesk',sans-serif; font-size:17px; flex-shrink:0;
}
.rail-btn{
  width:42px; height:42px; border-radius:11px; display:flex; align-items:center; justify-content:center;
  color:var(--text-dim); position:relative; transition:background .15s, color .15s, transform .15s; flex-shrink:0;
}
.rail-btn svg{width:19px; height:19px;}
.rail-btn:hover{background:var(--card); color:var(--text); transform:translateX(1px);}
.rail-btn.active{background:var(--grad-orange); color:#12130F; box-shadow:var(--glow-orange);}
.rail-btn::after{
  content:attr(data-label); position:absolute; left:58px; top:50%; transform:translateY(-50%) translateX(-6px);
  background:var(--card); border:1px solid var(--line); padding:6px 11px; border-radius:7px;
  font-size:12px; font-weight:500; white-space:nowrap; opacity:0; pointer-events:none; transition:.15s;
  box-shadow:0 10px 24px rgba(0,0,0,.45); z-index:40;
}
.rail-btn:hover::after{opacity:1; transform:translateY(-50%) translateX(0);}
.rail-spacer{flex:1;}
.rail-bottom{display:flex; flex-direction:column; gap:5px; align-items:center; position:relative;}

.launcher-content{flex:1; min-width:0;}
.launcher-news{
  width:360px; flex-shrink:0; border-left:1px solid var(--line); background:var(--bg-alt);
  overflow-y:auto; padding:26px 22px; position:sticky; top:0; height:100vh;
}
.launcher-news h3{font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-dim); margin-bottom:18px;}
@media (max-width:1100px){.launcher-news{display:none;}}

.launcher-hero{
  position:relative; min-height:62vh; display:flex; flex-direction:column; justify-content:flex-end;
  padding:56px 50px 46px; overflow:hidden; border-bottom:1px solid var(--line);
}
.launcher-hero .hero-bg{position:absolute; inset:0; z-index:0; opacity:.5;}
.launcher-hero .hero-bg::before, .launcher-hero .hero-bg::after{
  content:""; position:absolute; width:50vw; height:50vw; border-radius:50%; filter:blur(90px);
}
.launcher-hero .hero-bg::before{background:var(--orange); opacity:.22; top:-15%; left:10%;}
.launcher-hero .hero-bg::after{background:#5b8a3a; opacity:.16; bottom:-25%; right:-5%;}
.launcher-hero > *{position:relative; z-index:1;}
.hero-word{font-size:clamp(46px,7.5vw,104px); font-weight:700; line-height:.92; letter-spacing:-.02em;}
.hero-word .accent{background:var(--grad-orange); -webkit-background-clip:text; background-clip:text; color:transparent; filter:drop-shadow(0 0 30px rgba(255,122,41,.35));}
.hero-actions{display:flex; align-items:center; gap:18px; margin-top:28px; flex-wrap:wrap;}
.play-btn{
  display:inline-flex; align-items:center; gap:10px; padding:16px 30px; border-radius:12px;
  background:var(--grad-orange); color:#12130F; font-weight:700; font-size:14.5px; letter-spacing:.02em;
  box-shadow:0 10px 30px rgba(255,122,41,.3); transition:transform .2s, box-shadow .2s; cursor:pointer; border:none;
}
.play-btn:hover{transform:translateY(-2px); box-shadow:0 14px 40px rgba(255,122,41,.45), var(--glow-orange);}
.play-btn svg{width:16px; height:16px;}

.server-row{display:flex; gap:16px; overflow-x:auto; padding:36px 50px; scrollbar-width:thin;}
.server-tile{
  min-width:270px; flex-shrink:0; background:var(--card); border:1px solid var(--line); border-radius:14px;
  padding:22px; display:flex; flex-direction:column; gap:12px; transition:transform .2s, border-color .2s, box-shadow .2s;
}
.server-tile:hover{transform:translateY(-3px); border-color:var(--orange-dim); box-shadow:0 14px 34px rgba(0,0,0,.3), var(--glow-orange-soft);}

.launcher-panel{padding:50px;}
.launcher-panel .panel-head{margin-bottom:36px;}
.launcher-panel .panel-head h1{font-size:clamp(28px,4.5vw,40px); font-weight:700;}
.launcher-panel .panel-head p{color:var(--text-dim); font-size:14.5px; margin-top:10px; max-width:520px;}
@media (max-width:640px){.launcher-panel{padding:30px 22px;} .launcher-hero{padding:40px 24px 34px;} .server-row{padding:26px 24px;}}

/* ---------- Rules prose ---------- */
.rules-prose{
  white-space:pre-wrap; font-size:14.5px; line-height:1.75; color:var(--text);
  background:var(--card); border:1px solid var(--line); border-radius:12px; padding:30px 34px;
}

/* ---------- Wiki ---------- */
.wiki-shell{display:flex; gap:36px; align-items:flex-start;}
.wiki-sidebar{width:240px; flex-shrink:0; position:sticky; top:110px;}
.wiki-search{margin-bottom:18px;}
.wiki-cat-label{font-size:10.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--text-dim); margin:18px 0 8px;}
.wiki-cat-label:first-child{margin-top:0;}
.wiki-link{
  display:block; padding:8px 10px; border-radius:7px; font-size:13px; color:var(--text-dim);
  transition:.15s; border-left:2px solid transparent;
}
.wiki-link:hover{background:var(--card); color:var(--text);}
.wiki-link.active{background:var(--card); color:var(--orange); border-left-color:var(--orange);}
.wiki-article{flex:1; min-width:0;}
.wiki-article h1{font-size:28px; font-weight:700; margin-bottom:6px;}
.wiki-article .meta{font-size:12px; color:var(--text-dim); margin-bottom:24px; font-family:'IBM Plex Mono',monospace;}
@media (max-width:820px){
  .wiki-shell{flex-direction:column;}
  .wiki-sidebar{width:100%; position:relative; top:0;}
}
.maint-wrap{
  min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:24px;
}
.maint-icon{width:56px; height:56px; color:var(--orange); margin-bottom:26px; filter:drop-shadow(0 0 20px rgba(255,122,41,.5)); animation:maintPulse 2.4s ease-in-out infinite;}
@keyframes maintPulse{0%,100%{transform:scale(1);} 50%{transform:scale(1.08);}}
@media (prefers-reduced-motion: reduce){.maint-icon{animation:none;}}
.maint-wrap h1{font-size:clamp(30px,6vw,52px); font-weight:700; margin-bottom:16px;}
.maint-wrap p{color:var(--text-dim); max-width:460px; font-size:15px; line-height:1.6; margin-bottom:34px;}

/* ---------- Live status strip (under hero) ---------- */
.status-strip{
  display:flex; gap:14px; flex-wrap:wrap; justify-content:center; margin-top:44px;
}
.status-chip{
  display:flex; align-items:center; gap:9px; background:var(--card-glass); backdrop-filter:blur(10px);
  border:1px solid var(--line); border-radius:30px; padding:9px 18px; font-size:12.5px;
  transition:border-color .2s, box-shadow .2s, transform .2s;
}
.status-chip:hover{border-color:var(--orange-dim); box-shadow:var(--glow-orange-soft); transform:translateY(-2px);}
.status-chip .name{color:var(--text-dim); font-family:'IBM Plex Mono',monospace;}
.status-chip .val{font-weight:600;}
.status-chip .dot{width:7px; height:7px;}

/* ---------- Embed card (Discord-style link preview) ---------- */
.embed-card{
  display:flex; gap:22px; background:var(--card); border:1px solid var(--line);
  border-radius:10px; padding:22px; max-width:640px; margin:0 auto; position:relative; overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease;
}
.embed-card::before{content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--grad-orange);}
.embed-card:hover{transform:translateY(-3px); box-shadow:0 16px 40px rgba(0,0,0,.35), var(--glow-orange-soft);}
.embed-card img{
  width:120px; height:120px; object-fit:cover; border-radius:8px; flex-shrink:0;
  background:var(--bg-alt);
}
.embed-card .embed-body{display:flex; flex-direction:column; gap:8px; min-width:0;}
.embed-card .embed-title{font-size:17px; font-weight:700;}
.embed-card .embed-desc{font-size:13.5px; color:var(--text-dim); line-height:1.55;}
.embed-card .embed-link{
  font-size:12.5px; font-weight:500; color:var(--orange); display:inline-flex; align-items:center; gap:5px;
  margin-top:auto; width:fit-content;
}
.embed-card .embed-link svg{width:12px; height:12px; transition:transform .2s;}
.embed-card:hover .embed-link svg{transform:translate(2px,-2px);}
@media (max-width:520px){
  .embed-card{flex-direction:column;}
  .embed-card img{width:100%; height:160px;}
}

/* ---------- Bot Dashboard Zusatz-Styles ---------- */
.data-table{width:100%; border-collapse:collapse; font-size:13px;}
.data-table th{text-align:left; color:var(--text-dim); font-weight:600; font-size:11px; text-transform:uppercase; letter-spacing:.05em; padding:10px 12px; border-bottom:1px solid var(--line);}
.data-table td{padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:middle;}
.data-table tr:last-child td{border-bottom:none;}
.data-table tr:hover td{background:var(--bg-alt);}
.user-cell{display:flex; align-items:center; gap:10px;}
.user-cell img{width:26px; height:26px; border-radius:50%; background:var(--bg-alt); flex-shrink:0;}
.rank-num{font-family:'IBM Plex Mono',monospace; color:var(--text-dim); width:26px; display:inline-block;}
.badge{display:inline-block; font-size:10.5px; font-weight:600; letter-spacing:.03em; padding:3px 9px; border-radius:20px; text-transform:uppercase;}
.badge-warn{color:#F1C40F; border:1px solid #a4830f; background:rgba(241,196,15,.1);}
.badge-kick{color:#E67E22; border:1px solid #a35a15; background:rgba(230,126,34,.1);}
.badge-ban{color:var(--red); border:1px solid #a33f3f; background:rgba(217,92,92,.1);}
.badge-mute{color:#9B59B6; border:1px solid #6d3f81; background:rgba(155,89,182,.1);}
.badge-unban, .badge-unmute, .badge-clear_warnings{color:var(--green); border:1px solid #4f7a29; background:rgba(124,179,66,.1);}
.guild-card{display:flex; align-items:center; gap:16px; padding:20px; border:1px solid var(--line); border-radius:var(--radius); background:var(--card); margin-bottom:28px;}
.guild-card img{width:56px; height:56px; border-radius:14px; background:var(--bg-alt);}
.guild-card h3{font-size:18px; font-weight:700;}
.guild-card .sub{font-size:12.5px; color:var(--text-dim); margin-top:2px;}
.empty-row{color:var(--text-dim); font-size:13px; padding:20px 0; text-align:center;}
.save-status{font-size:12.5px; color:var(--green); margin-left:12px;}
.dj-hint{font-size:12px; color:var(--text-dim); margin-top:6px;}
