/* Based on the original Sq Hosting design: dark navy, blue gradient header, slate cards, red call-to-action.
   Brand identity: one blue -> violet -> red gradient used for the logo, headings, borders and accents. */
* {
    box-sizing: border-box;
}

:root {
    --bg: #0f172a;
    --card-from: #1e293b;
    --card-to: #334155;
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #e2e8f0;
    --line: rgba(255, 255, 255, 0.12);
    --blue: #1d4ed8;
    --blue-dark: #172554;
    --red: rgba(255, 0, 0, 0.652);
    --red-solid: #dc2626;
    --ok: #22c55e;
    --warn: #f59e0b;
    --bad: #ef4444;
    --violet: #8b5cf6;
    --g-brand: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ef4444 100%);
    --g-brand-h: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ef4444 100%);
    --g-cta: linear-gradient(135deg, #f43f5e 0%, #dc2626 55%, #ea580c 100%);
    --g-card: linear-gradient(135deg, rgba(30, 41, 59, 0.94) 0%, rgba(51, 65, 85, 0.86) 100%);
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(900px 600px at 0% 0%, rgba(59, 130, 246, 0.18), transparent 60%),
        radial-gradient(800px 600px at 100% 30%, rgba(139, 92, 246, 0.14), transparent 60%),
        radial-gradient(900px 700px at 50% 110%, rgba(239, 68, 68, 0.14), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: #93c5fd; }
main { flex: 1; }

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #172554 0%, #1d4ed8 60%, #5b21b6 100%);
    padding: 14px 28px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 10;
}

header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--g-brand-h);
}

.Logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.Logo .mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--g-brand);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.55);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

.Logo h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.topmenu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.topmenu form { margin: 0; }

.topmenu a,
.topmenu button,
.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
    display: inline-block;
}

.topmenu a:hover,
.topmenu button:hover,
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.topmenu a.active { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.45); }

.topcontent,
.GameServers,
.card {
    padding: 40px 28px;
    color: #f8fafc;
    font-size: 1.1rem;
    /* Card fill + a thin brand-gradient border */
    border: 1px solid transparent;
    background: var(--g-card) padding-box, linear-gradient(135deg, rgba(59, 130, 246, 0.55), rgba(139, 92, 246, 0.25) 50%, rgba(239, 68, 68, 0.55)) border-box;
    border-radius: 12px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
}

/* Hero: brand glows over a faint square grid ("Squared"). */
.topcontent {
    position: relative;
    overflow: hidden;
    padding: 64px 40px;
    background:
        radial-gradient(500px 300px at 85% 20%, rgba(239, 68, 68, 0.35), transparent 70%),
        radial-gradient(600px 360px at 10% 100%, rgba(59, 130, 246, 0.40), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(135deg, #1e1b4b 0%, #1e293b 55%, #3b0764 100%) padding-box,
        var(--g-brand) border-box;
}

.eyebrow {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--soft);
    margin-bottom: 18px;
}

.gradient-text {
    background: var(--g-brand-h);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card { padding: 24px 28px; font-size: 1rem; }
.card h2, .card h3 { margin-top: 0; }

.topcontent h1 { font-size: 3rem; margin: 0 0 10px; line-height: 1.1; }
.topcontent h2 { font-weight: 400; color: var(--soft); margin: 0 0 24px; }

.GameServersContent { display: block; }

.GameServersContent h2,
.GameServersContent .Minecraft_Servers {
    display: inline-block;
    vertical-align: middle;
    margin: 0 12px 18px 0;
}

.GameServersContent img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    margin-top: 8px;
}

/* The red call-to-action button from the original design, used for all primary actions. */
.Minecraft_Servers,
.btn {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--g-cta);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
    display: inline-block;
}

.Minecraft_Servers:hover,
.btn:hover { filter: brightness(1.12); box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5); transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn.small, .btn-ghost.small { padding: 6px 10px; font-size: 0.85rem; }
.btn.blue { background: linear-gradient(135deg, #3b82f6, #6d28d9); box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35); }
.btn.green { background: linear-gradient(135deg, #22c55e, #0d9488); box-shadow: 0 6px 18px rgba(20, 184, 166, 0.3); }

.container { max-width: 1200px; margin: 0 auto; width: 100%; }
.narrow { max-width: 480px; margin: 40px auto; }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }
.section-title {
    margin: 40px 20px 0;
    font-size: 1.8rem;
    background: var(--g-brand-h);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: fit-content;
}

/* ---- pricing ---- */
.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px;
}
.plan {
    --accent: var(--g-brand);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px 24px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.plan::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--accent); }
.plan::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; background: var(--accent); opacity: 0.18; filter: blur(40px); pointer-events: none; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(2, 6, 23, 0.5); }
.plan h3 { margin: 0; font-size: 1.4rem; }
.plan .price { font-size: 2.2rem; font-weight: 800; background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.plan .price small { -webkit-text-fill-color: var(--muted); }
/* Minecraft materials as plan colours */
.plan-dirt { --accent: linear-gradient(135deg, #84cc16, #92400e); }
.plan-stone { --accent: linear-gradient(135deg, #cbd5e1, #64748b); }
.plan-iron { --accent: linear-gradient(135deg, #f1f5f9, #f59e0b); }
.plan-diamond { --accent: linear-gradient(135deg, #67e8f9, #3b82f6); }
.plan-gold { --accent: linear-gradient(135deg, #fde047, #f59e0b); }
.plan-netherite { --accent: linear-gradient(135deg, #a8a29e, #44403c); }
.plan-custom { --accent: var(--g-brand); border-color: rgba(139, 92, 246, 0.6); }
.plan .price small { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 8px 0 16px; color: var(--soft); line-height: 1.8; flex: 1; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.features div { background: rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 16px; border-top: 3px solid; border-image: var(--g-brand-h) 1; }
.features div:nth-child(1) { border-image: linear-gradient(90deg, #22c55e, #14b8a6) 1; }
.features div:nth-child(2) { border-image: linear-gradient(90deg, #3b82f6, #8b5cf6) 1; }
.features div:nth-child(3) { border-image: linear-gradient(90deg, #8b5cf6, #ec4899) 1; }
.features div:nth-child(4) { border-image: linear-gradient(90deg, #f43f5e, #f97316) 1; }
.features h4 { margin: 0 0 6px; }

/* ---- forms ---- */
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 0.95rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.7);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #3b82f6; outline-offset: 1px; }
form .btn { margin-top: 16px; }
.inline-form { display: inline; margin: 0; }
.inline-form .btn, .inline-form .btn-ghost { margin-top: 0; }

.plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.plan-pick label {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.04);
}
.plan-pick label:has(input:checked) { border-color: #60a5fa; background: rgba(59, 130, 246, 0.18); }
.plan-pick input { margin-right: 6px; }
.custom-fields { display: none; }
.custom-fields.show { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---- messages ---- */
.flash { margin: 20px; padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.flash.ok { background: rgba(34, 197, 94, 0.18); border: 1px solid rgba(34, 197, 94, 0.4); }
.flash.error { background: rgba(239, 68, 68, 0.18); border: 1px solid rgba(239, 68, 68, 0.4); }
.flash.warn { background: rgba(245, 158, 11, 0.18); border: 1px solid rgba(245, 158, 11, 0.4); }
.error-text { color: #fca5a5; font-weight: 600; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.badge.ok { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.badge.warn { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.badge.bad { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.badge.muted { background: rgba(148, 163, 184, 0.2); color: var(--muted); }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---- dashboard server cards ---- */
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.server-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.server-card h3 { margin: 0; }
.mono, code { font-family: Consolas, Menlo, monospace; }

/* ---- invoice / swish ---- */
.swish { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.swish img { width: 100%; max-width: 320px; border-radius: 12px; background: #fff; }
.swish dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.swish dt { color: var(--muted); }
.swish dd { margin: 0; font-weight: 700; font-size: 1.15rem; }

/* ---- control panel ---- */
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.panel-head h1 { margin: 0 0 4px; }
.state-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); margin-right: 6px; }
.state-dot.running { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.state-dot.stopped { background: var(--bad); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 20px; }
.tabs button {
    border: 1px solid var(--line);
    border-bottom: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--soft);
    padding: 12px 18px;
    border-radius: 10px 10px 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.tabs button[aria-selected=true] { background: var(--g-brand-h) top / 100% 3px no-repeat, #1e293b; color: #fff; }
.tab-panel { margin-top: 0; border-top-left-radius: 0; }
.tab-panel[hidden] { display: none; }

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tile { --accent: var(--g-brand-h); position: relative; overflow: hidden; background: rgba(15, 23, 42, 0.55); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); }
.stat-tiles .tile:nth-child(1) { --accent: linear-gradient(90deg, #22c55e, #14b8a6); }
.stat-tiles .tile:nth-child(2) { --accent: linear-gradient(90deg, #3b82f6, #6366f1); }
.stat-tiles .tile:nth-child(3) { --accent: linear-gradient(90deg, #f43f5e, #f97316); }
.stat-tiles .tile:nth-child(4) { --accent: linear-gradient(90deg, #8b5cf6, #d946ef); }
.tile .label { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.tile .value { font-size: 1.8rem; font-weight: 800; margin: 6px 0; }
.tile .sub { color: var(--muted); font-size: 0.9rem; }
.meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--accent, var(--g-brand-h)); transition: width 0.4s; }

.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 14px; }
.chart { background: rgba(15, 23, 42, 0.55); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.chart h4 { margin: 0 0 8px; font-size: 0.95rem; color: var(--soft); }
.chart svg { width: 100%; height: 140px; display: block; }
.chart .axis { fill: var(--muted); font-size: 10px; }

.console {
    background: #020617;
    border: 1px solid var(--line);
    border-radius: 10px;
    height: 420px;
    overflow-y: auto;
    padding: 12px;
    font-family: Consolas, Menlo, monospace;
    font-size: 0.85rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}
.console .cmd { color: #93c5fd; }
.console .resp { color: #86efac; }
.console .err { color: #fca5a5; }
.console .warnline { color: #fcd34d; }
.console-input { display: flex; gap: 8px; margin-top: 10px; }
.console-input input { font-family: Consolas, Menlo, monospace; }
.console-input .prompt { align-self: center; color: #ef4444; font-weight: 800; font-family: monospace; }

.files-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.breadcrumb { flex: 1; font-family: Consolas, Menlo, monospace; }
.breadcrumb a { cursor: pointer; }
.file-row td:first-child { cursor: pointer; }
.file-row:hover { background: rgba(255, 255, 255, 0.04); }
.editor textarea { min-height: 420px; font-family: Consolas, Menlo, monospace; font-size: 0.85rem; background: #020617; }

.thread .msg { background: rgba(15, 23, 42, 0.55); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; white-space: pre-wrap; }
.thread .msg.staff { border-color: rgba(239, 68, 68, 0.5); }
.thread .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 6px; white-space: normal; }

.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px; }

footer { position: relative; margin-top: 40px; padding: 28px; color: var(--muted); font-size: 0.9rem; text-align: center; background: rgba(2, 6, 23, 0.4); }
footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--g-brand-h); opacity: 0.8; }
footer strong { font-size: 1rem; }

@media (max-width: 700px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        position: relative; /* not sticky on phones, but keeps the gradient line under the header */
    }

    .topmenu {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .topcontent, .GameServers, .card { margin: 12px; padding: 20px 16px; }
    .topcontent { padding: 36px 20px; }
    .topcontent h1 { font-size: 2rem; }
    .swish { grid-template-columns: 1fr; }
    .custom-fields.show { grid-template-columns: 1fr; }
    .tabs { margin: 0 12px; }
    .tabs button { padding: 10px 12px; font-size: 0.85rem; }
}

.mt { margin-top: 14px; }
select.auto { width: auto; }
.upload-label { margin: 0; }
textarea.short { min-height: 100px; }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
.console-input .btn { margin-top: 0; }
.grow { flex: 1; min-width: 200px; width: auto; }
.plan-edit { display: grid; grid-template-columns: 2fr repeat(7, 1fr) auto; gap: 10px; align-items: end; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plan-edit label { margin: 0 0 4px; font-size: 0.8rem; }
.plan-edit .btn { margin-top: 0; }
@media (max-width: 900px) { .plan-edit { grid-template-columns: 1fr 1fr; } }

/* ---------------- Homepage personality ---------------- */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; }
.hero .lead { color: var(--soft); max-width: 560px; line-height: 1.55; margin: 0 0 22px; }
.hero h2 { font-style: italic; }
.hero-points { list-style: none; padding: 0; margin: 20px 0 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--soft); font-size: 0.95rem; }
.hero-points li::before { content: "■ "; color: #a78bfa; }
.live { margin: 16px 0 0; color: var(--soft); font-size: 0.95rem; }
.btn.big, .btn-ghost.big { padding: 14px 22px; font-size: 1.05rem; }

.hero-art { position: relative; min-height: 340px; display: grid; place-items: center; }
.mascot { width: 190px; filter: drop-shadow(0 12px 30px rgba(139, 92, 246, 0.45)); animation: bob 4s ease-in-out infinite; position: relative; z-index: 2; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.bubble {
    position: absolute; top: 4px; right: 0; z-index: 3; max-width: 200px;
    background: #fff; color: #0f172a; font-weight: 700; font-size: 0.9rem; line-height: 1.35;
    padding: 10px 14px; border-radius: 14px 14px 14px 4px; box-shadow: 0 8px 20px rgba(2, 6, 23, 0.4);
}
.mini-panel {
    position: absolute; bottom: 0; left: 0; z-index: 1; width: 240px;
    background: rgba(2, 6, 23, 0.85); border: 1px solid rgba(139, 92, 246, 0.5); border-radius: 12px;
    padding: 12px 14px; font-size: 0.8rem; box-shadow: 0 10px 30px rgba(2, 6, 23, 0.5); transform: rotate(-3deg);
}
.mini-head { font-weight: 700; margin-bottom: 8px; }
.mini-row { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 8px; margin: 6px 0; color: var(--muted); }
.mini-row strong { color: var(--text); }
.mini-row .meter span.w62 { width: 62%; }
.mini-row .meter span.w35 { width: 35%; }
.mini-console { margin-top: 8px; font-family: Consolas, Menlo, monospace; color: #93c5fd; background: #020617; border-radius: 6px; padding: 6px 8px; }
.mini-console .resp { color: #86efac; }

.software-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 4px 20px 0; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 20px; counter-reset: s; }
.step { position: relative; padding: 22px; border-radius: 12px; background: rgba(15, 23, 42, 0.6); border: 1px solid var(--line); }
.step h3 { margin: 10px 0 6px; }
.step p { margin: 0; }
.step-no { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--g-brand); font-weight: 800; font-size: 1.1rem; box-shadow: 0 0 16px rgba(139, 92, 246, 0.45); }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: #a78bfa; font-size: 1.3rem; z-index: 1; }

.features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ficon { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.features div:nth-child(5) { border-image: linear-gradient(90deg, #64748b, #3b82f6) 1; }
.features div:nth-child(6) { border-image: linear-gradient(90deg, #ec4899, #8b5cf6) 1; }

.section-sub { margin: 6px 20px 0; color: var(--muted); }
.plan-for { font-size: 0.9rem; font-style: italic; }

.guide-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.guide input[type=range] { width: 100%; accent-color: #8b5cf6; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { margin: 0; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); cursor: pointer; font-weight: 600; }
.seg label:has(input:checked) { border-color: #a78bfa; background: rgba(139, 92, 246, 0.22); }
.seg input { margin-right: 6px; accent-color: #8b5cf6; }
.guide-result { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: 14px; background: rgba(2, 6, 23, 0.55); border: 1px solid rgba(139, 92, 246, 0.45); }
.guide-plan { font-size: 1.6rem; font-weight: 800; margin: 4px 0; background: var(--g-brand-h); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guide-result .btn { margin-top: 12px; }
.mascot-small { width: 84px; flex: none; filter: drop-shadow(0 6px 16px rgba(139, 92, 246, 0.4)); }

.about { display: flex; gap: 24px; align-items: center; }

.faq { margin: 16px 20px; display: grid; gap: 10px; }
.faq details { background: rgba(15, 23, 42, 0.6); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq details[open] { border-color: rgba(139, 92, 246, 0.55); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #a78bfa; font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--soft); line-height: 1.55; }

.cta-band {
    display: flex; gap: 24px; align-items: center; margin: 32px 20px; padding: 28px 32px; border-radius: 16px;
    background: radial-gradient(400px 200px at 90% 50%, rgba(239, 68, 68, 0.35), transparent 70%), linear-gradient(135deg, #1e3a8a 0%, #4c1d95 60%, #7f1d1d 100%);
    box-shadow: 0 16px 40px rgba(76, 29, 149, 0.35);
}
.cta-band div { flex: 1; }
.cta-band h2 { margin: 0 0 4px; font-size: 1.7rem; }
.cta-band p { margin: 0; color: var(--soft); }

:focus-visible { outline: 3px solid #a78bfa; outline-offset: 2px; }

/* Scroll reveal: only hidden when JS is running and motion is allowed. */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .mascot { animation: none; }
    * { transition: none !important; }
}

.error-mascot { width: 140px; display: block; margin: 0 auto 12px; }

@media (max-width: 900px) {
    .hero, .guide-grid { grid-template-columns: 1fr; }
    .hero-art { min-height: 300px; }
    .steps { grid-template-columns: 1fr; }
    .step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -20px; transform: translateX(50%); }
    .about, .cta-band { flex-direction: column; text-align: center; }
}
.center { text-align: center; }
.Logo img.mark { background: none; box-shadow: none; border-radius: 0; filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6)); }
.hero-art .mascot { margin-left: 140px; }
.mini-panel { left: -20px; bottom: 10px; }
@media (max-width: 900px) {
    .hero-art { min-height: 260px; }
    .hero-art .mascot { margin-left: 0; width: 150px; }
    .mini-panel { display: none; }
    .bubble { right: auto; left: 50%; transform: translateX(-130%); top: 0; max-width: 160px; font-size: 0.8rem; }
}
.mod-cost { font-weight: 700; margin: 8px 0 0; }
.small-text { font-size: 0.85rem; font-weight: 400; }

/* ---- Modrinth mod picker ---- */
.mods-title { margin: 28px 0 4px; }
.mods-title a { color: #4ade80; }
.mods-installed { display: grid; gap: 8px; margin: 14px 0 6px; }
.mod-chip, .mod-result {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    background: rgba(2, 6, 23, 0.5); border: 1px solid var(--line); border-radius: 12px;
}
.mod-chip.removed { opacity: 0.6; }
.mod-chip.removed .mod-name { text-decoration: line-through; }
.mod-chip-text { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.mod-icon { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; background: rgba(255, 255, 255, 0.06); }
.mod-icon.placeholder { display: grid; place-items: center; font-size: 1.2rem; }
.mod-name { font-weight: 700; color: var(--text); text-decoration: none; }
.mod-name:hover { text-decoration: underline; color: #4ade80; }
.mod-search { display: flex; gap: 8px; margin-top: 18px; }
.mod-search input { flex: 1; }
.mod-results { display: grid; gap: 8px; margin: 10px 0; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.mod-result-text { flex: 1; min-width: 0; }
.mod-result-text p { margin: 4px 0 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mod-result .btn { margin-top: 0; flex: none; }
.advanced { margin-top: 14px; }
.advanced summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
.pending-bar { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.45); font-weight: 600; }
@media (max-width: 700px) { .mod-result { flex-wrap: wrap; } .mod-result .btn { width: 100%; } }

[hidden] { display: none !important; }
