/* ============================================================
   Reunited Roleplay – Dark Theme  (MyBB 1.8.x / Flatty base)
   Accent: #ffae00  |  Base: #141618  |  Surface: #1e2126
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url(https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap);

/* ── Reset / Base ──────────────────────────────────────────── */
body {
    background: #141618;
    color: #e8eaed;
    text-align: center;
    line-height: 1.55;
    margin: 0;
    font-family: "Inter", "Open Sans", Arial, sans-serif;
    font-size: 13px;
    overflow-y: scroll;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a:link {
    transition: color .12s ease;
    color: #ffae00;
    text-decoration: none;
}

a:visited {
    color: #d49200;
    text-decoration: none;
}

a:hover,
a:active {
    color: #ffc233;
    text-decoration: none;
}

h1, h2, h3, h4 {
    padding: 0;
    margin-top: 0;
    font-weight: 600;
    color: #e8eaed;
}

ol, ul, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Layout ────────────────────────────────────────────────── */
#container {
    font-family: "Inter", "Open Sans", Arial, sans-serif;
    text-align: left;
    color: #e8eaed;
    line-height: 1.55;
    margin: 0;
    font-size: 13px;
    min-width: 960px;
}

.wrapper {
    max-width: 1370px;
    margin: 0 auto;
}

/* ── Logo / Banner ─────────────────────────────────────────── */
#logo {
    background: #1a1d23 url(../../../images/flatty/header-logo.png) no-repeat 0% 10% / cover;
    height: 200px;
    width: 100%;
    display: flex;
    padding: 0 15px;
    box-sizing: border-box;
    border-bottom: 2px solid #ffae00;
}

#logo .wrapper {
    width: 100%;
}

/* ── Content area ──────────────────────────────────────────── */
#content {
    width: auto !important;
    padding: 30px 10px;
    overflow: hidden;
    background: #141618;
}

/* ── Sticky Header ─────────────────────────────────────────── */
#header {
    position: sticky;
    top: 0;
    z-index: 777;
}

#header ul.menu {
    text-align: right;
    margin: 0;
    padding: 0;
    list-style: none;
}

#header ul.menu li {
    margin: 0 4px;
    display: inline;
}

#header ul.menu li a {
    padding-left: 21px;
    display: inline-block;
    color: #e8eaed;
}

/* ── Top panel ─────────────────────────────────────────────── */
#panel {
    position: relative;
    z-index: 994;
    width: 100%;
}

#panel .upper {
    position: relative;
    background: #1a1d23;
    color: #e8eaed;
    clear: both;
    height: 60px;
    line-height: 60px;
    padding: 0 15px;
    overflow: hidden;
    border-bottom: 1px solid #2e333b;
}

#panel .upper a:link,
#panel .upper a:visited,
#panel .upper a:active {
    color: #e8eaed;
}

#panel .upper a:hover {
    color: #ffae00;
    text-decoration: none;
}

/* Login / Register buttons in upper panel */
#panel .upper a.login {
    padding: 7px 20px;
    background: #ffae00;
    color: #141618 !important;
    font-weight: 600;
    border-radius: 4px;
}

#panel .upper a.login:hover {
    background: #ffc233;
    color: #141618 !important;
}

#panel .upper a.register {
    padding: 7px 20px;
    margin-left: 8px;
    background: transparent;
    color: #ffae00 !important;
    font-weight: 600;
    border: 1px solid #ffae00;
    border-radius: 4px;
}

#panel .upper a.register:hover {
    background: #ffae00;
    color: #141618 !important;
}

#panel .upper a.logout {
    font-weight: 400;
    padding-right: 20px;
    margin-left: 10px;
    color: #9aa0a9 !important;
}

#panel .upper a.logout:hover {
    color: #ffae00 !important;
}

/* Lower nav strip */
#panel .lower {
    background: #1e2126;
    border-bottom: 1px solid #2e333b;
    color: #9aa0a9;
    height: 38px;
    line-height: 38px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    overflow: hidden;
}

#panel .lower a:link,
#panel .lower a:visited,
#panel .lower a:hover,
#panel .lower a:active {
    color: #9aa0a9;
}

#panel .lower a:hover {
    color: #ffae00;
}

#panel .lower ul.panel_links { float: right; }
#panel .lower ul.user_links  { float: left; }

#panel .lower ul.user_links li a {
    padding: 0;
    padding-right: 5px;
    background-image: none;
}

.panel-pm {
    margin-left: 13px;
}

/* ── Top link menu (in logo area) ──────────────────────────── */
#logo ul.top_links {
    text-align: right;
    margin: -10px 5px 0 0;
}

/* ── Search ────────────────────────────────────────────────── */
#search {
    border: 0;
    padding: 0;
    margin: 0;
    float: right;
    vertical-align: middle;
}

#search input.textbox {
    background: #252930;
    border: 1px solid #2e333b;
    color: #e8eaed;
}

#search input.button {
    background: #ffae00;
    color: #141618;
    font-weight: 600;
}

#search input {
    margin: -3px 0;
}

/* ── Breadcrumb / Navigation bar ───────────────────────────── */
.navigation {
    margin-bottom: 13px;
    padding: 0 18px;
    color: #9aa0a9;
    border-radius: 4px;
    font-size: 13px;
    overflow: hidden;
    height: 44px;
    line-height: 44px;
    font-family: inherit;
    background: #1e2126;
    border: 1px solid #2e333b;
}

.navigation a:link,
.navigation a:visited {
    text-decoration: none;
    color: #9aa0a9 !important;
}

.navigation a:hover,
.navigation a:active {
    color: #ffae00 !important;
    text-decoration: none;
}

.navigation a:focus {
    color: #ffae00;
}

.navigation .active i:before {
    content: "\f015";
    color: #ffae00;
}

.navigation .active {
    font-weight: 700;
    color: #e8eaed;
    font-size: 13px;
}

/* ── Tables (core MyBB structure) ──────────────────────────── */
table {
    color: #9aa0a9;
    font-size: 14px;
    font-family: inherit;
}

.tborder {
    background: #1e2126;
    width: 100%;
    margin: 0 auto;
    border: 1px solid #2e333b;
    border-radius: 6px;
    overflow: hidden;
}

.tfixed {
    table-layout: fixed;
    word-wrap: break-word;
}

/* Category/section header */
.thead {
    background: #1a1d23;
    color: #e8eaed;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 18px 12px 18px;
    line-height: 24px;
    border-left: 3px solid #ffae00;
}

.thead.side {
    background: #252930;
    padding: 12px 18px 11px 18px;
    border-left: 3px solid #ffae00;
}

.thead a:link,
.thead a:visited,
.thead a:hover,
.thead a:active {
    color: #e8eaed;
}

.thead a:hover {
    color: #ffae00;
    text-decoration: none;
}

.thead.signin {
    background: #1e2126;
    font-size: 22px;
    color: #e8eaed !important;
    text-align: center;
    padding: 1.2rem 1rem 1.5rem 1rem;
    border-left: 3px solid #ffae00;
}

/* Sub-header / column labels */
.tcat {
    background: #252930;
    font-size: 12px;
    box-sizing: border-box;
    padding: 10px 18px 9px 18px;
    color: #9aa0a9;
    font-weight: 500;
    border-bottom: 1px solid #2e333b;
}

.tcat a:link,
.tcat a:visited {
    color: #9aa0a9;
}

.tcat a:hover,
.tcat a:active {
    color: #ffae00;
}

/* Alternating rows */
.trow1 {
    background: #1e2126;
    border-bottom: 1px solid #2e333b;
    padding: 11px 18px 10px 18px;
}

.trow2 {
    background: #212529;
    border-bottom: 1px solid #2e333b;
    padding: 11px 18px 10px 18px;
}

.trow_shaded {
    background: #1f2a1f;
    border: 0;
    padding: 11px 18px 10px 18px;
}

.no_bottom_border {
    border-bottom: 0;
}

/* Table footer */
.tfoot {
    padding: 10px 18px;
    color: #9aa0a9;
    background: #1a1d23;
    border-top: 1px solid #2e333b;
}

.tfoot a:link,
.tfoot a:visited {
    color: #9aa0a9;
    text-decoration: none;
}

.tfoot a:hover,
.tfoot a:active {
    color: #ffae00;
    text-decoration: underline;
}

/* Row separator label */
.trow_sep {
    background: #252930;
    color: #9aa0a9;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid #2e333b;
}

/* ── Inputs ─────────────────────────────────────────────────── */
input.textbox {
    background: #252930;
    color: #e8eaed;
    border: 1px solid #2e333b;
    padding: 7px 10px;
    outline: 0;
    box-sizing: border-box;
    font-size: 13px;
    font-family: inherit;
    border-radius: 4px;
    transition: border-color .15s ease;
}

input.textbox:focus {
    border-color: #ffae00;
    box-shadow: 0 0 0 2px rgba(255, 174, 0, 0.15);
}

textarea {
    background: #252930;
    color: #e8eaed;
    border: 1px solid #2e333b;
    padding: 8px 10px;
    line-height: 1.5;
    outline: 0;
    font-family: inherit;
    font-size: 13px;
    border-radius: 4px;
    transition: border-color .15s ease;
}

textarea:focus {
    border-color: #ffae00;
    box-shadow: 0 0 0 2px rgba(255, 174, 0, 0.15);
}

select {
    font-family: "Inter", "Open Sans", Arial, sans-serif;
    font-size: 13px;
    border: 1px solid #2e333b;
    outline: 0;
    height: 34px;
    padding: 0 36px 0 10px;
    color: #e8eaed;
    background: #252930 url(../../../images/flatty/arrow-down.png) no-repeat 93% 55%;
    background-size: 10px;
    -moz-appearance: none;
    -webkit-appearance: none;
    border-radius: 4px;
}

.thead input.textbox,
.thead select {
    border: 1px solid #3a4050;
}

form {
    margin: 0;
    padding: 0;
}

fieldset {
    padding: 12px;
    border: 1px solid #2e333b;
    margin: 0;
    border-radius: 4px;
}

fieldset.trow1,
fieldset.trow2 {
    border-color: #2e333b;
}

fieldset.align_right {
    text-align: right;
}

input.error, textarea.error, select.error {
    border: 1px solid #e05252;
    color: #e05252;
}

input.valid, textarea.valid, select.valid {
    border: 1px solid #3dba6e;
}

label.error {
    color: #e05252;
    margin: 5px;
    padding: 0;
    display: block;
    font-weight: 500;
    font-size: 11px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
button,
input.button {
    padding: 7px 18px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    background: #ffae00;
    border: 0 !important;
    outline: 0 !important;
    color: #141618;
    border-radius: 4px !important;
    transition: background .15s ease;
}

button:hover,
input.button:hover {
    background: #ffc233;
}

a.button:link,
a.button:visited,
a.button:active {
    background: #ffae00;
    display: inline-block;
    color: #141618;
    font-weight: 600;
    margin: 2px 0 6px;
    font-size: 13px;
    padding: 8px 22px;
    border-radius: 4px;
    transition: background .15s ease;
}

a.button:hover {
    background: #ffc233;
    color: #141618;
}

a.button.small_button {
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 4px;
}

a.button span {
    display: inline-block;
}

/* ── Post bits ───────────────────────────────────────────────── */
.post {
    background: #1e2126;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid #2e333b;
    border-radius: 4px;
}

.post.classic {
    border: 1px solid #2e333b;
    border-radius: 4px;
    margin-bottom: 10px;
    padding-top: 15px;
    background: #1e2126;
}

.post .post_author {
    padding: 1em;
    overflow: hidden;
}

.post.classic .post_author {
    margin: 2px 0 18px 0;
    float: left;
    width: 15%;
    padding: 5px 1%;
    border-right: 1px solid #2e333b;
}

.post .post_author .buddy_status {
    vertical-align: middle;
    margin-top: -4px;
}

.post .post_author div.author_avatar {
    float: left;
    margin-right: 1em;
    min-width: 70px;
    max-width: 90px;
}

.post.classic .post_author div.author_avatar {
    float: none;
    margin: 0 auto 1em;
    max-width: 90px;
    text-align: center;
    min-width: 70px;
}

.post .post_author div.author_avatar img {
    border-radius: 50%;
    width: auto;
    height: auto;
    border: 2px solid #2e333b;
}

.post .post_author div.author_information {
    float: left;
    padding: 6px 8px;
}

.post.classic .post_author div.author_information {
    float: none;
    font-family: inherit;
    padding: 0;
    text-align: center;
}

.post .post_author div.author_statistics {
    float: right;
    font-size: 12px;
    padding: 14px 18px 12px 16px;
    color: #9aa0a9;
    font-family: inherit;
    line-height: 1.4;
}

.post .post_author div.author_statistics_default {
    background: #252930;
    float: right;
    font-size: 12px;
    padding: 11px 18px 6px 16px;
    color: #9aa0a9;
    font-family: inherit;
    line-height: 1.4;
}

.post.classic .post_author div.author_statistics {
    margin: 7px 0 0 0;
    float: none;
}

.post .post_head {
    border-bottom: 1px solid #2e333b;
    font-size: 11px;
    padding-bottom: 12px;
    margin-bottom: 7px;
}

.post .post_head span.post_date {
    color: #9aa0a9;
    font-size: 13px;
}

.post .post_head span.edited_post {
    font-size: 10px;
    color: #9aa0a9;
}

.post .post_head span.edited_post a {
    color: #9aa0a9;
}

.post_body {
    font-size: 14px;
    padding: 10px 0;
    color: #c8cace;
    line-height: 1.65;
}

.post.classic .post_content {
    border-left: 1px solid #2e333b;
    margin-left: -1px;
    float: left;
    width: 80%;
    padding: 5px 1.4% 5px;
}

.post_content {
    padding: 16px 20px 10px 20px;
}

.post_content .signature {
    margin-top: 5px;
    border-top: 1px dotted #2e333b;
    padding: 10px 0 4px 0;
    color: #9aa0a9;
    font-size: 12px;
}

.post .post_meta {
    margin: 4px 0;
    font-size: 11px;
    color: #9aa0a9;
}

.post .post_meta a:link,
.post .post_meta a:visited,
.post .post_meta a:hover,
.post .post_meta a:active {
    color: #9aa0a9;
}

.post_controls_default {
    padding: 0.9em;
    clear: both;
    overflow: hidden;
}

.post_controls {
    overflow: hidden;
    clear: both;
    padding: 0.875em;
    background: #1a1d23;
    border-top: 1px solid #2e333b;
}

.postbit_buttons > a:link,
.postbit_buttons > a:visited,
.postbit_buttons > a:active {
    display: inline-block;
    color: #9aa0a9;
    padding: 6px 14px;
    margin: 5px 2px 2px;
    font-size: 12px;
    border: 1px solid #2e333b;
    border-radius: 4px;
    transition: all .15s ease;
}

.postbit_buttons > a:hover {
    background: #ffae00;
    color: #141618;
    border-color: #ffae00;
}

.postbit_buttons a span {
    display: inline-block;
    height: 16px;
}

/* ── Unapproved / deleted posts ─────────────────────────────── */
.post.unapproved_post {
    background: #2a1f1f;
    border-color: #5a2e2e;
}

.post.unapproved_post .post_author {
    border-bottom-color: #5a2e2e;
}

.post.classic.unapproved_post .post_author {
    border-color: #5a2e2e;
}

.post.unapproved_post .post_controls {
    border-top-color: #5a2e2e;
}

.trow_deleted,
.post.deleted_post {
    background: #1a1d23;
    border-bottom: 1px solid #2e333b;
}

.trow_selected,
tr.trow_selected td {
    background: #252918 !important;
    color: #e8eaed;
}

.trow_selected a:link,
.trow_selected a:visited,
.trow_selected a:hover,
.trow_selected a:active {
    color: #ffae00;
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
    font-size: 11px;
    padding-top: 14px;
    margin-bottom: 14px;
}

.tfoot .pagination,
.tcat .pagination {
    padding-top: 0;
}

.pagination .pages {
    font-weight: 500;
    color: #9aa0a9;
}

.pagination .pagination_current,
.pagination a {
    padding: 5px 10px;
    margin-bottom: 3px;
    border-radius: 4px;
}

.pagination a {
    background: #252930;
    color: #9aa0a9;
    border: 1px solid #2e333b;
    transition: all .15s ease;
}

.pagination a:link {
    color: #9aa0a9 !important;
}

.pagination a:hover {
    background: #ffae00;
    color: #141618 !important;
    border-color: #ffae00;
    text-decoration: none;
}

.pagination .pagination_current {
    background: #ffae00;
    border: 1px solid #ffae00;
    font-weight: 600;
    color: #141618;
    border-radius: 4px;
}

/* ── Misc alerts / notices ───────────────────────────────────── */
.pm_alert {
    background: #252930;
    border: 1px solid #ffae00;
    text-align: center;
    font-size: 12px;
    padding: 10px 20px;
    margin-bottom: 18px;
    border-radius: 4px;
    color: #e8eaed;
}

.red_alert {
    margin-bottom: 1.5em;
    padding: 1.1em 1.65em;
    font-size: 12px;
    text-align: center;
    font-weight: 400;
    color: #fff;
    background: rgba(224, 82, 82, 0.85);
    border-radius: 4px;
}

.red_alert a:link,
.red_alert a:visited,
.red_alert a:hover,
.red_alert a:active {
    color: #ffcdd2;
}

div.error {
    padding: 1.2em 1.3em 0.6em;
    font-size: 14px;
    font-family: inherit;
    color: #e8eaed;
    background: #3a2828;
    border: 1px solid #7a3333;
    border-radius: 4px;
}

div.error p {
    margin: 0;
    color: #e8eaed;
    font-weight: normal;
}

div.error p em {
    font-style: normal;
    font-weight: bold;
    padding-left: 24px;
    display: block;
    color: #ff6b6b;
    background: url(../../../images/error.png) no-repeat 0;
}

div.error ul {
    margin-left: 24px;
}

/* ── Blockquote / Code ───────────────────────────────────────── */
blockquote {
    border: 1px solid #2e333b;
    border-left: 3px solid #ffae00;
    margin: 0;
    background: #1a1d23;
    padding: 12px 14px;
    border-radius: 0 4px 4px 0;
    color: #c8cace;
}

blockquote blockquote {
    background: #252930;
    border: 0;
    border-left: 2px solid #3a4050;
}

blockquote blockquote blockquote {
    background: #1a1d23;
    border: 0;
}

blockquote cite {
    font-weight: 600;
    border-bottom: 1px solid #2e333b;
    font-style: normal;
    display: block;
    padding-bottom: 7px;
    margin: 0 0 10px 0;
    font-family: inherit;
    color: #ffae00;
}

blockquote cite > span {
    float: right;
    font-weight: normal;
    font-size: 12px;
    color: #9aa0a9;
}

blockquote cite span.highlight {
    float: none;
    font-weight: 600;
    padding-bottom: 0;
}

.codeblock {
    border-radius: 4px !important;
    background: #0d1117;
    border: 1px solid #2e333b;
    padding: 12px;
}

.codeblock .title {
    border-bottom: 1px solid #2e333b;
    font-weight: bold;
    padding-bottom: 8px;
    margin: 0 0 12px 0;
    color: #ffae00;
}

.codeblock code {
    overflow: auto;
    height: auto;
    max-height: 200px;
    display: block;
    font-family: Monaco, Consolas, Courier, monospace;
    font-size: 13px;
    color: #c8cace;
}

/* ── Editor ──────────────────────────────────────────────────── */
.editor {
    background: #252930;
    border: 1px solid #2e333b;
}

.editor_control_bar {
    background: #1a1d23;
    border: 1px solid #2e333b;
    margin-bottom: 5px;
}

.post .editor_control_bar {
    background: #1e2126;
}

/* ── Popup menus ─────────────────────────────────────────────── */
.popup_menu {
    z-index: 75;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    padding: 4px;
    border-radius: 6px !important;
    background: #252930;
    border: 1px solid #2e333b;
}

.popup_menu:before {
    position: absolute;
    width: 0; height: 0;
    content: "";
    display: block;
    left: 1.4em;
    bottom: 100%;
    border-bottom: 7px solid #252930;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
}

.popup_menu .popup_item {
    color: #9aa0a9;
}

.popup_menu .popup_item:hover {
    background: none;
    color: #ffae00 !important;
}

.popup_menu .popup_item_container {
    line-height: 22px;
    padding: 6px;
    text-align: left;
    border-bottom: 1px solid #2e333b;
}

.popup_menu .popup_item_container:last-child {
    border-top: 0;
    border-bottom: 0;
}

.popup_menu .popup_item {
    text-decoration: none;
    display: block;
    min-width: 160px;
    white-space: nowrap;
    padding: 4px 10px 5px;
    color: #9aa0a9 !important;
}

.popup_item_container:hover {
    background: rgba(255, 174, 0, 0.06);
}

.popup_menu a.popup_item:hover {
    text-decoration: none;
}

/* ── Forum status icons ──────────────────────────────────────── */
.forum_status {
    cursor: default;
    font-size: 26px;
    padding-left: 10px;
    margin-right: -5px;
    text-align: center;
}

.forum_status i {
    display: inline-block;
    line-height: 50px;
    color: #ffae00;
}

.forum_on { color: #ffae00; }

.forum_off i { opacity: .4; }

.forum_offclose i:before { content: "\f023"; color: #e05252; }
.forum_offlink i:before  { content: "\f0c1"; color: #3dba6e; }

.subforumicon {
    display: inline-block;
    font-size: 11px;
    height: 10px;
    width: 10px;
    margin: 0 3px 0 7px;
}

.subforum_minion      { color: #9aa0a9; }
.subforum_minioff,
.subforum_minioffclose,
.subforum_miniofflink { color: #9aa0a9; }
.subforum_minioff     { opacity: .4; }

.subforum_minioffclose i:before { content: "\f023"; }
.subforum_miniofflink i:before  { content: "\f0c1"; }

/* ── Poll bar ────────────────────────────────────────────────── */
.pollbar {
    background: #ffae00;
    height: 20px;
    margin-top: -16px;
    color: #141618;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 2px;
}

.pollbar .percent {
    display: inline-block;
    padding: 0 5px;
}

.poll-fw {
    position: relative;
    height: 20px;
    box-sizing: border-box;
    border-radius: 2px;
    top: 4px;
    overflow: hidden;
    background: #252930;
}

.poll-fw::before {
    content: "0%";
    font-size: 13px;
    padding: 0 5px;
    color: #9aa0a9;
}

/* ── Reputation ──────────────────────────────────────────────── */
.trow_reputation_positive { background: #1a2e1a; }
.trow_reputation_negative { background: #2e1a1a; }
.reputation_positive      { color: #3dba6e; }
.reputation_neutral       { color: #9aa0a9; }
.reputation_negative      { color: #e05252; }

.repbox {
    font-size: 16px;
    font-weight: bold;
    padding: 5px 7px;
}

._neutral {
    background-color: #252930;
    color: #9aa0a9;
    border: 1px solid #2e333b;
}

._minus {
    background-color: #2e1a1a;
    color: #e05252;
    border: 1px solid #7a2e2e;
}

._plus {
    background-color: #1a2e1a;
    color: #3dba6e;
    border: 1px solid #2e7a3a;
}

/* ── Misc ────────────────────────────────────────────────────── */
img { border: none; }

img.attachment {
    border: 1px solid #ffae00;
    margin-top: 10px;
    margin-bottom: -5px;
    padding: 1px;
    border-radius: 2px;
}

hr {
    background-color: #2e333b;
    color: #2e333b;
    height: 1px;
    border: 0;
}

.clear        { clear: both; }
.float_left   { float: left; }
.float_right  { float: right; }
.text_left    { text-align: left; }
.text_right   { text-align: right; }

.hidden    { display: none; float: none; width: 1%; }
.hiddenrow { display: none; }

.selectall {
    background: #252918;
    border-bottom: 1px solid #3a4010;
    color: #e8eaed;
    text-align: center;
}

.expcolimage {
    width: auto;
    float: right;
    top: 1px;
    position: relative;
}

.expcolimage img {
    max-width: 24px;
    height: auto;
    opacity: .6;
    transition: opacity .2s ease;
    filter: brightness(0) invert(1);
}

.expcolimage img:hover { opacity: 1 !important; }

.tcat_menu > .expcolimage { margin-top: 0; }

.smalltext {
    font-size: 13px;
    font-weight: 400;
    font-family: inherit;
    color: #9aa0a9;
}

.smalltext.bold { font-weight: 500 !important; }

.largetext {
    font-size: 17px;
    font-weight: 500;
}

.subject_new { font-weight: 600; }

.highlight {
    background: #332e00;
    color: #ffae00;
    padding-top: 3px;
    padding-bottom: 3px;
}

.online  { color: #3dba6e; }
.offline { color: #4a5060; }

.high_warning     { color: #e05252; }
.moderate_warning { color: #ff9800; }
.low_warning      { color: #ffae00; }

.success_message { color: #3dba6e; font-weight: bold; font-size: 10px; margin-bottom: 10px; }
.error_message   { color: #e05252; font-weight: bold; font-size: 10px; margin-bottom: 10px; }

/* ── Posts container ─────────────────────────────────────────── */
#posts_container { padding: 0; }

.ignored_post {
    border-top: 3px solid #2e333b;
    padding: 15px;
    background: #1e2126;
}

.deleted_post_hidden {
    border-top: 2px solid #2e333b;
    padding: 15px;
    color: #9aa0a9;
}

.deleted_post_collapsed {
    background: #1a1d23;
    margin-bottom: 7px;
    padding: 15px;
    border: 1px solid #2e333b;
    border-radius: 4px;
}

/* ── Back-to-top button ──────────────────────────────────────── */
#backtop {
    background: rgba(255, 174, 0, 0.85);
    width: 42px;
    color: #141618;
    position: fixed;
    margin: 0;
    cursor: pointer;
    border-radius: 50%;
    right: 22px;
    bottom: 18px;
    z-index: 372;
    text-align: center;
    height: 42px;
    transition: background .15s ease;
    font-size: 18px;
}

#backtop .arr-adj {
    line-height: 42px;
    margin-left: -1px;
}

#backtop:hover {
    background: rgba(255, 174, 0, 1);
}

/* ── PM button badge ─────────────────────────────────────────── */
.pmbg {
    background: #ffae00;
    max-width: 220px;
    margin-left: 3px;
    text-align: center;
    height: 22px;
    width: 22px;
    line-height: 22px;
    color: #141618;
    font-weight: 700;
    display: inline-block;
    border-radius: 50%;
    font-size: 11px;
}

.pmbg:hover { background: #ffc233; }

/* ── Thread / Forum legend ───────────────────────────────────── */
.thread_legend,
.thread_legend dd,
.forum_legend,
.forum_legend dt,
.forum_legend dd {
    margin: 0;
    padding: 0;
}

.thread_legend dd,
.forum_legend dd {
    padding-bottom: 4px;
    margin-right: 15px;
    float: left;
}

.forum_legend dt {
    margin-right: 10px;
    float: left;
    margin-top: 7px;
}

.thread_legend img,
.forum_legend img {
    margin-right: 4px;
    vertical-align: bottom;
}

/* ── Social icons ────────────────────────────────────────────── */
.sicon {
    display: inline-block;
    font-size: 16px;
    width: 32px;
    height: 32px;
    text-align: center;
    border-radius: 50%;
}

.sicon i { line-height: 33px; }

.sicon.fb { border: 2px solid #3b5998; background: #3b5998; color: #fff; }
.sicon.fb:hover { background: none; color: #3b5998; }

.sicon.yt { border: 2px solid #dd4b39; background: #dd4b39; color: #fff; }
.sicon.yt:hover { background: none; color: #dd4b39; }

.sicon.tw { border: 2px solid #1da1f2; background: #1da1f2; color: #fff; }
.sicon.tw:hover { background: none; color: #1da1f2; }

.sicon.ln { border: 2px solid #0077b5; background: #0077b5; color: #fff; }
.sicon.ln:hover { background: none; color: #0077b5; }

.sicon.re { border: 2px solid #ff4500; background: #ff4500; color: #fff; }
.sicon.re:hover { background: none; color: #ff4500; }

/* ── Tooltip ─────────────────────────────────────────────────── */
.ttip {
    position: relative;
    font-weight: 400;
    outline: none;
    text-decoration: none;
}

.ttip span {
    position: absolute;
    display: none;
    margin-left: -999em;
}

.ttip:hover span {
    position: absolute;
    opacity: 1;
    font-size: 12px;
    color: #e8eaed;
    margin-left: 0;
    min-width: 230px;
    top: 2.5em; left: 3px;
    z-index: 99;
    font-family: inherit;
    border-radius: 4px;
}

.ttbg {
    padding: .6em .9em;
    background: rgba(20, 22, 24, 0.95);
    font-weight: 400;
    border: 1px solid #2e333b;
    font-family: "Inter", "Open Sans", Arial, sans-serif !important;
}

.ttbg:after {
    position: absolute !important;
    bottom: 100%;
    left: 10px;
    content: " ";
    height: 0; width: 0;
    pointer-events: none;
    border-color: transparent !important;
    border-bottom-color: rgba(20, 22, 24, 0.95) !important;
    border-width: 6px !important;
    border: solid transparent;
}

/* ── Bottom menu ─────────────────────────────────────────────── */
.bottommenu {
    background: #1e2126;
    color: #9aa0a9;
    border: 1px solid #2e333b;
    padding: 10px;
    border-radius: 4px;
}

/* ── jGrowl notifications ────────────────────────────────────── */
.jGrowl {
    z-index: 9999;
    color: #e8eaed;
    font-size: 12px;
    font-family: "Inter", "Open Sans", Arial, sans-serif;
    position: fixed;
}

.jGrowl.top-right  { right: 0; top: 0; }
.jGrowl.top-left   { left: 0;  top: 0; }
.jGrowl.bottom-right { right: 0; bottom: 0; }
.jGrowl.bottom-left  { left: 0; bottom: 0; }

.jGrowl.center { top: 0; width: 50%; left: 25%; }

.jGrowl.center .jGrowl-notification,
.jGrowl.center .jGrowl-closer { margin-left: auto; margin-right: auto; }

.jGrowl-notification {
    background-color: #252930;
    border: 1px solid #2e333b;
    opacity: 0.97;
    width: 260px;
    padding: 1em;
    margin: 10px;
    text-align: left;
    display: none;
    word-break: break-all;
    min-height: 40px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.jGrowl-notification .jGrowl-header { font-weight: bold; font-size: .85em; color: #ffae00; }

.jGrowl-notification .jGrowl-close {
    background: none !important;
    color: #9aa0a9 !important;
    border: none;
    z-index: 99;
    float: right;
    margin-top: -10px;
    font-weight: bold;
    font-size: 21px;
    padding: 0;
    cursor: pointer;
}

.jGrowl-message { padding-right: 3em !important; }

.jGrowl-closer {
    background-color: #1a1d23;
    border: 1px solid #2e333b;
    width: 260px;
    padding: 1em;
    margin: 10px;
    text-align: center;
    display: none;
    cursor: pointer;
    font-size: .9em;
    font-weight: bold;
    color: #9aa0a9;
    border-radius: 6px;
}

/* ── Modal ───────────────────────────────────────────────────── */
.blocker {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    overflow: auto;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
}

.blocker:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -0.05em;
}

.blocker.behind { background-color: transparent; }

.modal {
    position: relative;
    display: inline-block;
    width: 400px;
    text-align: left;
    background: #1e2126;
    border: 1px solid #2e333b;
    box-sizing: border-box;
    z-index: 2;
    vertical-align: middle;
    border-radius: 6px;
    box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.6);
}

.modal a.close-modal {
    position: absolute;
    top: 1.3rem; right: 1.3rem;
    display: block;
    width: 16px; height: 16px;
    text-indent: -9999px;
    background: url(../../../images/flatty/close.png) no-repeat 0 0;
    filter: brightness(0) invert(1);
}

.modal.login-modal {
    max-width: 340px;
    padding: 20px 14px;
}

/* ── jQuery Impromptu dialogs ───────────────────────────────── */
div.jqi {
    font-family: inherit;
    width: 400px;
    max-width: 90%;
    position: absolute;
    background: #1e2126;
    border: 1px solid #2e333b;
    font-size: 13px;
    text-align: left;
    padding: 7px;
    border-radius: 6px;
    box-shadow: 2px 2px 20px 0 rgba(0, 0, 0, 0.5);
}

div.jqi .jqiclose { position: absolute; top: 5px; right: 9px; width: 16px; cursor: pointer; color: #9aa0a9; font-size: 18px; }
div.jqi .jqiclose:hover { color: #ffae00; }

div.jqi .jqistate { background-color: #1e2126; }

div.jqi .jqititle {
    padding: 5px 10px;
    font-size: 16px;
    line-height: 20px;
    border-bottom: solid 1px #2e333b;
    color: #e8eaed;
    font-weight: 600;
}

div.jqi .jqimessage {
    padding: 13px 18px 20px;
    line-height: 20px;
    color: #9aa0a9;
    overflow: auto;
}

div.jqi .jqibuttonshide { display: none; }

div.jqi .jqibuttons {
    margin: 0 -7px -7px -7px;
    text-align: right;
    border-top: solid 1px #2e333b;
    background-color: #1a1d23;
    border-radius: 0 0 6px 6px;
    padding: 8px 11px;
}

div.jqi .jqibuttons button {
    background-color: #252930;
    margin: 0 0 0 5px;
    padding: 4px 20px;
    font-weight: 500;
    color: #9aa0a9;
    font-size: 13px;
    border-radius: 4px !important;
    border: 1px solid #2e333b !important;
}

div.jqi .jqibuttons button.jqidefaultbutton {
    background: #ffae00;
    color: #141618;
    border: 1px solid #ffae00 !important;
}

div.jqi .jqibuttons button:hover,
div.jqi .jqibuttons button:focus {
    background: #ffc233;
    color: #141618;
    border-color: #ffc233 !important;
    outline: none;
}

div.jqi .jqibuttons button[disabled] { color: #4a5060; }

.jqiwarning .jqi .jqibuttons { background-color: #7a2e2e; }

/* ── Footer ──────────────────────────────────────────────────── */
#footer { clear: both; }

#footer ul.menu { margin: 0; padding: 0; list-style: none; }
#footer ul.menu li { margin: 0 5px; display: inline; }

#footer .upper {
    background: #1e2126;
    border-top: 1px solid #2e333b;
    border-bottom: 1px solid #2e333b;
    padding: 6px;
    font-size: 12px;
    overflow: hidden;
    color: #9aa0a9;
}

#footer a:link,
#footer a:visited,
#footer a:hover,
#footer a:active {
    color: #9aa0a9;
}

#footer a:hover { color: #ffae00; }

#footer .upper .language,
#footer .upper .theme {
    float: right;
    margin: -1px;
    margin-left: 15px;
}

#footer .upper .language select,
#footer .upper .theme select {
    border-color: #2e333b;
}

#footer .upper ul.bottom_links {
    float: none;
    margin: 8px -4px 7px;
}

#footer .uppermid {
    overflow: hidden;
    background: #1a1d23;
    padding: 2rem;
    color: #9aa0a9;
    font-size: 13px;
    border-top: 2px solid #ffae00;
}

#footer .uppermid a:link,
#footer .uppermid a:visited {
    color: #9aa0a9;
}

#footer .uppermid a:hover,
#footer .uppermid a:active {
    color: #ffae00;
}

#footer .lower {
    overflow: hidden;
    border-top: 1px solid #2e333b;
    color: #9aa0a9;
    padding: 1.2em 1.8em;
    line-height: 18px;
    font-size: 12px;
    background: #141618;
}

#footer .lower a:link,
#footer .lower a:visited {
    color: #6a7080;
}

#footer .lower a:hover,
#footer .lower a:active {
    color: #ffae00;
    text-decoration: none;
}

#footer .lower #social {
    float: right;
    color: #6a7080;
    margin-top: -17px;
}

/* ── Debug info ──────────────────────────────────────────────── */
#debug {
    float: right;
    text-align: right;
    margin-top: 20px;
    font-size: 11px;
    color: #4a5060;
}

/* ── Misc pagination breadcrumb ──────────────────────────────── */
.drop_go_page {
    background: #252930;
    padding: 7px;
    margin-top: 1em;
    border: 1px solid #2e333b;
    border-radius: 4px;
}

.pagination_breadcrumb {
    background-color: #252930;
    border: 1px solid #2e333b;
    padding: 1px 12px 0;
    margin-top: 0;
    font-weight: normal;
    margin-left: -2em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-radius: 4px;
}

.pagination_breadcrumb:before {
    border-bottom: 7px solid #252930;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    width: 0; height: 0;
    content: "";
    display: block;
    left: 0.5em;
    bottom: 100%;
    position: absolute;
}

.pagination_breadcrumb_link { vertical-align: middle; cursor: pointer; }

/* ── Remove buddy hover ──────────────────────────────────────── */
.remove_buddy_button:hover {
    color: #9aa0a9 !important;
    background: rgba(61, 186, 110, .06) !important;
}

.report_user_button:hover {
    color: #9aa0a9 !important;
    background: rgba(224, 82, 82, .06) !important;
}

/* ── Scale images ────────────────────────────────────────────── */
.scaleimages img { max-width: 100%; overflow: hidden; }

/* ── Smilies ─────────────────────────────────────────────────── */
.smilie         { vertical-align: middle; }
.smilie_pointer { cursor: pointer; }

.separator {
    margin: 5px; padding: 0;
    height: 0; font-size: 1px;
    list-style-type: none;
}

/* ── Quick jump ──────────────────────────────────────────────── */
.quick_jump {
    background: url(../../../images/jump.png) no-repeat 0;
    width: 13px; height: 13px;
    padding-left: 13px;
    margin-top: -3px;
    border: none;
}
