/* AI MARCUS COMMUNITY — Premium Blog Theme */

:root {
    --bg-primary: #06060b;
    --bg-secondary: #0d0d15;
    --bg-card: #12121d;
    --bg-card-hover: #16162a;
    --bg-elevated: #1a1a2e;
    --bg-input: #0f0f1a;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(139,92,246,0.3);
    --border-active: rgba(139,92,246,0.5);
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #9090a8;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-glow: rgba(139,92,246,0.15);
    --accent-gradient: linear-gradient(135deg, #8b5cf6, #06b6d4);
    --green: #10b981;
    --red: #ef4444;
    --red-bg: rgba(239,68,68,0.1);
    --orange: #f59e0b;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow-glow: 0 0 30px rgba(139,92,246,0.15);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; min-height: 100vh; overflow-x: hidden; }
a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }

/* HEADER */
.header { position: sticky; top: 0; z-index: 100; background: rgba(6,6,11,0.85); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-size: 20px; font-weight: 700; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-badge { font-size: 12px; color: var(--text-muted); font-weight: 400; padding: 3px 10px; border: 1px solid var(--border); border-radius: 20px; letter-spacing: 0.5px; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: var(--radius-sm); border: none; cursor: pointer; font-size: 14px; font-weight: 500; font-family: var(--font); transition: all var(--transition); white-space: nowrap; }
.btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: 0 2px 12px rgba(139,92,246,0.3); }
.btn-primary:hover { box-shadow: 0 4px 20px rgba(139,92,246,0.5); transform: translateY(-1px); text-decoration: none; }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text-primary); background: rgba(255,255,255,0.06); text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: var(--red-bg); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 8px; }

/* User badge */
.user-badge { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 24px; background: var(--bg-elevated); border: 1px solid var(--border); }
.user-avatar-sm { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #fff; }
.user-badge-name { font-size: 13px; color: var(--text-primary); font-weight: 500; }

/* LAYOUT */
.layout { max-width: 1280px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 240px 1fr 260px; gap: 24px; }
@media (max-width: 1100px) { .layout { grid-template-columns: 1fr; } .sidebar-left, .sidebar-right { display: none; } }

/* SIDEBAR */
.sidebar-left, .sidebar-right { position: sticky; top: 84px; align-self: start; }
.sidebar-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; transition: border-color var(--transition); }
.sidebar-section:hover { border-color: var(--border-hover); }
.sidebar-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-secondary); margin-bottom: 14px; font-weight: 600; }
.nav-list { list-style: none; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; color: var(--text-secondary); transition: all var(--transition); position: relative; overflow: hidden; }
.cat-count { margin-left: auto; font-size: 12px; color: var(--text-muted); font-weight: 500; min-width: 20px; text-align: right; }
.nav-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); border-radius: 0 3px 3px 0; opacity: 0; transform: scaleY(0); transition: all var(--transition); }
.cat-count { margin-left: auto; font-size: 12px; color: var(--text-muted); font-weight: 500; min-width: 20px; text-align: right; }
.nav-item:hover { background: rgba(255,255,255,0.03); color: var(--text-primary); }
.cat-count { margin-left: auto; font-size: 12px; color: var(--text-muted); font-weight: 500; min-width: 20px; text-align: right; }
.nav-item.active { background: var(--accent-glow); color: var(--accent-light); }
.cat-count { margin-left: auto; font-size: 12px; color: var(--text-muted); font-weight: 500; min-width: 20px; text-align: right; }
.nav-item.active::before { opacity: 1; transform: scaleY(1); }
.cat-count { margin-left: auto; font-size: 12px; color: var(--text-muted); font-weight: 500; min-width: 20px; text-align: right; }
.nav-icon { font-size: 18px; width: 24px; text-align: center; }

/* Write button */
.write-btn { width: 100%; padding: 12px; border: none; border-radius: var(--radius); background: var(--accent-gradient); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font); display: flex; align-items: center; justify-content: center; gap: 8px; transition: all var(--transition); box-shadow: 0 4px 20px rgba(139,92,246,0.3); }
.write-btn:hover { box-shadow: 0 6px 30px rgba(139,92,246,0.5); transform: translateY(-2px); }

/* Trending */
.trending-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: all var(--transition); }
.trending-item:last-child { border-bottom: none; }
.trending-item:hover .trending-title { color: var(--accent-light); }
.trending-rank { font-size: 22px; font-weight: 800; color: var(--text-muted); min-width: 28px; opacity: 0.4; }
.trending-title { font-size: 13px; font-weight: 600; line-height: 1.4; transition: color var(--transition); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trending-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* TOOLBAR */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 200px; position: relative; }
.search-box input { width: 100%; padding: 11px 16px 11px 44px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 14px; font-family: var(--font); outline: none; transition: all var(--transition); }
.search-box input:focus { border-color: var(--border-active); box-shadow: 0 0 0 3px var(--accent-glow); }
.search-box input::placeholder { color: var(--text-muted); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.sort-tabs { display: flex; gap: 2px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; }
.sort-tab { padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--text-muted); cursor: pointer; border: none; background: none; font-family: var(--font); transition: all var(--transition); }
.sort-tab:hover { color: var(--text-secondary); }
.sort-tab.active { background: var(--accent-glow); color: var(--accent-light); }

/* POST CARD */
.posts-list { display: flex; flex-direction: column; gap: 16px; }
.post-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all var(--transition); cursor: pointer; position: relative; overflow: hidden; }
.post-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent-gradient); opacity: 0; transition: opacity var(--transition); }
.post-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.post-card:hover::before { opacity: 1; }
.post-card.pinned { border-left: 3px solid var(--orange); }
.pc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pc-avatar { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0; }
.pc-avatar[data-color="1"] { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.pc-avatar[data-color="2"] { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.pc-avatar[data-color="3"] { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.pc-avatar[data-color="4"] { background: linear-gradient(135deg, #10b981, #06b6d4); }
.pc-avatar[data-color="5"] { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.pc-meta { flex: 1; }
.pc-author { font-weight: 600; font-size: 14px; }
.pc-info { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pc-category { font-size: 11px; font-weight: 600; letter-spacing: 0.3px; padding: 3px 10px; border-radius: 20px; background: var(--accent-glow); color: var(--accent-light); }
.pc-title { font-size: 20px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; color: var(--text-primary); transition: color var(--transition); }
.post-card:hover .pc-title { color: var(--accent-light); }
.pc-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.pc-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.pc-stats { display: flex; align-items: center; gap: 16px; }
.pc-stat { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-muted); }
.pc-stat svg { width: 16px; height: 16px; }
.pc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; color: var(--accent-light); padding: 4px 12px; background: rgba(212,175,55,0.1); border-radius: 20px; border: 1px solid rgba(212,175,55,0.25); transition: all var(--transition); }
.tag:hover { border-color: rgba(212,175,55,0.5); color: #d4af37; background: rgba(212,175,55,0.15); }

/* POST VIEW */
.post-view { display: none; }
.post-view.active { display: block; animation: fadeUp 0.3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.pv-back { margin-bottom: 20px; }
.pv-article { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.pv-body { padding: 36px; }
.pv-author-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.pv-avatar { width: 48px; height: 48px; border-radius: 14px; }
.pv-author-name { font-weight: 700; font-size: 16px; }
.pv-author-meta { font-size: 13px; color: var(--text-muted); }
.pv-title { font-size: 32px; font-weight: 800; line-height: 1.25; letter-spacing: -0.5px; }
@media (max-width: 768px) { .pv-title { font-size: 24px; } .pv-body { padding: 20px; } }

/* Article content */
.pv-content { font-size: 16px; line-height: 1.85; color: var(--text-secondary); }
.pv-content p { margin-bottom: 20px; }
.pv-content h1 { font-size: 28px; font-weight: 800; color: var(--text-primary); margin: 36px 0 16px; }
.pv-content h2 { font-size: 24px; font-weight: 700; color: var(--text-primary); margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.pv-content h3 { font-size: 20px; font-weight: 600; color: var(--text-primary); margin: 28px 0 12px; }
.pv-content strong { color: var(--text-primary); font-weight: 600; }
.pv-content a { color: var(--accent-light); border-bottom: 1px solid rgba(139,92,246,0.3); }
.pv-content img { max-width: 100%; border-radius: var(--radius); margin: 20px 0; box-shadow: var(--shadow-md); }
.pv-content code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-elevated); color: var(--accent-light); padding: 2px 7px; border-radius: 5px; }
.pv-content pre { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; overflow-x: auto; margin: 20px 0; }
.pv-content pre code { background: none; padding: 0; color: var(--text-secondary); font-size: 14px; }
.pv-content blockquote { border-left: 3px solid var(--accent); padding: 16px 20px; margin: 20px 0; background: var(--accent-glow); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-secondary); font-style: italic; }
.pv-content ul, .pv-content ol { margin: 16px 0 16px 28px; }
.pv-content li { margin-bottom: 8px; }
.pv-content hr { border: none; height: 1px; background: var(--border); margin: 32px 0; }

/* Post actions */
.pv-actions { display: flex; align-items: center; gap: 8px; padding: 16px 0; margin-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.action-btn { display: flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: none; color: var(--text-secondary); cursor: pointer; font-size: 14px; font-family: var(--font); transition: all var(--transition); }
.action-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.action-btn.liked { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.action-btn svg { width: 18px; height: 18px; }

/* COMMENTS */
.comments-section { margin-top: 24px; }
.comments-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.comments-count { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.comment { display: flex; gap: 14px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; transition: border-color var(--transition); }
.comment:hover { border-color: var(--border-hover); }
.comment.reply { margin-left: 56px; background: var(--bg-secondary); }
.comment-avatar { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #fff; flex-shrink: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.comment-author { font-weight: 600; font-size: 14px; }
.comment-time { font-size: 12px; color: var(--text-muted); }
.comment-text { font-size: 14px; line-height: 1.65; color: var(--text-secondary); }
.comment-actions { display: flex; gap: 12px; margin-top: 10px; }
.comment-action { font-size: 12px; color: var(--text-muted); cursor: pointer; background: none; border: none; font-family: var(--font); transition: color var(--transition); }
.comment-action:hover { color: var(--accent-light); }
.comment-form { margin-top: 20px; }
.comment-input { width: 100%; padding: 14px 18px; min-height: 90px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 14px; font-family: var(--font); resize: vertical; outline: none; transition: all var(--transition); }
.comment-input:focus { border-color: var(--border-active); box-shadow: 0 0 0 3px var(--accent-glow); }
.comment-form-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.comment-form-hint { font-size: 12px; color: var(--text-muted); }

/* EDITOR MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 200; align-items: flex-start; justify-content: center; padding: 40px 24px; overflow-y: auto; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100%; max-width: 780px; box-shadow: var(--shadow-lg); animation: fadeUp 0.3s ease; }
.modal-header { padding: 24px 28px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 20px; font-weight: 700; }
.modal-close { width: 36px; height: 36px; border-radius: 8px; border: none; background: rgba(255,255,255,0.04); color: var(--text-muted); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.modal-close:hover { background: var(--red-bg); color: var(--red); }
.modal-body { padding: 28px; }
.modal-footer { padding: 16px 28px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

/* Form */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.form-input { width: 100%; padding: 11px 16px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 14px; font-family: var(--font); outline: none; transition: all var(--transition); }
.form-input:focus { border-color: var(--border-active); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { min-height: 280px; resize: vertical; line-height: 1.7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* Editor toolbar */
.editor-toolbar { display: flex; gap: 2px; padding: 8px 10px; background: var(--bg-primary); border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; flex-wrap: wrap; }
.editor-toolbar + textarea.form-input { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.ed-btn { width: 32px; height: 32px; border-radius: 6px; border: none; background: none; color: var(--text-muted); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all var(--transition); font-family: var(--font); }
.ed-btn:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.ed-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; align-self: center; }
.editor-tabs { display: flex; gap: 2px; margin-bottom: 12px; }
.editor-tab { padding: 8px 16px; border-radius: var(--radius-sm); border: none; background: rgba(255,255,255,0.03); color: var(--text-muted); font-size: 13px; font-weight: 500; cursor: pointer; font-family: var(--font); transition: all var(--transition); }
.editor-tab.active { background: var(--accent-glow); color: var(--accent-light); }
.editor-preview { display: none; min-height: 280px; padding: 20px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow-y: auto; }
.editor-preview.active { display: block; }

/* AUTH MODAL */
.auth-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 250; align-items: center; justify-content: center; padding: 24px; }
.auth-modal.active { display: flex; }
.auth-box { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100%; max-width: 440px; padding: 36px; box-shadow: var(--shadow-lg); animation: fadeUp 0.3s ease; }
.auth-tabs { display: flex; gap: 2px; background: var(--bg-primary); border-radius: var(--radius-sm); padding: 3px; margin-bottom: 28px; }
.auth-tab { flex: 1; padding: 10px; text-align: center; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; border: none; background: none; font-family: var(--font); transition: all var(--transition); }
.auth-tab.active { background: var(--accent-glow); color: var(--accent-light); }
.auth-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; text-align: center; }
.auth-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; text-align: center; }
.auth-error { display: none; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--red-bg); border: 1px solid rgba(239,68,68,0.2); color: var(--red); font-size: 13px; margin-bottom: 16px; }
.auth-error.show { display: block; animation: fadeUp 0.2s ease; }
.auth-footer { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 20px; }
.auth-footer a { color: var(--accent-light); cursor: pointer; font-weight: 500; }

/* STATES */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.7; }
.empty-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.empty-text { color: var(--text-muted); font-size: 15px; max-width: 400px; margin: 0 auto 20px; }
.loading { text-align: center; padding: 60px; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-prompt { text-align: center; padding: 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.login-prompt p { color: var(--text-muted); margin-bottom: 14px; }

/* Toast */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 14px 20px; border-radius: var(--radius); background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-primary); font-size: 14px; box-shadow: var(--shadow-md); animation: slideIn 0.3s ease; display: flex; align-items: center; gap: 8px; }
.toast.success { border-color: rgba(16,185,129,0.3); }
.toast.error { border-color: rgba(239,68,68,0.3); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; }
.page-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted); cursor: pointer; font-size: 13px; font-family: var(--font); transition: all var(--transition); display: flex; align-items: center; justify-content: center; }
.page-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.page-btn.active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent-light); }

/* Mobile */
.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(6,6,11,0.95); backdrop-filter: blur(20px); border-top: 1px solid var(--border); z-index: 90; padding: 8px 16px; justify-content: space-around; }
@media (max-width: 1100px) { .mobile-bar { display: flex; } body { padding-bottom: 64px; } }
.mobile-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 10px; font-family: var(--font); padding: 6px 12px; }
.mobile-btn.active { color: var(--accent-light); }

/* Language Selector */
.lang-selector { position: relative; }
.lang-btn {
    display: flex; align-items: center; gap: 6px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); padding: 6px 12px;
    border-radius: var(--radius-full); cursor: pointer;
    font-size: 13px; font-weight: 500;
    transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.lang-btn svg { opacity: 0.7; }
.lang-menu {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 6px;
    min-width: 160px; z-index: 1000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: fadeUp 0.15s ease;
}
.lang-menu.open { display: block; }
.lang-option {
    display: flex; align-items: center; gap: 8px; width: 100%;
    background: none; border: none; color: var(--text-secondary);
    padding: 8px 12px; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 13px; text-align: left;
    transition: all 0.15s;
}
.lang-option:hover { background: var(--accent-glow); color: var(--text-primary); }
.lang-option.active { color: var(--accent-light); font-weight: 600; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.1); border-radius: 24px; transition: 0.3s; }
.toggle-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
