:root {
    /* ==== R36S Wiki 2.0 Theme Tokens ==== */
    --bg-body: #0b0f17;            /* deep slate (was pure black) */
    --bg-card: #101623;            /* card surface */
    --bg-elevated: #151d2e;        /* raised surface (hover, modals) */
    --bg-inset: rgba(2, 6, 16, 0.45);  /* recessed areas (code, tracks) */
    --accent: #8b5cf6;
    --accent-soft: rgba(139, 92, 246, 0.12);
    --accent-wiki: #10b981;
    --accent-wiki-soft: rgba(16, 185, 129, 0.12);
    --text-main: #eef2f7;
    --text-muted: #9aa7ba;
    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.28);
    --container: 1240px;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --success: #10b981;
    /* Shape & depth */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(2, 6, 16, 0.45);
    --shadow-lg: 0 16px 48px rgba(2, 6, 16, 0.55);
    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; scrollbar-width: thin; }
button { -webkit-appearance: none; appearance: none; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(139, 92, 246, 0.07), transparent 60%),
        radial-gradient(1000px 600px at 10% -20%, rgba(16, 185, 129, 0.06), transparent 55%),
        var(--bg-body);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.0625rem);
    overflow-x: hidden;
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Accessible focus */
:focus-visible { outline: 2px solid var(--accent-wiki); outline-offset: 2px; border-radius: 8px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #2b3648; border-radius: 6px; border: 2px solid var(--bg-body); }
::-webkit-scrollbar-thumb:hover { background: #3a4a63; }

/* =============== HEADER =============== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 23, 0.82);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--container); 
    margin: 0 auto; 
    padding: 1rem 2rem;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.logo { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 1.5rem; 
    letter-spacing: 2px; 
    font-weight: 900; 
    color: #fff; 
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;  /* gap'i kaldır */
}
.logo span { color: var(--accent); margin-left: -1px; }
.logo i { color: var(--accent-wiki); }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }

.nav-btn { 
    background: transparent; 
    border: none; 
    color: var(--text-muted); 
    font-size: 0.85rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    cursor: pointer; 
    transition: 0.3s;
    text-decoration: none;
    padding: 0.5rem 0;
}
.nav-btn:hover, .nav-btn.active { 
    color: #fff; 
    text-shadow: none; 
}

.back-btn {
    background: rgba(139, 92, 246, 0.1) !important; 
    color: var(--accent) !important; 
    border: 1px solid var(--accent) !important;
    padding: 0.5rem 1rem; 
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.back-btn:hover { 
    background: var(--accent) !important; 
    color: #000 !important; 
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35); 
}

/* Wiki Button Style */
.nav-btn.wiki-btn {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
    border: 1px solid #10b981 !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nav-btn.wiki-btn:hover {
    background: #10b981 !important;
    color: #000 !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

/* Forum Button Style */
.nav-btn.forum-btn {
    background: rgba(139, 92, 246, 0.1) !important;
    color: var(--accent) !important;
    border: 1px solid var(--accent) !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nav-btn.forum-btn:hover {
    background: var(--accent) !important;
    color: #000 !important;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}

/* Games Library Button */
.games-btn {
    background: rgba(239, 68, 68, 0.1) !important; 
    color: #ef4444 !important; 
    border: 1px solid #ef4444 !important;
    padding: 0.5rem 1rem; 
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.games-btn:hover { 
    background: #ef4444 !important; 
    color: #fff !important; 
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35); 
}

/* Login Button */
.login-btn {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
    border: 1px solid #10b981 !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    margin-left: 10px;
}
.login-btn:hover {
    background: #10b981 !important;
    color: #000 !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

/* Language Dropdown */
.lang-dropdown { position: relative; }
.lang-toggle {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; transition: 0.2s;
    font-size: 0.9rem;
}
.lang-toggle:hover { border-color: #10b981; background: rgba(16,185,129,0.1); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; z-index: 2000;
    background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.25s var(--ease); box-shadow: var(--shadow-lg);
    display: grid; grid-template-columns: 1fr 1fr; padding: 0.5rem; gap: 0.3rem;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-item {
    display: flex; align-items: center; justify-content: flex-start; gap: 8px;
    padding: 0.6rem 0.7rem; cursor: pointer; transition: 0.2s;
    color: #fff; font-size: 0.9rem; border-radius: 6px;
    white-space: nowrap;
}
.lang-item:hover { background: rgba(16,185,129,0.15); }
.lang-item.active { background: rgba(16,185,129,0.2); color: #10b981; font-weight: 600; }

/* Flag Icons Styling */
.lang-toggle .fi { font-size: 1.1rem; border-radius: 2px; line-height: 1; }
.lang-item .fi { font-size: 1.2rem; border-radius: 2px; }     

/* =============== MAIN CONTENT =============== */
main {
    padding-top: var(--header-h);
    min-height: calc(100vh - 100px);
}

.wiki-container {
    max-width: var(--container);
    margin: 0 auto;
    /* üst boşluk sabit ve küçük: header ile içerik/sidebar arası sıkı dursun */
    padding: 0.75rem clamp(1rem, 0.5rem + 2vw, 2rem) clamp(1rem, 0.5rem + 2vw, 2rem);
}

/* Wiki Header */
.wiki-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(11, 15, 23, 0.9) 100%);
    border: 1px solid var(--accent-wiki);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.wiki-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 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='%2310b981' fill-opacity='0.03'%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");
    opacity: 0.5;
}
.wiki-header h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.3rem, 1.1rem + 1.2vw, 1.85rem);
    color: var(--accent-wiki);
    margin-bottom: 0.5rem;
    position: relative;
}
.wiki-header .terminal-lines {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
}
.wiki-header .terminal-lines span {
    display: block;
    margin: 0.3rem 0;
}

/* Wiki Navigation Tabs */
.wiki-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.wiki-nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.2rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
}
.wiki-nav-tab:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--accent-wiki);
    color: var(--accent-wiki);
}
.wiki-nav-tab.active {
    background: var(--accent-wiki);
    color: #000;
    border-color: var(--accent-wiki);
}
.wiki-nav-tab i { font-size: 1rem; }

/* =============== WIKI GRID & SIDEBAR =============== */
.wiki-grid {
    display: grid;
    grid-template-columns: 272px 1fr;
    gap: 2.5rem;
}

.wiki-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 12px);
    height: fit-content;
    max-height: calc(100vh - var(--header-h) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #2b3648 transparent;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    scrollbar-width: thin;
    scrollbar-color: #2b3648 transparent;
}

/* Sidebar group labels */
.wiki-nav-group-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.85;
    padding: 0.9rem 0.75rem 0.35rem;
    user-select: none;
}
.wiki-nav-group-title:first-child { padding-top: 0.35rem; }

.wiki-nav-item {
    padding: 0.7rem 0.85rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
    border-radius: var(--radius-sm);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-height: 42px;
}

.wiki-nav-item:hover {
    color: var(--text-main);
    background: rgba(148, 163, 184, 0.08);
}

.wiki-nav-item.active {
    border-color: rgba(16, 185, 129, 0.35);
    color: #fff;
    background: var(--accent-wiki-soft);
    box-shadow: inset 3px 0 0 var(--accent-wiki);
}

.wiki-nav-item i {
    width: 20px;
    text-align: center;
}

.wiki-content-area {
    min-width: 0;
}

/* =============== WIKI SECTIONS (New Design) =============== */
.wiki-section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.wiki-section.highlight {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-color: rgba(139, 92, 246, 0.3);
}

.wiki-section.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

.wiki-section.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(185, 28, 28, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

.wiki-section.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 95, 70, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.wiki-section h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #a78bfa;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wiki-section h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: #a78bfa;
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wiki-section h3 i {
    font-size: 1rem;
}

.wiki-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: #e2e8f0;
}

.wiki-section p {
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.wiki-section ul, .wiki-section ol {
    margin-left: 1.5rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.wiki-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.wiki-section code {
    background: rgba(139, 92, 246, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: #a78bfa;
}

/* Wiki Section Tables */
.wiki-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.wiki-section th {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
    padding: 1rem;
    text-align: left;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #a78bfa;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wiki-section td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.wiki-section tr:last-child td {
    border-bottom: none;
}

.wiki-section tr:hover td {
    background: rgba(139, 92, 246, 0.1);
}

/* Wiki Section Tips */
.wiki-tip {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 95, 70, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.wiki-tip h4 {
    color: #10b981;
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wiki-tip p {
    color: #a7f3d0;
    font-size: 0.95rem;
    margin: 0;
}

.wiki-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.wiki-warning h4 {
    color: #f59e0b;
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wiki-warning p {
    color: #fcd34d;
    font-size: 0.95rem;
    margin: 0;
}

.wiki-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(185, 28, 28, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.wiki-danger h4 {
    color: #ef4444;
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wiki-danger p {
    color: #fca5a5;
    font-size: 0.95rem;
    margin: 0;
}

/* =============== WIKI CARDS (Legacy) =============== */
.wiki-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.wiki-card h2 {
    font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.55rem);
    margin-bottom: 1rem;
    color: var(--accent-wiki);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}
.wiki-card h3 {
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
    margin: 1.5rem 0 1rem;
    color: #fff;
}
.wiki-card h4 {
    font-size: 1rem;
    margin: 1rem 0 0.5rem;
    color: var(--text-muted);
}
.wiki-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.wiki-card ul, .wiki-card ol {
    margin-left: 20px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.wiki-card li {
    margin-bottom: 0.5rem;
}
.wiki-card code {
    background: rgba(139, 92, 246, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: var(--accent);
}

/* =============== ALERT BOXES =============== */
.alert-box {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}
.alert-box .alert-title {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.alert-box a:not(.btn-dl):not(.btn-feature):not(.btn-primary):not(.btn-secondary):not(.buy-link) {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid currentColor;
    transition: all 0.2s;
    padding: 0 2px;
}
.alert-box a:not(.btn-dl):not(.btn-feature):not(.btn-primary):not(.btn-secondary):not(.buy-link):hover {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: transparent;
    border-radius: 4px;
}
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: #fca5a5;
}
.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: #fcd34d;
}
.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--info);
    color: #93c5fd;
}
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: #6ee7b7;
}

/* =============== TABLES =============== */
.comp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.comp-table th, .comp-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.comp-table th {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-wiki);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.comp-table tr:hover {
    background: rgba(255,255,255,0.02);
}
.comp-table .ok { color: #10b981; font-weight: bold; }
.comp-table .warn { color: #f59e0b; font-weight: bold; }
.comp-table .bad { color: #ef4444; font-weight: bold; }

/* Buy Link Button */
.buy-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.buy-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* =============== ACCORDION =============== */
.accordion-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
.accordion-header:hover {
    background: rgba(16, 185, 129, 0.1);
}
.accordion-header.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-wiki);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}
.accordion-content.open {
    max-height: 1000px;
    padding: 1rem 1.5rem;
}

/* =============== BUTTONS =============== */
.btn-dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    background: var(--accent-wiki);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-dl:hover {
    background: #059669;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-wiki);
    color: var(--accent-wiki);
}
.btn-secondary:hover {
    background: var(--accent-wiki);
    color: #000;
}

/* Feature / CTA Button */
.btn-feature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #000;
    border: none;
    border-radius: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}
.btn-feature::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-15deg);
    transition: left 0.5s ease;
}
.btn-feature:hover::after {
    left: 140%;
}
.btn-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
    color: #000;
}
.btn-feature i {
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
}
.btn-primary:hover {
    background: #7c3aed;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.3);
}

.modal-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    font-family: inherit;
}
.modal-btn:hover {
    transform: translateY(-1px);
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.3rem 0.8rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.2s;
}
.copy-btn:hover {
    background: var(--accent);
    color: #000;
}
.copy-btn.copied {
    background: var(--success);
    border-color: var(--success);
    color: #000;
}

/* =============== ACTION ROWS =============== */
.action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.action-row .alert-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.action-row small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =============== IMAGE GALLERY =============== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.gallery-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}
.gallery-item:hover {
    border-color: var(--accent-wiki);
    transform: scale(1.02);
}
.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.gallery-caption {
    padding: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.5);
    text-align: center;
}

/* =============== CLONE CARDS =============== */
.clone-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.clone-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}
.clone-card:hover {
    border-color: var(--accent-wiki);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}
.clone-img-box {
    height: 180px;
    overflow: hidden;
    background: var(--bg-elevated);
}
.clone-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.clone-content {
    padding: 1.2rem;
}
.clone-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.clone-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}
.badge-success { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

/* =============== STORE CARDS =============== */
.store-card {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border: 1px solid var(--border);
}
.store-card.safe {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
}
.store-card.unsafe {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.3);
}
.store-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}
.store-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =============== DTB ANALYZER =============== */
.dtb-upload-area {
    border: 2px dashed var(--accent-wiki);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    background: rgba(16, 185, 129, 0.03);
    transition: all 0.3s;
    margin: 2rem 0;
}
.dtb-upload-area:hover,
.dtb-upload-area.drag-over {
    background: rgba(16, 185, 129, 0.1);
    border-color: #059669;
}
.dtb-upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.dtb-upload-area h3 {
    margin-bottom: 0.5rem;
    color: #fff;
}
.dtb-upload-area p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.dtb-upload-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-wiki);
    color: #000;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.dtb-upload-btn:hover {
    background: #059669;
}
.dtb-selected-file {
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
}
.dtb-results {
    margin-top: 2rem;
}
.dtb-info-section {
    margin-bottom: 1.5rem;
}
.dtb-loading {
    text-align: center;
    padding: 2rem;
}
.dtb-debug {
    background: var(--bg-elevated);
    padding: 1rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: pre-wrap;
    color: var(--text-muted);
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-wiki);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============== LIGHTBOX =============== */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    cursor: pointer;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
}

/* =============== FOOTER =============== */
footer {
    text-align: center;
    padding: 2.25rem 1.5rem;
    color: var(--text-muted);
    opacity: 0.85;
    font-size: 0.82rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    background: rgba(2, 6, 16, 0.25);
}
footer a {
    color: var(--accent-wiki);
}

/* =============== COMPATIBILITY TABS =============== */
.compat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.compat-tab {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.compat-tab:hover {
    border-color: var(--accent-wiki);
    color: var(--accent-wiki);
}
.compat-tab.active {
    background: var(--accent-wiki);
    color: #000;
    border-color: var(--accent-wiki);
}
.compat-content {
    display: none;
}
.compat-content.active {
    display: block;
}

/* =============== RESPONSIVE =============== */

/* Mobile Sidebar Accordion Toggle */
.sidebar-toggle {
    display: none;
    width: 100%;
    padding: 0.85rem 1.1rem 0.85rem 1.25rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-left: 3px solid var(--accent-wiki);
    border-radius: 10px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-radius 0.25s ease;
    align-items: center;
    justify-content: space-between;
}
.sidebar-toggle:hover {
    background: rgba(16, 185, 129, 0.18);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}
.sidebar-toggle.active {
    background: rgba(16, 185, 129, 0.14);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.sidebar-toggle i {
    color: var(--accent-wiki);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-toggle.active i {
    transform: rotate(180deg);
}
.sidebar-toggle .toggle-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-toggle .toggle-text i:first-child {
    transform: none !important;
}

.sidebar-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-right: 0.35rem;
}

.sidebar-nav-list::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.sidebar-nav-list::-webkit-scrollbar-thumb {
    background: #2b3648;
    border-radius: 3px;
}

.sidebar-nav-list::-webkit-scrollbar-thumb:hover {
    background: #3a4a63;
}

@media (max-width: 900px) {
    .wiki-grid {
        grid-template-columns: 1fr;
    }

    /* Sidebar Accordion */
    .sidebar-toggle {
        display: flex;
    }
    .wiki-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        margin-bottom: 1.25rem;
        background: var(--bg-card);
        padding: 0.75rem;
        border-radius: var(--radius-md);
        border: 1px solid var(--border);
        gap: 0;
        box-shadow: var(--shadow-sm);
    }
    .sidebar-nav-list {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        scrollbar-width: thin;
        scrollbar-color: var(--accent-wiki) rgba(255,255,255,0.05);
    }
    .sidebar-nav-list::-webkit-scrollbar {
        width: 6px;
    }
    .sidebar-nav-list::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.05);
        border-radius: 3px;
    }
    .sidebar-nav-list::-webkit-scrollbar-thumb {
        background: var(--accent-wiki);
        border-radius: 3px;
    }
    .sidebar-nav-list::-webkit-scrollbar-thumb:hover {
        background: #14f195;
    }
    .sidebar-nav-list.open {
        max-height: 60vh;
        overflow-y: auto;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(16, 185, 129, 0.2);
    }
    .wiki-nav-item {
        padding: 0.8rem 1rem;
        font-size: 0.92rem;
        border-radius: var(--radius-sm);
        min-height: 46px;
    }

    /* Forum Sidebar Accordion - 900px */
    .forum-container {
        grid-template-columns: 1fr;
    }
    .forum-sidebar {
        position: static;
        width: 100%;
        background: rgba(21, 29, 46, 0.72);
        border: 1px solid rgba(139, 92, 246, 0.15);
        border-radius: 12px;
        padding: 0.75rem;
        margin-bottom: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    .forum-sidebar-toggle {
        display: flex;
        width: 100%;
        padding: 0.9rem 1rem;
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
        border: 1px solid rgba(139, 92, 246, 0.3);
        border-radius: 10px;
        color: #fff;
        font-family: 'Rajdhani', sans-serif;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        align-items: center;
        justify-content: space-between;
    }
    .forum-sidebar-toggle:hover {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0.1) 100%);
        border-color: var(--accent);
    }
    .forum-sidebar-toggle .toggle-text {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .forum-sidebar-toggle .toggle-text i {
        color: var(--accent);
    }
    .forum-sidebar-toggle .toggle-arrow {
        color: var(--accent);
        transition: transform 0.3s ease;
    }
    .forum-sidebar-toggle.active .toggle-arrow {
        transform: rotate(180deg);
    }
    .forum-sidebar-content {
        display: none;
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 0.75rem;
        margin-top: 0.75rem;
        border-top: 1px solid var(--border);
        max-height: 60vh;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--accent) rgba(255,255,255,0.05);
    }
    .forum-sidebar-content::-webkit-scrollbar {
        width: 6px;
    }
    .forum-sidebar-content::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.05);
        border-radius: 3px;
    }
    .forum-sidebar-content::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 3px;
    }
    .forum-sidebar-content.open {
        display: flex;
    }
}

@media (max-width: 768px) {
    /* Header - Logo gizle, butonları kompakt göster */
    .nav-container {
        padding: 0.75rem 1rem;
        justify-content: center;
    }
    .logo {
        display: none;
    }
    .nav-links {
        gap: 0.5rem;
        flex-wrap: nowrap;
        width: 100%;
        justify-content: center;
    }
    .nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    .nav-btn span {
        display: inline;
    }
    .lang-toggle {
        padding: 0.4rem 0.6rem;
    }
    .lang-label {
        display: none;
    }
    
    /* Main content - Navbar ile üst üste binmeyi önle */
    main {
        padding-top: 70px;
    }
    .wiki-container {
        padding: 1rem;
    }
    .wiki-header {
        padding: 1.5rem;
    }
    .wiki-header h1 {
        font-size: 1.3rem;
    }
    .wiki-nav-tabs {
        gap: 0.3rem;
        padding: 0.5rem;
    }
    .wiki-nav-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    .wiki-nav-tab span {
        display: none;
    }
    
    /* Sidebar Accordion - 768px */
    .sidebar-toggle {
        padding: 0.8rem 1rem 0.8rem 1.1rem;
        font-size: 0.9rem;
    }
    .wiki-sidebar {
        padding: 0.6rem;
    }
    .sidebar-nav-list {
        gap: 0.35rem;
    }
    .sidebar-nav-list.open {
        max-height: 55vh;
    }
    .wiki-nav-item {
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
        gap: 8px;
    }
    .wiki-nav-item span {
        display: inline;
    }
    .wiki-nav-item i {
        margin: 0;
        width: 18px;
        font-size: 0.9rem;
    }
    .wiki-card {
        padding: 1.5rem;
    }
    .clone-layout {
        grid-template-columns: 1fr;
    }
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .action-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .comp-table {
        font-size: 0.8rem;
    }
    .comp-table th, .comp-table td {
        padding: 0.5rem;
    }
    /* WiFi table mobile optimization */
    .comp-table thead {
        display: none;
    }
    .comp-table, .comp-table tbody, .comp-table tr {
        display: block;
        width: 100%;
    }
    .comp-table tr {
        margin-bottom: 1rem;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 8px;
        padding: 0.75rem;
        background: rgba(255,255,255,0.02);
    }
    .comp-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .comp-table td:last-child {
        border-bottom: none;
    }
    .comp-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #10b981;
        margin-right: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.6rem 0.75rem;
    }
    .nav-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    .nav-btn span {
        display: none;
    }
    main {
        padding-top: 60px;
    }
    .wiki-header h1 { font-size: 1.1rem; }
    .wiki-header .terminal-lines { font-size: 0.75rem; }
    .wiki-nav-tab i { font-size: 1.2rem; }
    
    /* Sidebar Accordion - 480px */
    .sidebar-toggle {
        padding: 0.7rem 0.9rem 0.7rem 1rem;
        font-size: 0.85rem;
    }
    .wiki-sidebar {
        padding: 0.5rem;
    }
    .sidebar-nav-list {
        gap: 0.3rem;
    }
    .sidebar-nav-list.open {
        max-height: 50vh;
    }
    .wiki-nav-item {
        padding: 0.55rem 0.75rem;
        font-size: 0.8rem;
    }
    .wiki-nav-item span {
        display: inline;
    }
}

/* =============== FIRMWARE CARDS =============== */
.firmware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.firmware-card {
    background: linear-gradient(145deg, rgba(18, 25, 40, 0.95) 0%, rgba(11, 15, 23, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.firmware-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--fw-accent, var(--accent-wiki));
}

.firmware-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 30px rgba(var(--fw-accent-rgb, 16, 185, 129), 0.1);
}

.firmware-card-header {
    padding: 1.25rem 1.25rem 0.75rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.firmware-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, rgba(var(--fw-accent-rgb, 16, 185, 129), 0.2) 0%, rgba(var(--fw-accent-rgb, 16, 185, 129), 0.05) 100%);
    color: var(--fw-accent, var(--accent-wiki));
    flex-shrink: 0;
}

.firmware-card-title {
    flex: 1;
}

.firmware-card-title h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.firmware-card-title .fw-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.firmware-card-body {
    padding: 0 1.25rem 1rem;
}

.firmware-card-body p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.firmware-card-footer {
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.firmware-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(var(--fw-accent-rgb, 16, 185, 129), 0.15);
    color: var(--fw-accent, var(--accent-wiki));
    border: 1px solid rgba(var(--fw-accent-rgb, 16, 185, 129), 0.3);
}

.firmware-card-badge i {
    font-size: 0.65rem;
}

.firmware-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--fw-accent, var(--accent-wiki)) 0%, color-mix(in srgb, var(--fw-accent, var(--accent-wiki)) 80%, black) 100%);
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.firmware-card-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(var(--fw-accent-rgb, 16, 185, 129), 0.4);
}

/* Firmware Card Color Variants */
.firmware-card.fw-recommended {
    --fw-accent: #10b981;
    --fw-accent-rgb: 16, 185, 129;
}

.firmware-card.fw-stable {
    --fw-accent: #3b82f6;
    --fw-accent-rgb: 59, 130, 246;
}

.firmware-card.fw-modern {
    --fw-accent: #ec4899;
    --fw-accent-rgb: 236, 72, 153;
}

.firmware-card.fw-android {
    --fw-accent: #a855f7;
    --fw-accent-rgb: 168, 85, 247;
}

.firmware-card.fw-clone {
    --fw-accent: #f97316;
    --fw-accent-rgb: 249, 115, 22;
}

.firmware-card.fw-clone-alt {
    --fw-accent: #ef4444;
    --fw-accent-rgb: 239, 68, 68;
}

/* Firmware Section Title */
.firmware-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 2rem 0 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.firmware-section-title i {
    color: var(--accent-wiki);
}

.firmware-section-title:first-of-type {
    margin-top: 0;
}

/* Installation Steps */
.install-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.install-step {
    background: linear-gradient(145deg, rgba(18, 25, 40, 0.9) 0%, rgba(14, 20, 32, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    transition: all 0.3s;
}

.install-step:hover {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.05) 0%, rgba(14, 20, 32, 0.95) 100%);
}

.install-step-number {
    position: absolute;
    top: -10px;
    left: 1rem;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-wiki) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #000;
}

.install-step h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-wiki);
    margin: 0.5rem 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.install-step p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

.install-step .step-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.install-step .step-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    color: var(--accent-wiki);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.install-step .step-link:hover {
    background: var(--accent-wiki);
    color: #000;
}

/* =============== RUFUS GUIDE SECTION =============== */
.guide-intro {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.rufus-guide {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rufus-step {
    background: linear-gradient(145deg, rgba(18, 25, 40, 0.95) 0%, rgba(14, 20, 32, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rufus-step:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1);
}

.rufus-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rufus-step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, var(--accent-wiki) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.rufus-step-header h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rufus-step-header h4 i {
    color: var(--accent-wiki);
}

.rufus-step-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    align-items: center;
}

.rufus-step-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rufus-step-text p {
    font-size: 0.9rem;
    color: #b0bec5;
    line-height: 1.7;
    margin: 0;
}

.rufus-step-text .step-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.rufus-step-text .step-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    color: var(--accent-wiki);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.rufus-step-text .step-link:hover {
    background: var(--accent-wiki);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.rufus-step-text .alert-box {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
}

.rufus-step-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rufus-step-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.rufus-step-image img:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* Rufus Guide Responsive */
@media (max-width: 900px) {
    .rufus-step-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .rufus-step-image {
        order: -1;
    }
    
    .rufus-step-image img {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .rufus-step-header {
        padding: 0.85rem 1rem;
    }
    
    .rufus-step-number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 1rem;
    }
    
    .rufus-step-header h4 {
        font-size: 1rem;
    }
    
    .rufus-step-content {
        padding: 1rem;
    }
    
    .rufus-step-image img {
        max-width: 100%;
    }
}

/* Firmware Page Responsive */
@media (max-width: 768px) {
    .firmware-grid {
        grid-template-columns: 1fr;
    }
    
    .firmware-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .firmware-card-btn {
        justify-content: center;
    }
    
    .install-steps {
        grid-template-columns: 1fr;
    }
}

/* =============== ANIMATIONS =============== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.wiki-card {
    animation: fadeIn 0.5s ease;
}

/* Homer Icon - Precise Color & Alignment */
.icon-homer {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('img/homer.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    /* Varsayılan gri ton (diğer pasif ikonlar gibi) */
    filter: grayscale(100%) brightness(0.6) opacity(0.8);
    transition: all 0.3s ease;
    margin-left: -2px; /* Hafif sola hizalama */
    margin-right: 5px; /* Yazı ile mesafe */
}

/* Aktif veya hover olduğunda yeşil (#10b981) */
.wiki-nav-item:hover .icon-homer,
.wiki-nav-item.active .icon-homer {
    /* Siyah -> Yeşil Dönüşümü */
    filter: brightness(0) invert(53%) sepia(91%) saturate(414%) hue-rotate(113deg) brightness(93%) contrast(88%);
}

/* Simpsons sayfasındaki başlık ikonu - ORİJİNAL RENKLER */
.wiki-card h2 .icon-homer {
     width: 32px;
     height: 32px;
     margin-left: 0;
     margin-right: 10px;
     filter: none; /* Tüm filtreleri kaldır, orijinal PNG renkleri */
}

/* GTA SA Icon - Sidebar Custom Image */
.icon-gtasa {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('img/gtalogo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    /* Varsayılan gri ton (diğer pasif ikonlar gibi) */
    filter: grayscale(100%) brightness(0.6) opacity(0.7);
    transition: all 0.3s ease;
    margin-left: -2px;
    margin-right: 5px;
}

.wiki-nav-item:hover .icon-gtasa {
    filter: none !important; /* Hover yapıldığında orijinal parlak renkler */
    transform: scale(1.1);
}

.wiki-nav-item.active .icon-gtasa {
    filter: grayscale(100%) brightness(0.9) opacity(0.9); /* Aktifken hafif daha belirgin ama hala grimsi */
}

/* Bully: Scholarship Edition Icon - Sidebar Custom Image */
.icon-bully {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('img/scholar.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    filter: grayscale(100%) brightness(0.6) opacity(0.7);
    transition: all 0.3s ease;
    margin-left: -2px;
    margin-right: 5px;
}

.wiki-nav-item:hover .icon-bully {
    filter: sepia(100%) saturate(300%) hue-rotate(320deg) brightness(0.85);
    transform: scale(1.1);
}

.wiki-nav-item.active .icon-bully {
    filter: grayscale(100%) brightness(0.9) opacity(0.9);
}

/* GTA Chinatown Wars Icon - Sidebar Custom Image */
.icon-gtactw {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('img/chinatownwars.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    filter: grayscale(100%) brightness(0.6) opacity(0.7);
    transition: all 0.3s ease;
    margin-left: -2px;
    margin-right: 5px;
}

.wiki-nav-item:hover .icon-gtactw {
    filter: none !important;
    transform: scale(1.1);
}

.wiki-nav-item.active .icon-gtactw {
    filter: grayscale(100%) brightness(0.9) opacity(0.9);
}

/* Sidebar genel liste ayarı */
.sidebar-nav-list .wiki-nav-item i,
.sidebar-nav-list .wiki-nav-item .icon-homer,
.sidebar-nav-list .wiki-nav-item .icon-gtasa,
.sidebar-nav-list .wiki-nav-item .icon-gtactw,
.sidebar-nav-list .wiki-nav-item .icon-bully {
    min-width: 20px;
    text-align: center;
}

/* =============== CONTACT MODAL =============== */
.contact-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.contact-modal-overlay.active .contact-modal {
    transform: translateY(0) scale(1);
}

.contact-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.contact-close:hover {
    background: var(--danger);
    color: #fff;
}

.contact-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-header i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.contact-header h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    margin: 0;
}

.contact-form-group {
    margin-bottom: 1.2rem;
}

.contact-form-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: 0.2s;
}

.contact-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.05);
}

.contact-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, #6d28d9 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.contact-status.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    display: block;
}

.contact-status.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    display: block;
}

/* =============== AUTH & FORUM STYLES =============== */

/* Auth Header Area */
.auth-area {
    display: flex;
    align-items: center;
}

.login-btn {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid #10b981;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.login-btn:hover {
    background: #10b981;
    color: #000;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

/* User Toggle Button (Logged In) */
.user-toggle {
    background: rgba(59, 130, 246, 0.1) !important; /* Azure/Blue Tint */
    color: #3b82f6 !important; /* Azure Blue */
    border: 1px solid #3b82f6 !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-left: 10px;
    letter-spacing: 0.5px;
}

.user-toggle:hover {
    background: #3b82f6 !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
}

.user-toggle img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: 0.3s;
}

.user-toggle:hover img {
    border-color: #fff;
    transform: scale(1.1);
}

.user-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 260px;
    background: var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 0;
    display: none;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    z-index: 2000;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.user-menu.show {
    display: flex;
}

/* Afilli User Info Header */
.user-info-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.user-info-header strong {
    font-size: 1.1rem;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

/* Badge Styles in Menu */
.user-info-header .badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 0; /* Override default */
}

/* Specific Role Badges */
.badge.admin {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    border: 1px solid #ef4444;
}

.badge.moderator {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    border: 1px solid #f59e0b;
}

.badge.user {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    border: 1px solid #3b82f6;
}

/* Menu Links */
.user-menu a {
    padding: 0.9rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid transparent;
}

.user-menu a:hover {
    background: rgba(255,255,255,0.03);
    color: #fff;
    border-left-color: #3b82f6;
    padding-left: 1.8rem;
}

.user-menu a:last-child {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #ef4444;
}

.user-menu a:last-child:hover {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
}

/* Forum Layout */
.forum-container {
    display: grid !important;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 1rem;
    align-items: flex-start;
}

.forum-sidebar {
    background: rgba(21, 29, 46, 0.72);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Forum Sidebar Accordion Toggle - Hidden on Desktop */
.forum-sidebar-toggle {
    display: none;
}

/* Forum Sidebar Content - Always visible on Desktop */
.forum-sidebar-content {
    display: block;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-stats {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.sidebar-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sidebar-stat i {
    color: var(--accent);
    width: 20px;
}

.sidebar-stat span {
    font-weight: 700;
    color: #fff;
}

.sidebar-stat small {
    opacity: 0.7;
}

.forum-main {
    min-width: 0;
    width: 100%;
}

/* Forum Categories */
.cat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.cat-link i {
    font-size: 0.75rem;
    opacity: 0.6;
}

.cat-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.cat-link.active {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
}

.cat-link.active i {
    opacity: 1;
}

.new-topic-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    transition: all 0.2s ease;
    border: none;
}

.new-topic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Sort Toolbar */
.sort-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(21, 29, 46, 0.55);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 8px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.sort-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-label i {
    color: var(--accent);
    font-size: 0.75rem;
}

.sort-options {
    display: flex;
    gap: 0.3rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.sort-options::-webkit-scrollbar {
    display: none;
}

.sort-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.sort-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sort-btn.active {
    background: var(--accent);
    color: #fff;
}

/* Forum List - Reddit Style Compact */
.topic-item {
    background: rgba(21, 29, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.topic-item:hover {
    background: rgba(28, 28, 40, 0.7);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.topic-main {
    flex: 1;
    min-width: 0;
}

.topic-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.4rem;
}

.pinned-badge {
    color: var(--accent);
    font-size: 0.75rem;
}

.topic-title {
    font-size: 1rem;
    font-weight: 500;
    color: #e2e8f0;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.topic-title:hover {
    color: var(--accent);
}

.topic-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.topic-author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.topic-author:hover {
    color: #fff;
}

.topic-author-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.topic-date {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.7;
}

.topic-date i {
    font-size: 0.65rem;
}

.topic-last-reply {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-size: 0.7rem;
}

.topic-last-reply i {
    font-size: 0.6rem;
}

.topic-last-reply .reply-time {
    color: var(--text-muted);
    margin-left: 2px;
}

.go-to-last-post {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    color: var(--accent);
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.65rem;
    text-decoration: none;
    vertical-align: middle;
}

.go-to-last-post:hover {
    background: var(--accent);
    color: #fff !important;
    transform: translateX(3px);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
    border-color: var(--accent);
}

.go-to-last-post i {
    font-size: 0.6rem !important;
}

/* Compact Stats */
.topic-stats-compact {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.stat-compact {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.stat-compact i {
    font-size: 0.75rem;
    opacity: 0.6;
}

.stat-compact span {
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 768px) {
    .forum-container { grid-template-columns: 1fr; }
    .forum-sidebar {
        position: static;
        margin-bottom: 1rem;
    }
    .sort-toolbar { padding: 0.5rem 0.75rem; }
    .sort-options { width: 100%; }
    .sort-btn { flex: 1; text-align: center; padding: 0.35rem 0.5rem; font-size: 0.7rem; }
    .forum-main {
        min-width: 0;
        padding-top: 1rem;
    }

    .topic-item { padding: 0.75rem 1rem; }
    .topic-stats-compact { gap: 0.75rem; }
    .stat-compact { font-size: 0.75rem; }
}

/* Single Thread View - Legacy styles removed, see FORUM STYLES section */

.post-body {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.7;
}

.post-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

.editor-area {
    margin-top: 2rem;
    background: rgba(21, 29, 46, 0.72);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.editor-toolbar {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.editor-btn {
    background: rgba(255,255,255,0.05);
    border: none;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
}

.editor-btn:hover { background: rgba(255,255,255,0.1); }

textarea.forum-input {
    width: 100%;
    background: #000;
    border: 1px solid var(--border);
    color: #fff;
    padding: 1rem;
    border-radius: 4px;
    min-height: 150px;
    font-family: inherit;
    resize: vertical;
}

/* Auth Pages */
.auth-container {
    max-width: 400px;
    margin: 4rem auto;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.auth-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    color: #fff;
}

.auth-btn {
    width: 100%;
    background: var(--accent);
    color: #fff;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.auth-btn:hover { background: #7c3aed; }

/* Responsive Forum - Sidebar only */
@media (max-width: 768px) {
    .forum-container { grid-template-columns: 1fr; }
}

/* =============== NEW AUTH MODAL (WORLD CLASS) =============== */
.auth-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    width: 900px;
    max-width: 95%;
    background: var(--bg-card);
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.auth-modal-overlay.active .auth-modal {
    transform: scale(1) translateY(0);
}

.auth-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}
.auth-close:hover { color: #fff; transform: rotate(90deg); }

/* Left Sidebar of Modal */
.auth-sidebar {
    width: 40%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(11, 15, 23, 0.9) 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 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='%2310b981' fill-opacity='0.05'%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");
    opacity: 0.5;
}

.auth-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    position: relative;
    z-index: 2;
}
.auth-logo span { color: var(--accent); }

.auth-text h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    color: var(--accent-wiki);
    margin-bottom: 0.5rem;
}
.auth-text p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Right Content Area */
.auth-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.auth-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
    transition: 0.3s;
}

.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
}

.auth-tab.active { color: #fff; }
.auth-tab.active::after { width: 100%; }

/* Forms */
.auth-form {
    display: none;
    animation: fadeIn 0.4s ease;
}
.auth-form.active { display: block; }

.auth-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: 0.3s;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1rem 1rem 2.8rem;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.input-group input:focus + i { color: var(--accent); }

.password-toggle {
    left: auto !important;
    right: 15px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 10;
}

.password-toggle:hover {
    opacity: 1;
    color: var(--accent);
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}
.auth-remember input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.auth-remember .auth-remember-box {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}
.auth-remember .auth-remember-box i {
    font-size: 0.7rem;
    color: #fff;
    opacity: 0;
    transition: 0.2s;
}
.auth-remember input[type="checkbox"]:checked + .auth-remember-box {
    background: var(--accent);
    border-color: var(--accent);
}
.auth-remember input[type="checkbox"]:checked + .auth-remember-box i {
    opacity: 1;
}
.auth-remember:hover .auth-remember-box {
    border-color: var(--accent);
}

.auth-action-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, #6d28d9 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.auth-action-btn.register {
    background: linear-gradient(135deg, var(--accent-wiki) 0%, #059669 100%);
}
.auth-action-btn.register:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* Status Messages */
.auth-status {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    min-height: 20px;
    text-align: center;
}
.auth-status.error { color: var(--danger); }
.auth-status.success { color: var(--success); }

@media (max-width: 768px) {
    .auth-modal { flex-direction: column; width: 95%; }
    .auth-sidebar { display: none; } /* Mobileda sol tarafı gizle */
    .auth-content { padding: 2rem; }
}

/* =============== PROFILE PAGE STYLES =============== */
.profile-header {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.profile-cover {
    height: 150px;
    background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
    opacity: 0.8;
}

.profile-info-bar {
    padding: 1rem 2rem;
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    position: relative;
    top: -40px;
    margin-bottom: -20px;
}

.profile-avatar-container {
    padding: 4px;
    background: var(--bg-card);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.profile-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-body);
    background: #000;
}

.profile-details {
    flex: 1;
    padding-bottom: 10px;
}

.profile-details h2 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    padding-bottom: 15px;
}

.p-stat {
    text-align: center;
}

.p-stat strong {
    display: block;
    font-size: 1.5rem;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
}

.p-stat span {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.profile-tab-content {
    margin-top: 1rem;
}

/* =============== FORUM STYLES =============== */

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent);
}

/* Thread Header */
.thread-header {
    background: rgba(21, 29, 46, 0.72);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.thread-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.thread-header h1 {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    line-height: 1.3;
    flex: 1;
}

.thread-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.action-btn.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.action-btn.success:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    color: var(--success);
}

.thread-meta {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.thread-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.thread-meta i {
    color: var(--accent);
    font-size: 0.75rem;
    opacity: 0.8;
}

.thread-category {
    background: rgba(139, 92, 246, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    color: var(--accent);
}

.post-item {
    background: rgba(21, 29, 46, 0.72);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 180px 1fr;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    scroll-margin-top: 100px;
}

/* Highlight targeted post */
.post-item:target {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
    animation: highlight-pulse 2s ease-out;
}

@keyframes highlight-pulse {
    0% { background: rgba(139, 92, 246, 0.2); }
    100% { background: rgba(21, 29, 46, 0.72); }
}

.post-user {
    background: rgba(12, 12, 20, 0.5);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-right: 1px solid rgba(139, 92, 246, 0.1);
    grid-row: 1;
    transition: background 0.3s ease;
}

.post-user:hover {
    background: rgba(21, 29, 46, 0.66);
}

.post-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.post-avatar:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}



.post-user-info {
    text-align: center;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.user-name-link {
    color: #fff;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
    max-width: 100%;
    text-align: center;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.user-name-link:hover {
    color: var(--accent);
}

.post-user .badge {
    align-self: center;
    font-size: 0.6rem;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.post-user-stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    width: 100%;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.post-user-stats .stat-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
    font-weight: 500;
}

.post-user-stats .stat-item:hover {
    color: #fff;
}

.post-user-stats .stat-item i {
    font-size: 0.85rem;
    color: var(--accent);
    opacity: 0.8;
}

.post-user-stats .stat-item span {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.post-user-pm-btn {
    margin-top: 10px;
    padding: 0.45rem 0.6rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: 0.2s;
}
.post-user-pm-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.6);
    color: #fbbf24;
}

.post-content-wrapper {
    display: flex;
    flex-direction: column;
    grid-column: 2;
    grid-row: 1 / -1;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.post-number {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.post-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-time i {
    color: var(--accent);
    opacity: 0.7;
}

.post-content {
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cbd5e1;
    flex: 1;
}

.post-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    color: var(--accent);
}

.post-content blockquote {
    border-left: 3px solid var(--accent);
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 8px 8px 0;
    color: var(--text-muted);
    font-style: italic;
}

.post-content a {
    color: var(--accent);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content img.post-image {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

.quote-block {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-top: 1px solid rgba(255,255,255,0.03);
    border-right: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* Nested quotes styling */
.quote-block .quote-block {
    margin: 0.5rem 0;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

/* Enhanced quote features - Height based with shadow */
.quote-text-full {
    padding-top: 8px;
    color: #cbd5e1;
    max-height: 200px; /* Initial height limit */
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

/* Remove height limit when the details sibling is open */
.quote-block:has(.quote-details[open]) .quote-text-full {
    max-height: none;
}

/* Shadow/Fade effect when collapsed - Only show if marked as expandable and not open */
.quote-block.is-expandable:not(:has(.quote-details[open])) .quote-text-full::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(14, 20, 32, 0.95));
    pointer-events: none;
    z-index: 2;
}

/* Explicitly hide shadow if not expandable */
.quote-block:not(.is-expandable) .quote-text-full::after {
    display: none !important;
}

.quote-details {
    display: block;
}

.quote-summary {
    color: var(--accent);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Dynamic text based on global language variables */
.quote-summary::after {
    content: var(--text-read-more, "See More") !important;
}

.quote-details[open] .quote-summary::after {
    content: var(--text-show-less, "Show Less") !important;
}

.quote-summary::before {
    content: "\f078"; /* Chevron Down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform 0.3s;
}

.quote-details[open] .quote-summary::before {
    content: "\f077"; /* Chevron Up */
}

.quote-details[open] .quote-summary {
    margin-top: 5px;
}

.quote-block .img-wrapper {
    max-width: 35% !important;
    margin: 0.5rem !important;
    padding: 5px !important;
}

.quote-block .img-text-placeholder {
    font-size: 0.8rem !important;
    margin: 0.5rem 0 !important;
    padding: 0.5rem !important;
    min-height: 0 !important;
}

.quote-block img {
    max-height: 300px !important;
}

.quote-block img {
    max-height: 200px !important;
}

.quote-details[open] + .quote-text-short {
    display: none;
}

/* Hide short text when details is open */
.quote-details[open] ~ .quote-text-short {
    display: none;
}

.quote-author {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quote-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.post-footer {
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.post-actions {
    display: flex;
    gap: 0.5rem;
}

.post-action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
}

.post-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.post-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Create Topic Form */
.create-topic-form {
    background: rgba(21, 29, 46, 0.72);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.create-topic-form h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.create-topic-form h2 i {
    color: var(--accent);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
}

.form-input.pm-input-locked {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
    font-weight: 600;
    cursor: not-allowed;
    user-select: none;
}
.form-input.pm-input-locked:focus {
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.06);
}
.pm-locked-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.pm-locked-hint i { color: rgba(139, 92, 246, 0.8); }

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
    gap: 8px;
}

/* Rich Editor */
.rich-editor {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.editor-toolbar {
    display: flex;
    gap: 2px;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.toolbar-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 6px;
}

.editor-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.editor-content {
    min-height: 200px;
    padding: 1rem;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.6;
}

.editor-content:focus {
    outline: none;
}

.editor-content:empty::before {
    content: attr(data-placeholder);
    color: var(--text-muted);
    pointer-events: none;
}

.editor-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
}

/* Editor Image Wrapper Styles */
.editor-content .img-wrapper {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 1rem; /* Unified padding */
    border: 1px solid rgba(255,255,255,0.05);
    margin: 1rem 0;
}

.editor-content .img-wrapper.center {
    display: flex;
    justify-content: center;
    width: 100%;
    clear: both;
}

.editor-content .img-wrapper.left {
    float: left;
    clear: both;
    width: auto;
    max-width: 40%;
    margin-right: 1.5rem;
    margin-top: 0 !important;
    margin-bottom: 1rem;
}

.editor-content .img-wrapper.right {
    float: right;
    clear: both;
    width: auto;
    max-width: 40%;
    margin-left: 1.5rem;
    margin-top: 0 !important;
    margin-bottom: 1rem;
}

.editor-content .img-wrapper img {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    object-fit: contain;
    display: block;
}

/* Image placeholder text styling */
.img-text-placeholder {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 1rem 0 !important;
    overflow: hidden; /* Creates BFC to stay next to float */
    display: flow-root; /* Modern BFC creation */
    clear: none;
    transition: all 0.2s ease;
    padding: 1rem; /* Unified padding */
    background: rgba(139, 92, 246, 0.08);
    border: 1px dashed rgba(139, 92, 246, 0.3);
    border-left: 3px solid rgba(139, 92, 246, 0.8);
    border-radius: 4px;
    min-height: 50px;
}

/* Editor specific tweaks */
.editor-content .img-text-placeholder {
    font-style: italic;
    cursor: text;
}

.editor-content .img-text-placeholder:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.6);
}

/* Post view specific - hide if empty, otherwise keep the box style */
.post-content .img-text-placeholder {
    font-style: normal;
    color: #cbd5e1;
    min-height: 0;
}

.post-content .img-text-placeholder:empty,
.post-content .img-text-placeholder:is(:empty, [data-empty="true"]),
.post-content .img-text-placeholder:has(> br:only-child) {
    display: none;
}

.img-text-placeholder + * {
    clear: both;
}

.editor-content::after,
.post-content::after {
    content: "";
    display: table;
    clear: both;
}

.editor-content p,
.post-content p {
    margin: 0.5rem 0;
}

/* Clear floats helper */
.editor-content::after,
.post-content::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    .editor-content .img-wrapper.left,
    .editor-content .img-wrapper.right {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 1rem 0;
    }
}

.editor-content blockquote {
    border-left: 3px solid var(--accent);
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 6px 6px 0;
}

/* Editor Modals */
.editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.editor-modal-content {
    background: rgba(18, 25, 40, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
}

.editor-modal-large {
    max-width: 700px;
}

.editor-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.editor-modal-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-modal-header h3 i {
    color: var(--accent);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.editor-modal-body {
    padding: 1.25rem;
}

.modal-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
}

.modal-input:focus {
    outline: none;
    border-color: var(--accent);
}

.editor-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Image Upload Tabs */
.image-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.image-tab {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    font-family: inherit;
}

.image-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.image-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.image-tab-content {
    display: none;
}

.image-tab-content.active {
    display: block;
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.upload-area:hover {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.05);
}

.upload-area i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.upload-area p {
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
}

.upload-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

#upload-preview {
    position: relative;
    margin-top: 1rem;
}

#upload-preview img {
    max-width: 100%;
    border-radius: 8px;
}

.remove-preview {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
}

#modal-upload-status {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--accent);
}



@media (max-width: 768px) {
    .thread-header {
        padding: 1rem 1.25rem;
    }
    .thread-header h2 {
        font-size: 1.2rem;
    }
    .thread-header .topic-meta {
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    .post-item { grid-template-columns: 1fr; }
    .post-user {
        width: 100%;
        flex-direction: row;
        padding: 1rem;
        border-right: none;
        border-bottom: none;
        align-items: center;
        gap: 1rem;
        grid-row: 1;
    }
    .post-avatar { width: 50px; height: 50px; }
    .post-user-info { text-align: left; align-items: flex-start; }
    .post-user .badge { align-self: flex-start; }
    .post-user-stats {
        width: auto;
        margin: 0;
        padding: 0;
        margin-left: auto;
        border-top: none;
    }
    .post-user-stats .stat-item {
        font-size: 0.75rem;
    }
    .post-user-stats .stat-item i {
        font-size: 0.75rem;
    }
    .post-content-wrapper {
        grid-column: 1;
        grid-row: 2;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .post-footer { grid-column: 1; grid-row: 3; }
    .post-time {
        padding: 0.6rem 1rem;
        font-size: 0.7rem;
    }

    /* Forum Mobile Styles - Accordion Style */
    .forum-container {
        display: block;
    }

    .forum-container .forum-sidebar {
        position: static;
        width: 100%;
        background: rgba(21, 29, 46, 0.72);
        border: 1px solid rgba(139, 92, 246, 0.15);
        border-radius: 12px;
        padding: 0.75rem;
        margin-bottom: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    /* Forum Sidebar Toggle Button - Accordion Style */
    .forum-sidebar-toggle {
        display: flex !important;
        width: 100%;
        padding: 0.9rem 1rem;
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
        border: 1px solid rgba(139, 92, 246, 0.3);
        border-radius: 10px;
        color: #fff;
        font-family: 'Rajdhani', sans-serif;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        align-items: center;
        justify-content: space-between;
    }

    .forum-sidebar-toggle:hover {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0.1) 100%);
        border-color: var(--accent);
    }

    .forum-sidebar-toggle .toggle-text {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .forum-sidebar-toggle .toggle-text i {
        color: var(--accent);
    }

    .forum-sidebar-toggle .toggle-arrow {
        color: var(--accent);
        transition: transform 0.3s ease;
    }

    .forum-sidebar-toggle.active .toggle-arrow {
        transform: rotate(180deg);
    }

    /* Forum Sidebar Content - Hidden by default on mobile */
    .forum-sidebar-content {
        display: none;
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 0.75rem;
        margin-top: 0.75rem;
        border-top: 1px solid var(--border);
        max-height: 60vh;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--accent) rgba(255,255,255,0.05);
    }

    .forum-sidebar-content::-webkit-scrollbar {
        width: 6px;
    }

    .forum-sidebar-content::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.05);
        border-radius: 3px;
    }

    .forum-sidebar-content::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 3px;
    }

    .forum-sidebar-content.open {
        display: flex;
    }

    /* New Topic Button on mobile */
    .forum-sidebar-content .new-topic-btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    /* Sidebar sections on mobile */
    .forum-sidebar-content .sidebar-section {
        margin-bottom: 0.75rem;
    }

    .forum-sidebar-content .sidebar-section h4 {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }

    .forum-sidebar-content .cat-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    .forum-sidebar-content .sidebar-stats {
        padding: 0.75rem;
        margin-top: 0.5rem;
    }

    .forum-sidebar-content .sidebar-stat {
        padding: 0.4rem 0;
        font-size: 0.8rem;
    }

    .thread-header h1 {
        font-size: 1.2rem;
    }

    .thread-actions {
        margin-top: 0.5rem;
    }
}

/* Wiki Link Button */
.wiki-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-wiki);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.wiki-link-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateX(3px);
}

/* Wiki Link Button in Alert Boxes */
.alert-box .wiki-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    margin-left: 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-bottom: 1px solid rgba(16, 185, 129, 0.4) !important;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
}

.alert-box .wiki-link-btn:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.6);
    border-bottom-color: rgba(16, 185, 129, 0.6) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.alert-box .wiki-link-btn i {
    font-size: 0.8rem;
}

.alert-box p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0;
}

/* =============== PROFILE MODAL ADMIN BUTTONS =============== */
.profile-admin-btn {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.profile-admin-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.profile-admin-btn.danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.profile-admin-btn.danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.profile-admin-btn.success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.profile-admin-btn.success:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.profile-admin-btn.info {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

.profile-admin-btn.info:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.profile-admin-btn i {
    font-size: 1rem;
}

/* =============== CUSTOM DROPDOWN SYSTEM =============== */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.custom-select:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

.custom-select.active {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.custom-select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    transition: transform 0.3s;
    pointer-events: none;
}

.custom-select.active .custom-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-icon {
    font-size: 1rem;
    color: var(--accent);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(18, 18, 24, 0.98);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.custom-select-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.custom-select-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #fff;
    padding-left: 1.25rem;
}

.custom-select-option.selected {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent);
    font-weight: 600;
}

.custom-select-option.selected::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    color: var(--accent);
}

.custom-select-option-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.custom-select-search {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: rgba(18, 18, 24, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.custom-select-search input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
}

.custom-select-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.custom-select-dropdown::-webkit-scrollbar {
    width: 8px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

/* Small variant */
.custom-select-wrapper.small .custom-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.custom-select-wrapper.small .custom-select-arrow {
    right: 0.75rem;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .custom-select-dropdown {
        max-height: 250px;
    }
}

/* Forum Pagination & Quoting Enhancements */
html {
    scroll-behavior: smooth;
}

.forum-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    transition: all 0.2s ease;
}

.page-link:hover, .page-link.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.page-dots {
    color: var(--text-muted);
    font-weight: 700;
    padding: 0 4px;
}

.quote-hashtag {
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(139, 92, 246, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.2s ease;
}

.quote-hashtag:hover {
    background: var(--accent);
    color: #000;
}

.post-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--accent);
    opacity: 0.8;
}

/* ── AML Flash Banner (shared across all device pages) ── */
.aml-flash-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, rgba(79,195,247,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(79,195,247,0.2);
    border-left: 4px solid #4FC3F7;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.aml-flash-banner-icon {
    width: 44px;
    height: 44px;
    background: rgba(79,195,247,0.1);
    border: 1px solid rgba(79,195,247,0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4FC3F7;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.aml-flash-banner-text {
    flex: 1;
    min-width: 180px;
}
.aml-flash-banner-text strong {
    display: block;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 3px;
}
.aml-flash-banner-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.aml-flash-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79,195,247,0.12);
    border: 1px solid rgba(79,195,247,0.35);
    color: #4FC3F7;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.25s ease;
}
.aml-flash-btn:hover {
    background: #4FC3F7;
    color: #000;
    box-shadow: 0 4px 16px rgba(79,195,247,0.3);
    transform: translateY(-2px);
}
/* =============== SIDEBAR GAME GUIDES HUB (Theme 2.0) =============== */
.sidebar-games-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-wiki);
    padding: 0.35rem 0.4rem 0.5rem;
    user-select: none;
}
.sidebar-games-title i { font-size: 0.8rem; }

.sidebar-games {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border);
    min-width: 0;
    max-width: 100%;
}

.game-chip {
    --chip-c: var(--accent-wiki);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 82px;
    padding: 0.65rem 0.4rem 0.55rem;
    background: var(--bg-elevated);
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--chip-c) 14%, transparent), transparent 55%),
        var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.game-chip:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--chip-c) 55%, transparent);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--chip-c) 18%, transparent);
}
.game-chip.active {
    border-color: var(--chip-c);
    box-shadow: inset 0 0 0 1px var(--chip-c), 0 4px 14px color-mix(in srgb, var(--chip-c) 22%, transparent);
}
.game-chip.wide { grid-column: 1 / -1; flex-direction: row; min-height: 58px; justify-content: flex-start; padding: 0.5rem 0.75rem; }
.game-chip.wide .game-chip-art { height: 34px; }

.game-chip-art {
    height: 30px;
    max-width: 92%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transition: transform 0.2s var(--ease);
}
.game-chip:hover .game-chip-art { transform: scale(1.06); }

.game-chip-ico {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 1.05rem;
    color: #0b0f17;
    background: var(--chip-c);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--chip-c) 40%, transparent);
}

.game-chip-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--text-main);
    text-align: center;
    line-height: 1.15;
}
.game-chip-sub {
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.game-chip-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
}
.game-chip.wide .game-chip-text { align-items: flex-start; }

/* Mobile: always-visible horizontal strip (outside the accordion) */
@media (max-width: 900px) {
    .sidebar-games {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0.65rem 0.15rem 0.75rem;
        margin-bottom: 0.25rem;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .sidebar-games::-webkit-scrollbar { display: none; }
    .game-chip,
    .game-chip.wide {
        flex: 0 0 auto;
        min-width: 118px;
        min-height: 72px;
        flex-direction: column;
        justify-content: center;
        padding: 0.5rem 0.6rem;
        scroll-snap-align: start;
    }
    .game-chip.wide .game-chip-text { align-items: center; }
    .sidebar-games-title { padding-top: 0.6rem; }
}

