@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{--navy:#10243f;--blue:#1769aa;--cyan:#28a7d8;--ink:#1b2b3d;--muted:#63758a;--line:#e2eaf1;--bg:#f5f8fb;--white:#fff;--shadow:0 14px 40px rgba(16,36,63,.08)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px 'DM Sans',sans-serif;line-height:1.6}a{color:var(--blue);text-decoration:none}a:hover{color:#0c4d80}h1,h2,h3{font-family:Manrope,sans-serif;line-height:1.2;color:var(--navy);margin:0 0 14px}h1{font-size:clamp(2rem,5vw,3.4rem);letter-spacing:-1.5px}h2{font-size:1.8rem}h3{font-size:1.15rem}p{margin:0 0 15px}.container{width:min(1120px,calc(100% - 40px));margin:auto}.top{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.navwrap{width:min(1200px,calc(100% - 40px));margin:auto;min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:25px}.brand{display:flex;align-items:center;gap:11px;color:var(--navy);font:700 17px Manrope}.brand small{display:block;font:500 10px 'DM Sans';letter-spacing:1.1px;color:#8191a2;text-transform:uppercase}.brandmark{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--blue),var(--cyan));color:white;display:grid;place-items:center;font:800 23px Manrope}.navlinks{display:flex;align-items:center;gap:23px}.navlinks a{color:#43566c;font-size:14px;font-weight:600}.navlinks .navbutton{background:var(--blue);color:#fff;padding:10px 17px;border-radius:8px}.navtoggle{display:none;border:0;background:none;font-size:25px}.hero{margin:40px 0 65px;border-radius:24px;background:linear-gradient(115deg,#102c4c,#135b91 68%,#147eaa);color:#fff;min-height:440px;padding:65px 7%;display:grid;grid-template-columns:1.2fr .8fr;align-items:center;overflow:hidden}.hero h1{color:white;max-width:620px}.hero h1 em{color:#74d7f2;font-style:normal}.hero p{color:#d7e8f5;max-width:570px;font-size:18px}.eyebrow{display:block;color:#25a4d4;font-size:11px;font-weight:700;letter-spacing:2px;margin-bottom:14px}.hero .eyebrow{color:#85dcf5}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:var(--blue);color:#fff;padding:12px 20px;font:700 14px 'DM Sans';cursor:pointer}.button:hover{background:#0f548d;color:white}.button.secondary{background:#eaf3fa;color:#185c91}.button.danger{background:#a83242}.button.small{padding:9px 13px;font-size:13px}.button.tiny{padding:6px 9px;font-size:12px}.hero .button{background:#fff;color:#145a8c}.hero .button.secondary{background:rgba(255,255,255,.12);color:white;border:1px solid rgba(255,255,255,.35)}.hero-art{height:280px;position:relative;display:grid;place-items:center}.serverbox{width:190px;height:245px;border-radius:18px;background:linear-gradient(90deg,#dce9f1,#fff 50%,#b9cedd);box-shadow:0 25px 60px #071a2b88;padding:25px 20px;transform:rotate(5deg)}.server-top{display:flex;gap:7px;margin-bottom:23px}.server-top i{width:8px;height:8px;background:#36a9d3;border-radius:50%}.server-slot{height:37px;background:#203d57;border-radius:6px;margin:10px 0;box-shadow:inset 0 2px 6px #081827}.server-light{width:7px;height:7px;border-radius:50%;background:#45d6a2;margin-left:auto;box-shadow:0 0 12px #45d6a2}.float-chip{position:absolute;background:white;color:#23435d;padding:10px 15px;border-radius:10px;box-shadow:var(--shadow);font-size:13px;font-weight:700}.chip-one{top:22px;right:0}.chip-two{bottom:22px;left:0}.section{margin:65px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}.section-head p{max-width:360px;color:var(--muted)}.cards{display:grid;gap:18px}.cards.three{grid-template-columns:repeat(3,1fr)}.cards.two{grid-template-columns:repeat(2,1fr)}.feature,.panel,.formpanel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:26px;box-shadow:0 5px 20px rgba(16,36,63,.025)}.feature p,.muted{color:var(--muted)}.feature a{font-weight:700}.feature-icon{width:42px;height:42px;background:#e8f5fb;color:#1478ad;border-radius:11px;display:grid;place-items:center;font-weight:800;margin-bottom:19px}.callout{background:#e9f3f9;border-radius:18px;padding:35px 40px;margin:65px 0;display:flex;justify-content:space-between;align-items:center;gap:20px}.callout p{color:var(--muted);margin:0}.pagehero{padding:48px 0 28px}.pagehero p{font-size:18px;color:var(--muted);max-width:700px}.prose{margin-bottom:25px}.prose h2{margin-top:15px}.formpanel{max-width:600px;margin:55px auto}.formpanel h1{font-size:2rem}form label{display:block;font-weight:600;font-size:14px;margin:14px 0;color:#344b62}input,textarea,select{display:block;width:100%;margin-top:6px;border:1px solid #d6e0e9;border-radius:8px;padding:12px 13px;font:15px 'DM Sans';color:var(--ink);background:#fff}input:focus,textarea:focus,select:focus{outline:2px solid #b7e1f2;border-color:#59a9d1}input:disabled{background:#f2f5f7;color:#718095}textarea{resize:vertical}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.alert{padding:13px 16px;border-radius:9px;margin:18px 0;background:#e9f3fa;color:#245a7d}.alert.error{background:#fff0f0;color:#9b3030}.alert.success{background:#eaf8f0;color:#216c43}.installerbrand{margin:45px 0 20px}.narrow{max-width:760px}.narrow .panel{margin-bottom:60px}.narrow h1{font-size:2rem}.narrow h3{margin-top:27px}.narrow small{display:block;color:var(--muted);font-weight:400}.tag{display:inline-block;background:#edf3f8;color:#536c83;border-radius:20px;padding:4px 9px;font-size:11px;font-weight:700}.tag.solved{background:#e4f6ec;color:#257348}.tags{display:flex;gap:6px;flex-wrap:wrap}.listtitle{margin:35px 0 15px}.topicrow{display:flex;justify-content:space-between;gap:20px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px;margin:10px 0;color:var(--ink)}.topicrow h3{margin:8px 0}.topicrow p,.topiccount{color:var(--muted);font-size:13px;margin:0}.reply{background:white;border:1px solid var(--line);border-radius:12px;padding:20px;margin:12px 0}.reply small{display:block;color:var(--muted)}.reply p{margin:12px 0 0}.adminreply{background:#f0f7fb;padding:12px;border-radius:8px;margin-top:12px}.inlineform{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.empty{padding:25px;text-align:center;background:#fff;border:1px dashed #cbd9e5;border-radius:12px;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.stats div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}.stats b{display:block;font:800 26px Manrope;color:var(--blue)}.stats span{color:var(--muted);font-size:13px}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:760px;font-size:13px}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);vertical-align:middle}th{color:#62758a}.tableform{display:flex;gap:6px;align-items:center;margin:0}.tableform input{min-width:180px}.tableform select{min-width:110px}footer{background:#10243f;color:#c6d5e1;margin-top:75px;padding:35px 0}.foot{display:flex;align-items:start;justify-content:space-between;gap:25px;flex-wrap:wrap}.foot p{color:#a8bac9}.foot a{color:#dce8f1;margin-right:16px}.foot small{width:100%;color:#8198aa}.navlinks.open{display:flex}
@media(max-width:850px){.navtoggle{display:block}.navlinks{display:none;position:absolute;top:78px;left:0;right:0;background:#fff;padding:20px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch;gap:14px}.navlinks.open{display:flex}.hero{grid-template-columns:1fr;padding:42px 7%;margin-top:22px}.hero-art{height:230px}.cards.three{grid-template-columns:1fr 1fr}.section-head{display:block}.callout{align-items:flex-start;flex-direction:column}}@media(max-width:580px){.container{width:calc(100% - 28px)}.cards.three,.cards.two,.formgrid,.stats{grid-template-columns:1fr}.hero{min-height:0}.hero h1{font-size:2.3rem}.topicrow{align-items:flex-start;flex-direction:column}.feature,.panel,.formpanel{padding:20px}.pagehero{padding-top:32px}.navwrap{width:calc(100% - 28px)}}

/* =========================================
   HOMESERVER HUB - GLOBAL DARK THEME
   ========================================= */

:root {
    --navy: #f8fafc;
    --blue: #2563eb;
    --cyan: #60a5fa;
    --ink: #f1f5f9;
    --muted: #94a9c4;
    --line: #334155;
    --bg: #111827;
    --white: #1c2636;
    --shadow: 0 14px 40px rgba(0,0,0,.20);
}

html {
    color-scheme: dark;
}

body {
    background: #111827;
    color: #f1f5f9;
}

h1, h2, h3, h4, h5 {
    color: #f8fafc;
}

a {
    color: #60a5fa;
}

a:hover {
    color: #93c5fd;
}

/* Navigation */

.top {
    background: #1c2636;
    border-bottom: 1px solid #334155;
}

.brand {
    color: #ffffff;
}

.brand:hover {
    color: #ffffff;
}

.brand small {
    color: #94a9c4;
}

.brandmark {
    background: linear-gradient(135deg,#2563eb,#38bdf8);
    color: #ffffff;
}

.navlinks a {
    color: #cbd5e1;
}

.navlinks a:hover {
    color: #60a5fa;
}

.navlinks .navbutton {
    background: #2563eb;
    color: #ffffff;
}

.navlinks .navbutton:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.navtoggle {
    color: #ffffff;
}

/* Homepage hero */

.hero {
    background: linear-gradient(115deg,#172554,#1c2636);
    border: 1px solid #334155;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.hero h1 {
    color: #ffffff;
}

.hero h1 em {
    color: #60a5fa;
}

.hero p {
    color: #94a9c4;
}

.eyebrow,
.hero .eyebrow {
    color: #60a5fa;
}

/* Cards and panels */

.feature,
.panel,
.formpanel,
.topicrow,
.reply,
.stats div {
    background: #1c2636;
    border: 1px solid #334155;
    border-radius: 14px;
    color: #f1f5f9;
    box-shadow: none;
}

.feature {
    transition: border-color .2s, transform .2s;
}

.feature:hover {
    border-color: #3b82f6;
    transform: translateY(-3px);
}

.feature p,
.muted,
.pagehero p,
.section-head p,
.topicrow p,
.topiccount,
.reply small,
.stats span {
    color: #94a9c4;
}

.feature-icon {
    background: #172554;
    color: #60a5fa;
    border-radius: 12px;
}

/* Buttons */

.button,
.hero .button {
    background: #2563eb;
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: background .2s;
}

.button:hover,
.hero .button:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.button.secondary,
.hero .button.secondary {
    background: #263449;
    color: #93c5fd;
    border: 1px solid #3b4b63;
}

.button.secondary:hover {
    background: #334155;
    color: #ffffff;
}

.button.danger {
    background: #b91c1c;
    color: #ffffff;
}

.button.danger:hover {
    background: #991b1b;
}

/* Forms */

form label {
    color: #cbd5e1;
}

input,
textarea,
select {
    background: #111827;
    border: 1px solid #334155;
    color: #f1f5f9;
}

input::placeholder,
textarea::placeholder {
    color: #8495ad;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(59,130,246,.25);
    border-color: #3b82f6;
}

input:disabled {
    background: #263449;
    color: #94a3b8;
}

input[type="checkbox"],
input[type="radio"] {
    display: inline-block;
    width: auto;
    accent-color: #2563eb;
}

/* Callout sections */

.callout {
    background: linear-gradient(115deg,#172554,#1c2636);
    border: 1px solid #334155;
    color: #ffffff;
}

.callout p {
    color: #94a9c4;
}

.float-chip {
    background: #1c2636;
    border: 1px solid #334155;
    color: #93c5fd;
}

/* Notifications */

.alert {
    background: #172554;
    border: 1px solid #1e40af;
    color: #93c5fd;
}

.alert.success {
    background: #052e26;
    border: 1px solid #166534;
    color: #86efac;
}

.alert.error {
    background: #450a0a;
    border: 1px solid #991b1b;
    color: #fca5a5;
}

/* Community forum */

.tag {
    background: #263449;
    color: #93c5fd;
}

.tag.solved {
    background: #064e3b;
    color: #86efac;
}

.topicrow:hover {
    background: #243044;
    border-color: #3b82f6;
    color: #ffffff;
}

.adminreply {
    background: #172554;
    border: 1px solid #334155;
    color: #cbd5e1;
}

.empty {
    background: #1c2636;
    border: 1px dashed #475569;
    color: #94a9c4;
}

/* Dashboard statistics */

.stats b {
    color: #60a5fa;
}

/* Admin tables */

table {
    color: #e2e8f0;
}

th {
    background: #172033;
    color: #94a9c4;
}

td,
th {
    border-bottom: 1px solid #334155;
}

tbody tr:hover {
    background: rgba(59,130,246,.05);
}

/* Footer */

footer {
    background: #0b1220;
    border-top: 1px solid #334155;
    color: #cbd5e1;
}

.foot p,
.foot small {
    color: #94a9c4;
}

.foot a {
    color: #cbd5e1;
}

.foot a:hover {
    color: #60a5fa;
}

/* Text selection */

::selection {
    background: #2563eb;
    color: #ffffff;
}

/* Mobile navigation */

@media(max-width:850px) {
    .navlinks {
        background: #1c2636;
        border-bottom: 1px solid #334155;
    }

    .navlinks a {
        color: #e2e8f0;
    }
}
