:root{
    --bg:#f4f7fe;
    --card:#ffffff;
    --text:#111827;
    --muted:#6b7280;
    --line:#e5e7eb;
    --primary:#4f46e5;
    --primary-2:#6366f1;
    --success:#10b981;
    --warning:#f59e0b;
    --danger:#ef4444;
    --dark:#0f172a;
    --tg:#0088cc;
    --ba:#00a884;
    --ei:#ff7a00;
    --site:#ca011d;
    --radius:18px;
    --radius-sm:12px;
    --shadow:0 10px 30px rgba(2,6,23,.08);
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:"Vazirmatn",Tahoma,sans-serif;background:radial-gradient(1000px 500px at 120% -10%,#4f46e51a,transparent 50%),radial-gradient(900px 450px at -10% -20%,#10b98114,transparent 45%),var(--bg);color:var(--text);overflow-x:hidden}
.sidebar{position:fixed;right:0;top:0;bottom:0;width:280px;background:linear-gradient(165deg,#0b1022,#111827 40%,#1f2a44);color:#fff;z-index:1200;border-left:1px solid #ffffff14;overflow-y:auto;transition:.25s ease}
.sidebar-header{padding:22px 18px;border-bottom:1px solid #ffffff14;display:flex;align-items:center;gap:12px;position:sticky;top:0;background:linear-gradient(165deg,#0b1022,#111827 40%,#1f2a44);z-index:2}
.logo{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;color:#fff;font-size:20px;background:linear-gradient(135deg,var(--primary),var(--primary-2));box-shadow:0 10px 26px #6366f173;flex-shrink:0}
.brand-title{font-weight:800;font-size:15px}
.brand-sub{font-size:11px;color:#9ca3af}
.menu-title{font-size:11px;color:#94a3b8;padding:16px 18px 8px;letter-spacing:.3px}
.nav-item{display:flex;align-items:center;gap:10px;color:#cbd5e1;text-decoration:none;padding:12px 18px;border-right:3px solid transparent;cursor:pointer;transition:.18s;font-size:14px}
.nav-item:hover{background:#ffffff0f;color:#fff}
.nav-item.active{background:linear-gradient(90deg,#6366f138,#6366f114);border-right-color:var(--primary-2);color:#fff}
.nav-item .tag{margin-right:auto;font-size:10px;padding:2px 8px;border-radius:999px;background:#ffffff24}
.main{margin-right:280px;min-height:100vh}
.topbar{position:sticky;top:0;z-index:1;background:#ffffffd9;backdrop-filter:blur(10px);border-bottom:1px solid var(--line);padding:12px 20px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.search-wrap{width:min(420px,100%);background:#eef2ff;border:1px solid #e0e7ff;border-radius:12px;padding:8px 12px;display:flex;align-items:center;gap:8px}
.search-wrap input{border:none;background:transparent;outline:none;width:100%;font-family:inherit;font-size:14px;color:var(--text)}
.icon-btn{border:none;background:#fff;border:1px solid var(--line);width:40px;height:40px;border-radius:10px;display:grid;place-items:center;color:#475569;cursor:pointer}
.user-chip{display:flex;align-items:center;gap:10px;padding:4px 6px 4px 4px;border:1px solid var(--line);border-radius:12px;background:#fff}
.user-chip img{width:34px;height:34px;border-radius:10px;object-fit:cover}
.user-chip .name{font-size:13px;font-weight:700;line-height:1}
.user-chip .role{font-size:11px;color:var(--muted);line-height:1.6}
.content{padding:20px}
.page{display:none}
.page.active{display:block;animation:fade .22s ease}
@keyframes fade {
from{opacity:0;transform:translateY(4px)}
to{opacity:1;transform:none}
}
.cardx{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.cardx-head{padding:16px 16px 10px;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.cardx-title{font-size:15px;font-weight:800}
.cardx-sub{font-size:12px;color:var(--muted)}
.cardx-body{padding:12px 16px 16px}
.section-title{font-size:23px;font-weight:900;margin-bottom:2px}
.section-sub{font-size:13px;color:var(--muted);margin-bottom:14px}
.stat{border:none;color:#fff;border-radius:16px;padding:16px;position:relative;overflow:hidden;min-height:130px}
.stat::after{content:"";position:absolute;left:-20px;bottom:-26px;width:120px;height:120px;border-radius:50%;background:#ffffff26}
.s1{background:linear-gradient(135deg,#4f46e5,#6366f1)}
.s2{background:linear-gradient(135deg,#0ea5e9,#0284c7)}
.s3{background:linear-gradient(135deg,#10b981,#059669)}
.s4{background:linear-gradient(135deg,#f59e0b,#d97706)}
.stat .ico{font-size:19px}
.stat .num{font-size:30px;font-weight:900;line-height:1.2;margin-top:8px}
.stat .txt{font-size:12px;opacity:.95}
.stat .trend{margin-top:10px;font-size:11px;background:#fff3;display:inline-flex;gap:6px;align-items:center;padding:3px 9px;border-radius:999px}
.news-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:14px}
.news-col{grid-column:span 4}
.news-card{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;height:100%;display:flex;flex-direction:column;transition:.2s}
.news-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px #0206171a}
.news-card.selected{border-color:var(--primary);box-shadow:0 0 0 3px #6366f124}
.news-thumb{height:170px;background:#eef2ff;position:relative}
.news-thumb img{width:100%;height:100%;object-fit:cover}
.badge-source{position:absolute;top:10px;left:45px;background:#111827;color:#fff;font-size:10px;padding:4px 9px;border-radius:999px;opacity:.9}
.badge-platform{position:absolute;top:10px;right:10px;color:#fff;font-size:10px;padding:4px 9px;border-radius:999px}
.b-tg{background:var(--tg)}
.b-ba{background:var(--ba)}
.b-ei{background:var(--ei)}
.chk{position:absolute;top:7px;left:10px;background:#0009;border-radius:8px;padding:4px 7px 0;border:0}
.news-body{padding:12px 12px 10px;display:flex;flex-direction:column;flex:1}
.news-title{font-size:14px;font-weight:800;line-height:1.9;min-height:54px;max-height:54px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.news-desc{margin-top:7px;font-size:12px;color:var(--muted);line-height:1.9;min-height:46px;max-height:46px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.news-meta{margin-top:auto;display:flex;justify-content:space-between;align-items:center;border-top:1px dashed #e5e7eb;padding-top:8px;font-size:11px;color:var(--muted)}
.mini-btn{border:none;background:#eef2ff;color:#3730a3;padding:7px 10px;border-radius:8px;font-size:12px;font-weight:700;cursor:pointer}
.mini-btn.dark{background:#111827;color:#fff}
.mini-btn.green{background:#e8fff4;color:#065f46}
.table thead th{background:#f8fafc;color:#64748b;font-size:12px;border-bottom:1px solid var(--line)}
.table td{vertical-align:middle}
.avatar{width:40px;height:40px;border-radius:12px;object-fit:cover}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding:4px 10px;border-radius:999px;background:#e0ffe0;color:#2f6124}
.chip.ok{background:#dcfce7;color:#166534}
.chip.off{background:#fee2e2;color:#991b1b}
.chip.info{background:#e0e7ff;color:#3730a3}
.platform{color:#fff;font-size:11px;padding:5px 10px;border-radius:999px;display:inline-flex;align-items:center;gap:5px}
.ptg{background:var(--tg)}
.pba{background:var(--ba)}
.pei{background:var(--ei)}
.bulk{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:1400;background:#0f172a;color:#fff;border:1px solid #ffffff24;box-shadow:0 20px 40px #02061759;border-radius:14px;padding:10px 12px;display:none;align-items:center;gap:8px;flex-wrap:wrap}
.bulk.show{display:flex}
.bulk .count{background:#312e81;padding:5px 10px;border-radius:999px;font-size:12px}
.bulk .btn{border:none;border-radius:9px;padding:8px 12px;font-size:12px;font-weight:700}
.bulk .send{background:#0ea5e9;color:#fff}
.bulk .pdf{background:#f43f5e;color:#fff}
.bulk .clear{background:#1f2937;color:#fff}
.form-control,.form-select{border-radius:12px;border:1px solid #dbe2ea}
.btn-grad{border:none;border-radius:12px;padding:10px 14px;font-weight:800;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff}
.toastx{position:fixed;left:16px;top:16px;z-index:1500;background:#fff;border:1px solid var(--line);border-right:4px solid var(--success);border-radius:12px;padding:10px 12px;box-shadow:var(--shadow);display:none;min-width:220px}
.toastx.show{display:block}
@media (max-width:1200px) {
.news-col{grid-column:span 6}
}
@media (max-width:992px) {
.sidebar{right:-290px}
.sidebar.show{right:0}
.main{margin-right:0}
.news-col{grid-column:span 12}
}
.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#0F172A,#1E3A5F)}
.login-card{background:#fff;padding:40px;border-radius:20px;width:100%;max-width:400px}
.login-logo{width:64px;height:64px;border-radius:16px;background:var(--primary);color:#fff;font-size:28px;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.login-card h1{text-align:center;font-size:20px}
.login-sub{text-align:center;color:var(--muted);font-size:12px;margin:6px 0 24px}
.alert{padding:12px 16px;border-radius:10px;margin-bottom:16px;font-size:13px}
.alert-error{background:#FEE2E2;color:#991B1B}
@media (max-width: 900px) {
.sidebar{position:fixed;right:-260px;z-index:80}
.sidebar.open{right:0;box-shadow:0 0 60px #0006}
.content{padding:16px}
.field-row{flex-direction:column;gap:0}
.user-info{display:none}
}
.news-card{transition:.2s}
.news-thumb>div{display:flex}
.news-card{transition:.2s}
.news-thumb>div{display:flex}
*{scrollbar-width:thin;scrollbar-color:#435c80 #212939}
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:linear-gradient(180deg,#eef2ff,#e2e8f0);border-radius:999px}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#6366f1,#4f46e5);border-radius:999px;border:2px solid #eaf0ff;box-shadow:inset 0 0 0 1px #ffffff40}
::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#4f46e5,#4338ca)}
::-webkit-scrollbar-thumb:active{background:linear-gradient(180deg,#4338ca,#3730a3)}
::-webkit-scrollbar-corner{background:#eaf0ff}
.sidebar{scrollbar-width:thin;scrollbar-color:#21294a #ffffff0f}
.sidebar::-webkit-scrollbar{width:10px}
.sidebar::-webkit-scrollbar-track{background:#ffffff0d;border-radius:999px}
.sidebar::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#6366f1e6,#4f46e5e6);border-radius:999px;border:2px solid transparent;background-clip:padding-box}
.sidebar::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#818cf8f2,#6366f1f2)}
.modal-body,.cardx-body,.table-responsive{scrollbar-gutter:stable both-edges}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce) {
html{scroll-behavior:auto}
}
.news-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid var(--line);background:linear-gradient(135deg,#fff,#f8faff);border-radius:16px;box-shadow:0 8px 24px #0206170d}
.news-head-main{min-width:0}
.news-kicker{font-size:11px;font-weight:800;color:#4f46e5;letter-spacing:.2px;margin-bottom:6px}
.news-title-pro{margin:0;font-size:24px;font-weight:900;line-height:2;color:#0f172a;word-break:break-word}
.news-meta-pro{margin-top:8px;display:flex;gap:8px;flex-wrap:wrap}
.meta-chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#475569;background:#eef2ff;border:1px solid #e0e7ff;border-radius:999px;padding:5px 10px}
.news-head-actions{flex-shrink:0}
.btn-back-pro{display:inline-flex;align-items:center;gap:7px;text-decoration:none;border:1px solid var(--line);background:#fff;color:#111827;border-radius:12px;padding:9px 12px;font-size:13px;font-weight:700;transition:.18s}
.btn-back-pro:hover{background:#eef2ff;border-color:#c7d2fe;color:#312e81}
.news-content{line-height:2.2}
.news-content img{max-width:100%;height:auto;border-radius:8px}
.news-content figure{max-width:100%;margin:12px 0}
.news-content a{word-break:break-word}
@media (max-width: 768px) {
.news-head{flex-direction:column;align-items:stretch}
.news-title-pro{font-size:20px;line-height:1.9}
.news-head-actions{width:100%}
.btn-back-pro{justify-content:center;width:100%}
}
:root{--site:#ca011d}
.dashboard-stat{min-height:142px;box-shadow:0 12px 26px #0f172a1f}
.dashboard-stat:hover{transform:translateY(-2px);transition:transform .18s ease}
.stat-total{background:linear-gradient(135deg,#4f46e5,#6366f1)}
.stat-org{background:linear-gradient(135deg,#0f766e,#0b563d)}
.stat-public{background:linear-gradient(135deg,#7c3aed,#451d6a)}
.stat-telegram{background:linear-gradient(135deg,#08c,#0077b6)}
.stat-bale{background:linear-gradient(135deg,#00a884,#047857)}
.stat-eitaa{background:linear-gradient(135deg,#ff8a00,#ea580c)}
.stat-site{background:linear-gradient(135deg,#ca011d,#9f1239)}
.dashboard-latest-news{padding-top:4px;padding-bottom:8px}
.latest-news-item{display:flex;align-items:center;gap:10px;padding:10px 2px;border-bottom:1px solid #eef2f7;text-decoration:none;color:inherit;transition:.18s ease}
.latest-news-item:last-child{border-bottom:0}
.latest-news-item:hover{background:#f8faff;border-radius:10px;padding-right:8px;padding-left:8px;color:inherit}
.latest-platform{flex-shrink:0;min-width:72px;justify-content:center}
.latest-news-title{flex:1;min-width:0;font-size:13px;font-weight:800;line-height:1.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.latest-news-channel{color:var(--muted);font-size:10px;font-weight:500;margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.latest-media-icon{flex-shrink:0;border:1px solid #dbeafe;background:#eff6ff;color:#2563eb;border-radius:8px;padding:4px 7px;font-size:11px}
.latest-news-date{flex-shrink:0;color:var(--muted);font-size:10px;direction:ltr;white-space:nowrap}
.dashboard-platform-table th,.dashboard-platform-table td{white-space:nowrap}
@media (max-width:576px) {
.latest-platform{min-width:auto;padding:5px 7px}
.latest-platform i{margin:0}
.latest-platform{font-size:0}
.latest-platform i{font-size:11px}
.latest-news-date{display:none}
}
.topbar-search-area{width:min(460px,100%)}
.search-wrap{width:100%;min-width:220px;display:flex;align-items:center;gap:8px}
.global-search-submit{flex-shrink:0;display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:#4f46e5;cursor:pointer;transition:.18s ease}
.global-search-submit:hover{background:#dfe5ff;color:#3730a3}
.notification-wrap{position:relative}
.notification-btn{position:relative}
.notification-count{position:absolute;top:-7px;left:-8px;min-width:18px;height:18px;display:flex;align-items:center;justify-content:center;padding:0 4px;border-radius:999px;background:#ef4444;border:2px solid #fff;color:#fff;font-size:9px;font-weight:800;line-height:1}
.notification-btn.has-notification i{animation:notificationBell 2.5s ease-in-out infinite}
@keyframes notificationBell {
0%,84%,100%{transform:rotate(0)}
87%{transform:rotate(12deg)}
90%{transform:rotate(-12deg)}
93%{transform:rotate(8deg)}
96%{transform:rotate(-5deg)}
}
.notification-panel{position:absolute;top:calc(100% + 12px);left:0;z-index:1300;width:370px;max-width:calc(100vw - 24px);overflow:hidden;opacity:0;visibility:hidden;transform:translateY(-8px);pointer-events:none;background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 18px 48px #0f172a2e;transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
.notification-panel.show{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.notification-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;background:linear-gradient(135deg,#eef2ff,#f8faff);border-bottom:1px solid #e5e7eb}
.notification-title{font-size:13px;font-weight:900;color:#111827}
.notification-sub{margin-top:3px;color:#6b7280;font-size:11px}
.notification-head-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#4338ca;background:#e0e7ff}
.notification-list{max-height:340px;overflow-y:auto}
.notification-item{display:flex;align-items:center;gap:9px;padding:10px 12px;color:#111827;text-decoration:none;border-bottom:1px solid #f1f5f9;transition:.16s ease}
.notification-item:hover{color:#111827;background:#f8faff}
.notification-platform{width:30px;height:30px;flex-shrink:0;display:grid;place-items:center;border-radius:9px;color:#fff;font-size:12px}
.notification-content{flex:1;min-width:0}
.notification-item-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:800}
.notification-item-meta{display:flex;align-items:center;gap:9px;margin-top:4px;color:#6b7280;font-size:10px}
.notification-item-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notification-media{flex-shrink:0;color:#2563eb;font-size:12px}
.notification-empty{padding:30px 16px;color:#6b7280;text-align:center;font-size:12px;line-height:2}
.notification-empty i{display:block;margin-bottom:7px;color:#94a3b8;font-size:25px}
.notification-footer{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;background:#fafafa;color:#4338ca;text-decoration:none;font-size:12px;font-weight:800;transition:.16s ease}
.notification-footer:hover{background:#eef2ff;color:#3730a3}
@media (max-width:576px) {
.topbar{padding:10px 12px}
.topbar-search-area{width:auto;flex:1}
.search-wrap{min-width:0}
.user-chip .logo,.user-chip .user-info{display:none}
.user-chip{padding:0;border:0;background:transparent}
.notification-panel{position:fixed;top:62px;left:12px;right:12px;width:auto;max-width:none}
}