:root {
    --bg: #0f1726; --surface: #1a2332; --border: #243044;
    --text: #e2e8f0; --text-muted: #94a3b8;
    --accent: #60a5fa; --accent-soft: rgba(96,165,250,.12);
    --purple: #a78bfa; --green: #34d399; --orange: #fb923c; --pink: #f472b6;
    --radius: 12px; --max-w: 1200px;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { background:var(--bg); color:var(--text); font-family:'Inter',system-ui,-apple-system,sans-serif; line-height:1.6; -webkit-font-smoothing:antialiased; }
a { color:var(--accent); text-decoration:none; }
a:hover { text-decoration:underline; }

/* ===== TICKER ===== */
.ticker-wrap {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.ticker-wrap::before, .ticker-wrap::after {
    content: '';
    position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2;
    pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.ticker-label {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent); color: var(--bg);
    padding: 5px 14px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    position: relative; z-index: 3;
    flex-shrink: 0; vertical-align: middle;
}
.ticker-label svg { width: 14px; height: 14px; }
.ticker-track {
    display: inline-block;
    animation: ticker-scroll 120s linear infinite;
    padding-left: 1rem;
    vertical-align: middle;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
    display: inline-block;
    padding: 5px 0;
    margin-right: 2.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.ticker-item a { color: var(--text); font-weight: 500; }
.ticker-item a:hover { color: var(--accent); text-decoration: none; }
.ticker-dot {
    display: inline-block;
    width: 4px; height: 4px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== HEADER ===== */
.site-header {
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(56,189,248,.03) 0%, transparent 100%);
}
.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 20px; height: 20px; color: white; }
.site-logo {
    font-size: 1.15rem; font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.newsletter-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 12px; font-size: 0.68rem; font-weight: 600;
    color: var(--accent); background: var(--accent-soft);
    border: 1px solid rgba(96,165,250,.3); transition: all 0.2s;
}
.newsletter-btn:hover { background: rgba(96,165,250,.2); text-decoration: none; }
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lang-switch a, .lang-switch span {
    display: flex;
    align-items: center;
    border-radius: 3px;
    overflow: hidden;
    transition: opacity 0.2s;
    outline-offset: 2px;
}
.lang-switch a:hover { opacity: 1 !important; text-decoration: none; }
.cat-nav {
    display: flex; gap: 0.25rem; flex-wrap: wrap;
}
.cat-nav a {
    padding: 2px 7px; border-radius: 10px; font-size: 0.62rem; font-weight: 500;
    color: var(--text-muted); background: var(--surface);
    border: 1px solid var(--border); transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 2px;
}
.cat-nav a svg { width: 10px; height: 10px; flex-shrink: 0; }
.cat-nav a:hover, .cat-nav a.active { text-decoration: none; }

/* ===== MAIN ===== */
.main { max-width: var(--max-w); margin: 0 auto; padding: 1.5rem; }
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-widget {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem; overflow: hidden;
}
.sidebar-widget h3 {
    font-size: 0.82rem; font-weight: 700; margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.4rem;
    color: var(--text);
}
.sidebar-widget h3 svg { width: 16px; height: 16px; color: var(--accent); }
.sidebar-list { display: flex; flex-direction: column; gap: 0; }
.sidebar-item {
    display: flex; gap: 0.6rem; padding: 0.5rem 0;
    border-bottom: 1px solid var(--border); align-items: flex-start;
}
.sidebar-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-item:first-child { padding-top: 0; }
.sidebar-rank {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent);
    font-size: 0.68rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.sidebar-rank.hot {
    background: rgba(239,68,68,.15); color: #ef4444;
}
.sidebar-item-content { min-width: 0; flex: 1; }
.sidebar-item-title {
    font-size: 0.8rem; font-weight: 600; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-item-title a { color: var(--text); }
.sidebar-item-title a:hover { color: var(--accent); text-decoration: none; }
.sidebar-item-meta {
    font-size: 0.68rem; color: var(--text-muted); margin-top: 2px;
    display: flex; align-items: center; gap: 0.3rem;
}
.sidebar-item-clicks {
    font-size: 0.62rem; background: var(--accent-soft); color: var(--accent);
    padding: 0 5px; border-radius: 6px; font-weight: 600;
    flex-shrink: 0; margin-top: 1px;
}
.sidebar-search {
    display: flex; gap: 0.4rem;
}
.sidebar-search input {
    flex: 1; padding: 0.5rem 0.7rem; background: var(--bg); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font-size: 0.8rem; font-family: inherit;
}
.sidebar-search input:focus { outline: none; border-color: var(--accent); }
.sidebar-search button {
    padding: 0.5rem 0.7rem; background: var(--accent); color: var(--bg); border: none;
    border-radius: 8px; cursor: pointer; display: flex; align-items: center;
}
.sidebar-search button svg { width: 14px; height: 14px; }
/* Hero banner */
.hero-banner {
    position: relative;
    text-align: center;
    padding: 1rem 1rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}
.hero-banner h1 {
    font-size: 1.2rem; font-weight: 800; color: var(--text); margin: 0 0 0.25rem;
}
.hero-banner h1 strong {
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-tagline {
    font-size: 0.82rem; color: var(--text-muted);
    margin: 0; font-weight: 400;
}
.hero-banner .stats-inline {
    display: inline-flex; gap: 1.25rem; margin-top: 0.4rem;
    font-size: 0.72rem; color: var(--text-muted);
}

/* Kennisbank highlight */
.kb-highlight {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.kb-highlight-header {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: #a78bfa; font-size: 0.82rem; font-weight: 700;
    text-decoration: none; transition: background 0.2s;
}
.kb-highlight-header:hover { background: rgba(167,139,250,.08); text-decoration: none; }
.kb-highlight-sub { font-weight: 400; color: var(--text-muted); font-size: 0.78rem; }
.kb-highlight-links {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    padding: 0 1rem 0.6rem;
}
.kb-pill {
    font-size: 0.72rem; font-weight: 500;
    padding: 3px 10px; border-radius: 20px;
    background: var(--pill-bg); color: var(--pill-color);
    border: 1px solid var(--pill-border);
    text-decoration: none; transition: all 0.2s; white-space: nowrap;
    opacity: 0.85;
}
.kb-pill:hover { opacity: 1; text-decoration: none; filter: brightness(1.15); }
.kb-highlight-links .kb-more {
    font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 20px;
    color: #a78bfa; background: rgba(167,139,250,.08); border: 1px solid rgba(167,139,250,.2);
    text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.kb-highlight-links .kb-more:hover { background: rgba(167,139,250,.15); text-decoration: none; }
.hero-banner .stats-inline strong { color: var(--accent); }

/* Section headings */
.section-title {
    font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.section-title svg { width: 18px; height: 18px; color: var(--accent); }
.section-title .badge {
    font-size: 0.65rem; padding: 2px 7px; border-radius: 10px;
    background: var(--accent-soft); color: var(--accent); font-weight: 600;
}

/* ===== TRENDING TODAY ===== */
.trending-section { margin-bottom: 1.5rem; }
.trending-hot {
    background: rgba(239,68,68,.15) !important;
    color: #fca5a5 !important;
    animation: pulse-hot 2s ease-in-out infinite;
}
@keyframes pulse-hot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.trending-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.trending-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.15s;
    text-decoration: none;
    color: var(--text);
}
.trending-card:hover {
    border-color: #ef4444;
    transform: translateX(4px);
    text-decoration: none;
}
.trending-rank {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: 0.75rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.trending-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}
.trending-thumb {
    flex-shrink: 0;
    width: 96px; height: 64px;
    border-radius: 6px;
    object-fit: cover;
    margin-left: auto;
}
.trending-content h3 {
    font-size: 0.88rem; font-weight: 600;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.trending-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .trending-content h3 { -webkit-line-clamp: 3; }
}

/* ===== FEATURED HERO ===== */
.featured-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
    height: 180px;
    display: flex;
    align-items: flex-end;
}
.featured-hero .hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.featured-hero .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(15,23,38,.94) 0%, rgba(15,23,38,.5) 50%, rgba(15,23,38,.15) 100%);
    z-index: 1;
}
.featured-hero .hero-content {
    position: relative;
    z-index: 2;
    padding: 1.25rem 1.5rem;
    width: 100%;
}
.featured-hero .hero-meta {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.75rem; color: rgba(255,255,255,.7);
    margin-bottom: 0.5rem;
}
.featured-hero .hero-rank {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--accent); color: var(--bg);
    font-size: 0.7rem; font-weight: 800;
}
.featured-hero .hero-cat {
    padding: 2px 8px; border-radius: 8px; font-size: 0.65rem; font-weight: 600;
}
.featured-hero h3 {
    font-size: 1.3rem; font-weight: 800; line-height: 1.3;
    margin: 0;
}
.featured-hero h3 a { color: #fff; }
.featured-hero h3 a:hover { color: var(--accent); text-decoration: none; }
.featured-hero .hero-excerpt {
    font-size: 0.85rem; color: rgba(255,255,255,.7);
    margin-top: 0.4rem; line-height: 1.5;
}
.featured-hero .hero-link {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.75rem; color: var(--accent); margin-top: 0.5rem; font-weight: 600;
}
.featured-hero .hero-link svg { width: 12px; height: 12px; }

/* ===== TOP 10 GRID ===== */
.top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

/* ===== ARTICLE CARDS ===== */
.article-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem; transition: border-color 0.2s, transform 0.15s;
    display: flex; flex-direction: column; gap: 0.5rem;
    position: relative; overflow: hidden;
}
.article-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    opacity: 0; transition: opacity 0.2s;
}
.article-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.article-card:hover::before { opacity: 1; }
.article-card .card-image {
    width: 100%; height: 110px; border-radius: 8px;
    object-fit: cover; background: var(--border);
    content-visibility: auto;
}
.article-card .card-image-fallback {
    width: 100%; height: 110px; border-radius: 8px;
    background: linear-gradient(135deg, var(--surface) 0%, #1a2332 100%);
    display: flex; align-items: center; justify-content: center;
    opacity: 0.7;
}
.article-card .card-image-fallback svg { width: 48px; height: 48px; }
.card-image[src]{ /* hide broken images gracefully */ }
.yt-badge {
    display: inline-flex; align-items: center; gap: 3px;
    background: rgba(255,0,0,.15); color: #f87171;
    padding: 1px 7px; border-radius: 8px; font-size: 0.65rem; font-weight: 600;
}
.yt-badge svg { width: 10px; height: 10px; }
.card-image-wrap {
    position: relative; width: 100%;
}
.yt-play {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 52px; height: 36px; opacity: 0.85;
    transition: opacity 0.2s;
    pointer-events: none;
}
.yt-play svg { width: 100%; height: 100%; }
.article-card:hover .yt-play { opacity: 1; }
.article-card .meta {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.73rem; color: var(--text-muted); flex-wrap: wrap;
}
.article-card .source { font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.article-card .source svg { width: 11px; height: 11px; }
.article-card .cat-badge {
    padding: 1px 7px; border-radius: 8px; font-size: 0.65rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 3px;
}
.article-card .cat-badge svg { width: 10px; height: 10px; }
.article-card .rank-badge {
    position: absolute; top: 10px; right: 10px;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--accent); color: var(--bg);
    font-size: 0.7rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    z-index: 1;
}
.article-card h3 {
    font-size: 0.95rem; font-weight: 700; line-height: 1.35; margin:0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.6em;
}
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--accent); text-decoration: none; }
.article-card .excerpt {
    font-size: 0.82rem; color: var(--text-muted); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.5em;
}
.article-card .why-it-matters {
    font-size: 0.75rem; color: var(--accent); font-style: italic;
    margin-top: 0.3rem; line-height: 1.4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.article-card .card-footer {
    margin-top: auto; display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.72rem; color: var(--text-muted);
}
.article-card .card-footer svg { width: 11px; height: 11px; }

/* Category color accents — generated dynamically in index.php inline <style> */

/* Category cards row */
.cat-row {
    display: flex; gap: 0.75rem; flex-wrap: wrap;
    margin-bottom: 2rem; justify-content: center;
}
.cat-chip {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0.75rem 1.25rem; display: flex; align-items: center; gap: 0.5rem;
    transition: all 0.2s; font-size: 0.85rem; font-weight: 600;
}
.cat-chip:hover { transform: translateY(-2px); text-decoration: none; }
.cat-chip svg { width: 18px; height: 18px; }
.cat-chip .cnt { color: var(--text-muted); font-weight: 400; font-size: 0.75rem; }

/* Contact bar */
.contact-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.contact-bar .contact-info h2 {
    font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem;
}
.contact-bar .contact-info p {
    font-size: 0.85rem; color: var(--text-muted);
}
.contact-bar .contact-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.5rem; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    color: var(--bg); font-weight: 700; font-size: 0.85rem;
    transition: opacity 0.2s; flex-shrink: 0;
}
.contact-bar .contact-link:hover { opacity: 0.9; text-decoration: none; }
.contact-bar .contact-link svg { width: 16px; height: 16px; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border); padding: 2rem 1.5rem;
    text-align: center; color: var(--text-muted); font-size: 0.78rem;
    background: linear-gradient(0deg, rgba(56,189,248,.02) 0%, transparent 100%);
}
.footer-contact { margin-top: 0.5rem; }
.footer-contact a { color: var(--accent); }
.footer-sources { margin-top: 0.75rem; font-size: 0.7rem; opacity: 0.5; }

/* ===== DAILY BRIEFING PREVIEW ===== */
.briefing-preview {
    background: linear-gradient(135deg, rgba(239,68,68,.06), rgba(251,146,60,.06));
    border: 1px solid rgba(239,68,68,.15);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}
.briefing-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.6rem;
}
.briefing-header h2 {
    font-size: 0.82rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.4rem;
    color: #ef4444;
}
.briefing-header h2 svg { width: 16px; height: 16px; }
.briefing-header a {
    font-size: 0.7rem; color: var(--text-muted); font-weight: 500;
}
.briefing-header a:hover { color: var(--accent); }
.briefing-items { display: flex; flex-direction: column; gap: 0.4rem; }
.briefing-item {
    display: flex; align-items: flex-start; gap: 0.6rem;
    font-size: 0.82rem; line-height: 1.4;
}
.briefing-item .briefing-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: #ef4444; flex-shrink: 0; margin-top: 6px;
}
.briefing-item a { color: var(--text); font-weight: 500; }
.briefing-item a:hover { color: var(--accent); text-decoration: none; }
.briefing-item .briefing-src {
    font-size: 0.68rem; color: var(--text-muted); margin-left: 0.3rem;
}

/* ===== POLL / STELLING ===== */
.poll-widget {
    background: linear-gradient(135deg, rgba(167,139,250,.08), rgba(96,165,250,.08));
    border-color: rgba(167,139,250,.2);
}
.poll-widget h3 {
    color: var(--purple) !important;
}
.poll-widget h3 svg { color: var(--purple) !important; }
.poll-statement {
    font-size: 0.85rem; font-weight: 600; line-height: 1.45;
    margin-bottom: 0.75rem; color: var(--text);
    font-style: italic;
}
.poll-buttons {
    display: flex; gap: 0.5rem;
}
.poll-btn {
    flex: 1; padding: 0.5rem; border-radius: 8px;
    border: 1px solid var(--border); background: var(--bg);
    color: var(--text); font-family: inherit; font-size: 0.78rem;
    font-weight: 600; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 0.3rem;
}
.poll-btn:hover { transform: translateY(-1px); }
.poll-btn-eens:hover { border-color: var(--green); color: var(--green); background: rgba(52,211,153,.08); }
.poll-btn-oneens:hover { border-color: #f87171; color: #f87171; background: rgba(248,113,113,.08); }
.poll-results {
    display: flex; flex-direction: column; gap: 0.5rem;
}
.poll-bar-wrap {
    display: flex; flex-direction: column; gap: 0.2rem;
}
.poll-bar-label {
    display: flex; justify-content: space-between;
    font-size: 0.75rem; font-weight: 600;
}
.poll-bar-label .pct { color: var(--text-muted); }
.poll-bar {
    height: 8px; border-radius: 4px; background: var(--bg);
    overflow: hidden;
}
.poll-bar-fill {
    height: 100%; border-radius: 4px;
    transition: width 0.6s ease;
}
.poll-bar-fill.eens { background: linear-gradient(90deg, var(--green), #6ee7b7); }
.poll-bar-fill.oneens { background: linear-gradient(90deg, #f87171, #fca5a5); }
.poll-total {
    font-size: 0.68rem; color: var(--text-muted); text-align: center;
    margin-top: 0.2rem;
}

/* ===== BOOKMARK ===== */
.bookmark-btn {
    position: absolute; top: 10px; left: 10px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(15,23,38,.7); border: none;
    color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 2; transition: all 0.2s; backdrop-filter: blur(4px);
}
.bookmark-btn:hover { color: var(--accent); background: rgba(15,23,38,.9); }
.bookmark-btn.saved { color: #f59e0b; }
.bookmark-btn.saved svg { fill: #f59e0b; }
.bookmark-btn svg { width: 14px; height: 14px; }

/* ===== SIDEBAR COLLAPSE (mobile) ===== */
@media (max-width: 768px) {
    .sidebar-widget h3 { cursor: pointer; user-select: none; }
    .sidebar-widget h3::after {
        content: ''; display: inline-block; width: 12px; height: 12px; margin-left: auto;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
        transition: transform 0.2s;
    }
    .sidebar-widget.collapsed h3::after { transform: rotate(-90deg); }
    .sidebar-widget.collapsed .sidebar-list,
    .sidebar-widget.collapsed .poll-statement,
    .sidebar-widget.collapsed .poll-buttons,
    .sidebar-widget.collapsed .poll-results,
    .sidebar-widget.collapsed .poll-total,
    .sidebar-widget.collapsed .nl-inline-form,
    .sidebar-widget.collapsed .nl-msg,
    .sidebar-widget.collapsed .sidebar-search,
    .sidebar-widget.collapsed > p { display: none !important; }
}

/* ===== INLINE NEWSLETTER ===== */
.nl-inline-form {
    display: flex; gap: 0.4rem; margin-top: 0.5rem;
}
.nl-inline-form input {
    flex: 1; padding: 0.45rem 0.7rem; background: var(--bg); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font-size: 0.78rem; font-family: inherit;
    min-width: 0;
}
.nl-inline-form input:focus { outline: none; border-color: var(--accent); }
.nl-inline-form button {
    padding: 0.45rem 0.8rem; background: linear-gradient(135deg, var(--accent), var(--purple));
    color: var(--bg); border: none; border-radius: 8px; cursor: pointer;
    font-family: inherit; font-size: 0.75rem; font-weight: 700;
    white-space: nowrap; transition: opacity 0.2s;
}
.nl-inline-form button:hover { opacity: 0.9; }
.nl-msg {
    font-size: 0.72rem; margin-top: 0.3rem; padding: 0.3rem 0.5rem;
    border-radius: 6px;
}
.nl-msg-success { background: rgba(52,211,153,.12); color: var(--green); }
.nl-msg-error { background: rgba(248,113,113,.12); color: #f87171; }

/* Responsive */
@media (max-width: 1024px) {
    .content-layout { grid-template-columns: 1fr 260px; }
    .top-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .content-layout { grid-template-columns: 1fr; }
    .top-grid { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .header-right { flex-direction: column; align-items: flex-start; width: 100%; gap: 0.5rem; }
    .cat-nav { width: 100%; }
    .newsletter-btn { align-self: flex-start; }
    .featured-hero { height: 180px; }
    .featured-hero h3 { font-size: 1.05rem; }
    .contact-bar { flex-direction: column; text-align: center; }
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Profile picker (new visitors, full-width) ── */
.profile-picker {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    margin-bottom: 1rem; overflow: hidden;
    animation: ppFadeIn 0.4s ease;
}
@keyframes ppFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.profile-picker-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1rem; cursor: pointer; gap: 0.75rem;
}
.profile-picker-header:hover { background: rgba(255,255,255,0.02); }
.profile-picker-intro {
    display: flex; align-items: center; gap: 0.75rem; min-width: 0;
}
.profile-picker-intro strong {
    font-size: 0.88rem; display: block;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.profile-picker-sub { font-size: 0.75rem; color: var(--text-muted); display: block; }
.profile-picker-toggle {
    background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 4px;
    transition: transform 0.3s;
}
.profile-picker-toggle svg { width: 18px; height: 18px; }
.profile-picker.collapsed .profile-picker-toggle { transform: rotate(-90deg); }

.profile-picker-body {
    padding: 0 1rem 1rem; transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    max-height: 400px; opacity: 1; overflow: hidden;
}
.profile-picker.collapsed .profile-picker-body {
    max-height: 0; opacity: 0; padding: 0 1rem;
}

.profile-picker-cards {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
}
@media (max-width: 700px) { .profile-picker-cards { grid-template-columns: repeat(2, 1fr); } }

.pp-card {
    display: flex; flex-direction: row; align-items: center; text-align: left; gap: 0.6rem;
    padding: 0.6rem 0.75rem; border-radius: 10px; border: 2px solid var(--border);
    background: transparent; cursor: pointer; transition: all 0.25s; font-family: inherit;
    color: var(--text);
}
.pp-card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.pp-card svg { width: 22px; height: 22px; color: var(--text-muted); flex-shrink: 0; transition: color 0.3s; }
.pp-name { font-size: 0.82rem; font-weight: 700; line-height: 1.2; }
.pp-desc { font-size: 0.65rem; color: var(--text-muted); line-height: 1.3; }

.pp-card[data-profile="guru"]:hover,
.pp-card[data-profile="guru"].selected { border-color: #38bdf8; box-shadow: 0 0 12px rgba(56,189,248,0.15); }
.pp-card[data-profile="guru"].selected svg { color: #38bdf8; }
.pp-card[data-profile="guru"].selected .pp-name { color: #38bdf8; }

.pp-card[data-profile="consultant"]:hover,
.pp-card[data-profile="consultant"].selected { border-color: #34d399; box-shadow: 0 0 12px rgba(52,211,153,0.15); }
.pp-card[data-profile="consultant"].selected svg { color: #34d399; }
.pp-card[data-profile="consultant"].selected .pp-name { color: #34d399; }

.pp-card[data-profile="management"]:hover,
.pp-card[data-profile="management"].selected { border-color: #fb923c; box-shadow: 0 0 12px rgba(251,146,60,0.15); }
.pp-card[data-profile="management"].selected svg { color: #fb923c; }
.pp-card[data-profile="management"].selected .pp-name { color: #fb923c; }

.pp-card[data-profile="ai-data"]:hover,
.pp-card[data-profile="ai-data"].selected { border-color: #f472b6; box-shadow: 0 0 12px rgba(244,114,182,0.15); }
.pp-card[data-profile="ai-data"].selected svg { color: #f472b6; }
.pp-card[data-profile="ai-data"].selected .pp-name { color: #f472b6; }

.pp-customize-link {
    display: block; text-align: center; font-size: 0.72rem; color: var(--text-muted);
    margin-top: 0.6rem; transition: color 0.2s;
}
.pp-customize-link:hover { color: var(--accent); text-decoration: none; }

/* Toast */
.pp-toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(80px);
    background: #34d399; color: #0a0f1a; padding: 0.6rem 1.25rem; border-radius: 10px;
    font-size: 0.82rem; font-weight: 700; opacity: 0; transition: all 0.4s; z-index: 200;
    pointer-events: none;
}
.pp-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── Profile filter ── */
.filterable { transition: all 0.35s ease; position: relative; }

/* Matching: accent border left */
.filterable.filtered-in {
    order: 0;
}
.filterable.filtered-in.article-card {
    border-left: 3px solid var(--profile-accent, var(--accent));
}
.filterable.filtered-in.trending-card {
    border-left: 3px solid var(--profile-accent, var(--accent));
}

/* Not matching: subtle, pushed down */
.filterable.filtered-out {
    order: 99; opacity: 0.45;
}
.filterable.filtered-out:hover { opacity: 0.75; }


/* Filter active indicator */
.filter-active-bar {
    display: none; align-items: center; gap: 0.6rem;
    padding: 0.5rem 0.85rem; margin-bottom: 0.75rem;
    background: rgba(96,165,250,0.08); border: 1px solid rgba(96,165,250,0.2);
    border-radius: 8px; font-size: 0.75rem; color: var(--text-muted);
    animation: ppFadeIn 0.3s ease;
}
.filter-active-bar.visible { display: flex; }
.filter-active-bar .fab-profile { font-weight: 700; }
.filter-active-bar .fab-count { color: var(--accent); font-weight: 600; }
.filter-active-bar .fab-clear {
    margin-left: auto; background: none; border: none; color: var(--text-dim);
    font-size: 0.7rem; cursor: pointer; font-family: inherit; transition: color 0.2s;
}
.filter-active-bar .fab-clear:hover { color: var(--text); }

/* ── Load more button ── */
.load-more-btn {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.7rem 1.5rem; margin: 0.5rem auto 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--accent); font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.load-more-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.load-more-btn svg { stroke: var(--accent); }

/* HTMX loading indicator */
.load-more-btn.htmx-request {
    opacity: 0.6; pointer-events: none;
}

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