/* ==========================================================================
   Lumen for NamelessMC — design tokens, components, Fomantic UI re-skin
   Colours / radius / font / container are injected as CSS variables by PHP
   (see Lumen::themeCss) from the StaffCP settings.
   ========================================================================== */

:root {
    --lm-primary: #6366f1; --lm-primary-rgb: 99,102,241; --lm-primary-600: #4f46e5; --lm-primary-300: #a5b4fc;
    --lm-accent: #22d3ee; --lm-accent-rgb: 34,211,238;
    --lm-radius: 14px; --lm-radius-sm: 8px;
    --lm-font: 'Inter', system-ui, sans-serif;
    --lm-container: 1200px;

    --lm-bg: #f5f6fb;
    --lm-surface: #ffffff;
    --lm-surface-2: #eef0f7;
    --lm-border: rgba(15, 23, 42, .09);
    --lm-text: #0f172a;
    --lm-muted: #5b6579;
    --lm-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -8px rgba(15,23,42,.10);
    --lm-shadow-lg: 0 20px 50px -20px rgba(var(--lm-primary-rgb), .35);
    --lm-nav-bg: rgba(255,255,255,.72);
    --lm-ok: #16a34a; --lm-off: #ef4444;
}
body.dark {
    --lm-bg: #0a0c14;
    --lm-surface: #121626;
    --lm-surface-2: #181d31;
    --lm-border: rgba(255,255,255,.08);
    --lm-text: #e8ebf5;
    --lm-muted: #9aa3ba;
    --lm-shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -10px rgba(0,0,0,.5);
    --lm-shadow-lg: 0 20px 60px -20px rgba(var(--lm-primary-rgb), .55);
    --lm-nav-bg: rgba(10,12,20,.66);
    color-scheme: dark;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
html { height: auto !important; }
body.lumen {
    height: auto !important;
    font-family: var(--lm-font);
    background: var(--lm-bg);
    color: var(--lm-text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
body.lumen h1, body.lumen h2, body.lumen h3, body.lumen h4, body.lumen h5,
body.lumen .ui.header { font-family: var(--lm-font); color: var(--lm-text); letter-spacing: -.02em; font-weight: 700; }
body.lumen a { color: var(--lm-primary); }
body.lumen a:hover { color: var(--lm-primary-600); }
body.dark a { color: var(--lm-primary-300); }
body.lumen ::selection { background: rgba(var(--lm-primary-rgb), .3); }
.lm-container { width: 100%; max-width: var(--lm-container); margin: 0 auto; padding: 0 24px; }
.lm-container--narrow { max-width: 820px; }
.lm-center { text-align: center; }
.lm-muted { color: var(--lm-muted); }
.lm-small { font-size: .875rem; }
.lm-grad { background: linear-gradient(100deg, var(--lm-primary), var(--lm-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.lumen #wrapper, .lm-wrapper { background: transparent; }

/* ---------- buttons ---------- */
.lm-btn, body.lumen .ui.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--lm-font); font-weight: 600; font-size: .95rem; line-height: 1;
    padding: .8rem 1.3rem; border-radius: var(--lm-radius-sm); border: 1px solid transparent;
    cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.lm-btn:hover { transform: translateY(-1px); text-decoration: none; }
.lm-btn--sm { padding: .55rem 1rem; font-size: .875rem; }
.lm-btn--lg { padding: 1rem 1.7rem; font-size: 1rem; }
.lm-btn--block { width: 100%; }
.lm-btn--primary, body.lumen .ui.primary.button, body.lumen .ui.blue.button, body.lumen .ui.green.button:not(.basic) {
    background: linear-gradient(135deg, var(--lm-primary), var(--lm-primary-600)); color: #fff !important;
    box-shadow: 0 8px 20px -8px rgba(var(--lm-primary-rgb), .7);
}
.lm-btn--primary:hover, body.lumen .ui.primary.button:hover { box-shadow: 0 12px 26px -8px rgba(var(--lm-primary-rgb), .85); color: #fff !important; }
.lm-btn--ghost, body.lumen .ui.basic.button, body.lumen .ui.default.button {
    background: var(--lm-surface); color: var(--lm-text) !important; border-color: var(--lm-border); box-shadow: none !important;
}
.lm-btn--ghost:hover { border-color: rgba(var(--lm-primary-rgb), .5); color: var(--lm-primary) !important; }
.lm-btn--light { background: #fff; color: #111827 !important; }
.lm-btn--outline-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.5); }
.lm-btn--outline-light:hover { background: rgba(255,255,255,.12); }
body.lumen .ui.red.button, body.lumen .ui.negative.button { background: #ef4444; color: #fff; }
body.lumen .ui.button:hover { filter: none; }
.lm-iconbtn, body.lumen .ui.icon.button.lm-iconbtn {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; margin: 0;
    background: transparent; border: 1px solid var(--lm-border); border-radius: var(--lm-radius-sm); color: var(--lm-text) !important; cursor: pointer;
}
.lm-iconbtn:hover { background: var(--lm-surface-2); }
.lm-iconbtn i.icon { margin: 0; }
.lm-ico-light { display: none; }
body.dark .lm-ico-dark { display: none; }
body.dark .lm-ico-light { display: inline; }

/* ---------- navbar ---------- */
.lm-announce { background: var(--lm-primary); color: #fff; font-size: .875rem; padding: .55rem 0; text-align: center; }
.lm-announce a { color: #fff; font-weight: 700; margin-left: .75rem; text-decoration: underline; text-underline-offset: 3px; }
.lm-announce a:hover { color: #fff; }
.lm-announce--gradient { background: linear-gradient(90deg, var(--lm-primary), var(--lm-accent)); }
.lm-announce--subtle { background: rgba(var(--lm-primary-rgb), .12); color: var(--lm-text); }
.lm-announce--subtle a { color: var(--lm-primary); }

.lm-nav { position: sticky; top: 0; z-index: 50; background: var(--lm-nav-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--lm-border); transition: box-shadow .2s; }
.lm-nav--scrolled { box-shadow: var(--lm-shadow); }
.lm-nav__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.lm-logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--lm-text) !important; font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; text-decoration: none; }
.lm-logo img { max-height: 38px; }
.lm-logo b { color: var(--lm-primary); font-weight: 800; }
body.dark .lm-logo b { color: var(--lm-primary-300); }
.lm-logo__mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--lm-primary), var(--lm-accent)); color: #fff; font-size: .9rem; box-shadow: 0 6px 16px -6px rgba(var(--lm-primary-rgb), .8); }
.lm-nav__links { display: flex; align-items: center; gap: .25rem; flex: 1; }
.lm-nav__links .item, .lm-nav__item { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: var(--lm-radius-sm); color: var(--lm-muted) !important; font-weight: 500; font-size: .95rem; text-decoration: none; cursor: pointer; position: relative; }
.lm-nav__links .item:hover { background: var(--lm-surface-2); color: var(--lm-text) !important; }
.lm-nav__links .item.active { color: var(--lm-primary) !important; background: rgba(var(--lm-primary-rgb), .1); }
body.dark .lm-nav__links .item.active { color: var(--lm-primary-300) !important; }
.lm-nav__links .ui.dropdown .menu { border-radius: var(--lm-radius-sm); border: 1px solid var(--lm-border); background: var(--lm-surface); box-shadow: var(--lm-shadow); margin-top: 6px; }
.lm-nav__links .ui.dropdown .menu .item { color: var(--lm-text) !important; padding: .65rem 1rem !important; display: flex; }
.lm-nav__links .ui.dropdown .menu .header { color: var(--lm-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; padding: .5rem 1rem 0; }
.lm-nav__links .ui.dropdown .menu .divider { border-color: var(--lm-border); }
.lm-nav__links .item i.icon { margin: 0; }
.lm-nav__right { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.lm-nav__toggle { display: none; background: none; border: 1px solid var(--lm-border); color: var(--lm-text); width: 42px; height: 42px; border-radius: var(--lm-radius-sm); margin-left: auto; font-size: 1.1rem; }
.lm-account.ui.label, body.lumen .ui.medium.image.label.lm-account { background: var(--lm-surface-2) !important; color: var(--lm-text) !important; border: 1px solid var(--lm-border); border-radius: 999px; padding: .3rem .9rem .3rem .3rem !important; font-weight: 600; }
.lm-account img { border-radius: 50% !important; }
.lm-nav-solid .lm-nav { background: var(--lm-surface); backdrop-filter: none; }
.lm-nav-floating .lm-nav { top: 12px; margin: 12px auto 0; width: calc(100% - 32px); max-width: calc(var(--lm-container) - 24px); border: 1px solid var(--lm-border); border-radius: 999px; }
.lm-nav-floating .lm-nav__inner { padding: 0 14px; min-height: 62px; }
.lm-nav-transparent .lm-nav { background: transparent; border-color: transparent; backdrop-filter: none; position: absolute; left: 0; right: 0; width: 100%; }
.lm-nav-transparent .lm-nav--scrolled { background: var(--lm-nav-bg); position: fixed; }
.lm-nav-transparent .lm-hero { padding-top: 140px; }

/* popups (user menu) */
body.lumen .ui.popup { border-radius: var(--lm-radius-sm); background: var(--lm-surface); color: var(--lm-text); border: 1px solid var(--lm-border); box-shadow: var(--lm-shadow); }
body.lumen .ui.popup:before { background: var(--lm-surface); box-shadow: none; border-color: var(--lm-border); }
body.lumen .ui.popup .header, body.lumen .ui.popup .ui.header { color: var(--lm-text); }
body.lumen .ui.link.list .item, body.lumen .ui.link.list a.item { color: var(--lm-muted) !important; }
body.lumen .ui.link.list a.item:hover { color: var(--lm-primary) !important; }
body.lumen .ui.divider { border-color: var(--lm-border); }

/* ---------- page header (inner pages) ---------- */
.lm-page-head { padding: 3rem 0 2rem; border-bottom: 1px solid var(--lm-border); background:
    radial-gradient(60% 120% at 0% 0%, rgba(var(--lm-primary-rgb), .14), transparent 60%),
    radial-gradient(50% 120% at 100% 0%, rgba(var(--lm-accent-rgb), .08), transparent 60%); margin-bottom: 2rem; }
.lm-page-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.lm-main { min-height: 60vh; }
.lm-content { padding-bottom: 4rem; }
.lm-notices { max-width: var(--lm-container); margin: 0 auto; padding: 0 24px; }
.lm-notices .ui.message:first-child { margin-top: 1rem; }
body.lumen .ui.container.lm-content { width: 100% !important; max-width: var(--lm-container) !important; margin: 0 auto !important; padding: 0 24px; }

/* ---------- sections ---------- */
.lm-section { padding: clamp(3rem, 7vw, 6rem) 0; position: relative; }
.lm-bg-alt { background: var(--lm-surface); border-block: 1px solid var(--lm-border); }
.lm-bg-glow { background: radial-gradient(60% 80% at 50% 0%, rgba(var(--lm-primary-rgb), .16), transparent 70%); }
.lm-section--stats, .lm-section--partners, .lm-section--server_status { padding: 1.5rem 0; }
.lm-section--server_status { margin-top: -3rem; z-index: 2; }
.lm-section__head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.lm-section__head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: .4rem 0 .8rem; line-height: 1.15; }
.lm-section__head p { font-size: 1.05rem; margin: 0; }
.lm-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lm-primary); }
body.dark .lm-eyebrow { color: var(--lm-primary-300); }

.lm-grid { display: grid; gap: 1.25rem; }
.lm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.lm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lm-grid--4 { grid-template-columns: repeat(4, 1fr); }

.lm-card { background: var(--lm-surface); border: 1px solid var(--lm-border); border-radius: var(--lm-radius); padding: 1.6rem; box-shadow: var(--lm-shadow); transition: transform .25s, border-color .25s, box-shadow .25s; }
.lm-card:hover { border-color: rgba(var(--lm-primary-rgb), .35); }
.lm-card h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.lm-card p { margin: 0; color: var(--lm-muted); }
.lm-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.lm-reveal.is-in { opacity: 1; transform: none; }
.lm-no-anim .lm-reveal { opacity: 1; transform: none; transition: none; }

.lm-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(var(--lm-primary-rgb), .12); color: var(--lm-primary); font-size: 1.15rem; margin-bottom: 1rem; }
body.dark .lm-icon { color: var(--lm-primary-300); }
.lm-icon--sm { width: 38px; height: 38px; font-size: 1rem; margin-bottom: .5rem; }
.lm-icon i { margin: 0; }
.lm-feature:hover { transform: translateY(-4px); box-shadow: var(--lm-shadow-lg); }

.lm-badge, .lm-pill, .lm-chip { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; border-radius: 999px; }
.lm-badge { padding: .4rem .9rem; background: rgba(var(--lm-primary-rgb), .14); color: var(--lm-primary-300); border: 1px solid rgba(var(--lm-primary-rgb), .3); }
body:not(.dark) .lm-badge { color: var(--lm-primary-600); }
.lm-pill { padding: .2rem .65rem; background: rgba(var(--lm-primary-rgb), .12); color: var(--lm-primary); font-size: .72rem; }
body.dark .lm-pill { color: var(--lm-primary-300); }
.lm-chip { padding: .35rem .8rem; background: var(--lm-surface-2); border: 1px solid var(--lm-border); color: var(--lm-text); }
.lm-chip--ok .lm-dot { background: var(--lm-ok); box-shadow: 0 0 0 4px rgba(22,163,74,.2); }
.lm-chip--off .lm-dot { background: var(--lm-off); box-shadow: 0 0 0 4px rgba(239,68,68,.2); }
.lm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lm-primary); display: inline-block; }
.lm-badge .lm-dot { animation: lm-pulse 2s infinite; }
@keyframes lm-pulse { 50% { opacity: .35; } }

/* ---------- hero ---------- */
.lm-hero { position: relative; overflow: hidden; padding: 7rem 0 7.5rem; isolation: isolate; }
.lm-hero--tall { padding: 9rem 0 10rem; }
.lm-hero--full { min-height: calc(100vh - 68px); display: flex; align-items: center; }
.lm-hero__bg { position: absolute; inset: 0; z-index: -2; background:
    radial-gradient(60% 70% at 15% 0%, rgba(var(--lm-primary-rgb), .32), transparent 65%),
    radial-gradient(50% 60% at 90% 20%, rgba(var(--lm-accent-rgb), .22), transparent 65%),
    linear-gradient(var(--lm-bg), var(--lm-bg)); }
.lm-hero[style*="--lm-hero-image"] .lm-hero__bg { background:
    linear-gradient(180deg, rgba(10,12,20,.55), var(--lm-bg) 98%), var(--lm-hero-image) center/cover no-repeat; }
.lm-hero__bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--lm-border) 1px, transparent 1px), linear-gradient(90deg, var(--lm-border) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 75%); opacity: .6; }
.lm-hero__inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; }
.lm-hero--left .lm-hero__inner { align-items: flex-start; text-align: left; }
.lm-hero__title { font-size: clamp(2.4rem, 6.2vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em; margin: 0; max-width: 16ch; font-weight: 800; }
.lm-hero--left .lm-hero__title { max-width: 18ch; }
.lm-hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--lm-muted); max-width: 60ch; margin: 0; }
.lm-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.lm-hero--left .lm-hero__actions, .lm-hero--left .lm-hero__meta { justify-content: flex-start; }
.lm-hero__meta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: center; margin-top: .5rem; }
.lm-ip { display: inline-flex; align-items: center; gap: .7rem; background: var(--lm-surface); border: 1px dashed rgba(var(--lm-primary-rgb), .5); color: var(--lm-text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; font-weight: 600; padding: .65rem 1rem; border-radius: var(--lm-radius-sm); cursor: pointer; transition: border-color .2s, background .2s; }
.lm-ip:hover { border-color: var(--lm-primary); background: var(--lm-surface-2); }
.lm-ip.is-copied { border-color: var(--lm-ok); border-style: solid; }
.lm-ip__icon { color: var(--lm-muted); }
.lm-ip--block { width: 100%; justify-content: center; margin-bottom: .75rem; }
.lm-hero__blocks i { position: absolute; z-index: -1; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, rgba(var(--lm-primary-rgb), .55), rgba(var(--lm-accent-rgb), .35)); border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 0 0 5px rgba(255,255,255,.07); animation: lm-float 9s ease-in-out infinite; opacity: .75; }
.lm-hero__blocks i:nth-child(1) { left: 7%; top: 22%; }
.lm-hero__blocks i:nth-child(2) { left: 16%; top: 62%; width: 36px; height: 36px; animation-delay: -2s; }
.lm-hero__blocks i:nth-child(3) { right: 9%; top: 18%; width: 40px; height: 40px; animation-delay: -4s; }
.lm-hero__blocks i:nth-child(4) { right: 14%; top: 58%; width: 64px; height: 64px; animation-delay: -1s; }
.lm-hero__blocks i:nth-child(5) { left: 40%; top: 8%; width: 24px; height: 24px; animation-delay: -5s; }
.lm-hero__blocks i:nth-child(6) { right: 34%; bottom: 12%; width: 28px; height: 28px; animation-delay: -3s; }
.lm-hero__blocks i:nth-child(7) { left: 30%; bottom: 10%; width: 44px; height: 44px; animation-delay: -6s; }
@keyframes lm-float { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-22px) rotate(8deg); } }
.lm-no-anim .lm-hero__blocks i { animation: none; }

/* ---------- server status ---------- */
.lm-server { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; background: var(--lm-surface); border: 1px solid var(--lm-border); border-radius: calc(var(--lm-radius) + 6px); padding: 2.2rem; box-shadow: var(--lm-shadow-lg); }
.lm-server h2 { margin: .8rem 0 .3rem; font-size: 1.7rem; }
.lm-server__meta { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; color: var(--lm-muted); font-size: .92rem; }
.lm-server__meta i { width: 1.4rem; color: var(--lm-primary); }
.lm-server__card { background: var(--lm-surface-2); border: 1px solid var(--lm-border); border-radius: var(--lm-radius); padding: 1.5rem; }
.lm-server__players { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .75rem; }
.lm-server__players strong { font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; }
.lm-server__players span { color: var(--lm-muted); }
.lm-bar { height: 8px; border-radius: 99px; background: var(--lm-border); overflow: hidden; margin-bottom: 1.2rem; }
.lm-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--lm-primary), var(--lm-accent)); border-radius: 99px; }

/* ---------- game modes ---------- */
.lm-mode { display: flex; flex-direction: column; background: var(--lm-surface); border: 1px solid var(--lm-border); border-radius: var(--lm-radius); overflow: hidden; color: var(--lm-text) !important; text-decoration: none; box-shadow: var(--lm-shadow); transition: transform .25s, box-shadow .25s; }
.lm-mode:hover { transform: translateY(-5px); box-shadow: var(--lm-shadow-lg); }
.lm-mode__img { position: relative; aspect-ratio: 16/10; background-size: cover; background-position: center; display: grid; place-items: center; }
.lm-mode__img .lm-pill { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(6px); }
.lm-mode__glyph { font-size: 4rem; font-weight: 800; color: rgba(255,255,255,.55); letter-spacing: -.05em; }
.lm-mode__img[style*="url"] .lm-mode__glyph { display: none; }
.lm-mode--0 .lm-mode__img { background-image: linear-gradient(135deg, #16a34a, #065f46); }
.lm-mode--1 .lm-mode__img { background-image: linear-gradient(135deg, #0ea5e9, #6366f1); }
.lm-mode--2 .lm-mode__img { background-image: linear-gradient(135deg, #f97316, #db2777); }
.lm-mode--3 .lm-mode__img { background-image: linear-gradient(135deg, #8b5cf6, #ec4899); }
.lm-mode--4 .lm-mode__img { background-image: linear-gradient(135deg, #eab308, #f97316); }
.lm-mode--5 .lm-mode__img { background-image: linear-gradient(135deg, #14b8a6, #3b82f6); }
.lm-mode__body { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: .35rem; }
.lm-mode__body h3 { margin: 0; font-size: 1.15rem; }
.lm-mode__body p { margin: 0; color: var(--lm-muted); font-size: .92rem; }

/* ---------- stats ---------- */
.lm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.lm-stat { text-align: center; padding: 1.4rem 1rem; background: var(--lm-surface); border: 1px solid var(--lm-border); border-radius: var(--lm-radius); display: grid; justify-items: center; }
.lm-stat strong { font-size: 2.2rem; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* ---------- news ---------- */
.lm-news { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.lm-news:hover { transform: translateY(-4px); box-shadow: var(--lm-shadow-lg); }
.lm-news__cover { aspect-ratio: 16/7; display: grid; place-items: center; color: rgba(255,255,255,.5); font-size: 3.4rem; font-weight: 800; }
.lm-news__cover--0 { background: linear-gradient(135deg, var(--lm-primary), var(--lm-accent)); }
.lm-news__cover--1 { background: linear-gradient(135deg, #f97316, #ec4899); }
.lm-news__cover--2 { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.lm-news__cover--3 { background: linear-gradient(135deg, #8b5cf6, #3b82f6); }
.lm-news__cover--4 { background: linear-gradient(135deg, #eab308, #ef4444); }
.lm-news__cover--5 { background: linear-gradient(135deg, #14b8a6, #84cc16); }
.lm-news__body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.lm-news__meta { display: flex; justify-content: space-between; align-items: center; color: var(--lm-muted); font-size: .8rem; }
.lm-news__body h3 a { color: var(--lm-text) !important; text-decoration: none; }
.lm-news__body h3 a:hover { color: var(--lm-primary) !important; }
.lm-news__author { margin-top: auto; display: flex; align-items: center; gap: .5rem; font-size: .85rem; padding-top: .6rem; }
.lm-news__author img { width: 26px; height: 26px; border-radius: 50%; }

/* ---------- pricing ---------- */
.lm-grid--pricing { align-items: stretch; }
.lm-price { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 2rem 1.8rem; }
.lm-price h3 { font-size: 1.2rem; }
.lm-price__amount strong { font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; }
.lm-price__amount span { color: var(--lm-muted); margin-left: .3rem; }
.lm-price ul { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .65rem; flex: 1; }
.lm-price li { display: flex; gap: .65rem; align-items: flex-start; color: var(--lm-muted); font-size: .95rem; }
.lm-price li i { color: var(--lm-ok); margin-top: .3rem; font-size: .8rem; }
.lm-price--featured { border-color: rgba(var(--lm-primary-rgb), .6); box-shadow: var(--lm-shadow-lg); transform: scale(1.03); background: linear-gradient(180deg, rgba(var(--lm-primary-rgb), .1), var(--lm-surface) 45%); }
.lm-ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--lm-primary), var(--lm-accent)); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 99px; }

/* ---------- staff ---------- */
.lm-person { display: grid; justify-items: center; gap: .6rem; padding: 1.6rem 1rem; text-align: center; color: var(--lm-text) !important; text-decoration: none; }
.lm-person:hover { transform: translateY(-4px); box-shadow: var(--lm-shadow-lg); }
.lm-person img { width: 84px; height: 84px; border-radius: 22px; background: var(--lm-surface-2); box-shadow: 0 0 0 3px rgba(var(--lm-primary-rgb), .25); }

/* ---------- gallery ---------- */
.lm-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 1rem; }
.lm-shot { position: relative; margin: 0; border-radius: var(--lm-radius); overflow: hidden; background-size: cover; background-position: center; border: 1px solid var(--lm-border); transition: transform .3s; }
.lm-shot:hover { transform: scale(1.015); }
.lm-shot:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.lm-shot:nth-child(4) { grid-column: span 2; }
.lm-shot--0 { background-image: linear-gradient(135deg, #0ea5e9, #6366f1); }
.lm-shot--1 { background-image: linear-gradient(135deg, #16a34a, #84cc16); }
.lm-shot--2 { background-image: linear-gradient(135deg, #f97316, #ec4899); }
.lm-shot--3 { background-image: linear-gradient(135deg, #8b5cf6, #22d3ee); }
.lm-shot--4 { background-image: linear-gradient(135deg, #eab308, #f97316); }
.lm-shot--5 { background-image: linear-gradient(135deg, #14b8a6, #3b82f6); }
.lm-shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1rem .8rem; color: #fff; font-weight: 600; font-size: .9rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); }

/* ---------- faq ---------- */
.lm-faq { display: grid; gap: .8rem; }
.lm-faq__item { padding: 0; }
.lm-faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.5rem; font-weight: 600; }
.lm-faq__item summary::-webkit-details-marker { display: none; }
.lm-faq__item summary i { color: var(--lm-primary); transition: transform .2s; font-size: .85rem; }
.lm-faq__item[open] summary i { transform: rotate(45deg); }
.lm-faq__item p { padding: 0 1.5rem 1.3rem; }

/* ---------- banners ---------- */
.lm-banner { display: flex; align-items: center; gap: 2rem; padding: 2.4rem 2.6rem; border-radius: calc(var(--lm-radius) + 8px); color: #fff; position: relative; overflow: hidden; }
.lm-banner h2 { margin: 0 0 .5rem; color: #fff !important; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.lm-banner p { margin: 0 0 .8rem; opacity: .9; }
.lm-banner__text { flex: 1; }
.lm-banner__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.lm-banner--discord { background: linear-gradient(135deg, #5865f2, #3b43c4); box-shadow: 0 24px 50px -24px rgba(88,101,242,.8); }
.lm-banner--discord .lm-chip { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.25); color: #fff; }
.lm-banner__icon { font-size: 3.4rem; opacity: .95; }
.lm-banner--cta { background: linear-gradient(135deg, var(--lm-primary), var(--lm-primary-600) 55%, var(--lm-accent)); box-shadow: var(--lm-shadow-lg); }
.lm-banner--cta::before { content: ''; position: absolute; width: 380px; height: 380px; right: -80px; top: -160px; border-radius: 50%; background: rgba(255,255,255,.12); }
.lm-section--discord, .lm-section--cta { padding: 2rem 0; }
.lm-section--cta { padding-bottom: 5rem; }

/* ---------- partners ---------- */
.lm-partners__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 3rem; margin-top: 1rem; }
.lm-partners__row a { color: var(--lm-muted) !important; font-weight: 700; font-size: 1.1rem; opacity: .75; text-decoration: none; transition: opacity .2s; }
.lm-partners__row a:hover { opacity: 1; }
.lm-partners__row img { max-height: 32px; filter: grayscale(1); }
.lm-richtext { color: var(--lm-text); }

/* ---------- footer ---------- */
.lm-footer { border-top: 1px solid var(--lm-border); background: var(--lm-surface); padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.lm-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
.lm-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--lm-muted); margin: 0 0 1rem; }
.lm-footer__brand p { color: var(--lm-muted); max-width: 38ch; margin: 1rem 0; }
.lm-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.lm-footer__list a { color: var(--lm-text) !important; opacity: .8; text-decoration: none; }
.lm-footer__list a:hover { opacity: 1; color: var(--lm-primary) !important; }
.lm-social { display: flex; gap: .5rem; }
.lm-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--lm-surface-2); border: 1px solid var(--lm-border); color: var(--lm-text) !important; }
.lm-social a:hover { background: var(--lm-primary); color: #fff !important; }
.lm-footer__bottom { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--lm-border); color: var(--lm-muted); font-size: .875rem; }
.lm-footer__bottom a { color: var(--lm-muted) !important; }
.lm-footer__bottom > :last-child { margin-left: auto; }

/* ==========================================================================
   Fomantic UI re-skin (every other page: forum, profile, user CP, auth ...)
   ========================================================================== */
body.lumen .ui.segment, body.lumen .ui.card, body.lumen .ui.cards > .card, body.lumen .ui.message:not(.announcement), body.lumen .ui.comments .comment .content {
    background: var(--lm-surface); color: var(--lm-text); border: 1px solid var(--lm-border); border-radius: var(--lm-radius); box-shadow: var(--lm-shadow);
}
body.lumen .ui.segment { padding: 1.4rem; margin: 0 0 1.2rem; }
body.lumen .ui.segment .ui.segment { box-shadow: none; background: var(--lm-surface-2); }
body.lumen .ui.card > .content, body.lumen .ui.cards > .card > .content { border-top-color: var(--lm-border) !important; }
body.lumen .ui.card > .content > .header, body.lumen .ui.cards > .card > .content > .header, body.lumen .ui.card > .content > .meta { color: var(--lm-text); }
body.lumen .ui.card > .extra, body.lumen .ui.cards > .card > .extra { border-top: 1px solid var(--lm-border) !important; color: var(--lm-muted) !important; }
body.lumen .ui.message { padding: 1rem 1.2rem; }
body.lumen .ui.info.message { background: rgba(var(--lm-primary-rgb), .1); color: var(--lm-text); box-shadow: none; border-color: rgba(var(--lm-primary-rgb), .3); }
body.lumen .ui.negative.message, body.lumen .ui.error.message { background: rgba(239,68,68,.1); color: var(--lm-text); box-shadow: none; border-color: rgba(239,68,68,.35); }
body.lumen .ui.positive.message, body.lumen .ui.success.message { background: rgba(22,163,74,.1); color: var(--lm-text); box-shadow: none; border-color: rgba(22,163,74,.35); }
body.lumen .ui.warning.message { background: rgba(234,179,8,.12); color: var(--lm-text); box-shadow: none; border-color: rgba(234,179,8,.4); }
body.lumen .ui.message .header { color: inherit; }
body.lumen .ui.header { color: var(--lm-text); }
body.lumen .ui.header .sub.header { color: var(--lm-muted); }
body.lumen .ui.grid { margin-top: 0; }
body.lumen .ui.list > .item .header, body.lumen .ui.list > .item > .content { color: var(--lm-text); }
body.lumen .ui.list > .item .description { color: var(--lm-muted); }
body.lumen .ui.menu:not(.inverted) { background: var(--lm-surface); border: 1px solid var(--lm-border); border-radius: var(--lm-radius); box-shadow: none; }
body.lumen .ui.menu:not(.inverted) .item { color: var(--lm-text); }
body.lumen .ui.vertical.menu .item { border-color: var(--lm-border) !important; }
body.lumen .ui.vertical.menu .item:before { background: var(--lm-border); }
body.lumen .ui.menu .active.item, body.lumen .ui.vertical.menu .active.item { background: rgba(var(--lm-primary-rgb), .12) !important; color: var(--lm-primary) !important; }
body.dark .ui.menu .active.item { color: var(--lm-primary-300) !important; }
body.lumen .ui.menu .item:hover { background: var(--lm-surface-2) !important; }
body.lumen .ui.pagination.menu .item { min-width: 2.4em; }
body.lumen .ui.pagination.menu .active.item { background: var(--lm-primary) !important; color: #fff !important; }
body.lumen .ui.secondary.pointing.menu .active.item { border-color: var(--lm-primary); }
body.lumen .ui.tabular.menu { border-color: var(--lm-border); background: transparent; border-radius: 0; border-width: 0 0 1px; }
body.lumen .ui.tabular.menu .item { border-radius: var(--lm-radius-sm) var(--lm-radius-sm) 0 0; }
body.lumen .ui.tabular.menu .active.item { background: var(--lm-surface) !important; border-color: var(--lm-border); }

/* forms */
body.lumen .ui.form .field > label, body.lumen .ui.form label { color: var(--lm-text); font-weight: 600; font-size: .9rem; }
body.lumen .ui.form input:not([type]), body.lumen .ui.form input[type=text], body.lumen .ui.form input[type=password], body.lumen .ui.form input[type=email],
body.lumen .ui.form input[type=number], body.lumen .ui.form input[type=url], body.lumen .ui.form input[type=search], body.lumen .ui.form textarea, body.lumen .ui.form select,
body.lumen .ui.input > input, body.lumen .ui.selection.dropdown {
    background: var(--lm-surface); color: var(--lm-text); border: 1px solid var(--lm-border); border-radius: var(--lm-radius-sm); padding: .8rem 1rem; font-family: var(--lm-font);
}
body.lumen .ui.form input:focus, body.lumen .ui.form textarea:focus, body.lumen .ui.form select:focus, body.lumen .ui.input.focus > input, body.lumen .ui.input > input:focus,
body.lumen .ui.selection.active.dropdown, body.lumen .ui.selection.dropdown:focus {
    border-color: var(--lm-primary); box-shadow: 0 0 0 3px rgba(var(--lm-primary-rgb), .18); background: var(--lm-surface); color: var(--lm-text);
}
body.lumen .ui.dropdown .menu { background: var(--lm-surface); border: 1px solid var(--lm-border); border-radius: var(--lm-radius-sm); box-shadow: var(--lm-shadow); }
body.lumen .ui.dropdown .menu > .item { color: var(--lm-text); border-top-color: var(--lm-border); }
body.lumen .ui.dropdown .menu > .item:hover, body.lumen .ui.dropdown .menu .selected.item { background: var(--lm-surface-2); }
body.lumen .ui.selection.dropdown .menu { border-color: var(--lm-border); }
body.lumen .ui.checkbox label, body.lumen .ui.checkbox + label { color: var(--lm-text) !important; }
body.lumen .ui.checkbox input:checked ~ label:before, body.lumen .ui.checkbox .box:before { border-color: var(--lm-primary); }
body.lumen .ui.checkbox input:checked ~ label:before { background: var(--lm-primary); }
body.lumen .ui.checkbox input:checked ~ label:after { color: #fff !important; }
body.lumen .ui.checkbox label:before { background: var(--lm-surface); border-color: var(--lm-border); }
body.lumen ::placeholder { color: var(--lm-muted) !important; opacity: .7; }

/* tables */
body.lumen .ui.table { background: var(--lm-surface); color: var(--lm-text); border: 1px solid var(--lm-border); border-radius: var(--lm-radius); overflow: hidden; box-shadow: var(--lm-shadow); }
body.lumen .ui.table thead th { background: var(--lm-surface-2); color: var(--lm-muted); border-color: var(--lm-border); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
body.lumen .ui.table tbody td, body.lumen .ui.table tr td { border-color: var(--lm-border); }
body.lumen .ui.table a { color: var(--lm-text); }
body.lumen .ui.table a:hover { color: var(--lm-primary); }
body.lumen .ui.striped.table > tr:nth-child(2n), body.lumen .ui.striped.table tbody tr:nth-child(2n) { background: var(--lm-surface-2); }

/* labels, modals, breadcrumbs, accordions, comments */
body.lumen .ui.label { border-radius: 99px; font-weight: 600; }
body.lumen .ui.modal { background: var(--lm-surface); border: 1px solid var(--lm-border); border-radius: var(--lm-radius); color: var(--lm-text); }
body.lumen .ui.modal > .header { background: var(--lm-surface); color: var(--lm-text); border-bottom: 1px solid var(--lm-border); }
body.lumen .ui.modal > .content { background: var(--lm-surface); color: var(--lm-text); }
body.lumen .ui.modal > .actions { background: var(--lm-surface-2); border-top: 1px solid var(--lm-border); }
body.lumen .ui.breadcrumb .section, body.lumen .ui.breadcrumb .divider { color: var(--lm-muted); }
body.lumen .ui.comments .comment .author, body.lumen .ui.comments .comment .text { color: var(--lm-text); }
body.lumen .ui.comments .comment .metadata { color: var(--lm-muted); }
body.lumen .ui.styled.accordion, body.lumen .ui.accordion .title { color: var(--lm-text); }
body.lumen .ui.image.label img { border-radius: 50%; }
body.lumen .ui.avatar.image, body.lumen img.ui.avatar { border-radius: 10px; }
body.lumen .ui.placeholder.segment { background: var(--lm-surface); }
body.lumen .ui.progress { background: var(--lm-surface-2); }
body.lumen .ui.progress .bar { background: var(--lm-primary); }
body.lumen .ui.inverted.segment { background: #111827; }
body.lumen blockquote, body.lumen .blockquote { border-left: 3px solid var(--lm-primary); background: var(--lm-surface-2); color: var(--lm-text); border-radius: 0 var(--lm-radius-sm) var(--lm-radius-sm) 0; }
body.lumen pre, body.lumen code { background: var(--lm-surface-2); color: var(--lm-text); border-radius: 6px; }
body.lumen hr { border-color: var(--lm-border); }
body.dark .ui.basic.button, body.dark .ui.default.button { color: var(--lm-text) !important; }
body.dark .ui.table thead th, body.dark .ui.table { color: var(--lm-text); }
body.dark .ui.menu:not(.inverted) { background: var(--lm-surface); border-color: var(--lm-border); }
body.dark .ui.form input:not(.button), body.dark .ui.form textarea, body.dark .ui.form input[type=url] { background: var(--lm-surface); color: var(--lm-text); }
body.dark .ui.attached.segment, body.dark .ui.top.attached.menu:not(.inverted) { background: var(--lm-surface); border-color: var(--lm-border); }

/* forum + profile specifics (legacy ids from NamelessMC modules) */
#forum-index .ui.segment.cc_forum_cat, body.lumen .ui.top.attached.header { background: var(--lm-surface-2) !important; color: var(--lm-text) !important; border: 1px solid var(--lm-border) !important; border-radius: var(--lm-radius) var(--lm-radius) 0 0 !important; }
body.lumen .ui.attached.segment { border-radius: 0 0 var(--lm-radius) var(--lm-radius); }
body.lumen #profile-header, body.dark .ui.segment#profile-header { background: linear-gradient(135deg, rgba(var(--lm-primary-rgb), .18), var(--lm-surface) 60%); border: 1px solid var(--lm-border); }
body.lumen #topic-post #post-sidebar { background: var(--lm-surface-2); border-radius: var(--lm-radius-sm); }
body.lumen .forum_post { color: var(--lm-text); }
body.lumen .forum_post a { color: var(--lm-primary); }
body.lumen #widget-online-users, body.lumen [id*="widget"] { border-radius: var(--lm-radius); }
body.lumen .badge { border-radius: 99px; }

/* login / register — centred auth card */
body#page-login .lm-content > .ui.stackable.grid, body#page-register .lm-content > .ui.stackable.grid { max-width: 480px; margin-inline: auto; }
body#page-login .ui.segment, body#page-register .ui.segment { padding: 2rem; }

/* topic / comment surfaces */
body.lumen .ui.secondary.segment:not(.inverted), body.lumen .ui.segments > .segment, body.lumen #topic-post .ui.segment, body.lumen #topic-reply .ui.segment {
    background: var(--lm-surface) !important; color: var(--lm-text);
}
body.lumen #topic-post .ui.secondary.segment, body.lumen #post-content { background: transparent !important; }
body.lumen .ui.segments { border: 1px solid var(--lm-border); border-radius: var(--lm-radius); box-shadow: var(--lm-shadow); }
body.lumen .ui.segments > .segment { border-color: var(--lm-border); box-shadow: none; }
body.lumen .ui.grey.segment, body.lumen .ui.basic.segment { background: transparent !important; box-shadow: none; border: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .lm-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .lm-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .lm-server { grid-template-columns: 1fr; }
    .lm-gallery { grid-template-columns: repeat(2, 1fr); }
    .lm-footer__grid { grid-template-columns: 1fr 1fr; }
    .lm-price--featured { transform: none; }
}
@media (max-width: 860px) {
    .lm-nav__toggle { display: inline-grid; place-items: center; }
    .lm-nav__inner { flex-wrap: wrap; gap: .5rem; padding-block: .6rem; }
    .lm-nav__links, .lm-nav__right { display: none; width: 100%; }
    .lm-nav--open .lm-nav__links { display: flex; flex-direction: column; align-items: stretch; order: 5; padding: .5rem 0; }
    .lm-nav--open .lm-nav__right { display: flex; order: 6; flex-wrap: wrap; padding-bottom: .5rem; margin-left: 0; }
    .lm-nav--open .lm-nav__links .ui.dropdown { flex-direction: column; align-items: stretch; }
    .lm-nav--open .lm-nav__links .ui.dropdown > .menu { display: block !important; position: static; width: 100%; box-shadow: none; border: 0; margin: 0; background: transparent; }
    .lm-nav--open .lm-nav__links .ui.dropdown > .dropdown.icon { display: none; }
    .lm-nav-floating .lm-nav { border-radius: 24px; }
    .lm-banner { flex-direction: column; align-items: flex-start; padding: 1.8rem; }
    .lm-hero, .lm-hero--tall { padding: 5rem 0 6rem; }
    .lm-hero__blocks { display: none; }
}
@media (max-width: 640px) {
    .lm-grid--2, .lm-grid--3, .lm-grid--4 { grid-template-columns: 1fr; }
    .lm-grid--staff, .lm-grid--modes { grid-template-columns: repeat(2, 1fr); }
    .lm-mode__img { aspect-ratio: 16/9; }
    .lm-mode__glyph { font-size: 2.6rem; }
    .lm-stats { grid-template-columns: repeat(2, 1fr); }
    .lm-section { padding: 2.6rem 0; }
    .lm-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .lm-container { padding: 0 18px; }
    .lm-footer__bottom > :last-child { margin-left: 0; }
    .lm-gallery { grid-auto-rows: 140px; }
    .lm-shot:nth-child(1) { grid-row: span 1; }
    .lm-server { padding: 1.4rem; }
}
