/*
 * OpenGenesisLINK Community Theme for MyBB 1.8.41
 * v1.0.1: stylesheet ordering fix for child-theme inheritance.
 * Theme layer only. Import as a child of the MyBB Default theme.
 */

:root {
    --ogl-bg: #050814;
    --ogl-bg-soft: #080d1a;
    --ogl-surface: #0b1220;
    --ogl-surface-2: #10192a;
    --ogl-surface-3: #152138;
    --ogl-line: rgba(126, 162, 210, 0.18);
    --ogl-line-strong: rgba(92, 224, 255, 0.34);
    --ogl-text: #dce8f7;
    --ogl-muted: #8ea2bd;
    --ogl-cyan: #5ce0ff;
    --ogl-blue: #6888ff;
    --ogl-violet: #a27cff;
    --ogl-green: #5ef0c0;
    --ogl-red: #ff7089;
    --ogl-yellow: #ffd27a;
    --ogl-shadow: 0 22px 55px rgba(0, 0, 0, 0.30);
    --ogl-radius: 18px;
    --ogl-radius-sm: 11px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(104, 136, 255, 0.12), transparent 32rem),
        radial-gradient(circle at 85% 8%, rgba(162, 124, 255, 0.10), transparent 30rem),
        var(--ogl-bg);
    color: var(--ogl-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
    overflow-y: scroll;
}

a:link, a:visited { color: var(--ogl-cyan); text-decoration: none; }
a:hover, a:active { color: #b9f5ff; text-decoration: none; }

#container {
    min-width: 0;
    color: var(--ogl-text);
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.wrapper {
    width: min(1420px, calc(100% - 48px));
    min-width: 0;
    max-width: 1420px;
    margin: 0 auto;
}

/* Brand header */
#logo {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--ogl-line);
    background: rgba(5, 8, 20, 0.86);
    backdrop-filter: blur(18px);
}

#logo .ogl-brandbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.ogl-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #f4f8ff !important;
    min-width: max-content;
}

.ogl-mark {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    border: 1px solid rgba(92, 224, 255, .42);
    background: linear-gradient(145deg, rgba(92,224,255,.18), rgba(162,124,255,.16));
    box-shadow: inset 0 0 25px rgba(92,224,255,.08), 0 0 28px rgba(92,224,255,.10);
}

.ogl-mark::before,
.ogl-mark::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: var(--ogl-cyan);
    box-shadow: 18px 10px 0 var(--ogl-violet), 7px 22px 0 var(--ogl-green);
}
.ogl-mark::before { width: 7px; height: 7px; left: 7px; top: 7px; }
.ogl-mark::after {
    width: 25px; height: 1px; left: 9px; top: 20px;
    border-radius: 0;
    background: linear-gradient(90deg, var(--ogl-cyan), var(--ogl-violet));
    transform: rotate(27deg);
    box-shadow: 1px 8px 0 rgba(94,240,192,.75);
}

.ogl-brandcopy { display: flex; flex-direction: column; line-height: 1.05; }
.ogl-brandname { font-size: 18px; font-weight: 800; letter-spacing: .01em; }
.ogl-brandname b { color: var(--ogl-cyan); }
.ogl-brandcopy small {
    margin-top: 5px;
    color: var(--ogl-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

#header ul.menu { margin: 0; padding: 0; list-style: none; }
#logo ul.top_links {
    margin: 0 0 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    font-weight: 650;
    text-align: right;
}
#header ul.menu li { margin: 0; display: block; }
#header ul.menu li a,
#logo ul.top_links a,
#logo ul.top_links a.search,
#logo ul.top_links a.memberlist,
#logo ul.top_links a.calendar,
#logo ul.top_links a.help,
#logo ul.top_links a.portal {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: none;
    color: #b7c7da;
    line-height: 1;
    transition: .18s ease;
}
#header ul.menu li a:hover {
    color: white;
    border-color: var(--ogl-line);
    background: rgba(255,255,255,.045);
}

.ogl-mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ogl-line);
    border-radius: 11px;
    background: var(--ogl-surface);
    color: var(--ogl-text);
    cursor: pointer;
    font-size: 20px;
}

/* User panel */
#panel .upper {
    clear: both;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid var(--ogl-line);
    background: rgba(8, 13, 26, .82);
    color: var(--ogl-muted);
}
#panel .upper a:link, #panel .upper a:visited,
#panel .upper a:hover, #panel .upper a:active { color: var(--ogl-text); }
#panel .lower {
    padding: 7px 0;
    border: 0;
    border-bottom: 1px solid var(--ogl-line);
    background: rgba(11, 18, 32, .92);
    color: var(--ogl-muted);
}
#panel .lower a:link, #panel .lower a:visited,
#panel .lower a:hover, #panel .lower a:active { color: #b8c9dd; }
#panel .lower ul.panel_links, #panel .lower ul.user_links { float: none; display: flex; gap: 16px; flex-wrap: wrap; }
#panel .lower .wrapper { display: flex; justify-content: space-between; gap: 24px; }
#panel .lower ul.menu li a { padding: 3px 0; background: none !important; }
#panel .upper a.logout, #panel .upper a.login, #panel .upper a.lost_password, #panel .upper a.register {
    background: none;
    padding: 0;
    margin-left: 9px;
    font-weight: 750;
}

#search { float: right; display: flex; gap: 7px; margin: -2px 0; }
#search input { margin: 0; }

/* Main canvas */
#content {
    width: auto !important;
    padding: 34px 0 60px;
    background: transparent;
    overflow: visible;
}

.navigation {
    margin: 0 0 20px;
    padding: 10px 13px;
    border: 1px solid var(--ogl-line);
    border-radius: 10px;
    background: rgba(11, 18, 32, .72);
    color: var(--ogl-muted);
    font-size: 12px;
}
.navigation a { color: #b9cadf; }
.navigation .active { color: white; font-weight: 750; }

/* Index hero */
.ogl-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr);
    gap: 28px;
    margin: 0 0 26px;
    padding: 34px;
    border: 1px solid var(--ogl-line-strong);
    border-radius: 24px;
    background:
        linear-gradient(rgba(92,224,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92,224,255,.035) 1px, transparent 1px),
        linear-gradient(135deg, rgba(15,27,49,.96), rgba(8,13,26,.96));
    background-size: 30px 30px, 30px 30px, auto;
    box-shadow: var(--ogl-shadow);
}
.ogl-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -130px;
    top: -190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(92,224,255,.18), rgba(162,124,255,.05) 45%, transparent 70%);
    pointer-events: none;
}
.ogl-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--ogl-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.ogl-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--ogl-green); box-shadow: 0 0 15px var(--ogl-green); }
.ogl-hero h1 { margin: 0; color: white; font-size: clamp(31px, 5vw, 58px); line-height: .98; letter-spacing: -.045em; }
.ogl-hero h1 span { color: var(--ogl-cyan); }
.ogl-hero p { max-width: 680px; margin: 17px 0 0; color: #a9bbd1; font-size: 16px; }
.ogl-hero-actions { display: flex; gap: 9px; margin-top: 24px; flex-wrap: wrap; }
.ogl-hero-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 10px;
    border: 1px solid var(--ogl-line);
    background: rgba(255,255,255,.035);
    color: white;
    font-weight: 700;
}
.ogl-hero-actions a:first-child { border-color: rgba(92,224,255,.38); background: rgba(92,224,255,.10); color: #c8f7ff; }
.ogl-system-map { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.ogl-system-map div {
    min-height: 82px;
    padding: 14px;
    border: 1px solid var(--ogl-line);
    border-radius: 13px;
    background: rgba(4,9,20,.55);
}
.ogl-system-map b { display: block; color: white; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.ogl-system-map small { display: block; margin-top: 5px; color: var(--ogl-muted); }
.ogl-system-map div:nth-child(1) { border-color: rgba(92,224,255,.33); }
.ogl-system-map div:nth-child(4) { border-color: rgba(162,124,255,.34); }

.ogl-section-title { display:flex; justify-content:space-between; align-items:center; gap:20px; margin: 28px 2px 13px; }
.ogl-section-title h2 { margin:0; color:#f5f9ff; font-size:18px; letter-spacing:-.01em; }
.ogl-section-title span { color:var(--ogl-muted); font-size:12px; }

/* MyBB tables -> modern panels */
.tborder {
    width: 100%;
    margin: 0;
    border: 1px solid var(--ogl-line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--ogl-radius);
    overflow: hidden;
    background: rgba(11, 18, 32, .92);
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
}
.thead {
    padding: 15px 17px !important;
    border: 0;
    border-bottom: 1px solid rgba(92,224,255,.24);
    background: linear-gradient(90deg, rgba(24,43,69,.96), rgba(14,24,42,.96));
    color: #f6f9ff;
}
.thead a:link, .thead a:visited, .thead a:hover, .thead a:active { color: white; }
.tcat {
    padding: 9px 14px !important;
    border: 0;
    border-bottom: 1px solid var(--ogl-line);
    background: rgba(20, 31, 50, .92);
    color: #93a9c2;
}
.tcat a:link, .tcat a:visited { color: #b8c9dd; }
.trow1, .trow2 {
    padding: 13px 14px !important;
    border: 0;
    border-bottom: 1px solid rgba(126,162,210,.10);
    background: rgba(11,18,32,.86);
    color: var(--ogl-text);
    transition: background .16s ease;
}
.trow2 { background: rgba(13,21,36,.94); }
tr:hover > .trow1, tr:hover > .trow2 { background: rgba(20,33,54,.96); }
.tfoot {
    padding: 10px 14px !important;
    border: 0;
    background: rgba(9,15,27,.95);
    color: var(--ogl-muted);
}
.tborder + br { line-height: 9px; }

.ogl-index .tborder { margin-bottom: 16px; }
.ogl-index .thead strong > a { font-size: 16px; letter-spacing: -.01em; }
.ogl-index .forum_status { filter: drop-shadow(0 0 8px rgba(92,224,255,.16)); }
.ogl-index .trow1 strong > a, .ogl-index .trow2 strong > a { color: #eef7ff; font-size: 14px; }
.ogl-index .smalltext { color: var(--ogl-muted); }

/* Posts / thread view */
.post {
    margin: 0 0 18px;
    border: 1px solid var(--ogl-line) !important;
    border-radius: var(--ogl-radius) !important;
    overflow: hidden;
    background: rgba(11,18,32,.93) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.16);
}
.post .post_head {
    padding: 10px 15px !important;
    border-bottom: 1px solid var(--ogl-line) !important;
    background: rgba(20,31,50,.88) !important;
    color: var(--ogl-muted);
}
.post .post_author {
    border: 0 !important;
    border-right: 1px solid var(--ogl-line) !important;
    background: rgba(8,14,25,.72) !important;
    color: var(--ogl-muted);
}
.post .post_author strong { color: white; }
.post .post_content { background: transparent !important; }
.post .post_body { color: #dce8f7; font-size: 14px; line-height: 1.7; }
.post .post_meta, .post .post_controls { border-top-color: var(--ogl-line) !important; background: rgba(8,14,25,.60) !important; }
.post .post_controls a, .postbit_buttons > a { border-radius: 8px !important; }

blockquote {
    margin: 14px 0;
    padding: 14px 16px;
    border: 1px solid var(--ogl-line);
    border-left: 3px solid var(--ogl-violet);
    border-radius: 10px;
    background: rgba(162,124,255,.06);
    color: #cbd8e9;
}
.codeblock, .codeblock code, pre, code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.codeblock {
    border: 1px solid var(--ogl-line) !important;
    border-radius: 11px !important;
    background: #050a12 !important;
}

/* Forms */
input.textbox, textarea, select, input[type="text"], input[type="password"], input[type="email"] {
    max-width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--ogl-line-strong);
    border-radius: 9px;
    outline: none;
    background: #07101e;
    color: var(--ogl-text);
    font: inherit;
}
textarea { min-height: 120px; }
input:focus, textarea:focus, select:focus { border-color: var(--ogl-cyan); box-shadow: 0 0 0 3px rgba(92,224,255,.09); }
.button, input.button, a.button {
    min-height: 38px;
    padding: 0 14px !important;
    border: 1px solid rgba(92,224,255,.32) !important;
    border-radius: 9px !important;
    background: linear-gradient(180deg, rgba(92,224,255,.16), rgba(104,136,255,.12)) !important;
    color: #eafaff !important;
    font-weight: 750 !important;
    cursor: pointer;
    transition: .16s ease;
}
.button:hover, input.button:hover, a.button:hover { transform: translateY(-1px); border-color: rgba(92,224,255,.58) !important; }

/* Pagination / badges */
.pagination { color: var(--ogl-muted); }
.pagination a, .pagination .pagination_current {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    min-height: 34px;
    margin: 2px;
    border: 1px solid var(--ogl-line);
    border-radius: 8px;
    background: rgba(11,18,32,.92);
    color: #b8c9dd;
}
.pagination .pagination_current { border-color: rgba(92,224,255,.44); background: rgba(92,224,255,.12); color: white; }

.success_message, .pm_alert, .red_alert, .error {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--ogl-line);
    background: rgba(11,18,32,.94);
}
.success_message { border-color: rgba(94,240,192,.35); }
.pm_alert { border-color: rgba(92,224,255,.35); }
.red_alert, .error { border-color: rgba(255,112,137,.38); color: #ffdbe1; }

.modal { border-radius: 16px !important; background: var(--ogl-surface) !important; color: var(--ogl-text) !important; box-shadow: var(--ogl-shadow) !important; }
.jGrowl-notification { border: 1px solid var(--ogl-line) !important; background: #091321 !important; color: var(--ogl-text) !important; }

/* Legends */
.forum_legend, .thread_legend { margin: 12px 0; color: var(--ogl-muted); }
.forum_legend dt, .forum_legend dd { margin-bottom: 7px; }

/* Footer */
#footer { clear: both; margin-top: 34px; background: transparent; color: var(--ogl-muted); }
#footer .upper {
    padding: 18px 0;
    border-top: 1px solid var(--ogl-line);
    border-bottom: 1px solid var(--ogl-line);
    background: rgba(8,13,26,.72);
}
#footer .lower { padding: 19px 0 32px; background: rgba(5,8,20,.82); color: #7388a3; }
#footer ul.menu { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 14px; }
#footer ul.menu li { margin: 0; }
#footer a { color: #9db0c7; }
#footer .language, #footer .theme { margin-right: 10px; }
.ogl-footer-brand { display: block; margin-bottom: 7px; color: #c9d7e8; font-weight: 700; }

.float_left { float: left; }
.float_right { float: right; }
.clear { clear: both; }
.smalltext { color: var(--ogl-muted); font-size: 12px; }

/* Mobile */
@media (max-width: 900px) {
    .wrapper { width: min(100% - 28px, 1420px); }
    #logo .ogl-brandbar { min-height: 68px; gap: 12px; }
    .ogl-mobile-toggle { display: inline-grid; place-items: center; }
    #logo ul.top_links {
        display: none;
        position: absolute;
        left: 14px;
        right: 14px;
        top: 66px;
        margin: 0;
        padding: 10px;
        border: 1px solid var(--ogl-line);
        border-radius: 13px;
        background: rgba(7,12,23,.98);
        box-shadow: var(--ogl-shadow);
    }
    #logo.ogl-nav-open ul.top_links { display: grid; grid-template-columns: 1fr 1fr; }
    #header ul.menu li a { width: 100%; justify-content: center; }
    #panel .lower .wrapper { display: block; }
    #panel .lower ul.panel_links, #panel .lower ul.user_links { float: none; margin: 3px 0; }
    #search { float: none; margin: 4px 0 9px; width: 100%; }
    #search input.textbox { flex: 1; }
    .ogl-hero { grid-template-columns: 1fr; padding: 25px; }
    .ogl-system-map { grid-template-columns: 1fr 1fr; }
    .ogl-index td[width="85"], .ogl-index .tcat[width="85"] { display: none; }
    .post.classic .post_author, .post .post_author { border-right: 0 !important; }
}

@media (max-width: 620px) {
    body { font-size: 13px; }
    .wrapper { width: min(100% - 18px, 1420px); }
    #content { padding-top: 20px; }
    .ogl-brandcopy small { display: none; }
    .ogl-brandname { font-size: 15px; }
    .ogl-mark { width: 36px; height: 36px; }
    .ogl-hero { padding: 20px; border-radius: 18px; }
    .ogl-hero p { font-size: 14px; }
    .ogl-system-map { grid-template-columns: 1fr; }
    .tborder { border-radius: 13px; }
    .thead { padding: 12px !important; }
    .trow1, .trow2 { padding: 10px !important; }
    .ogl-index td[align="center"][style*="white-space"], .ogl-index .tcat[align="center"] { display: none; }
    .float_left, .float_right { float: none; }
    .pagination { margin: 8px 0; }
}

		