/* sysforge.cc — clean, simple, professional. */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #1a1a2e;
    background: #eef0f4;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a         { color: #0040c1; text-decoration: none; }
a:hover   { color: #0033a0; text-decoration: underline; }
a:visited { color: #0040c1; }

/* -------- page frame -------- */
.page {
    max-width: 980px;
    margin: 24px auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
    min-height: 90vh;
    overflow: hidden;
}

/* -------- top header -------- */
.topbar {
    background: #ffffff;
    border-bottom: 2px solid #0040c1;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar .brand {
    font-size: 22px;
    font-weight: 700;
    color: #0040c1;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.topbar .brand span { color: #1a1a2e; font-weight: 400; }
.topbar .brand:visited { color: #0040c1; }
.topbar .account { font-size: 13px; color: #666; }
.topbar .account a { margin-left: 12px; color: #0040c1; }

/* -------- main nav -------- */
.nav {
    background: #f8f9fb;
    border-bottom: 1px solid #e2e5ea;
    padding: 0 20px;
    display: flex;
    gap: 2px;
}
.nav a {
    display: inline-block;
    padding: 10px 16px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.nav a:hover   { color: #0040c1; border-bottom-color: #c0d0f0; }
.nav a.active  { color: #0040c1; border-bottom-color: #0040c1; font-weight: 600; }

/* -------- two-column body -------- */
.body {
    display: flex;
    gap: 0;
}
.sidebar {
    width: 210px;
    flex-shrink: 0;
    background: #f8f9fb;
    border-right: 1px solid #e8eaef;
    padding: 20px 18px;
    font-size: 13px;
}
.sidebar h3 {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e2e5ea;
}
.sidebar ul { list-style: none; margin-bottom: 18px; }
.sidebar li { padding: 3px 0; }
.sidebar li a { color: #0040c1; text-decoration: none; }
.sidebar li a:hover { text-decoration: underline; }

.content {
    flex: 1;
    padding: 28px 32px;
    min-width: 0;
}
.content h1 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 10px;
    font-weight: 600;
    border-bottom: 1px solid #e2e5ea;
    padding-bottom: 8px;
}
.content h2 {
    font-size: 16px;
    color: #1a1a2e;
    margin: 24px 0 8px;
    font-weight: 600;
}
.content p  { margin-bottom: 12px; color: #333; }
.content ul { margin: 10px 0 14px 22px; }
.content li { margin-bottom: 4px; color: #333; }

/* -------- content boxes -------- */
.box {
    background: #f8f9fb;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    padding: 16px 18px;
    margin: 14px 0;
}
.box.hilite { background: #fffbeb; border-color: #e5c94e; }
.box.warn   { background: #fef2f2; border-color: #dc2626; }
.box.ok     { background: #f0fdf4; border-color: #16a34a; }

/* -------- tables -------- */
table.grid {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    border-radius: 6px;
    overflow: hidden;
}
table.grid th, table.grid td {
    border: 1px solid #e2e5ea;
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}
table.grid th {
    background: #f1f3f7;
    font-weight: 600;
    color: #1a1a2e;
}
table.grid tr:nth-child(even) td { background: #fafbfc; }

/* -------- forms -------- */
form.classic label {
    display: inline-block;
    width: 130px;
    padding: 5px 8px 5px 0;
    text-align: right;
    vertical-align: top;
    font-weight: 500;
    color: #444;
}
form.classic input[type=text],
form.classic input[type=email],
form.classic input[type=password],
form.classic textarea,
form.classic select {
    border: 1px solid #ccd0d8;
    border-radius: 4px;
    padding: 6px 10px;
    font-family: inherit;
    font-size: 13px;
    background: #ffffff;
    width: 280px;
    transition: border-color 0.15s;
}
form.classic input:focus,
form.classic textarea:focus,
form.classic select:focus {
    outline: none;
    border-color: #0040c1;
    box-shadow: 0 0 0 2px rgba(0,64,193,0.1);
}
form.classic input[type=submit],
button.classic {
    background: #0040c1;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 7px 18px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s;
}
form.classic input[type=submit]:hover,
button.classic:hover { background: #0033a0; }
form.classic .row { margin-bottom: 8px; }

/* -------- code blocks -------- */
pre {
    background: #f1f3f7;
    border: 1px solid #e2e5ea;
    border-radius: 4px;
    padding: 12px 14px;
    font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
    font-size: 12px;
    overflow-x: auto;
    margin: 10px 0;
}
code {
    font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
    background: #f1f3f7;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}

/* -------- pricing cards -------- */
.tiers { display: flex; gap: 16px; margin: 18px 0; }
.tier {
    flex: 1;
    border: 1px solid #e2e5ea;
    border-radius: 8px;
    background: #fafbfc;
    padding: 20px 18px;
    text-align: center;
    transition: box-shadow 0.15s;
}
.tier:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.tier.featured { border: 2px solid #0040c1; background: #ffffff; box-shadow: 0 2px 12px rgba(0,64,193,0.1); }
.tier .name  { font-size: 15px; font-weight: 600; color: #0040c1; margin-bottom: 4px; }
.tier .price { font-size: 26px; font-weight: 700; color: #1a1a2e; margin: 10px 0; }
.tier .price small { font-size: 12px; font-weight: 400; color: #888; }
.tier ul { list-style: none; text-align: left; margin: 12px 0; }
.tier li { padding: 5px 0; border-bottom: 1px solid #eef0f4; font-size: 13px; color: #444; }
.tier li:last-child { border-bottom: none; }
.tier a.buy {
    display: inline-block;
    background: #0040c1;
    color: #ffffff;
    padding: 8px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 13px;
    transition: background 0.15s;
}
.tier a.buy:visited { color: #ffffff; }
.tier a.buy:hover   { background: #0033a0; }

/* -------- footer -------- */
.footer {
    background: #f8f9fb;
    border-top: 1px solid #e2e5ea;
    padding: 14px 24px;
    font-size: 12px;
    color: #888;
    text-align: center;
}
.footer a { color: #888; }
.footer a:hover { color: #0040c1; }

/* -------- alerts -------- */
.notice {
    padding: 12px 16px;
    margin: 12px 0;
    border: 1px solid;
    border-radius: 6px;
}
.notice.info  { background: #eff6ff; border-color: #0040c1; color: #1e3a5f; }
.notice.error { background: #fef2f2; border-color: #dc2626; color: #7f1d1d; }
.notice.ok    { background: #f0fdf4; border-color: #16a34a; color: #14532d; }

.dim { color: #888; font-size: 13px; }
.mono { font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace; }

/* -------- inline forms -------- */
form.linkform         { display: inline; margin: 0; padding: 0; }
button.linklike {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: #0040c1;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
button.linklike:hover  { color: #0033a0; }
button.linklike:focus  { outline: 2px solid rgba(0,64,193,0.3); outline-offset: 1px; border-radius: 2px; }
button.linklike:disabled { color: #aaa; cursor: not-allowed; text-decoration: none; }

/* -------- mobile layout -------- */
@media (max-width: 768px) {
    body        { font-size: 15px; }
    .page       { margin: 0; border-radius: 0; box-shadow: none; }
    .topbar     { flex-wrap: wrap; padding: 12px 16px; }
    .topbar .brand   { font-size: 18px; }
    .topbar .account { width: 100%; margin-top: 6px; }
    .nav        { flex-wrap: wrap; padding: 0 12px; gap: 0; }
    .nav a      { padding: 8px 12px; font-size: 13px; }
    .body       { flex-direction: column; }
    .sidebar    {
        width: auto;
        border-right: 0;
        border-bottom: 1px solid #e2e5ea;
        padding: 12px 16px;
    }
    .sidebar ul { margin-bottom: 10px; }
    .content    { padding: 20px 16px; }
    .content h1 { font-size: 19px; }
    .tiers      { flex-direction: column; }
    table       { width: 100%; font-size: 13px; }
    pre, code   { word-break: break-word; white-space: pre-wrap; }
    .footer     { padding: 10px 16px; font-size: 11px; }
}
