    /* ========== THEME VARIABLES ========== */
    :root, [data-theme="dark"] {
        --bg: #000000;
        --card: #121212;
        --card-2: #1c1c1e;
        --border: #262626;
        --text: #f5f5f5;
        --muted: #a8a8a8;
        --accent: #0095f6;
        --danger: #ed4956;
        --success: #2ecc71;
        --gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        --shadow: 0 4px 20px rgba(0,0,0,0.5);
    }
    [data-theme="light"] {
        --bg: #fafafa;
        --card: #ffffff;
        --card-2: #f0f0f0;
        --border: #dbdbdb;
        --text: #262626;
        --muted: #737373;
        --accent: #0095f6;
        --danger: #ed4956;
        --success: #2ecc71;
        --shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    * { box-sizing: border-box; }
    body {
        background: var(--bg);
        color: var(--text);
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        padding-top: 60px;
        padding-bottom: 70px;
        margin: 0;
        transition: background 0.3s, color 0.3s;
    }
    a { text-decoration: none; color: inherit; }

    /* ========== HEADER ========== */
    .ig-header {
        position: fixed; top: 0; width: 100%; height: 56px;
        background: color-mix(in srgb, var(--bg) 85%, transparent);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        z-index: 2000;
        display: flex; align-items: center; justify-content: center;
        transition: 0.3s;
    }
    .ig-header-inner {
        width: 100%; max-width: 975px;
        display: flex; align-items: center; justify-content: space-between;
        padding: 0 16px; gap: 12px;
    }
    .ig-logo {
        font-family: 'Brush Script MT', cursive;
        font-size: 28px; font-weight: 700;
        background: var(--gradient);
        -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .ig-search-wrap { flex: 1; max-width: 280px; position: relative; }
    .ig-search-wrap i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
    .ig-search {
        width: 100%; background: var(--card-2); border: 1px solid var(--border);
        border-radius: 10px; padding: 8px 34px 8px 12px;
        color: var(--text); font-size: 14px; outline: none;
        transition: 0.2s;
    }
    .ig-search:focus { border-color: var(--muted); }
    .ig-header-icons { display: flex; gap: 14px; font-size: 20px; align-items: center; }
    .icon-btn {
        background: none; border: none; color: var(--text); cursor: pointer;
        font-size: 20px; position: relative; padding: 4px;
        transition: transform 0.2s, color 0.2s;
    }
    .icon-btn:hover { transform: scale(1.15); color: var(--accent); }
    .notif-badge {
        position: absolute; top: -2px; right: -4px;
        background: var(--danger); color: #fff;
        font-size: 10px; font-weight: 700;
        padding: 2px 5px; border-radius: 10px;
        min-width: 16px; text-align: center;
        border: 2px solid var(--bg);
    }

    /* ========== NOTIFICATIONS PANEL ========== */
    .notif-panel {
        position: fixed;
        top: 60px;
        left: 20px;
        width: 340px; max-height: 480px;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: var(--shadow);
        z-index: 2500;
        display: none;
        overflow: hidden;
        animation: slideDown 0.2s ease;
    }
    .notif-panel.show { display: block; }
    @keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
    .notif-header {
        padding: 14px 16px;
        border-bottom: 1px solid var(--border);
        display: flex; justify-content: space-between; align-items: center;
        font-weight: 700;
    }
    .notif-header button {
        background: none; border: none; color: var(--accent);
        cursor: pointer; font-size: 12px; font-weight: 600;
    }
    .notif-list { max-height: 400px; overflow-y: auto; }
    .notif-item {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
        display: flex; gap: 12px; align-items: start;
        transition: background 0.2s;
    }
    .notif-item:hover { background: var(--card-2); }
    .notif-item.unread { background: color-mix(in srgb, var(--accent) 8%, transparent); }
    .notif-icon {
        width: 34px; height: 34px; border-radius: 50%;
        background: var(--gradient); color: #fff;
        display: flex; align-items: center; justify-content: center;
        font-size: 15px; flex-shrink: 0;
    }
    .notif-body { flex: 1; font-size: 13px; }
    .notif-title { font-weight: 700; margin-bottom: 2px; }
    .notif-text { color: var(--muted); font-size: 12px; }
    .notif-time { font-size: 10px; color: var(--muted); margin-top: 4px; }

    /* ========== LAYOUT ========== */
    .ig-container {
        width: 100%; max-width: 975px;
        margin: 0 auto;
        display: flex; gap: 28px;
        padding: 0 16px;
    }
    .ig-side-menu {
        width: 220px; flex-shrink: 0;
        position: sticky; top: 76px; height: fit-content;
        padding: 8px 0;
    }
    .side-link {
        display: flex; align-items: center; gap: 12px;
        padding: 10px 12px; color: var(--text);
        border-radius: 10px; font-size: 15px;
        transition: 0.2s; margin-bottom: 2px;
    }
    .side-link i { font-size: 18px; width: 22px; text-align: center; }
    .side-link:hover, .side-link.active { background: var(--card-2); font-weight: 600; }
    .side-link.active i { color: var(--accent); }
    .side-divider { height: 1px; background: var(--border); margin: 12px 0; }

    .ig-main-feed { width: 100%; max-width: 470px; flex-shrink: 0; margin: 0 auto; }
    .ig-right-side {
        width: 300px; flex-shrink: 0;
        position: sticky; top: 76px; height: fit-content;
    }

    /* ========== STATS PILLS ========== */
    .stats-pills {
        display: flex; flex-wrap: wrap; gap: 8px;
        margin-bottom: 16px;
    }
    .stat-pill {
        display: inline-flex; align-items: center; gap: 6px;
        background: var(--card-2);
        border: 1px solid var(--border);
        padding: 6px 14px; border-radius: 20px;
        font-size: 12px; font-weight: 600;
        transition: 0.2s;
    }
    .stat-pill i { color: var(--accent); font-size: 13px; }
    .stat-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
    .stat-pill strong { color: var(--text); }

    /* ========== STORIES ========== */
    .stories-bar {
        display: flex; gap: 14px; overflow-x: auto;
        padding: 12px 4px 16px; margin-bottom: 8px;
        scrollbar-width: none;
    }
    .stories-bar::-webkit-scrollbar { display: none; }
    .story-item { text-align: center; flex-shrink: 0; cursor: pointer; }
    .story-ring {
        width: 66px; height: 66px; border-radius: 50%;
        padding: 2.5px; background: var(--gradient);
        display: flex; align-items: center; justify-content: center;
        transition: 0.2s;
    }
    .story-ring:hover { transform: scale(1.05); }
    .story-inner {
        width: 100%; height: 100%; border-radius: 50%;
        background: var(--card); border: 2px solid var(--bg);
        display: flex; align-items: center; justify-content: center;
        font-size: 22px; color: #fff; overflow: hidden;
    }
    .story-label {
        font-size: 11px; color: var(--muted);
        margin-top: 6px; max-width: 66px;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }

    /* ========== POST CARD ========== */
    .post-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 12px;
        margin-bottom: 20px; overflow: hidden;
        animation: fadeUp 0.5s ease;
        transition: background 0.3s, border-color 0.3s;
    }
    @keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
    .post-header {
        display: flex; align-items: center;
        padding: 12px 14px; gap: 12px;
    }
    .post-avatar {
        width: 38px; height: 38px; border-radius: 50%;
        padding: 2px; background: var(--gradient); flex-shrink: 0;
    }
    .post-avatar-inner {
        width: 100%; height: 100%; border-radius: 50%;
        background: var(--card-2); border: 2px solid var(--card);
        display: flex; align-items: center; justify-content: center;
        font-weight: 700; color: var(--text); font-size: 15px;
    }
    .post-user-info { flex: 1; min-width: 0; }
    .post-username {
        font-weight: 600; font-size: 14px;
        display: flex; align-items: center; gap: 4px;
    }
    .post-username a { color: var(--text); }
    .post-username a:hover { color: var(--accent); }
    .post-location { font-size: 12px; color: var(--muted); }
    .post-menu { color: var(--muted); font-size: 18px; cursor: pointer; }

    .post-media {
        background: #000;
        display: flex; align-items: center; justify-content: center;
        max-height: 580px; overflow: hidden;
    }
    .post-media video, .post-media img {
        width: 100%; max-height: 580px; object-fit: contain; display: block;
    }

    /* ========== ACTION BAR ========== */
    .post-actions {
        display: flex; align-items: center;
        padding: 8px 14px 4px; gap: 16px;
    }
    .action-btn {
        background: none; border: none; padding: 4px;
        font-size: 24px; color: var(--text); cursor: pointer;
        transition: transform 0.2s, color 0.2s;
        display: flex; align-items: center;
    }
    .action-btn:hover { transform: scale(1.15); }
    .action-btn:active { transform: scale(0.9); }
    .action-btn.liked { color: var(--danger); }
    .action-btn.liked i { animation: heartPop 0.4s ease; }
    @keyframes heartPop {
        0% { transform: scale(1); }
        40% { transform: scale(1.35); }
        70% { transform: scale(0.9); }
        100% { transform: scale(1); }
    }
    .action-btn.saved { color: var(--accent); }
    .action-btn.saved i { animation: heartPop 0.4s ease; }
    .post-actions .spacer { flex: 1; }

    .post-likes { padding: 0 14px; font-weight: 600; font-size: 14px; }
    .post-caption { padding: 4px 14px 12px; font-size: 14px; line-height: 1.5; }
    .post-caption .caption-title { font-weight: 700; margin-bottom: 4px; }
    .post-tags { margin-top: 6px; }
    .post-tags a { color: var(--accent); font-size: 13px; margin-left: 6px; font-weight: 500; }
    .post-time { padding: 0 14px 12px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; }

    .comments-area {
        border-top: 1px solid var(--border);
        padding: 12px 14px;
        background: var(--card-2);
    }
    .comment-item { display: flex; gap: 10px; margin-bottom: 10px; font-size: 14px; }
    .comment-avatar {
        width: 30px; height: 30px; border-radius: 50%;
        background: var(--gradient); color: #fff;
        display: flex; align-items: center; justify-content: center;
        font-weight: 700; font-size: 12px; flex-shrink: 0;
    }
    .comment-body { flex: 1; }
    .comment-user { font-weight: 600; }
    .comment-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
    .comment-form {
        display: flex; gap: 8px; margin-top: 8px;
        border-top: 1px solid var(--border); padding-top: 10px;
    }
    .comment-form input {
        background: transparent; border: none; color: var(--text);
        padding: 6px 4px; font-size: 14px; outline: none;
    }
    .comment-form input::placeholder { color: var(--muted); }
    .comment-form input[name="user_name"] { width: 90px; font-weight: 600; }
    .comment-form input[name="comment_text"] { flex: 1; }
    .comment-form button {
        background: none; border: none; color: var(--accent);
        font-weight: 600; cursor: pointer; font-size: 14px;
    }

    /* ========== RIGHT SIDEBAR ========== */
    .right-profile { display: flex; align-items: center; gap: 12px; padding: 8px 0 16px; }
    .right-profile .post-avatar { width: 56px; height: 56px; }
    .right-profile .post-avatar-inner { font-size: 20px; }
    .right-profile-name { font-weight: 600; font-size: 14px; }
    .right-profile-sub { font-size: 13px; color: var(--muted); }
    .right-section-title {
        display: flex; justify-content: space-between; align-items: center;
        font-size: 14px; font-weight: 600; color: var(--muted);
        margin: 12px 0 10px;
    }
    .suggestion-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
    .suggestion-avatar {
        width: 36px; height: 36px; border-radius: 50%;
        background: var(--card-2); border: 1px solid var(--border);
        display: flex; align-items: center; justify-content: center;
        font-weight: 700; font-size: 14px; color: var(--accent);
    }
    .suggestion-info { flex: 1; min-width: 0; }
    .suggestion-name { font-weight: 600; font-size: 13px; }
    .suggestion-tag { font-size: 11px; color: var(--muted); }
    .suggestion-follow { color: var(--accent); font-size: 12px; font-weight: 600; }

    /* ========== BACK TO TOP ========== */
    #backToTop {
        position: fixed; bottom: 24px; left: 24px;
        width: 46px; height: 46px;
        background: var(--accent); color: #fff; border: none; border-radius: 50%;
        display: none; align-items: center; justify-content: center;
        cursor: pointer; z-index: 3000; font-size: 18px;
        box-shadow: 0 4px 16px rgba(0,149,246,0.4);
        transition: 0.2s;
    }
    #backToTop:hover { transform: scale(1.1); }
    #backToTop.show { display: flex; }

    /* ========== LOADER ========== */
    .loading-spinner {
        width: 30px; height: 30px;
        border: 3px solid var(--card-2);
        border-top-color: var(--accent);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    #no-more { color: var(--muted); font-size: 13px; }

    /* ========== MOBILE NAV ========== */
    .mobile-nav {
        display: none;
        position: fixed; bottom: 0; width: 100%; height: 56px;
        background: color-mix(in srgb, var(--bg) 92%, transparent);
        backdrop-filter: blur(14px);
        border-top: 1px solid var(--border);
        z-index: 2500;
        align-items: center; justify-content: space-around;
    }
    .mobile-nav a, .mobile-nav button {
        color: var(--text); font-size: 22px;
        background: none; border: none;
    }
    .mobile-nav .active { color: var(--accent); }

    /* ========== RESPONSIVE ========== */
    @media (max-width: 1160px) {
        .ig-right-side { display: none; }
        .ig-container { max-width: 720px; }
        .ig-side-menu { width: 72px; }
        .side-link span { display: none; }
        .side-link { justify-content: center; padding: 12px; }
        .side-link i { font-size: 22px; }
    }
    @media (max-width: 768px) {
        body { padding-top: 52px; }
        .ig-header { height: 52px; }
        .ig-container { padding: 0; gap: 0; max-width: 100%; }
        .ig-side-menu { display: none; }
        .ig-main-feed { max-width: 100%; }
        .post-card { border-radius: 0; border-left: none; border-right: none; margin-bottom: 8px; }
        .stories-bar { padding: 8px 8px 12px; }
        .mobile-nav { display: flex; }
        .notif-panel { left: 10px; right: 10px; width: auto; }
        #backToTop { bottom: 70px; left: 16px; width: 40px; height: 40px; }
    }

/* neshim: modern editorial layout */
:root { --accent:#e11d48; --bg:#090d16; --card:#111827; --card-2:#182235; --border:#263247; --muted:#a6b2c5; --text:#f5f7fb; --shadow:0 18px 45px rgba(0,0,0,.28); }
[data-theme="light"] { --bg:#f2f5fa; --card:#fff; --card-2:#f5f7fb; --border:#e0e6ef; --text:#172033; --muted:#68758a; --accent:#c71943; --shadow:0 14px 35px rgba(30,50,80,.09); }
body { background:radial-gradient(ellipse at 50% -20%,rgba(225,29,72,.13),transparent 45%),var(--bg); font-family:Arial,"Segoe UI",sans-serif; }
.ig-header { background:color-mix(in srgb,var(--card) 88%,transparent); box-shadow:0 5px 25px rgba(0,0,0,.08); }
.ig-header-inner { max-width:1240px; }
.ig-logo { font-family:Arial,sans-serif; font-size:25px; letter-spacing:-1px; font-weight:900; background:linear-gradient(110deg,#fb7185,#e11d48 55%,#f59e0b); -webkit-background-clip:text; }
.ig-container { max-width:1240px; gap:34px; padding-top:22px; }
.ig-main-feed { max-width:600px; } .ig-side-menu,.ig-right-side { top:78px; }
.side-link { padding:12px 14px; border-radius:12px; }
.side-link:hover,.side-link.active { background:var(--card); box-shadow:0 5px 18px rgba(0,0,0,.08); }
.stat-pill { background:var(--card); border:1px solid var(--border); padding:8px 13px; border-radius:12px; }
.stories-bar { background:var(--card); border:1px solid var(--border); border-radius:16px; padding:14px 12px 12px; margin-bottom:18px; }
.story-item { color:inherit; text-decoration:none; }
.post-card { border-radius:18px; margin-bottom:22px; border-color:var(--border); box-shadow:var(--shadow); }
.post-header { padding:15px 17px; } .post-media { background:#080b12; }
.post-media img,.post-media video { max-height:620px; }
.post-caption { padding:7px 17px 14px; font-size:15px; line-height:1.75; }
.post-caption .caption-title { font-size:18px; line-height:1.45; letter-spacing:-.25px; }
.post-likes { padding:0 17px; } .post-actions { padding:10px 17px 5px; }
.action-btn:focus-visible,.icon-btn:focus-visible,.side-link:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.comments-area { padding:15px 17px; } .comment-form { align-items:center; } .comment-form input { min-width:0; }
.right-profile { background:var(--card); border:1px solid var(--border); padding:14px; border-radius:16px; }
.suggestion-row { border-radius:12px; padding:9px 10px; } .suggestion-row:hover { background:var(--card); }
.ig-search { border-radius:999px; padding-top:10px; padding-bottom:10px; }
@media(max-width:1160px) { .ig-container { max-width:850px; } .ig-main-feed { max-width:650px; } }
@media(max-width:768px) { body { padding-top:58px; } .ig-container { padding-top:8px; } .stats-pills { padding:0 10px; gap:6px; } .stat-pill { font-size:11px; padding:7px 9px; } .post-card { border-radius:0; box-shadow:none; } .post-caption .caption-title { font-size:17px; } .stories-bar { border-radius:0; border-left:0; border-right:0; margin-bottom:8px; } .ig-header-inner { padding:0 12px; } .ig-search-wrap { max-width:none; } .ig-search { font-size:13px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; } }


/* ===== neshim v3: hero, article page, share ===== */
.post-caption .caption-title { display:block; color:var(--text); }
.post-caption .caption-title:hover { color:var(--accent); }
.read-more { display:inline-block; margin-top:6px; color:var(--accent); font-weight:700; font-size:14px; }
.post-time a { color:inherit; }
.post-time a:hover { color:var(--accent); }
.site-toast { position:fixed; bottom:84px; left:50%; transform:translate(-50%,20px); background:var(--text); color:var(--bg); padding:10px 18px; border-radius:999px; font-size:14px; font-weight:600; opacity:0; pointer-events:none; transition:.25s; z-index:9000; box-shadow:var(--shadow); }
.site-toast.show { opacity:1; transform:translate(-50%,0); }

/* hero */
.hero-card { position:relative; display:block; min-height:340px; border-radius:20px; overflow:hidden; margin-bottom:22px; background:#0b1220; box-shadow:var(--shadow); color:#fff !important; isolation:isolate; }
.hero-card.no-img { background:linear-gradient(135deg,#e11d48 0%,#7c1d3f 55%,#1e1b4b 100%); }
.hero-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; transition:transform .6s ease; }
.hero-card:hover .hero-img { transform:scale(1.04); }
.hero-shade { position:absolute; inset:0; z-index:-1; background:linear-gradient(to top,rgba(5,8,16,.92) 0%,rgba(5,8,16,.55) 45%,rgba(5,8,16,.05) 100%); }
.hero-body { position:absolute; right:0; left:0; bottom:0; padding:22px 22px 20px; }
.hero-badges { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.hero-badge { background:var(--accent); color:#fff; font-size:12px; font-weight:800; padding:4px 11px; border-radius:999px; }
.hero-badge.ghost { background:rgba(255,255,255,.16); backdrop-filter:blur(6px); }
.hero-title { font-size:27px; line-height:1.3; font-weight:900; letter-spacing:-.4px; margin:0 0 8px; text-shadow:0 2px 14px rgba(0,0,0,.45); }
.hero-excerpt { margin:0 0 12px; color:rgba(255,255,255,.82); font-size:15px; line-height:1.6; }
.hero-meta { display:flex; flex-wrap:wrap; gap:14px; font-size:12px; color:rgba(255,255,255,.75); align-items:center; }
.hero-cta { margin-inline-start:auto; background:#fff; color:#111 !important; padding:6px 14px; border-radius:999px; font-weight:800; }
.hero-card:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
@media(max-width:768px) { .hero-card { border-radius:0; min-height:300px; margin-bottom:8px; } .hero-title { font-size:22px; } .hero-body { padding:18px 16px 16px; } }

/* article page */
.article-wrap { width:100%; max-width:780px; margin:0 auto; padding:22px 16px 40px; }
.article-card { background:var(--card); border:1px solid var(--border); border-radius:20px; overflow:hidden; box-shadow:var(--shadow); }
.article-media { background:#080b12; }
.article-media img, .article-media video { display:block; width:100%; max-height:560px; object-fit:contain; }
.article-body { padding:26px 28px 8px; }
.article-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.chip { background:var(--card-2); border:1px solid var(--border); color:var(--accent); font-size:13px; font-weight:700; padding:4px 12px; border-radius:999px; }
.chip:hover { background:var(--accent); color:#fff; border-color:var(--accent); }
.article-title { font-size:34px; line-height:1.3; font-weight:900; letter-spacing:-.6px; margin:0 0 14px; }
.article-meta { display:flex; flex-wrap:wrap; gap:6px 16px; color:var(--muted); font-size:13px; padding-bottom:16px; border-bottom:1px solid var(--border); margin-bottom:20px; align-items:center; }
.article-meta strong { color:var(--text); }
.article-content { font-size:18px; line-height:1.95; overflow-wrap:anywhere; }
.article-content p { margin:0 0 1.1em; }
.article-content img, .article-content video { max-width:100%; height:auto; border-radius:12px; }
.article-content a { color:var(--accent); text-decoration:underline; }
.article-content blockquote { border-inline-start:4px solid var(--accent); margin:1.2em 0; padding:4px 16px; color:var(--muted); }
.article-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:18px 28px 22px; }
.share-label { font-weight:700; font-size:14px; margin-inline-end:4px; }
.share-btn { display:inline-flex; align-items:center; gap:7px; background:var(--card-2); border:1px solid var(--border); color:var(--text); padding:9px 14px; border-radius:12px; font-size:14px; font-weight:600; cursor:pointer; transition:.18s; }
.share-btn:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
.share-btn.wa:hover { background:#25d366; border-color:#25d366; color:#fff; }
.share-btn.tg:hover { background:#229ed9; border-color:#229ed9; color:#fff; }
.share-btn.fb:hover { background:#1877f2; border-color:#1877f2; color:#fff; }
.share-btn.x:hover { background:#000; border-color:#000; color:#fff; }
.share-btn.liked { color:var(--danger); border-color:var(--danger); }
.share-btn.saved { color:var(--accent); border-color:var(--accent); }
.article-section { margin-top:22px; }
.article-section h2 { font-size:20px; font-weight:800; margin:0 0 14px; }
.related-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:14px; }
.related-card { background:var(--card); border:1px solid var(--border); border-radius:16px; overflow:hidden; display:flex; flex-direction:column; transition:.2s; }
.related-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.related-thumb { aspect-ratio:16/9; background:linear-gradient(135deg,var(--accent),#1e1b4b); display:flex; align-items:center; justify-content:center; font-size:28px; color:#fff; overflow:hidden; }
.related-thumb img { width:100%; height:100%; object-fit:cover; }
.related-title { padding:12px 14px 4px; font-weight:700; font-size:15px; line-height:1.45; }
.related-meta { padding:0 14px 12px; color:var(--muted); font-size:12px; }
.article-comments { background:var(--card); border:1px solid var(--border); border-radius:20px; padding:20px 22px; }
.article-comments .comment-form { flex-wrap:wrap; }
.article-comments .comment-form input { border-bottom:1px solid var(--border); }
.article-comments .comment-form input[name="user_name"] { width:130px; }
.back-link { display:inline-flex; gap:8px; align-items:center; color:var(--muted); font-size:14px; margin-bottom:14px; font-weight:600; }
.back-link:hover { color:var(--accent); }
.draft-banner { background:#f59e0b; color:#1a1200; padding:10px 16px; border-radius:12px; font-weight:700; margin-bottom:14px; font-size:14px; }
@media(max-width:768px) { .article-wrap { padding:12px 0 40px; } .article-card, .article-comments { border-radius:0; border-left:0; border-right:0; } .article-body { padding:20px 16px 4px; } .article-title { font-size:26px; } .article-content { font-size:17px; } .article-actions { padding:14px 16px 18px; } .article-section { padding:0 12px; } .back-link { margin-inline-start:12px; } }

/* ===== neshim v4: Heebo + logo ===== */
body, input, button, textarea, select { font-family: "Heebo", Arial, "Segoe UI", sans-serif; }
.ig-logo { display:inline-flex; align-items:center; gap:9px; background:none !important; -webkit-text-fill-color:initial !important; color:var(--text); font-family:"Heebo",Arial,sans-serif; letter-spacing:0; }
.logo-mark { width:32px; height:32px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#fb7185 0%,#e11d48 55%,#9f1239 100%); color:#fff; font-weight:900; font-size:19px; line-height:1; text-transform:lowercase; box-shadow:0 4px 14px rgba(225,29,72,.45); transform:rotate(-6deg); transition:transform .25s; }
.ig-logo:hover .logo-mark { transform:rotate(0) scale(1.06); }
.logo-word { font-size:23px; font-weight:900; letter-spacing:-.8px; background:linear-gradient(110deg,var(--text) 40%,#e11d48 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.hero-title, .article-title { font-weight:900; }
.post-caption .caption-title, .related-title { font-weight:700; }

/* ===== neshim v5: filter bar + install ===== */
.filter-bar { margin-bottom:14px; }
.sort-chips, .tag-scroll { display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; padding:2px 2px 6px; -webkit-overflow-scrolling:touch; }
.sort-chips::-webkit-scrollbar, .tag-scroll::-webkit-scrollbar { display:none; }
.fchip { flex:0 0 auto; display:inline-flex; align-items:center; gap:6px; background:var(--card); border:1px solid var(--border); color:var(--text); padding:8px 14px; border-radius:999px; font-size:14px; font-weight:600; white-space:nowrap; transition:.18s; }
.fchip:hover { border-color:var(--accent); color:var(--accent); }
.fchip.active { background:var(--accent); border-color:var(--accent); color:#fff; }
.sort-chips .fchip i { font-size:13px; }
.tag-scroll { display:none; }
@media(max-width:1160px) { .tag-scroll { display:flex; } }
@media(max-width:768px) { .filter-bar { padding:0 10px; margin-bottom:8px; } }
.install-banner { position:fixed; left:12px; right:12px; bottom:68px; max-width:520px; margin:0 auto; background:var(--card); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow); padding:12px 14px; display:flex; align-items:center; gap:12px; z-index:2600; animation:fadeUp .4s ease; }
.install-banner[hidden] { display:none; }
.ib-text { flex:1; display:flex; flex-direction:column; font-size:13px; color:var(--muted); line-height:1.4; }
.ib-text strong { color:var(--text); font-size:15px; }
.ib-go { background:var(--accent); color:#fff; border:0; border-radius:999px; padding:8px 18px; font-weight:800; cursor:pointer; }
.ib-x { background:none; border:0; color:var(--muted); font-size:16px; cursor:pointer; padding:4px; }
@media(min-width:769px) { .install-banner { bottom:20px; left:auto; right:20px; margin:0; } }
#installBtn[hidden] { display:none; }
@media all and (display-mode: standalone) { #installBtn, .install-banner { display:none !important; } }

/* ===== neshim v6: threaded comments ===== */
.no-comments { color:var(--muted); text-align:center; padding:10px; font-size:13px; }
.comment-meta { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.c-act { background:none; border:0; padding:2px 0; color:var(--muted); font-size:12px; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; gap:4px; transition:color .15s; }
.c-act:hover { color:var(--accent); }
.c-like.liked { color:var(--danger); }
.c-like i { font-size:13px; }
.comment-replies { margin-top:10px; padding-inline-start:4px; border-inline-start:2px solid var(--border); }
.comment-replies:empty { display:none; margin:0; }
.comment-item.is-reply { margin-bottom:8px; padding-inline-start:10px; }
.comment-item.is-reply .comment-avatar { width:24px; height:24px; font-size:10px; }
.comment-item.flash > .comment-body, .comment-item.flash { animation:cflash 2.2s ease; }
@keyframes cflash { 0%,60% { background:color-mix(in srgb, var(--accent) 16%, transparent); } 100% { background:transparent; } }
.reply-form { margin:8px 0 4px; flex-wrap:wrap; border-top:0 !important; padding-top:0 !important; background:var(--card); border:1px solid var(--border); border-radius:12px; padding:6px 10px !important; align-items:center; }
.reply-form input { border-bottom:0 !important; }
.reply-form input[name="user_name"] { width:90px; }
.reply-form input[name="comment_text"] { flex:1; min-width:140px; }
.c-cancel { color:var(--muted) !important; font-size:15px; }
.action-btn { position:relative; }
.action-count { font-size:13px; font-weight:700; margin-inline-start:5px; }
