:root {
    --bg: #0f1117;
    --bg-secondary: #161822;
    --bg-card: #1c1e2e;
    --border: #2a2d3e;
    --text: #e4e6f0;
    --text-secondary: #8b8fa3;
    --accent: #e74c3c;
    --accent-light: #ff6b6b;
    --accent-glow: rgba(231, 76, 60, 0.12);
    --success: #00cec9;
    --warning: #fdcb6e;
    --info-bg: rgba(108, 92, 231, 0.1);
    --info-border: rgba(108, 92, 231, 0.25);
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

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

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:visited { color: var(--accent-light); }
a:hover { color: #ff8a8a; text-decoration: underline; }
.article a, .callout-text a, .verdict-text a { color: var(--accent-light); border-bottom: 1px solid rgba(255,107,107,0.3); }
.article a:visited, .callout-text a:visited, .verdict-text a:visited { color: var(--accent-light); }
.article a:hover, .callout-text a:hover, .verdict-text a:hover { color: #ff8a8a; border-bottom-color: #ff8a8a; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Bengali", "Noto Sans Devanagari", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-icon { font-size: 1.6rem; }

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box { position: relative; width: 300px; }

.search-box input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.88rem;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box input::placeholder { color: var(--text-secondary); }

.search-box::before {
    content: "\1F50D";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
}

/* Layout */
.layout {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr 220px;
    gap: 0;
    min-height: calc(100vh - 64px);
}

/* Sidebar */
.sidebar {
    border-right: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.sidebar-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
    padding: 0 20px;
    margin: 16px 0 6px;
}

.sidebar-title:first-child { margin-top: 0; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--accent-glow);
    color: var(--text);
}

.nav-item.active {
    color: var(--accent-light);
    background: var(--accent-glow);
    border-left-color: var(--accent);
    font-weight: 500;
}

.nav-icon { font-size: 1rem; width: 22px; text-align: center; }

/* Main Content */
.main {
    padding: 28px 44px;
    min-width: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-light); }

.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}

/* Article blocks */
.article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 20px;
    animation: fadeIn 0.35s ease;
}

.article h2 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.article h3 {
    font-size: 1.05rem;
    margin: 22px 0 10px;
    color: var(--accent-light);
}

.article p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.85;
}

.article ul, .article ol {
    margin: 10px 0;
    padding-left: 22px;
    color: var(--text-secondary);
}

.article li { margin-bottom: 8px; line-height: 1.7; }
.article strong { color: var(--text); }

.article code {
    background: var(--bg);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.86em;
    color: var(--accent-light);
    font-family: "JetBrains Mono", "Fira Code", "SF Mono", monospace;
}

.article pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    overflow-x: auto;
    margin: 14px 0;
    position: relative;
}

.article pre code {
    background: none;
    padding: 0;
    color: #c9d1d9;
    font-size: 0.88em;
    line-height: 1.6;
}

/* Callouts */
.callout {
    padding: 16px 18px;
    border-radius: 8px;
    margin: 18px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.callout-tip { background: rgba(0, 206, 201, 0.08); border: 1px solid rgba(0, 206, 201, 0.2); }
.callout-warn { background: rgba(253, 203, 110, 0.08); border: 1px solid rgba(253, 203, 110, 0.2); }
.callout-info { background: var(--info-bg); border: 1px solid var(--info-border); }
.callout-danger { background: rgba(231, 76, 60, 0.08); border: 1px solid rgba(231, 76, 60, 0.2); }

.callout-icon { font-size: 1.15rem; flex-shrink: 0; margin-top: 2px; }
.callout-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }

/* Step cards */
.step {
    display: flex;
    gap: 18px;
    margin: 20px 0;
    padding: 22px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
}

.step:hover { border-color: var(--accent); }

.step-num {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.step-content { flex: 1; }
.step-content h4 { margin-bottom: 6px; font-size: 1rem; color: var(--text); }
.step-content p { margin-bottom: 8px; font-size: 0.9rem; color: var(--text-secondary); }

/* Home cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    color: var(--text);
    display: block;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
}

.card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.card p { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.6; }

.card-tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--accent-glow);
    color: var(--accent-light);
    border-radius: 20px;
    font-size: 0.72rem;
    margin-top: 10px;
}

/* TOC */
.toc {
    border-left: 1px solid var(--border);
    padding: 20px;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.toc-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.toc-link {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 0 4px 12px;
    border-left: 2px solid transparent;
    transition: all 0.15s;
}

.toc-link:hover { color: var(--text); }
.toc-link.active { color: var(--accent-light); border-left-color: var(--accent); }
.toc-link.sub { padding-left: 24px; font-size: 0.78rem; }

/* Stats */
.stats-bar { display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 24px;
    flex: 1;
    min-width: 120px;
    text-align: center;
}
.stat-number { font-size: 1.6rem; font-weight: 800; color: var(--accent-light); }
.stat-label { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; }

/* FAQ accordion */
.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-q {
    padding: 16px 20px;
    background: var(--bg-card);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.faq-q:hover { background: var(--accent-glow); }
.faq-q::after { content: "+"; font-size: 1.2rem; color: var(--text-secondary); transition: transform 0.2s; }
.faq-item.open .faq-q::after { content: "-"; }

.faq-a {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.open .faq-a {
    padding: 16px 20px;
    max-height: 800px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 28px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer a { color: var(--accent-light); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ═══════ Usecases-specific styles ═══════ */

/* Prompt Card - the hero component */
.prompt-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 18px 0;
    overflow: hidden;
    transition: border-color 0.3s;
}

.prompt-card:hover { border-color: var(--accent); }

.prompt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.prompt-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt-card-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-golden { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-advanced { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.badge-beginner { background: rgba(34, 197, 94, 0.15); color: #4ade80; }

.prompt-card-body {
    padding: 18px;
    position: relative;
}

.prompt-card-body pre {
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
}

.prompt-card-body pre code {
    color: #c9d1d9;
    font-size: 0.88em;
    line-height: 1.6;
    font-family: "JetBrains Mono", "Fira Code", "SF Mono", monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Copy button */
.copy-btn {
    padding: 5px 14px;
    background: var(--border);
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover { background: var(--accent); color: white; }
.copy-btn.copied { background: #22c55e; color: white; }

.article pre { position: relative; }
.article pre .copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
}
.article pre:hover .copy-btn { opacity: 1; }

/* Pain Point section */
.pain-box {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    margin: 18px 0;
}

.pain-box-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f87171;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pain-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Solution section */
.solution-box {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-left: 4px solid #22c55e;
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    margin: 18px 0;
}

.solution-box-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solution-box p, .solution-box ul {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.solution-box ul { padding-left: 20px; margin-top: 8px; }
.solution-box li { margin-bottom: 4px; }

/* Comparison row - OpenClaw vs Others */
.compare-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 18px 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: start;
}

.compare-side {
    padding: 16px;
    border-radius: 10px;
}

.compare-oc {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.compare-other {
    background: rgba(108, 92, 231, 0.06);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.compare-side-title {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.compare-oc .compare-side-title { color: #10b981; }
.compare-other .compare-side-title { color: #a29bfe; }

.compare-side p, .compare-side ol {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.compare-side ol { padding-left: 18px; margin-top: 4px; }
.compare-side li { margin-bottom: 4px; }

.compare-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding-top: 20px;
}

/* Config block */
.config-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 18px 0;
    overflow: hidden;
}

.config-block-header {
    padding: 10px 18px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.config-block-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.config-block-body {
    padding: 18px;
}

.config-block-body pre {
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
}

.config-block-body pre code {
    color: #c9d1d9;
    font-size: 0.85em;
    line-height: 1.6;
    font-family: "JetBrains Mono", "Fira Code", "SF Mono", monospace;
}

/* Category hero */
.category-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.category-hero-icon { font-size: 3rem; }

.category-hero-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.category-hero-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Usecase list card */
.usecase-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.25s;
    cursor: pointer;
}

.usecase-card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
}

.usecase-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.usecase-card-icon { font-size: 1.3rem; }

.usecase-card-title { font-size: 1.05rem; font-weight: 700; }

.usecase-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.usecase-card-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.usecase-card-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.tag-prompts { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.tag-config { background: rgba(0, 206, 201, 0.15); color: var(--success); }
.tag-compare { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

/* Verdict box (reused from /vs/) */
.verdict-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, rgba(231,76,60,0.08), rgba(255,107,107,0.04));
    border: 1px solid rgba(231,76,60,0.25);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
}

.verdict-icon { font-size: 2rem; flex-shrink: 0; }
.verdict-text { font-size: 0.95rem; line-height: 1.8; }

/* Score comparison bars */
.score-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.score-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.score-item-title {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.score-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.score-bar-label { font-size: 0.78rem; color: var(--text-secondary); min-width: 80px; }
.score-bar { flex: 1; height: 8px; background: var(--bg-card); border-radius: 4px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.score-bar-fill.oc { background: linear-gradient(90deg, #e74c3c, #ff6b6b); }
.score-bar-fill.other { background: linear-gradient(90deg, #6c5ce7, #a29bfe); }
.score-bar-val { font-size: 0.78rem; font-weight: 700; min-width: 30px; text-align: right; }

/* Model tags */
.model-tag {
    display: inline-block;
    padding: 3px 12px;
    background: var(--accent-glow);
    color: var(--accent-light);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 2px 4px 2px 0;
    text-decoration: none;
    transition: all 0.2s;
}

.model-tag:hover {
    background: var(--accent);
    color: white;
    text-decoration: none;
}

/* Scenario box */
.scenario-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
}

.scenario-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.scenario-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }

.scenario-results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.scenario-result { padding: 16px; border-radius: 8px; }
.oc-result { background: rgba(16, 185, 129, 0.06); border: 1px solid rgba(16, 185, 129, 0.2); }
.other-result { background: rgba(108, 92, 231, 0.06); border: 1px solid rgba(108, 92, 231, 0.2); }
.result-tool { font-weight: 700; margin-bottom: 8px; font-size: 0.9rem; }
.result-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

/* Inline home cards */
.home-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}
.home-card:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
}
.home-card-icon { display: inline; font-size: 1.2rem; margin-right: 8px; vertical-align: middle; }
.home-card-title { display: inline; font-size: 1rem; font-weight: 700; vertical-align: middle; }
.home-card-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin-top: 6px; }

/* Category color borders */
.cat-dev { border-left: 3px solid #3b82f6; }
.cat-writing { border-left: 3px solid #f59e0b; }
.cat-learning { border-left: 3px solid #8b5cf6; }
.cat-auto { border-left: 3px solid var(--success); }
.cat-data { border-left: 3px solid #ec4899; }

/* Subtitle */
.subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-top: 8px; margin-bottom: 24px; line-height: 1.8; }

/* Like/Dislike buttons */
.vote-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.vote-bar-label { font-size: 0.88rem; color: var(--text-secondary); margin-right: auto; }
.vote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.25s;
    user-select: none;
    position: relative;
}
.vote-btn:hover { border-color: var(--accent); transform: scale(1.12); }
.vote-btn.voted-up { border-color: #22c55e; background: rgba(34,197,94,0.15); transform: scale(1.15); }
.vote-btn.voted-down { border-color: #ef4444; background: rgba(239,68,68,0.15); transform: scale(1.15); }

/* Burst particle */
.vote-particle {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    animation: vote-burst 0.7s ease-out forwards;
}
@keyframes vote-burst {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}

/* TOC related links */
.toc-related {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.toc-related-link {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 0 4px 12px;
    border-left: 2px solid transparent;
    transition: all 0.15s;
    line-height: 1.5;
}
.toc-related-link:hover {
    color: var(--accent-light);
    border-left-color: var(--accent);
}

/* Mobile menu toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar, .toc { display: none; }
    .main { padding: 20px 16px; }
    .search-box { width: 160px; }
    .header-inner { gap: 8px; }
    .stats-bar { flex-direction: column; }
    .cards-grid { grid-template-columns: 1fr; }
    .mobile-menu-btn { display: block; }
    .sidebar.mobile-open {
        display: block;
        position: fixed;
        top: 64px;
        left: 0;
        width: 280px;
        height: calc(100vh - 64px);
        background: var(--bg-secondary);
        z-index: 150;
        box-shadow: var(--shadow);
    }
    .compare-box { grid-template-columns: 1fr; }
    .compare-vs { padding-top: 0; }
    .score-compare { grid-template-columns: 1fr; }
    .scenario-results { grid-template-columns: 1fr; }
    .vote-bar { flex-wrap: wrap; }
    .toc-related { display: none; }
    .category-hero { flex-direction: column; text-align: center; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

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