/* ============================================================
   IMPORT FONTS
   ============================================================ */
@import url(https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap);

/* ============================================================
   CSS CUSTOM PROPERTIES  (Design Tokens)
   ============================================================ */
:root {
    /* Core palette */
    --bg-void:        #050911;
    --bg-deep:        #070c18;
    --bg-base:        #0a1020;
    --bg-surface:     #0d1530;
    --bg-raised:      #111d3a;
    --bg-highlight:   #162040;
    --bg-hover:       #1a2850;

    /* Theme Color - Blue (default) */
    --theme-primary:  #00b4ff;
    --theme-secondary:#0080cc;
    --theme-glow:     rgba(0,180,255,0.5);
    --theme-glow-md:  rgba(0,180,255,0.25);
    --theme-glow-lg:  rgba(0,180,255,0.15);

    /* Accent Colors */
    --accent-cyan:    #00e5ff;
    --accent-gold:    #ffb800;
    --accent-purple:  #7c4dff;
    --accent-green:   #00e676;
    --accent-red:     #ff1744;

    /* Text */
    --text-primary:   #e8f4ff;
    --text-secondary: #8ab4cc;
    --text-muted:     #4a6a80;
    --text-link:      var(--theme-primary);
    --text-link-hover:var(--accent-cyan);
    --text-heading:   #ffffff;

    /* Borders */
    --border-subtle:  #1a2a40;
    --border-mid:     #1e3a5f;
    --border-bright:  rgba(0,180,255,0.2);
    --border-glow:    rgba(0,180,255,0.4);

    /* Shadows - disabled via .no-shadows class */
    --shadow-card:    0 4px 24px rgba(0,0,0,0.6);
    --shadow-glow:    0 0 20px var(--theme-glow-lg);
    --shadow-glow-md: 0 0 40px rgba(0,180,255,0.25);

    /* Fonts */
    --font-display:   'Rajdhani', 'Exo 2', sans-serif;
    --font-body:      'Exo 2', 'Segoe UI', sans-serif;
    --font-mono:      'Share Tech Mono', monospace;

    /* Radii - disabled via .no-radius class */
    --radius-sm:      4px;
    --radius-md:      6px;
    --radius-lg:      10px;

    /* Transitions */
    --transition:     0.2s ease;

    /* Layout Width - controlled by JS */
    --container-max:  1200px;
}

/* ============================================================
   WHITE THEME VARIATION
   ============================================================ */
[data-theme-color="white"] {
    --bg-void:        #f5f7fa;
    --bg-deep:        #ffffff;
    --bg-base:        #f0f2f5;
    --bg-surface:     #ffffff;
    --bg-raised:      #f8fafc;
    --bg-highlight:   #eef2f7;
    --bg-hover:       #e4e8ed;

    --text-primary:   #1a202c;
    --text-secondary: #4a5568;
    --text-muted:     #718096;
    --text-heading:   #1a202c;

    --border-subtle:  #e2e8f0;
    --border-mid:     #cbd5e0;

    --shadow-card:    0 2px 8px rgba(0,0,0,0.08);
    --shadow-glow:    0 0 15px rgba(0,100,150,0.1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-void);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,100,200,0.12) 0%, transparent 70%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300b4ff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* White theme body adjustments */
[data-theme-color="white"] body {
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,100,200,0.05) 0%, transparent 70%);
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--transition), text-shadow var(--transition);
}

a:hover {
    color: var(--text-link-hover);
    text-shadow: 0 0 8px var(--theme-glow);
}

img { border: 0; max-width: 100%; }

input, textarea, select {
    background: var(--bg-raised);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    padding: 5px 8px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 2px var(--border-glow);
    outline: none;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
#container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 12px;
}

/* Fluid Width Mode */
[data-layout-width="fluid"] #container {
    --container-max: 95%;
    max-width: 95%;
}












/* Exemplu styling reclamă */
.header-ad-item {
    max-width: 728px;
    margin: 0 auto;
    padding: 15px;
    background: #eaeaea;
    border-radius: 8px;
    font-weight: bold;
    color: #333;
}






.site-header {
    padding: 20px;
    background: #111;
}



.ad-box {
    width: 250px;
    height: 90px;
    background: #222;
    border: 2px solid #444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* Base Styles for the container */
.top-content-wrapper {
    display: flex;
    width: 100%;
    gap: 15px;
    justify-content: center;
    padding: 10px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    transition: 0.3s;
}

/* Styles for the boxes inside */
.content-item-box {
    width: 250px;
    height: 90px;
    background: #222;
    border: 2px solid #444;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logic to hide/show based on the toggle */
html[data-header-ads="false"] .top-content-wrapper {
    display: none;
}

html[data-header-ads="true"] .top-content-wrapper {
    display: flex;
}
/* ============================================================
   TOP PANEL  (Welcome bar)
   ============================================================ */
#panel {
    background: linear-gradient(90deg, #060c1a 0%, #0a1428 50%, #060c1a 100%);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 12px;
    padding: 6px 0;
}

[data-theme-color="white"] #panel {
    background: linear-gradient(90deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-subtle);
}

#panel .panel_left, #panel .panel_right {
    /* display: inline-block; */
    /* vertical-align: middle; */
}

#panel .panel_right { float: right; }

#panel a {
    color: var(--text-secondary);
    margin-left: 14px;
    transition: color var(--transition);
}

#panel a:hover { color: var(--theme-primary); }

#panel strong { color: var(--theme-primary); }

/* ============================================================
   HEADER / LOGO BANNER
   ============================================================ */
#header {
    height: 380px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position-y: 20%;
    background-image: url(https://i.imgur.com/tfGlZKZ.png);
    /* background: linear-gradient(135deg, #060c1a 0%, #0a1530 40%, #071830 70%, #050911 100%); */
    border-bottom: 2px solid var(--theme-secondary);
    box-shadow: 0 4px 30px rgba(0, 80, 180, 0.3);
    overflow: hidden;
    padding: 18px 0;
    position: relative;
}

[data-theme-color="white"] #header {
    height: 380px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position-y: 20%;
    background-image: url(https://i.imgur.com/tfGlZKZ.png);
    mix-blend-mode: hard-light;
    /* background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 40%, #ffffff 70%, #f5f7fa 100%); */
    border-bottom: 2px solid var(--theme-primary);
    box-shadow: 0 2px 16px rgba(0, 80, 150, 0.15);
}

/* No Shadows Mode */
.no-shadows #header {
    box-shadow: none;
}

/* Scanlines overlay for dark theme only */
#header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 100% at 75% 50%, rgba(0,80,200,0.18) 0%, transparent 65%),
        radial-gradient(ellipse 30% 80% at 20% 50%, rgba(0,30,90,0.3) 0%, transparent 60%);
    pointer-events: none;
}

#header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.06) 2px,
        rgba(0,0,0,0.06) 4px
    );
    pointer-events: none;
}

[data-theme-color="white"] #header::before,
[data-theme-color="white"] #header::after {
    display: none;
}

#logo {
    display: block;
    position: relative;
    z-index: 1;
    margin-top: 210px;
}

#logo img {
    max-height: 80px;
    filter: drop-shadow(0 0 12px var(--theme-glow));
}

#logo a {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow:
        0 0 20px var(--theme-glow),
        0 0 40px rgba(0,100,200,0.4);
    background: linear-gradient(135deg, var(--theme-primary) 0%, #ffffff 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#logo span.subtitle {
    display: block;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: -4px;
}

/* ============================================================
   HEADER ADVERTISEMENTS
   ============================================================ */
#header_ad_container {
    display: block;
}

[data-header-ads="false"] #header_ad_container {
    display: none;
}

#header_ad {
    background: var(--bg-surface);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-md);
    margin: 16px auto;
    max-width: 728px;
    padding: 12px;
    text-align: center;
}

.no-shadows #header_ad {
    border: none;
    box-shadow: none;
}

/* ============================================================
   NAVIGATION BAR
   ============================================================ */
#nav {
    background: linear-gradient(90deg, #08111f 0%, #0c1830 50%, #08111f 100%);
    border-bottom: 2px solid var(--border-subtle);
    box-shadow: 0 2px 16px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

[data-theme-color="white"] #nav {
    background: linear-gradient(90deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.no-shadows #nav {
    box-shadow: none;
}

#nav ul {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav ul li { position: relative; }

#nav ul li a {
    align-items: center;
    color: var(--text-secondary);
    display: flex;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    letter-spacing: 0.5px;
    padding: 13px 18px;
    text-transform: uppercase;
    transition: color var(--transition), background var(--transition);
}

[data-theme-color="white"] #nav ul li a {
    color: #4a5568;
}

#nav ul li a:hover,
#nav ul li.active a {
    background: var(--theme-glow-lg);
    color: var(--theme-primary);
    text-shadow: 0 0 12px var(--theme-glow);
}

#nav ul li.active a {
    background: rgba(0,180,255,0.15);
    border-bottom: 2px solid var(--theme-primary);
    color: var(--theme-primary);
}

/* Discord CTA button */
#nav ul li.discord-cta a {
    background: linear-gradient(135deg, var(--theme-primary) 0%, #0073cc 100%);
    border: 1px solid rgba(0,180,255,0.4);
    border-radius: var(--radius-md);
    box-shadow: 0 0 16px rgba(0,180,255,0.3);
    color: #fff;
    font-weight: 700;
    margin: 6px 0 6px 20px;
    padding: 8px 16px;
    text-shadow: none;
    transition: box-shadow var(--transition), transform var(--transition);
}

.no-shadows #nav ul li.discord-cta a {
    box-shadow: none;
}

#nav ul li.discord-cta a:hover {
    background: linear-gradient(135deg, #00ccff 0%, #0088ee 100%);
    box-shadow: 0 0 24px rgba(0,180,255,0.6);
    transform: translateY(-1px);
}

/* Dropdown menus */
#nav ul li ul {
    background: var(--bg-surface);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    display: none;
    flex-direction: column;
    left: 0;
    min-width: 180px;
    position: absolute;
    top: 100%;
    z-index: 200;
}

.no-shadows #nav ul li ul {
    box-shadow: none;
    border: 1px solid var(--border-subtle);
}

#nav ul li:hover > ul { display: flex; }

#nav ul li ul li a {
    border-bottom: 1px solid var(--border-subtle);
    padding: 9px 14px;
    text-transform: none;
    font-size: 12px;
}

/* ============================================================
   BREADCRUMB NAVIGATION
   ============================================================ */
.navigation, #breadcrumb {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 12px;
    padding: 8px 0;
}

.navigation a, #breadcrumb a {
    color: var(--text-muted);
}

.navigation a:hover, #breadcrumb a:hover {
    color: var(--theme-primary);
}

.navigation span, #breadcrumb .separator {
    color: var(--theme-secondary);
    margin: 0 5px;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
#content {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    align-items: flex-start;
}

/* Sidebar Toggle */
[data-sidebar="false"] #content {
    flex-direction: column;
}

[data-sidebar="false"] .sidebar {
    display: none;
}

/* Forum area (left/center) */
.forum_area, #main_content {
    flex: 1 1 auto;
    min-width: 0;
    width: -webkit-fill-available;
}

/* Sidebar (right) */
.sidebar, #sidebar {
    flex: 0 0 220px;
    width: 220px;
}



.forums-sidebar{
    display: flex;
    gap: 16px;
    padding: 16px 0;
    align-items: flex-start;
}


.forumsleft {
    width: -webkit-fill-available;
}

/* ============================================================
   TABLES  (Generic forum tables)
   ============================================================ */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

/* Category header row */
.thead {
    background: linear-gradient(90deg, #0d2040 0%, #102448 50%, #0d2040 100%);
    border-bottom: 2px solid var(--theme-secondary);
    padding: 18px;
}


.tcat {
    background: linear-gradient(90deg, #0d2040 0%, #102448 50%, #0d2040 100%);
    border-bottom: 2px solid var(--theme-secondary);
}

[data-theme-color="white"] .thead,
[data-theme-color="white"] .tcat {
    background: linear-gradient(90deg, var(--bg-raised) 0%, var(--bg-surface) 50%, var(--bg-raised) 100%);
    border-bottom: 2px solid var(--theme-primary);
}

.no-shadows .thead,
.no-shadows .tcat {
    background: var(--bg-surface);
    box-shadow: none;
}

.thead td, .thead th,
.tcat td, .tcat th {
    color: var(--theme-primary);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 10px 12px;
    text-transform: uppercase;
}

/* Alternating rows */
.trow1 {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition);
}

.trow2 {
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition);
}

.trow1:hover, .trow2:hover {
    background: var(--bg-hover);
}

.trow1 td, .trow2 td {
    padding: 10px 12px;
    vertical-align: middle;
}

/* Section / category label (e.g. "TOPGAMINGZONE OFFICIAL") */
.tcat_main {
    background: linear-gradient(90deg, #091525 0%, #0f1e35 100%);
    border: 1px solid var(--border-mid);
    border-left: 3px solid var(--theme-primary);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: var(--shadow-glow);
}

.no-shadows .tcat_main {
    border-radius: 0;
    box-shadow: none;
}

[data-theme-color="white"] .tcat_main {
    background: linear-gradient(90deg, var(--bg-raised) 0%, var(--bg-surface) 100%);
    border: 1px solid var(--border-mid);
    border-left: 3px solid var(--theme-primary);
}

.no-shadows .tcat_main {
    border-left-width: 1px;
}

.tcat_main td {
    color: var(--theme-primary);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 12px 14px;
    text-transform: uppercase;
    text-shadow: 0 0 12px var(--theme-glow);
}

/* Rounded corners disabled */
.no-radius .forum_table,
.no-radius .post_wrapper,
.no-radius .sidebar_block,
.no-radius .online_box,
.no-radius .button,
.no-radius input,
.no-radius select,
.no-radius #header_ad,
.no-radius .modal_box,
.no-radius .tcat_main {
    border-radius: 0 !important;
}

/* Table footer */
.tfoot {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-mid);
}

.tfoot td {
    color: var(--text-muted);
    font-size: 11px;
    padding: 8px 12px;
}

/* ============================================================
   FORUM DISPLAY  (Forum index rows)
   ============================================================ */
.forum_table {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.no-shadows .forum_table {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-subtle);
}

/* Forum icon */
.forum_icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--bg-raised) 0%, var(--bg-highlight) 100%);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-secondary);
    font-size: 18px;
}

.no-radius .forum_icon {
    border-radius: 0;
}

/* Forum Icons Toggle */
[data-forum-icons="false"] .forum_icon {
    display: none;
}

/* Forum name link */
.forum_name a, .forumdisplay_name a {
    color: var(--text-link);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color var(--transition), text-shadow var(--transition);
}

.forum_name a:hover, .forumdisplay_name a:hover {
    color: var(--text-link-hover);
    text-shadow: 0 0 10px var(--theme-glow);
}

/* Forum description */
.forum_name span, .forum_description {
    color: var(--text-muted);
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

/* Thread / post counts */
.forum_threads, .forum_posts {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Last post cell */
.forum_lastpost, .lastpost {
    color: var(--text-muted);
    font-size: 11px;
    text-align: right;
}

.forum_lastpost a, .lastpost a {
    color: var(--text-link);
    font-size: 12px;
    font-weight: 500;
}

/* ============================================================
   THREAD LIST  (forumdisplay.php)
   ============================================================ */
.inline_row {
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition);
}

.inline_row:hover {
    background: var(--bg-hover) !important;
}

.subject_new a, .subject_old a {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: color var(--transition);
}

.subject_new a:hover, .subject_old a:hover {
    color: var(--theme-primary);
}

/* Thread icon (new/old) */
.thread_status_icon {
    color: var(--theme-secondary);
    font-size: 16px;
}

.thread_status_icon.new_posts {
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 4px rgba(0,229,255,0.5));
}

/* Forum Icons Toggle for thread list */
[data-forum-icons="false"] .thread_status_icon {
    display: none;
}

/* Pagination */
.pagination {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 4px;
    padding: 6px 0;
}

.pagination a, .pagination .pagination_page {
    background: var(--bg-raised);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: inline-block;
    min-width: 26px;
    padding: 3px 7px;
    text-align: center;
    transition: all var(--transition);
}

.pagination a:hover, .pagination .active a {
    background: var(--bg-hover);
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    box-shadow: 0 0 8px var(--theme-glow-lg);
}

.no-shadows .pagination a:hover {
    box-shadow: none;
}

/* ============================================================
   POST / SHOWTHREAD
   ============================================================ */
.post_wrapper {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
}

.no-shadows .post_wrapper {
    border-radius: 0;
    box-shadow: none;
}

[data-theme-color="white"] .post_wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
}

/* Post header */
.post_head {
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 12px;
}

/* Post user info column */
.post_user {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-raised) 100%);
    border-right: 1px solid var(--border-subtle);
    padding: 14px;
    text-align: center;
    width: 130px;
    vertical-align: top;
}

[data-theme-color="white"] .post_user {
    background: var(--bg-raised);
}

.post_user .username {
    color: var(--theme-primary);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
}

.post_user .user_rank {
    color: var(--text-muted);
    font-size: 11px;
}

/* Star rating / reputation */
.post_user .star {
    color: var(--accent-gold);
    font-size: 12px;
}

/* Post content */
.post_content, .post_body {
    background: var(--bg-surface);
    padding: 14px 16px;
    vertical-align: top;
}

[data-theme-color="white"] .post_content {
    background: var(--bg-surface);
}

.post_message {
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.7;
}

/* Post footer / actions */
.post_foot {
    background: var(--bg-raised);
    border-top: 1px solid var(--border-subtle);
    padding: 6px 12px;
}

/* Avatars */
.post_avatar img {
    border: 2px solid var(--border-mid);
    border-radius: var(--radius-md);
    box-shadow: 0 0 10px var(--theme-glow-lg);
    max-width: 100px;
}

.no-shadows .post_avatar img {
    border-radius: 0;
    box-shadow: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button, input[type="submit"], input[type="button"],
.newthread_button, .newreply_button {
    background: linear-gradient(135deg, #0d5a9e 0%, #0c4a84 100%);
    border: 1px solid var(--theme-secondary);
    border-radius: var(--radius-md);
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 18px;
    text-transform: uppercase;
    transition: all var(--transition);
}

.no-shadows .button {
    border-radius: 0;
}

.button:hover, input[type="submit"]:hover, input[type="button"]:hover,
.newthread_button:hover, .newreply_button:hover {
    background: linear-gradient(135deg, #1070c0 0%, #0d5a9e 100%);
    box-shadow: 0 0 16px var(--theme-glow);
    border-color: var(--theme-primary);
    transform: translateY(-1px);
}

.no-shadows .button:hover {
    box-shadow: none;
    transform: none;
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.sidebar_block {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-raised) 100%);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.no-shadows .sidebar_block {
    border-radius: 0;
    box-shadow: none;
}

[data-theme-color="white"] .sidebar_block {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
}


/* Sidebar header */
.sidebar_header, .sidebar_block .block_title {
    background: linear-gradient(90deg, #0d2040 0%, #102448 100%);
    border-bottom: 2px solid var(--theme-secondary);
    color: var(--theme-primary);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 9px 12px;
    text-transform: uppercase;
}

.no-shadows .sidebar_header {
    border-radius: 0;
}

[data-theme-color="white"] .sidebar_header {
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border-mid);
    color: var(--theme-primary);
}

/* User profile box */
.user_welcome_box {
    padding: 14px 12px;
    text-align: center;
}

.user_welcome_box .user_avatar img {
    border: 3px solid var(--theme-secondary);
    border-radius: var(--radius-md);
    box-shadow: 0 0 20px var(--theme-glow-lg);
    margin-bottom: 8px;
    max-width: 80px;
}

.no-shadows .user_welcome_box .user_avatar img {
    border-radius: 0;
    box-shadow: none;
}

.user_welcome_box .username {
    color: var(--accent-cyan);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
}

.user_welcome_box .user_rank {
    color: var(--text-muted);
    font-size: 11px;
    margin-bottom: 8px;
}

.user_welcome_box .user_stars { color: var(--accent-gold); }

.user_stats_row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.user_stats_row:last-child { border-bottom: none; }
.user_stats_row .stat_label { color: var(--text-muted); }
.user_stats_row .stat_value { color: var(--text-primary); font-weight: 600; }

.user_stats_row .reputation_value {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* Staff online list */
.staff_online_list {
    padding: 6px 0;
}

.staff_online_item {
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    gap: 8px;
    padding: 7px 12px;
    transition: background var(--transition);
}

.staff_online_item:last-child { border-bottom: none; }
.staff_online_item:hover { background: var(--theme-glow-lg); }

.staff_online_item img.avatar {
    border: 2px solid var(--border-mid);
    border-radius: var(--radius-sm);
    height: 28px;
    width: 28px;
    object-fit: cover;
}

.no-shadows .staff_online_item img.avatar {
    border-radius: 0;
}

.staff_online_item .name {
    flex: 1;
}

.staff_online_item .name a {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.staff_online_item .name .role {
    color: var(--text-muted);
    font-size: 11px;
    display: block;
}

.online_dot {
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0,230,118,0.6);
    height: 8px;
    width: 8px;
    flex-shrink: 0;
}

.no-shadows .online_dot {
    border-radius: 0;
}

/* Top posters */
.top_posters_list { padding: 4px 0; }

.top_poster_item {
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding: 7px 12px;
    transition: background var(--transition);
}

.top_poster_item:last-child { border-bottom: none; }
.top_poster_item:hover { background: var(--theme-glow-lg); }

.top_poster_item .rank_crown {
    color: var(--accent-gold);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.top_poster_item a {
    color: var(--text-primary);
    flex: 1;
    font-size: 12px;
    font-weight: 500;
}

.top_poster_item .post_count {
    color: var(--text-muted);
    font-size: 11px;
    font-family: var(--font-mono);
}

/* ============================================================
   STATS BAR  (Who's Online / Forum Stats)
   ============================================================ */
#stats_bar, .forum_stats_bar {
    background: linear-gradient(90deg, #08111f 0%, #0c1830 50%, #08111f 100%);
    border-top: 1px solid var(--border-mid);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
}

[data-theme-color="white"] #stats_bar {
    background: linear-gradient(90deg, var(--bg-raised) 0%, var(--bg-surface) 50%, var(--bg-raised) 100%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stats_bar_inner {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 8px;
}

.stat_block {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 20px;
    text-align: center;
}

.stat_block .stat_icon {
    color: var(--theme-secondary);
    font-size: 20px;
    margin-bottom: 4px;
}

.stat_block .stat_label {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat_block .stat_value {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.stat_block .stat_value a { color: var(--text-link); }

/* ============================================================
   ONLINE USERS  (who's online box)
   ============================================================ */
.online_box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-top: 12px;
    overflow: hidden;
}

.no-shadows .online_box {
    border-radius: 0;
}

.online_box .box_header {
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border-mid);
    color: var(--text-secondary);
    font-size: 12px;
    padding: 8px 12px;
}

.online_box .box_content {
    color: var(--text-muted);
    font-size: 12px;
    padding: 8px 12px;
}

/* ============================================================
   ALERTS & MESSAGES
   ============================================================ */
.alert_warning {
    background: rgba(255,183,0,0.1);
    border: 1px solid rgba(255,183,0,0.4);
    border-left: 4px solid var(--accent-gold);
    border-radius: var(--radius-md);
    color: #ffd54f;
    padding: 10px 14px;
    margin: 8px 0;
}

.no-shadows .alert_warning {
    border-radius: 0;
}

.alert_error {
    background: rgba(255,23,68,0.1);
    border: 1px solid rgba(255,23,68,0.4);
    border-left: 4px solid var(--accent-red);
    border-radius: var(--radius-md);
    color: #ff6090;
    padding: 10px 14px;
    margin: 8px 0;
}

.alert_success {
    background: rgba(0,230,118,0.1);
    border: 1px solid rgba(0,230,118,0.4);
    border-left: 4px solid var(--accent-green);
    border-radius: var(--radius-md);
    color: #69f0ae;
    padding: 10px 14px;
    margin: 8px 0;
}

/* ============================================================
   QUICK REPLY / EDITOR
   ============================================================ */
#quick_reply {
    background: var(--bg-surface);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-md);
    margin-top: 16px;
    overflow: hidden;
}

.no-shadows #quick_reply {
    border-radius: 0;
}

#quick_reply .qr_header {
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border-mid);
    color: var(--theme-primary);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 10px 14px;
    text-transform: uppercase;
}

#quick_reply textarea {
    background: var(--bg-raised);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    min-height: 100px;
    resize: vertical;
    width: 100%;
}

/* ============================================================
   USER TITLES & GROUPS  (color coded)
   ============================================================ */
.user_administrator { color: var(--accent-cyan) !important; }
.user_moderator     { color: var(--accent-green) !important; }
.user_vip           { color: var(--accent-gold) !important; }
.user_member        { color: var(--text-primary) !important; }
.user_banned        { color: var(--accent-red) !important; text-decoration: line-through; }

/* ============================================================
   AWARDS / BADGES
   ============================================================ */
.award_badge {
    background: linear-gradient(135deg, var(--bg-raised), var(--bg-highlight));
    border: 1px solid var(--border-mid);
    border-radius: 20px;
    color: var(--accent-gold);
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
}

.no-shadows .award_badge {
    border-radius: 0;
}

/* ============================================================
   REPUTATION / LIKE SYSTEM
   ============================================================ */
.reputation_positive { color: var(--accent-green); font-weight: 700; }
.reputation_negative { color: var(--accent-red);   font-weight: 700; }
.reputation_neutral  { color: var(--text-muted);   font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    background: linear-gradient(180deg, var(--bg-surface) 0%, #060b15 100%);
    border-top: 2px solid var(--border-mid);
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 20px;
    padding: 20px 0 14px;
    text-align: center;
}

[data-theme-color="white"] #footer {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
    border-top: 1px solid var(--border-subtle);
}

#footer a {
    color: var(--text-muted);
    margin: 0 6px;
    transition: color var(--transition);
}

#footer a:hover { color: var(--theme-primary); }

#footer .footer_links {
    margin-bottom: 8px;
}

#footer .footer_powered {
    color: var(--text-muted);
    font-size: 11px;
    opacity: 0.6;
}

#footer .footer_powered a { color: var(--theme-secondary); }

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: var(--border-mid);
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
}
::-webkit-scrollbar-thumb:hover { background: var(--theme-secondary); }

.no-shadows ::-webkit-scrollbar-thumb {
    border-radius: 0;
}

/* ============================================================
   SELECTION COLOR
   ============================================================ */
::selection {
    background: rgba(0,180,255,0.25);
    color: #fff;
}

/* ============================================================
   THEME CUSTOMIZATION BUTTON (Fixed Bottom Right)
   ============================================================ */
.theme-customizer-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: linear-gradient(135deg, var(--theme-primary) 0%, #0073cc 100%);
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,100,180,0.4);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding: 16px;
    transition: all 0.3s ease;
    width: 56px;
    height: 56px;
}

.no-shadows .theme-customizer-btn {
    border-radius: 0;
    box-shadow: none;
}

.theme-customizer-btn:hover {
    background: linear-gradient(135deg, #00ccff 0%, #0088ee 100%);
    box-shadow: 0 6px 30px rgba(0,150,220,0.6);
    transform: scale(1.05);
}

.theme-customizer-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ============================================================
   THEME CUSTOMIZATION MODAL
   ============================================================ */
.theme-modal-overlay {
    align-items: center;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10000;
}

.theme-modal-overlay.active {
    display: flex;
}

.theme-modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px var(--theme-glow-lg);
    max-width: 480px;
    overflow: hidden;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.no-shadows .theme-modal {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-subtle);
}

.theme-modal-header {
    background: linear-gradient(90deg, #0d2040 0%, #102448 100%);
    border-bottom: 2px solid var(--theme-secondary);
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 14px 18px;
    text-transform: uppercase;
}

.no-shadows .theme-modal-header {
    border-radius: 0;
}

[data-theme-color="white"] .theme-modal-header {
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border-mid);
}

.theme-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.theme-modal-close:hover {
    color: var(--accent-red);
}

.theme-modal-body {
    padding: 20px;
}

.theme-setting-group {
    margin-bottom: 20px;
}

.theme-setting-group:last-child {
    margin-bottom: 0;
}

.theme-setting-label {
    color: var(--text-secondary);
    display: block;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.theme-setting-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.theme-option-btn {
    background: var(--bg-raised);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.no-shadows .theme-option-btn {
    border-radius: 0;
}

.theme-option-btn:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

.theme-option-btn.active {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
}

.theme-color-btn {
    align-items: center;
    border: 2px solid var(--border-mid);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 12px;
    transition: all 0.2s ease;
    width: 48%;
}

.no-shadows .theme-color-btn {
    border-radius: 0;
}

.theme-color-btn:hover,
.theme-color-btn.active {
    border-color: var(--theme-primary);
    box-shadow: 0 0 12px var(--theme-glow-lg);
}

.theme-color-preview {
    height: 40px;
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}

.no-shadows .theme-color-preview {
    border-radius: 0;
}

.theme-color-preview.blue {
    background: linear-gradient(135deg, #00b4ff 0%, #0a1020 100%);
}

.theme-color-preview.white {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
}

.theme-color-preview.white::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #3c3c3c 0%, #f7f7f7 100%);
}



.theme-color-btn span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Toggle Switch */
.theme-toggle {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.theme-toggle:last-child {
    border-bottom: none;
}

.theme-toggle-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-raised);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-primary);
    font-size: 16px;
}

.theme-toggle-text {
    font-size: 13px;
    font-weight: 500;
}

.theme-toggle-switch {
    background: var(--bg-raised);
    border: 1px solid var(--border-mid);
    border-radius: 20px;
    height: 24px;
    position: relative;
    width: 48px;
    transition: background 0.2s;
}

.no-shadows .theme-toggle-switch {
    border-radius: 0;
}

.theme-toggle-switch::after {
    background: var(--text-muted);
    border-radius: 50%;
    content: '';
    height: 18px;
    left: 2px;
    position: absolute;
    top: 2px;
    transition: all 0.2s;
    width: 18px;
}

.theme-toggle input {
    display: none;
}

.theme-toggle input:checked + .theme-toggle-switch {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
}

.theme-toggle input:checked + .theme-toggle-switch::after {
    background: #fff;
    left: 26px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.clearfix::after  { content: ''; display: block; clear: both; }
.text-glow        { text-shadow: 0 0 10px var(--theme-glow); }
.border-glow      { box-shadow: 0 0 12px var(--theme-glow-lg); }
.font-display     { font-family: var(--font-display); }

.smalltext { font-size: 11px; color: var(--text-muted); }
.largetext { font-size: 16px; font-weight: 600; }
.highlight  { background: var(--theme-glow-lg); border-radius: 3px; padding: 1px 5px; }

/* ============================================================
   RESPONSIVE  –  Tablet (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
    #content {
        flex-direction: column;
    }

    .sidebar, #sidebar {
        flex: none;
        width: 100%;
        order: 2;
    }

    .forum_area, #main_content {
        order: 1;
    }

    #nav ul {
        flex-wrap: wrap;
    }

    #nav ul li a {
        font-size: 12px;
        padding: 10px 12px;
    }

    .theme-customizer-btn {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        padding: 12px;
    }

    .theme-modal {
        max-width: 95%;
    }
}

/* ============================================================
   RESPONSIVE  –  Mobile (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
    #header {
        padding: 12px 0;
    }

    #logo a {
        font-size: 24px;
    }

    #nav ul {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    #nav ul li.discord-cta { display: none; }

    .thead td.threads_col,
    .thead td.posts_col,
    .trow1 td.threads_col,
    .trow1 td.posts_col,
    .trow2 td.threads_col,
    .trow2 td.posts_col {
        display: none;
    }

    .forum_lastpost { display: none; }

    .stats_bar_inner { flex-direction: column; align-items: center; }

    #footer { padding: 14px 8px; }

    .theme-modal-header {
        padding: 12px 14px;
        font-size: 12px;
    }

    .theme-setting-options {
        gap: 6px;
    }

    .theme-option-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* ============================================================
   ADMIN PANEL  (ACP) OVERRIDES
   ============================================================ */
#admincontent {
    background: var(--bg-base);
    color: var(--text-primary);
}

.admin_header {
    background: linear-gradient(90deg, #0d2040 0%, #102448 100%);
    border-bottom: 2px solid var(--theme-secondary);
    color: var(--theme-primary);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 10px 14px;
    text-transform: uppercase;
}

/* ============================================================
   ANIMATIONS  (Subtle gaming effects)
   ============================================================ */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(0,180,255,0.2); }
    50%       { box-shadow: 0 0 20px rgba(0,180,255,0.5); }
}

@keyframes slide-in-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

@keyframes modal-fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.online_dot { animation: pulse-glow 2s ease-in-out infinite; }

.no-shadows .online_dot {
    animation: none;
}

.forum_table { animation: slide-in-up 0.3s ease both; }

.forum_table:nth-child(2) { animation-delay: 0.05s; }
.forum_table:nth-child(3) { animation-delay: 0.10s; }
.forum_table:nth-child(4) { animation-delay: 0.15s; }

.no-shadows .forum_table {
    animation: none;
}

.theme-modal {
    animation: modal-fade-in 0.3s ease;
}

.no-shadows .theme-modal {
    animation: none;
}

/* Modal scrollbar */
.theme-modal::-webkit-scrollbar {
    width: 6px;
}

.theme-modal::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

.theme-modal::-webkit-scrollbar-thumb {
    background: var(--border-mid);
    border-radius: 3px;
}

.nevmenux {
    display: flex;
    align-items: center;
    justify-content: space-between;
}