/* ==========================================================================
   ZER0VERFIT CYBER-TERMINAL & DARKNET DESIGN SYSTEM
   Bespoke UI Theme for AI Red-Team & Crypto Escrow Community
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root,
html,
html.scheme-light,
html.scheme-dark,
html.scheme-system {
    --bg-base: #06070a;
    --bg-surface: #0c0e14;
    --bg-surface-elevated: #131722;
    --bg-surface-hover: #1a2030;
    --border-color: #1f2738;
    --border-highlight: #2f3b52;
    
    --accent-emerald: #00ff9d;
    --accent-emerald-glow: rgba(0, 255, 157, 0.2);
    --accent-crimson: #ff3860;
    --accent-crimson-glow: rgba(255, 56, 96, 0.2);
    --accent-cyan: #00d2d3;
    --accent-amber: #ff9f43;
    --accent-purple: #9b59b6;
    
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #94a3b8;
    --text-accent: #00ff9d;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'JetBrains Mono', monospace;
    --font-heading: 'Space Grotesk', var(--font-sans);
    
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 15px var(--accent-emerald-glow);

    /* Override MyBB 1.9 core.base light scheme variables globally */
    --primary-color: #00ff9d !important;
    --primary-color-shade-1: #00cc7d !important;
    --secondary-color: #ff9f43 !important;
    --secondary-color-shade-1: #e67e22 !important;
    --invert-color: #06070a !important;
    --shade-1: #e2e8f0 !important;
    --shade-2: #cbd5e1 !important;
    --shade-3: #94a3b8 !important;
    --shade-4: #64748b !important;
    --shade-5: #475569 !important;
    --shade-6: #334155 !important;
    --shade-7: #1f2738 !important;
    --shade-8: #131722 !important;
    --shade-9: #0c0e14 !important;
    --shade-10: #06070a !important;
    --font-color: #e2e8f0 !important;
    --invert-font-color: #f1f5f9 !important;
    --alt-font-color-1: #cbd5e1 !important;
    --alt-font-color-2: #94a3b8 !important;
    --alt-font-color-3: #94a3b8 !important;
    --text-highlight-color: rgba(0, 255, 157, 0.2) !important;
    --link-default-color: #00d2d3 !important;
    --link-hover-color: #00ff9d !important;
    --button-default-color: #131722 !important;
    --button-hover-color: #00ff9d !important;
    --background-default: #0c0e14 !important;
    --content-background: #06070a !important;
    --header-background: #0c0e14 !important;
    --header-background-shade-1: #131722 !important;
    --user-bar-background: #090b10 !important;
    --user-bar-background-shade-1: #131722 !important;
    --major-title-background: #131722 !important;
    --background-1: #090c12 !important;
    --background-2: #131722 !important;
    --background-3: #1a2030 !important;
    --background-4: #242c3d !important;
    --major-title-border: #1f2738 !important;
    --border-color-1: #1f2738 !important;
    --border-color-2: #2f3b52 !important;
    --border-color-3: #171d2b !important;
    --border-color-4: #334155 !important;
    --status-new-icon-color: #00ff9d !important;
    --status-highlight-background-color: rgba(0, 210, 211, 0.12) !important;
    --status-highlight-border-color: #00d2d3 !important;
    --status-deleted-background-color: rgba(255, 56, 96, 0.18) !important;
    --status-deleted-border-color: #ff3860 !important;
    --status-deleted-font-color: #ff6b81 !important;
    --status-pending-background-color: #ff9f43 !important;
    --status-pending-border-color: #e67e22 !important;
    --status-pending-font-color: #06070a !important;
    --status-unread-color: #00ff9d !important;
    --success-color: #00ff9d !important;
    --success-color-shade-1: #00cc7d !important;
    --moderate-color: #ff9f43 !important;
    --moderate-color-shade-1: #e67e22 !important;
    --danger-color: #ff3860 !important;
    --danger-color-shade-1: #d3494e !important;
}

/* Global Reset & Base */
body {
    background-color: var(--bg-base) !important;
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 255, 157, 0.05), transparent),
        radial-gradient(ellipse 60% 30% at 80% 90%, rgba(0, 210, 211, 0.03), transparent);
    color: var(--text-primary) !important;
    font-family: var(--font-sans) !important;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

a:hover {
    color: var(--accent-emerald);
    text-shadow: 0 0 8px var(--accent-emerald-glow);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--border-highlight);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-emerald);
}

/* ==========================================================================
   PULSE INDICATOR (Used in Modals)
   ========================================================================== */
.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 255, 157, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 157, 0); }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
    background: var(--bg-surface) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0 !important;
    box-shadow: var(--shadow-card);
}

.header__title {
    margin: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.logo__badge {
    background: linear-gradient(135deg, #00ff9d, #00b4d8);
    color: #06070a;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.logo__text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.5px;
}

.logo__tagline {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-emerald);
    letter-spacing: 1px;
    margin-top: -2px;
}

.main-menu__links {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.main-menu__link {
    color: var(--text-secondary) !important;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.main-menu__link:hover, .main-menu__item--active .main-menu__link {
    color: #ffffff !important;
    background: var(--bg-surface-elevated);
    border-color: var(--border-highlight);
}

.user-bar {
    background: #090b10 !important;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0 !important;
}

.user-bar__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.user-bar__welcome {
    color: var(--text-secondary);
}

.user-bar__welcome a {
    color: var(--accent-emerald);
    font-weight: 600;
}

/* Search input */
.quicksearch input[type="text"], .textbox, .textarea, textarea, select, .select-field select, .quick-search__field {
    background: var(--bg-surface-elevated) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 6px 12px !important;
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-mono) !important;
    font-size: 12px !important;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quicksearch input[type="text"]:focus, .textbox:focus, .textarea:focus, textarea:focus, select:focus {
    border-color: var(--accent-emerald) !important;
    box-shadow: 0 0 8px var(--accent-emerald-glow) !important;
}

.quick-search__container {
    background: var(--bg-surface-elevated) !important;
    border: 1px solid var(--border-color) !important;
}

/* ==========================================================================
   NOTIFICATIONS & ALERTS (ORANGE HIGH-CONTRAST)
   ========================================================================== */
.notice,
.alert,
.alert--warning,
.alert--pending,
.alert--red-alert,
.pm_alert,
.red_alert {
    background: linear-gradient(135deg, #ff9f43 0%, #f39c12 100%) !important;
    border: 1px solid #ffb142 !important;
    border-left: 4px solid #06070a !important;
    border-radius: var(--radius-sm) !important;
    color: #06070a !important;
    font-family: var(--font-mono) !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 4px 14px rgba(255, 159, 67, 0.25) !important;
}

.notice *,
.alert *,
.alert--warning *,
.alert--pending *,
.alert--red-alert *,
.pm_alert *,
.red_alert *,
.alert__message,
.alert__title,
.alert__description,
.alert__icon,
.alert__list,
.alert__list li {
    color: #06070a !important;
}

.notice a,
.alert a,
.alert--warning a,
.alert--pending a,
.alert--red-alert a,
.pm_alert a,
.red_alert a {
    color: #06070a !important;
    font-weight: 800 !important;
    text-decoration: underline !important;
}

.notice a:hover,
.alert a:hover {
    color: #1e293b !important;
}

/* Orange / Pending status badges & tags */
.tag--medium,
.tag--awaiting-approval,
.thread__unapproved-replies,
.forum__unapproved-count {
    background: #ff9f43 !important;
    border-color: #f39c12 !important;
    color: #06070a !important;
    font-weight: 700 !important;
}

.tag--medium a,
.tag--awaiting-approval a,
.thread__unapproved-replies a,
.forum__unapproved-count a {
    color: #06070a !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   FORUM BOARDS, THREAD LISTING & TABLES (forumdisplay.php & showthread.php)
   ========================================================================== */
.block,
.container,
.section {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    margin-bottom: 24px !important;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.block__body,
.block__content,
.thread-list {
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
}

.block__footer,
.column-headings,
.column-headings--major,
.column-headings--minor,
.sort-results {
    background: var(--bg-surface-elevated) !important;
    color: var(--text-secondary) !important;
    border-color: var(--border-color) !important;
}

.column-headings a,
.column-headings .column-heading,
.block__footer label,
.block__footer span {
    color: var(--text-secondary) !important;
}

.block__title, .thead {
    background: var(--bg-surface-elevated) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-mono);
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 12px 18px !important;
    border-bottom: 1px solid var(--border-color) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.block__title a {
    color: var(--accent-emerald) !important;
}

.forum,
.thread,
.row,
.row--forum,
.row--thread,
.row--simple-columns,
.row--no-results,
.row--Announcement {
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid #141822 !important;
    padding: 14px 18px !important;
    transition: background-color 0.15s ease;
}

.row__primary,
.row__secondary,
.thread__column,
.thread__column--primary,
.thread__column--latest,
.thread__replies,
.thread__latest,
.thread__author,
.thread__date,
.thread__status,
.thread__icons,
.thread__pages,
.thread__notification,
.thread__actions {
    background: transparent !important;
    color: var(--text-secondary) !important;
}

.thread__message {
    background: var(--bg-surface-elevated) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px !important;
}

.thread__page-link {
    background: var(--bg-surface-elevated) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
}

.thread__page-link:hover {
    border-color: var(--accent-emerald) !important;
    color: var(--accent-emerald) !important;
}

.forum:hover,
.thread:hover,
.row--thread:hover,
.row--forum:hover {
    background: var(--bg-surface-hover) !important;
}

.forum__name, .thread__title {
    font-family: var(--font-heading);
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
}

.forum__name a, .thread__title a {
    color: #f1f5f9 !important;
}

.forum__name a:hover, .thread__title a:hover {
    color: var(--accent-emerald) !important;
}

.forum__description {
    color: var(--text-muted) !important;
    font-size: 13px !important;
    margin-top: 4px;
}

.forum__stats, .forum__stat {
    font-family: var(--font-mono);
    font-size: 12px !important;
    color: var(--text-secondary) !important;
}

.forum__count, .thread__count {
    color: var(--accent-cyan) !important;
    font-weight: 600;
}

.latest-post {
    font-size: 12px !important;
    color: var(--text-secondary) !important;
}

.latest-post__title a {
    color: var(--text-primary) !important;
    font-weight: 500;
}

.latest-post__author a,
.thread__author a {
    color: var(--accent-emerald) !important;
}

/* ==========================================================================
   THREAD & POSTBIT (RED-TEAM & KASKUS CENDOL REPUTATION)
   ========================================================================== */
.post,
.post--classic,
.post--horizontal,
.post--message,
.post--reply,
.post--quick-reply,
.quick-reply {
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 18px !important;
    box-shadow: var(--shadow-card);
}

.post__meta {
    background: var(--bg-surface-elevated) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    padding: 12px 16px !important;
}

.post__date,
.post__date a,
.post__number,
.post__number a,
.post__status {
    color: var(--text-secondary) !important;
}

.post__author {
    background: var(--bg-surface-elevated) !important;
    border-right: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 16px !important;
}

.post__author-stats,
.post__author-stat,
.user-field,
.user-field__name,
.user-field__value {
    background: transparent !important;
    color: var(--text-secondary) !important;
    border-color: var(--border-color) !important;
}

.post__username,
.post__username a,
.post__author-name a {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin-bottom: 4px;
}

.post__usertitle,
.post__user-title {
    color: var(--accent-emerald) !important;
    font-size: 11px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* Cendol Reputation Bar */
.rep-bar-container {
    margin: 8px 0;
    padding: 6px 8px;
    background: #080a0f;
    border: 1px solid #1a2233;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 11px;
}

.rep-bar-visual {
    display: flex;
    gap: 2px;
    margin: 4px 0;
}

.rep-brick {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.rep-brick--green {
    background-color: var(--accent-emerald);
    box-shadow: 0 0 4px var(--accent-emerald);
}

.rep-brick--gray {
    background-color: #242c3d;
}

.rep-brick--red {
    background-color: var(--accent-crimson);
    box-shadow: 0 0 4px var(--accent-crimson);
}

.rep-actions-bar {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.btn-cendol, .btn-bata, .btn-vouch, .btn-flag {
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: transform 0.1s;
}

.btn-cendol, .btn-vouch {
    background: #00ff9d;
    color: #06070a;
}

.btn-cendol:hover {
    transform: scale(1.05);
    box-shadow: 0 0 6px rgba(0, 255, 157, 0.5);
}

.btn-bata, .btn-flag {
    background: #ff3860;
    color: #ffffff;
}

.btn-bata:hover {
    transform: scale(1.05);
    box-shadow: 0 0 6px rgba(255, 56, 96, 0.5);
}

/* Post Content, Body & Footer */
.post__content,
.post__body,
.post_body,
.scaleimages {
    background: var(--bg-surface) !important;
    padding: 20px !important;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary) !important;
}

.post__body p,
.post_body p,
.post__body div,
.post_body div,
.post__body span,
.post_body span,
.post__body li,
.post_body li {
    color: inherit;
}

.post__foot,
.post__foot--controls,
.post-controls {
    background: var(--bg-surface-elevated) !important;
    border-top: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    padding: 10px 16px !important;
}

.post-control,
.post__foot a {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
}

.post-control:hover,
.post__foot a:hover {
    background: var(--accent-emerald) !important;
    border-color: var(--accent-emerald) !important;
    color: #06070a !important;
}

.post__signature,
.post__edit-message,
.post .attachments,
.post .attachment--image {
    background: var(--bg-surface-elevated) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
}

/* Terminal Code Blocks */
.codeblock, .post .codeblock, pre, code {
    font-family: var(--font-mono) !important;
}

.codeblock,
.post .codeblock {
    background: #07090e !important;
    border: 1px solid var(--border-color) !important;
    border-left: 3px solid var(--accent-emerald) !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 16px !important;
    margin: 14px 0 !important;
    color: #00ff9d !important;
    overflow-x: auto;
    position: relative;
}

.codeblock__header,
.codeblock .title {
    font-size: 11px;
    color: var(--text-muted) !important;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #171d2b !important;
    padding-bottom: 4px;
}

/* Quotes */
blockquote,
.post .quote,
.quote_header,
.post .quote cite {
    background: #0d111a !important;
    border: 1px solid var(--border-color) !important;
    border-left: 3px solid var(--accent-cyan) !important;
    color: var(--text-primary) !important;
    padding: 10px 14px !important;
    margin: 12px 0 !important;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ==========================================================================
   BUTTONS & FORM CONTROLS
   ========================================================================== */
.button, .button--basic, input[type="submit"] {
    background: var(--bg-surface-elevated) !important;
    border: 1px solid var(--border-highlight) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-mono) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.button:hover, .button--basic:hover, input[type="submit"]:hover {
    background: var(--accent-emerald) !important;
    color: #06070a !important;
    border-color: var(--accent-emerald) !important;
    box-shadow: 0 0 12px var(--accent-emerald-glow) !important;
}

.button--primary {
    background: linear-gradient(135deg, #00ff9d, #00d2d3) !important;
    color: #06070a !important;
    border: none !important;
}

/* ==========================================================================
   THREAD TAG PILLS ([RESEARCH], [WTS], [ESCROW])
   ========================================================================== */
.tag-pill {
    display: inline-block;
    padding: 2px 7px;
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 700;
    border-radius: 3px;
    margin-right: 6px;
    letter-spacing: 0.5px;
}

.tag-pill--research {
    background: rgba(0, 210, 211, 0.15);
    color: #00d2d3;
    border: 1px solid rgba(0, 210, 211, 0.4);
}

.tag-pill--defense {
    background: rgba(0, 255, 157, 0.15);
    color: #00ff9d;
    border: 1px solid rgba(0, 255, 157, 0.4);
}

.tag-pill--wts {
    background: rgba(255, 159, 67, 0.15);
    color: #ff9f43;
    border: 1px solid rgba(255, 159, 67, 0.4);
}

.tag-pill--escrow {
    background: rgba(155, 89, 182, 0.15);
    color: #c56cf0;
    border: 1px solid rgba(155, 89, 182, 0.4);
}

.tag-pill--defcon {
    background: rgba(255, 56, 96, 0.15);
    color: #ff3860;
    border: 1px solid rgba(255, 56, 96, 0.4);
}

/* ==========================================================================
   ESCROW DEAL MODAL (REKBER SIMULATION)
   ========================================================================== */
.escrow-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 5, 8, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.escrow-modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 157, 0.1);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 520px;
    padding: 24px;
    color: var(--text-primary);
}

.escrow-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.escrow-modal-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.escrow-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.escrow-close-btn:hover {
    color: var(--accent-crimson);
}

/* Toast notification */
.zer0verfit-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--accent-emerald);
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.2);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Footer */
.footer {
    background: #040508 !important;
    border-top: 1px solid var(--border-color) !important;
    padding: 24px 0 !important;
    color: var(--text-muted) !important;
    font-size: 12px !important;
}

.footer-menu__link {
    color: var(--text-secondary) !important;
}

.footer-menu__link:hover {
    color: var(--accent-emerald) !important;
}

/* ==========================================================================
   SCEDITOR (RICH TEXT & SOURCE EDITOR) CYBERPUNK STYLING
   Applies to: newthread.php, newreply.php, editpost.php, private.php, modcp.php
   ========================================================================== */
.sceditor-container {
    background: #080b11 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    color: var(--text-primary) !important;
    width: 100% !important;
}

div.sceditor-toolbar {
    background: #0d111a !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 6px 8px !important;
    line-height: normal !important;
}

div.sceditor-group {
    background: #141b28 !important;
    border: 1px solid #1f293d !important;
    border-radius: var(--radius-sm) !important;
    margin: 2px 4px 2px 0 !important;
    padding: 2px 4px !important;
}

.sceditor-button {
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 3px !important;
    height: 22px !important;
    padding: 3px 5px !important;
    transition: all 0.15s ease !important;
}

.sceditor-button:hover,
.sceditor-button:active,
.sceditor-button.active {
    background: #1e293b !important;
    border-color: var(--accent-emerald) !important;
    box-shadow: 0 0 8px var(--accent-emerald-glow) !important;
}

/* Invert black PNG sprite icons (famfamfam.png) & grip so they are bright on dark toolbar */
.sceditor-button div,
div.sceditor-grip {
    filter: invert(0.92) hue-rotate(180deg) brightness(1.3) contrast(1.1) !important;
}

.sceditor-button:hover div,
.sceditor-button.active div {
    filter: invert(0.85) sepia(1) saturate(6) hue-rotate(95deg) brightness(1.15) !important;
}

.sceditor-button svg {
    fill: #e2e8f0 !important;
}

.sceditor-button:hover svg,
.sceditor-button.active svg {
    fill: var(--accent-emerald) !important;
}

/* SCEditor Source Mode (Textarea) Font Size & Theme */
.sceditor-container textarea {
    font-family: 'Fira Code', var(--font-mono), monospace !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #e2e8f0 !important;
    caret-color: var(--accent-emerald) !important;
    background: #080b11 !important;
    padding: 14px 16px !important;
    box-sizing: border-box !important;
    border: none !important;
    outline: none !important;
}

/* SCEditor WYSIWYG Mode Iframe element & interior document */
.sceditor-container iframe {
    background: #080b11 !important;
    color: #e2e8f0 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
}

body[contenteditable="true"],
body[contenteditable="true"] p,
body[contenteditable="true"] div,
body[contenteditable="true"] span,
body[contenteditable="true"] font,
body[contenteditable="true"] table,
body[contenteditable="true"] td {
    background-color: #080b11 !important;
    color: #e2e8f0 !important;
    caret-color: #00ff9d !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

body[contenteditable="true"] code {
    font-family: 'Fira Code', Monaco, Consolas, monospace !important;
    font-size: 14px !important;
    background: #131722 !important;
    color: #00ff9d !important;
    border: 1px solid #1f2738 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
}

body[contenteditable="true"] blockquote {
    background: #131722 !important;
    color: #94a3b8 !important;
    border: 1px solid #1f2738 !important;
    border-left: 3px solid #00ff9d !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
}

/* SCEditor Dropdown Menus (Font name, Font size, Color, Link, Image, etc.) */
div.sceditor-dropdown {
    background: #0c0e14 !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
}

div.sceditor-dropdown label {
    color: var(--text-secondary) !important;
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
}

div.sceditor-dropdown input,
div.sceditor-dropdown textarea {
    background: #07090e !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    padding: 6px 8px !important;
}

div.sceditor-dropdown input:focus,
div.sceditor-dropdown textarea:focus {
    border-color: var(--accent-emerald) !important;
    box-shadow: 0 0 6px var(--accent-emerald-glow) !important;
}

div.sceditor-dropdown .button {
    background: rgba(0, 255, 157, 0.12) !important;
    border: 1px solid var(--accent-emerald) !important;
    color: var(--accent-emerald) !important;
    border-radius: var(--radius-sm) !important;
}

div.sceditor-dropdown .button:hover {
    background: var(--accent-emerald) !important;
    color: #05070a !important;
}

div.sceditor-dropdown a,
div.sceditor-dropdown a:link,
.sceditor-font-option,
.sceditor-fontsize-option,
.sceditor-format a,
.sceditor-more {
    color: var(--text-primary) !important;
    font-size: 13px !important;
    border-color: var(--border-color) !important;
}

div.sceditor-dropdown a:hover,
.sceditor-font-option:hover,
.sceditor-fontsize-option:hover,
.sceditor-format a:hover,
.sceditor-more:hover {
    background: #141b28 !important;
    color: var(--accent-emerald) !important;
}




/* ==========================================================================
   COMPREHENSIVE PAGE SWEEP:
   index.php, forumdisplay.php, showthread.php, newthread.php, newreply.php,
   member.php, usercp.php, modcp.php
   ========================================================================== */

/* 1. Category & Section Headers */
.title--major,
.title--modal,
.title--section,
.title--nested,
.block__title,
.thead {
    background: linear-gradient(90deg, #131722 0%, #0f1420 100%) !important;
    border: 0 !important;
    border-left: 3px solid var(--accent-emerald) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: #e2e8f0 !important;
}

.title--major *,
.title--modal *,
.title--section *,
.title__name,
.title__name a,
.title--major a:link,
.title--major a:visited,
.title--modal a:link,
.title--modal a:visited {
    color: #f1f5f9 !important;
}

.title--major a:hover,
.title--modal a:hover,
.title__name a:hover {
    color: var(--accent-emerald) !important;
}

.title__description,
.title--nested .title__description,
.title--major .title__description {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.title--page,
.title--basic,
.title--sidebar,
.title--minor,
.title--container,
.title--row {
    color: #f1f5f9 !important;
    border-color: var(--border-color) !important;
}

/* 2. Forum List & Board Info (index.php) */
.forum__description,
.forum__info p,
.forum__moderators,
.forum__subforums,
.subforums,
.subforums li,
.subforums__list,
.forum__stat,
.forum__legend,
.forum__status {
    color: #cbd5e1 !important;
}

.forum__status.forum__status--on,
.forum__subforum__status.subforum_minion {
    color: var(--accent-emerald) !important;
}

.forum__moderators a,
.forum__subforums a,
.subforums a {
    color: var(--accent-cyan) !important;
}

.forum__moderators a:hover,
.forum__subforums a:hover,
.subforums a:hover {
    color: var(--accent-emerald) !important;
}

.forum .latest-post {
    background: var(--bg-surface-elevated) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    color: #cbd5e1 !important;
}

.board-info,
.board-info__body,
.board-info__body--groups,
.board-stats {
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.board-info__icon,
.board-stats__field {
    color: var(--text-secondary) !important;
}

/* 3. Compose, Editor & Attachments (newthread.php, newreply.php, editpost.php) */
.compose,
.form--compose,
.compose__primary-section,
.compose__hidden-section,
.section--form,
.row--form,
.field {
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.field__name,
.field__name label,
.option-field,
.option-field label {
    color: #f1f5f9 !important;
}

.field__description,
.option-field__description {
    color: #cbd5e1 !important;
}

.smilie-inserter,
.file-wrapper,
.upload-attachments,
.upload-attachments__drop-zone,
.uploaded-attachment,
#multiquote_unloaded,
.editor_control_bar,
.editor_control_bar--quick-reply,
.quick-reply__options {
    background: var(--bg-surface-elevated) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.smilie-inserter__title,
.editor_control_bar__title {
    color: #f1f5f9 !important;
}

/* 4. Member Profile & Login (member.php) */
.profile,
.profile__header,
.profile__content,
.page-sidebar,
.block--sidebar {
    color: var(--text-primary) !important;
}

.profile__header {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

.profile__username,
.profile__username a {
    color: #f1f5f9 !important;
}

.profile__usertitle {
    color: var(--accent-emerald) !important;
    font-family: var(--font-mono) !important;
}

.profile-field__name,
.list__field {
    color: #94a3b8 !important;
}

.profile-field__value,
.list__value {
    color: #e2e8f0 !important;
}

.list--divided .list__item {
    border-color: var(--border-color) !important;
    color: #e2e8f0 !important;
}

.online,
.user-status--online,
.user-status--online .user-status__link {
    color: var(--accent-emerald) !important;
}

.offline,
.user-status--offline {
    color: #94a3b8 !important;
}

/* 5. UserCP & ModCP Navigation, Tabs & Panels (usercp.php, modcp.php) */
.section-menu {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}

.section-menu__title,
.section-menu__toggle {
    background: var(--bg-surface-elevated) !important;
    color: #f1f5f9 !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.section-menu__links {
    background: var(--bg-surface) !important;
}

.section-menu__link,
.section-menu__link:link,
.section-menu__link:visited {
    background: transparent !important;
    color: #cbd5e1 !important;
    border-left: 3px solid transparent !important;
    transition: all 0.15s ease;
}

.section-menu__item--active .section-menu__link,
.section-menu__link:hover {
    background: rgba(0, 255, 157, 0.14) !important;
    border-left: 3px solid var(--accent-emerald) !important;
    color: var(--accent-emerald) !important;
    font-weight: 600 !important;
}

.section-menu__item--active .section-menu__icon,
.section-menu__link:hover .section-menu__icon {
    color: var(--accent-emerald) !important;
}

.page-tabs {
    background: var(--bg-surface-elevated) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
}

.page-tabs__link,
.page-tabs__link:link,
.page-tabs__link:visited {
    color: #cbd5e1 !important;
    background: transparent !important;
}

.page-tabs__item--active .page-tabs__link,
.page-tabs__link:hover {
    background: rgba(0, 255, 157, 0.14) !important;
    color: var(--accent-emerald) !important;
    border-bottom: 2px solid var(--accent-emerald) !important;
}

.account-dashboard,
.awaiting-moderation,
.mod-queue,
.mod-log,
.warning-log,
.report,
.user-list__user,
.poll__votes,
.warning-level,
.reputation-rating__meta,
.redirect__message,
.modal,
.popup_menu {
    background: var(--bg-surface) !important;
    color: #e2e8f0 !important;
    border-color: var(--border-color) !important;
}

.awaiting-moderation__title a,
.mod-queue__subject,
.report__reason {
    color: #f1f5f9 !important;
}

.awaiting-moderation__count,
.awaiting-moderation__latest,
.mod-queue__author,
.mod-queue__date,
.mod-queue__forum,
.mod-log__date,
.warning-log__issued_by,
.warning-log__issued-date {
    color: #cbd5e1 !important;
}

/* 6. High-Contrast Rules for Bright / Accent Surfaces (Dark text on Neon/Orange) */
::selection {
    background: var(--accent-emerald) !important;
    color: #06070a !important;
}

.user-bar__unread-count,
.pagination__page:hover,
.pagination__page--active,
.thread-list .thread__page-link:hover,
.thread-list .thread__page-link:active,
.tag--good,
.segmented-control__input:checked + .segmented-control__button--success {
    background: var(--accent-emerald) !important;
    color: #06070a !important;
    font-weight: 700 !important;
}

.tag--bad,
.segmented-control__input:checked + .segmented-control__button--danger {
    background: var(--accent-crimson) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* 7. Generic Safety Net: Dark Surfaces Always Use Light Text */
.block__body,
.block__content,
.forum-list,
.forum-list .row,
.row__primary,
.latest-post,
.latest-post *,
.row *:not(a):not(.forum__unapproved-count):not(.thread__unapproved-replies):not(.tag):not([class*="tag--"]):not(.button):not(.alert):not(.notice) {
    color: inherit;
}

.block, .container, .section, .row, .forum, .thread, .post, .post__body, .post_body,
.latest-post, .forum-list, .block__body, .block__content {
    color: #e2e8f0 !important;
}

.latest-post__date,
.latest-post time,
.post__date,
.thread__date,
small, .smalltext, .legend, .breadcrumb, .nav, .nav a {
    color: #94a3b8 !important;
}

.nav a:hover,
.breadcrumb__link:hover .breadcrumb__text {
    color: var(--accent-emerald) !important;
}
