/* ============================================================
   ThodThube 2026 — Global Base Styles
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg);
}
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--scrollbar-bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Links */
a { color: var(--accent-text); text-decoration: none; transition: color var(--transition-fast); }
a:visited { color: var(--accent-text); }
a:hover, a:active { color: var(--accent-hover); }

/* Images */
img { border: none; max-width: 100%; height: auto; }
.scaleimages img { max-width: 100%; }

/* Selections */
::selection { background: var(--accent-soft); color: var(--accent-text); }

/* Typography */
.smalltext { font-size: 12px; }
.largetext { font-size: 18px; font-weight: 700; font-family: var(--font-display); }
hr { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.clear { clear: both; }
.float_left { float: left; }
.float_right { float: right; }
.hidden { display: none; }
.hiddenrow { display: none; }

/* ============================================================
   LAYOUT: Sidebar + Content
   ============================================================ */

/* Sidebar */
.leftheader {
    position: fixed;
    left: 0; top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-slow);
}

/* Content area */
.contentinside {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-base);
    transition: margin-left var(--transition-slow);
}

.wrapper {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 20px;
}

#container { color: var(--text-primary); }

#content {
    background: var(--bg-base);
    padding: 20px 10px;
}

/* Sidebar collapsed state */
body.sidebar-collapsed .leftheader { transform: translateX(-100%); }
body.sidebar-collapsed .contentinside { margin-left: 0; }

/* Mobile hamburger */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 12px; left: 12px;
    z-index: 200;
    width: 42px; height: 42px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 20px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}
.sidebar-toggle:hover { background: var(--bg-hover); }

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--transition-base);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.sidebar-overlay.active { display: block; opacity: 1; }

/* ============================================================
   SIDEBAR COMPONENTS
   ============================================================ */

.logoflex {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    min-height: 80px;
}
.logoimage { flex-shrink: 0; }
.logoimage img { width: 48px; height: 48px; border-radius: var(--radius-md); }
.logotext { flex: 1; min-width: 0; }
.logotext a { display: block; }
.titlelogo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary) !important;
    -webkit-text-fill-color: unset;
    background-image: none;
    display: block;
    line-height: 1.2;
}
.descriptionlogo {
    font-size: 11px;
    color: var(--accent-text) !important;
    -webkit-text-fill-color: unset;
    background-image: none;
    font-weight: 500;
    margin-top: 2px;
    display: block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.welcomeblock {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.menulinks {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 2px;
    flex: 1;
}

.menulinksforums {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    text-transform: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    background: transparent;
    margin: 0;
    width: 100%;
}
.menulinksforums::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
    transform: scaleY(0);
    transition: transform var(--transition-fast);
}
.menulinksforums:hover,
.menulinksforums.active {
    background: var(--accent-soft);
    color: var(--accent-text);
}
.menulinksforums:hover::before,
.menulinksforums.active::before {
    transform: scaleY(1);
}
.menulinksforums a {
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.menulinksforums i { font-size: 15px; width: 20px; text-align: center; opacity: 0.7; }

.msgcount {
    padding: 2px 8px;
    background: var(--accent);
    border-radius: var(--radius-full);
    color: var(--text-inverse);
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Sidebar settings panel */
.sidebar-settings {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.sidebar-settings-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

/* Theme toggle */
.theme-switcher {
    display: flex;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 2px;
    margin-bottom: 12px;
}
.theme-switcher button {
    flex: 1;
    padding: 6px 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}
.theme-switcher button.active {
    background: var(--accent);
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm);
}
.theme-switcher button:hover:not(.active) {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* Accent picker */
.accent-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.accent-dot {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}
.accent-dot:hover { transform: scale(1.15); }
.accent-dot.active { border-color: var(--text-primary); box-shadow: 0 0 0 2px var(--bg-card); }
.accent-dot[data-accent="ocean"]   { background: #03a9f4; }
.accent-dot[data-accent="violet"]  { background: #8b5cf6; }
.accent-dot[data-accent="emerald"] { background: #10b981; }
.accent-dot[data-accent="crimson"] { background: #ef4444; }
.accent-dot[data-accent="amber"]   { background: #f59e0b; }
.accent-dot[data-accent="rose"]    { background: #ec4899; }
.accent-dot[data-accent="silver"]  { background: #94a3b8; }

/* Weather toggle */
.weather-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 0;
}
.weather-toggle button {
    padding: 5px 10px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}
.weather-toggle button.active {
    border-color: var(--accent);
    color: var(--accent-text);
    background: var(--accent-soft);
}
.weather-toggle button:hover:not(.active) {
    border-color: var(--border-light);
    background: var(--bg-hover);
}

/* Guest buttons */
.guestbuttons {
    display: flex;
    gap: 8px;
    margin: 8px 0;
}
.reglogbuttons {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--text-inverse) !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    text-align: center;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    box-shadow: none;
    background-image: none;
    min-width: unset;
    letter-spacing: 0.5px;
}
.reglogbuttons:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* Dropdown (user panel) */
.dropdown { width: 100%; position: relative; display: block; }
.dropbtn {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-fast);
}
.dropbtn:hover { border-color: var(--accent); background: var(--bg-hover); }
.dropdown-content {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    overflow: hidden;
}
.dropdown-content a {
    display: block;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
    border-radius: 0;
    transition: all var(--transition-fast);
}
.dropdown-content a:hover { background: var(--accent-soft); color: var(--accent-text); }
.show { display: block !important; }

/* ============================================================
   HEADER BANNER
   ============================================================ */

.header-banner {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
}
.header-banner::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
    pointer-events: none;
}
.header-banner-content { flex: 1; position: relative; z-index: 1; }
.header-banner-logo { flex-shrink: 0; position: relative; z-index: 1; }
.header-banner-logo img { width: 56px; height: 56px; border-radius: var(--radius-sm); }
.header-banner-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--accent-text);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.header-banner-desc { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.header-banner-cta {
    padding: 12px 24px;
    background: var(--accent);
    color: var(--text-inverse) !important;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.header-banner-cta:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: var(--shadow-glow); }

/* ============================================================
   NAVIGATION / BREADCRUMB
   ============================================================ */

.navigation {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    background-image: none;
}
.navigation a { color: var(--text-secondary); }
.navigation a:hover { color: var(--accent-text); }
.navigation .active { color: var(--text-primary); font-weight: 600; font-size: 13px; }

/* ============================================================
   PANELS (upper / lower)
   ============================================================ */

#panel { display: none; }
#panel .upper { display: none; }
#panel .lower { display: none; }
#logo { display: none; }

/* ============================================================
   FORUM LIST
   ============================================================ */

.forumsresponsive { margin-bottom: 24px; }

.categorynameforum {
    padding: 16px 20px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.categorynameforum a { color: var(--text-muted); }
.categorynameforum a:hover { color: var(--accent-text); }

.fontforumtitle {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary) !important;
    -webkit-text-fill-color: unset;
    background-image: none;
    -webkit-background-clip: unset;
}

.subforumsflexy {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.flexyforumsd2 {
    display: flex;
    align-items: center;
    padding: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-fast);
    position: relative;
    width: 100%;
    box-shadow: none;
    gap: 0;
}
.flexyforumsd2::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform var(--transition-base);
    border-radius: 0 2px 2px 0;
}
.flexyforumsd2:hover {
    background: var(--bg-hover);
}
.flexyforumsd2:hover::before {
    transform: scaleY(1);
}
.flexyforumsd2:last-child { border-bottom: none; }

.d2forumicons {
    width: 50px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.d2foruminame {
    flex: 1;
    padding: 14px 12px;
    min-width: 0;
}

.forumtitleind {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    text-transform: none;
    color: var(--text-primary);
    line-height: 1.4;
}
.forumtitleind a { color: var(--text-primary); }
.forumtitleind a:hover { color: var(--accent-text); }

.forumdescriptionsmall {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
    font-family: var(--font-body);
}

.d2subforums { margin-top: 6px; font-size: 12px; }
.d2subforums a { color: var(--text-secondary); }
.d2subforums a:hover { color: var(--accent-text); }

.threads2dposts {
    width: 80px;
    text-align: center;
    padding: 14px 8px;
    font-size: 13px;
    color: var(--text-muted);
    border-left: 1px solid var(--border);
    flex-shrink: 0;
    font-family: var(--font-body);
}
.threads2dposts b { color: var(--text-primary); display: block; font-size: 15px; }

.d2lastposts {
    width: 280px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    border-left: 1px solid var(--border);
    flex-shrink: 0;
}

.flexylastpost {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.threadname { flex: 1; min-width: 0; }
.lastposttitlefl {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: none;
}
.dateofposting {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: none;
    margin-top: 2px;
    display: block;
}
.bylang { font-size: 12px; color: var(--text-muted); }

.avatarepposition { flex-shrink: 0; }
.avatarep_img, .avatarep_bg {
    border-radius: var(--radius-full) !important;
    border: 2px solid var(--border) !important;
    margin: 0 !important;
    float: none !important;
}

/* Subforums list */
.columns {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}
.columns li { font-size: 12px; text-transform: none; font-weight: 400; }

/* Forum status icons */
.forum_status { display: none; }

/* ============================================================
   INDEX SIDEBAR (Forum Stats, Latest Threads)
   ============================================================ */

.forumsandsidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.findexstats {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-family: var(--font-body);
}
.findexstatsrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
}
.findexstatsrow:last-child { border-bottom: none; }
.findexstatsrow:hover { background: var(--bg-hover); }
.findexstatsrow i { color: var(--accent-text); margin-right: 8px; }

/* Latest threads */
.latestthreadsindex {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.latestrowth {
    display: flex;
    padding: 14px 18px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
    gap: 12px;
    align-items: center;
}
.latestrowth:last-child { border-bottom: none; }
.latestrowth:hover { background: var(--bg-hover); }

/* ============================================================
   TABLE CLASSES (MyBB Core)
   ============================================================ */

table { color: var(--text-primary); font-size: 13px; }

.tborder {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: transparent;
    padding: 0;
    margin: 0 0 16px 0;
}

.thead {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 14px 18px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
}
.thead a, .thead a:link, .thead a:visited, .thead a:hover { color: var(--text-primary); }

.tcat {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    background-image: none;
}
.tcat a, .tcat a:link, .tcat a:visited { color: var(--text-secondary); }

.trow1, .trow2 {
    background: var(--bg-card);
    border: none !important;
    padding: 10px 18px;
    transition: background var(--transition-fast);
}
.trow1:hover, .trow2:hover { background: var(--bg-hover); }

.trow_shaded { background: rgba(239,68,68,0.08); }
.trow_selected, tr.trow_selected td { background: var(--accent-soft); color: var(--text-primary); }

.tfoot {
    background: var(--bg-card-alt);
    border-top: 1px solid var(--border);
    padding: 10px 18px;
    color: var(--text-muted);
}
.tfoot a { color: var(--text-secondary); }

.trow_sep {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    padding: 10px 18px;
    font-weight: 600;
    font-size: 12px;
}

/* ============================================================
   POSTS
   ============================================================ */

.post {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}
.post:hover { border-color: var(--border-light); }

.post .post_author {
    background: var(--bg-card-alt);
    border-bottom: 1px solid var(--border);
    border-top: none;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.post .post_author div.author_avatar img {
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border);
    padding: 0;
    background: var(--bg-elevated);
    object-fit: cover;
}

.post .post_author div.author_information { padding: 0; }
.post .post_author div.author_statistics {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.post .post_head {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}
.post .post_head span.post_date { color: var(--text-muted); }

.post_body { padding: 16px; font-size: 14px; line-height: 1.7; }
.post_content { padding: 0; }
.post_content .signature { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 12px; }

.post_controls {
    background: var(--bg-card-alt);
    border-top: 1px solid var(--border);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: none;
}

.postbit_buttons > a:link, .postbit_buttons > a:hover,
.postbit_buttons > a:visited, .postbit_buttons > a:active {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    margin: 2px;
}
.postbit_buttons > a:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-text);
}

/* Blockquote */
blockquote {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin: 12px 0;
}
blockquote cite {
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    display: block;
    padding-bottom: 8px;
    margin-bottom: 10px;
    font-style: normal;
    color: var(--text-secondary);
}

/* Code block */
.codeblock {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
}
.codeblock .title { border-bottom: 1px solid var(--border); font-weight: 600; padding-bottom: 8px; margin-bottom: 10px; }
.codeblock code {
    font-family: var(--font-mono);
    font-size: 13px;
    max-height: 400px;
    overflow: auto;
    display: block;
}

/* ============================================================
   BUTTONS
   ============================================================ */

button, input.button {
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
}
button:hover, input.button:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
}

a.button:link, a.button:hover, a.button:visited, a.button:active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--accent);
    color: var(--text-inverse) !important;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all var(--transition-fast);
    margin: 2px;
}
a.button:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: var(--shadow-glow); }

/* ============================================================
   FORMS
   ============================================================ */

input.textbox, textarea, select {
    background: var(--bg-base);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition-fast);
    width: auto;
}
input.textbox:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea { line-height: 1.5; resize: vertical; }

fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 0;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination { font-size: 12px; padding: 10px 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pagination .pages { font-weight: 600; color: var(--text-muted); }
.pagination a {
    padding: 6px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.pagination a:hover {
    background: var(--accent);
    color: var(--text-inverse);
    border-color: var(--accent);
}
.pagination .pagination_current {
    padding: 6px 10px;
    background: var(--accent);
    color: var(--text-inverse);
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
}

/* ============================================================
   ALERTS & NOTICES
   ============================================================ */

.pm_alert {
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    color: var(--accent-text);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    margin-bottom: 16px;
    font-size: 13px;
}
.red_alert {
    background: rgba(239,68,68,0.08);
    border: 1px solid var(--danger);
    color: var(--danger);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    margin-bottom: 16px;
    font-size: 13px;
}

div.error {
    padding: 14px 18px;
    border: 1px solid var(--warning);
    background: rgba(245,158,11,0.08);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.success_message { color: var(--success); font-weight: 600; font-size: 13px; }
.error_message { color: var(--danger); font-weight: 600; font-size: 13px; }

/* ============================================================
   POPUP MENU
   ============================================================ */

.popup_menu {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.popup_menu .popup_item {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    background: transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.popup_menu .popup_item:hover {
    background: var(--accent-soft);
    color: var(--accent-text);
}

/* ============================================================
   REPUTATION
   ============================================================ */

.reputation_positive { color: var(--success); }
.reputation_neutral { color: var(--text-muted); }
.reputation_negative { color: var(--danger); }
._plus { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid var(--success); border-radius: var(--radius-sm); }
._minus { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid var(--danger); border-radius: var(--radius-sm); }
._neutral { background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.repbox { font-size: 15px; font-weight: 700; padding: 4px 8px; }

/* Online / Offline */
.online { color: var(--success); }
.offline { color: var(--text-muted); }

/* Warning levels */
.high_warning { color: var(--danger); }
.moderate_warning { color: #f97316; }
.low_warning { color: var(--warning); }

/* ============================================================
   FOOTER
   ============================================================ */

#footer { clear: both; }
#footer .upper {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 0;
}
#footer .upper a { color: var(--text-muted); }
#footer .upper a:hover { color: var(--accent-text); }
#footer .upper ul.bottom_links { list-style: none; display: flex; gap: 16px; flex-wrap: wrap; }

#footer .lower {
    padding: 16px 20px;
    color: var(--text-muted);
    font-size: 12px;
}
#footer .lower a { color: var(--text-secondary); }
#footer .lower #current_time { float: right; }

.copyrightfooter {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================
   MODALS
   ============================================================ */

.blocker { background-color: var(--bg-overlay); backdrop-filter: blur(4px); }
.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/* ============================================================
   jGrowl
   ============================================================ */

.jGrowl-notification .ui-state-highlight { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); border-radius: var(--radius-sm); }
.jGrowl .jGrowl-notification.jgrowl_success { background: var(--success); border-color: var(--success); color: white; }
.jGrowl .jGrowl-notification.jgrowl_error { background: var(--danger); border-color: var(--danger); color: white; }
.jGrowl .jGrowl-notification.jgrowl_process, .jGrowl .jGrowl-closer { background: var(--warning); border-color: var(--warning); color: var(--text-inverse); }

/* ============================================================
   MEMBER LIST
   ============================================================ */

.memberlistpage {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.memberlistuser33 {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    overflow: hidden;
    width: auto;
    margin: 0;
}

/* ============================================================
   PROFILE
   ============================================================ */

.memberlistbody { display: flex; gap: 24px; align-items: flex-start; }
.leftmemberside300 {
    width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}
.memberlistrightprofile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    flex: 1;
    padding: 24px;
}
.statsuserprofile {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-body);
}
.messagebuttonprofile {
    background: var(--bg-elevated);
    padding: 10px;
    margin: 8px 12px;
    text-align: center;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}
.messagebuttonprofile:hover { background: var(--accent-soft); color: var(--accent-text); }

/* ============================================================
   THREAD LIST
   ============================================================ */

.threadbody {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    gap: 12px;
    transition: background var(--transition-fast);
}
.threadbody:hover { background: var(--bg-hover); }
.threadtitles { font-size: 14px; color: var(--text-primary); font-weight: 500; }

.threadpref {
    background: var(--accent);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-inverse);
    border: none;
    font-family: var(--font-body);
    margin-right: 8px;
}

/* ============================================================
   USER GROUPS LEGEND
   ============================================================ */

.onlinetodaytablerow {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 12px;
}

.fontsizetablewhite {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-display);
}
.fontsizetable { font-size: 15px; font-weight: 500; color: var(--text-secondary); }

/* ============================================================
   MISC COMPONENTS
   ============================================================ */

.expcolimage { float: right; vertical-align: middle; }
.subject_new { font-weight: 700; }
.highlight { background: var(--accent-soft); padding: 2px 4px; border-radius: 2px; }
.pollbar { background: var(--accent); border: none; height: 8px; border-radius: 4px; }
.selectall { background: var(--accent-soft); border-bottom: 1px solid var(--accent); color: var(--text-primary); text-align: center; padding: 8px; }

.thread_legend, .thread_legend dd { margin: 0; padding: 0; }
.thread_legend dd { padding-bottom: 4px; margin-right: 15px; }
.forum_legend dd { float: left; margin-right: 10px; margin-top: 7px; }
.forum_legend dt { float: left; margin-right: 10px; }

.tyllist {
    background: var(--bg-base) !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 10px !important;
}

/* Editor */
.editor { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.editor_control_bar { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* Search */
#search { border: 0; padding: 0; margin: 0; }

/* Quick jump */
.quick_jump { border: none; }

/* Print hide */
@media print { .jGrowl, .sidebar-toggle, .leftheader, .weather-canvas { display: none !important; } }

		