/* ===== پرتال جامع خدمات کافی‌نت ===== */
@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-Medium.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');font-weight:800;font-display:swap}

:root{
  --orange:#f97316;--orange-d:#ea6a0a;--orange-s:#fff3e8;
  --navy:#1e2a4a;--navy-d:#16213e;
  --bg:#f3f4f6;--card:#ffffff;--line:#e7e9ee;
  --txt:#27303f;--muted:#6b7280;
  --r:16px;--r-sm:10px;
  --sh:0 2px 14px rgba(30,42,74,.07);
  --sh-h:0 10px 26px rgba(30,42,74,.13);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Vazirmatn','Vazir',Tahoma,'Segoe UI',sans-serif;background:var(--bg);color:var(--txt);font-size:14.5px;line-height:1.9;direction:rtl;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer}
input,select,textarea{font-family:inherit;font-size:14.5px}
.container{width:100%;max-width:1340px;margin-inline:auto;padding-inline:16px}
.container.narrow{max-width:900px}
.muted{color:var(--muted);font-size:13px}
.h-sm{font-size:19px;color:var(--navy);margin-bottom:18px}
.center{text-align:center}

/* ===== هدر ===== */
.site-header{position:sticky;top:0;z-index:50;box-shadow:0 1px 10px rgba(30,42,74,.08)}
.hd-main{background:var(--card)}
.hd-in{display:flex;align-items:center;gap:18px;height:66px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--navy);font-size:17px;white-space:nowrap}
.brand small{display:block;font-size:10.5px;font-weight:500;color:var(--muted);line-height:1.3}
.brand-mark{width:40px;height:40px;border-radius:12px;background:var(--orange);color:#fff;display:grid;place-items:center;font-size:20px;font-weight:800;flex:none}
.brand-mark.dark{background:var(--navy)}
.hd-menu{display:flex;gap:4px;list-style:none;margin-inline-start:8px}
.hd-menu a{display:block;padding:8px 12px;border-radius:10px;font-weight:500;color:#3d4658;transition:.15s}
.hd-menu a:hover,.hd-menu a.active{background:var(--orange-s);color:var(--orange-d);font-weight:700}
.hd-side{display:flex;align-items:center;gap:8px;margin-inline-start:auto}
.icon-btn{width:40px;height:40px;border:1px solid var(--line);background:#fff;border-radius:12px;display:grid;place-items:center;color:#4b5563;transition:.15s;position:relative}
.icon-btn:hover{border-color:var(--orange);color:var(--orange)}
.icon-btn svg{width:20px;height:20px}
.icon-btn .dot{position:absolute;top:5px;left:5px;width:8px;height:8px;border-radius:50%;background:var(--orange);display:none}
.icon-btn.has-dot .dot{display:block}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:none;border-radius:12px;padding:10px 20px;font-weight:700;font-size:14px;transition:.18s;line-height:1.6}
.btn svg{width:17px;height:17px;flex:none}
.btn-orange{background:var(--orange);color:#fff}
.btn-orange:hover{background:var(--orange-d);transform:translateY(-1px);box-shadow:0 6px 16px rgba(249,115,22,.35)}
.btn-ghost{background:#fff;border:1px solid var(--line);color:#3d4658}
.btn-ghost:hover{border-color:var(--orange);color:var(--orange)}
.btn-navy{background:var(--navy);color:#fff}
.btn-navy:hover{background:var(--navy-d)}
.btn-danger{background:#fee2e2;color:#b91c1c}
.btn-danger:hover{background:#fecaca}
.btn-sm{padding:7px 14px;font-size:13px;border-radius:10px}
.btn-block{width:100%}
.hamburger{display:none}
.search-top{display:none;width:100%;padding:8px 0 12px}
.search-top.open{display:block}
.search-top .search-box{box-shadow:none;border:1px solid var(--line)}

/* نوار نارنجی دسته‌ها */
.quickbar{background:var(--orange)}
.qb-in{display:flex;align-items:center;gap:2px;overflow-x:auto;scrollbar-width:none;height:46px}
.qb-in::-webkit-scrollbar{display:none}
.qb-in a{color:#fff;font-size:13.5px;font-weight:500;padding:6px 13px;border-radius:9px;white-space:nowrap;transition:.15s;display:flex;align-items:center;gap:6px}
.qb-in a svg{width:15px;height:15px;opacity:.9}
.qb-in a:hover{background:rgba(255,255,255,.18)}

/* Drawer موبایل */
.drawer-back{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:60;opacity:0;pointer-events:none;transition:.2s}
.drawer-back.open{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;bottom:0;right:-300px;width:290px;background:#fff;z-index:61;transition:.25s;display:flex;flex-direction:column;padding:18px}
.drawer.open{right:0}
.drawer .brand{margin-bottom:14px}
.drawer nav{display:flex;flex-direction:column;gap:2px}
.drawer nav a{padding:11px 13px;border-radius:11px;font-weight:600;color:#3d4658}
.drawer nav a:hover,.drawer nav a.active{background:var(--orange-s);color:var(--orange-d)}

/* ===== Hero ===== */
.hero{background:linear-gradient(180deg,#fff 0%,var(--bg) 100%);padding:52px 0 34px;text-align:center}
.hero h1{font-size:29px;font-weight:800;color:var(--navy);line-height:1.7}
.hero-sub{color:var(--muted);margin:10px 0 26px;font-size:15.5px}
.search-box{display:flex;align-items:center;gap:10px;background:#fff;border-radius:16px;box-shadow:var(--sh);padding:6px 18px;max-width:640px;margin-inline:auto;border:1.5px solid transparent;transition:.2s}
.search-box:focus-within{border-color:var(--orange);box-shadow:0 6px 22px rgba(249,115,22,.16)}
.search-icon{color:var(--muted);display:grid;place-items:center;flex:none}
.search-icon svg{width:21px;height:21px}
.search-box input{flex:1;border:none;outline:none;background:transparent;padding:12px 0;font-size:15px;min-width:0}
.clear-btn{border:none;background:#f1f2f5;color:#6b7280;width:28px;height:28px;border-radius:50%;flex:none;font-size:13px}
.hero-tags{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;margin-top:20px}
.hero-tags a{background:#fff;border:1px solid var(--line);color:#4b5563;padding:7px 16px;border-radius:99px;font-size:13px;font-weight:500;transition:.15s}
.hero-tags a:hover{background:var(--orange);border-color:var(--orange);color:#fff}

/* ===== سکشن‌ها ===== */
.section{padding:44px 0}
.section-alt{background:linear-gradient(180deg,var(--bg),#eceef2 50%,var(--bg))}
.section-head{text-align:center;margin-bottom:30px}
.section-kicker{display:inline-block;font-size:11.5px;font-weight:700;letter-spacing:2.5px;color:var(--orange);background:var(--orange-s);padding:4px 14px;border-radius:99px;text-transform:uppercase}
.section-head h2{font-size:24px;font-weight:800;color:var(--navy);margin-top:10px}
.section-desc{color:var(--muted);margin-top:6px;font-size:14px}
.page-head{background:#fff;border-bottom:1px solid var(--line);padding:22px 0}
.crumbs{font-size:12.5px;color:var(--muted);display:flex;gap:8px;margin-bottom:12px}
.crumbs a:hover{color:var(--orange)}
.page-title-row{display:flex;align-items:center;gap:14px}
.page-title-row h1{font-size:23px;font-weight:800;color:var(--navy)}
.page-title-row p{color:var(--muted);font-size:13.5px}
.page-ico{width:52px;height:52px;border-radius:15px;background:var(--orange-s);color:var(--orange);display:grid;place-items:center;flex:none}
.page-ico svg{width:26px;height:26px}

/* ===== گرید‌ها ===== */
.grid{display:grid;gap:18px;grid-template-columns:1fr}
@media(min-width:420px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:768px){.grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1024px){.grid{grid-template-columns:repeat(4,1fr)}}
@media(min-width:1280px){.sys-grid,.cats-grid{grid-template-columns:repeat(5,1fr)}}
.cats-grid .grid-item{min-width:0}
.cats-grid .card{min-width:0}

/* ===== کارت دسته ===== */
.cat-card{background:var(--card);border-radius:var(--r);box-shadow:var(--sh);padding:22px 14px;text-align:center;transition:.22s;border:1px solid transparent;display:block;position:relative;min-width:0}
.cat-card:hover{transform:translateY(-5px);box-shadow:var(--sh-h);border-color:#ffd9bd}
.cat-ico{width:58px;height:58px;margin:0 auto 13px;border-radius:16px;display:grid;place-items:center;transition:.2s}
.cat-ico svg{width:28px;height:28px}
.cat-card h3{font-size:14.5px;font-weight:700;color:var(--navy);line-height:1.7}
.cat-card .cat-cnt{display:inline-grid;place-items:center;position:absolute;top:12px;left:12px;min-width:24px;height:24px;border-radius:99px;background:var(--orange);color:#fff;font-size:11.5px;font-weight:700;padding:0 7px}
.cat-card .cat-go{margin-top:9px;font-size:12px;color:var(--orange-d);font-weight:600;opacity:0;transition:.2s}
.cat-card:hover .cat-go{opacity:1}

/* ===== کارت سامانه ===== */
.sys-card{background:var(--card);border-radius:var(--r);box-shadow:var(--sh);padding:20px 16px 16px;display:flex;flex-direction:column;align-items:center;text-align:center;transition:.22s;border:1px solid transparent;position:relative;min-width:0}
.sys-card:hover{transform:translateY(-5px);box-shadow:var(--sh-h);border-color:#ffd9bd}
.sys-logo{width:74px;height:74px;border-radius:18px;background:#f6f7f9;display:grid;place-items:center;margin-bottom:12px;overflow:hidden;flex:none}
.sys-logo img{width:56px;height:56px;object-fit:contain}
.sys-logo .logo-fb{display:none;width:100%;height:100%;place-items:center;font-size:26px;font-weight:800;color:#fff;border-radius:18px}
.sys-card h3{font-size:14px;font-weight:700;color:var(--navy);line-height:1.75;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:3.4em}
.sys-domain{font-size:11.5px;color:#9ca3af;direction:ltr;margin-top:2px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sys-desc{font-size:12.5px;color:var(--muted);margin-top:7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.85}
.chip-cat{margin-top:10px;background:var(--orange-s);color:var(--orange-d);font-size:11px;font-weight:700;padding:3px 12px;border-radius:99px}
.sys-actions{margin-top:13px;width:100%;display:flex;gap:8px}
.sys-actions .btn{flex:1;padding:9px 10px;font-size:13px;border-radius:11px}
.fav-btn{position:absolute;top:12px;left:12px;width:34px;height:34px;border:none;background:transparent;color:#c3c9d4;display:grid;place-items:center;border-radius:10px;transition:.15s;z-index:2}
.fav-btn svg{width:19px;height:19px}
.fav-btn:hover{color:#ef4444;background:#fef2f2}
.fav-btn.on{color:#ef4444}
.fav-btn.on svg{fill:#ef4444}
.badge-new{position:absolute;top:12px;right:12px;background:#22c55e;color:#fff;font-size:10px;font-weight:700;padding:2.5px 10px;border-radius:99px}
.card{background:var(--card);border-radius:var(--r);box-shadow:var(--sh)}

/* ===== نوار ابزار ===== */
.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:22px}
.filter-chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{background:#fff;border:1px solid var(--line);color:#4b5563;padding:7px 17px;border-radius:99px;font-size:13px;font-weight:500;transition:.15s}
.chip:hover{border-color:var(--orange);color:var(--orange)}
.chip.active{background:var(--orange);border-color:var(--orange);color:#fff;font-weight:700}
.toolbar-side{display:flex;gap:9px;margin-inline-start:auto;align-items:center}
.select{background:#fff;border:1px solid var(--line);border-radius:11px;padding:8px 13px;color:#3d4658;outline:none}
.select:focus{border-color:var(--orange)}
.search-inline{box-shadow:none;border:1px solid var(--line);margin:0;max-width:340px;padding:4px 14px}
.search-inline input{padding:8px 0;font-size:13.5px}

/* ===== حالت خالی ===== */
.empty{text-align:center;padding:56px 16px;background:#fff;border-radius:var(--r);box-shadow:var(--sh)}
.empty-icon{font-size:40px;margin-bottom:10px}
.empty h3{color:var(--navy);font-size:17px}
.empty p{color:var(--muted);margin:6px 0 16px}
.load-wrap{text-align:center;margin-top:24px}

/* ===== خدمات پرتقاضا ===== */
.quick-card{display:flex;align-items:center;gap:13px;background:var(--card);border-radius:var(--r);box-shadow:var(--sh);padding:15px 16px;transition:.2s;border:1px solid transparent;min-width:0}
.quick-card:hover{transform:translateY(-4px);box-shadow:var(--sh-h);border-color:#ffd9bd}
.quick-ico{width:46px;height:46px;border-radius:13px;background:var(--orange-s);color:var(--orange);display:grid;place-items:center;flex:none}
.quick-ico svg{width:22px;height:22px}
.quick-card b{font-size:13.5px;color:var(--navy);display:block;line-height:1.6}
.quick-card span{font-size:11.5px;color:var(--muted)}
.quick-card .q-arrow{margin-inline-start:auto;color:var(--orange);flex:none}
.quick-card .q-arrow svg{width:17px;height:17px}

/* ===== آموزش ===== */
.tut-card{background:var(--card);border-radius:var(--r);box-shadow:var(--sh);padding:20px;transition:.2s;border:1px solid transparent;display:flex;flex-direction:column;min-width:0}
.tut-card:hover{transform:translateY(-4px);box-shadow:var(--sh-h);border-color:#ffd9bd}
.tut-ico{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;margin-bottom:12px}
.tut-ico svg{width:22px;height:22px}
.tut-card h3{font-size:14.5px;font-weight:700;color:var(--navy);line-height:1.7}
.tut-card p{font-size:12.5px;color:var(--muted);margin-top:6px;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tut-link{margin-top:12px;font-size:13px;font-weight:700;color:var(--orange-d);display:inline-flex;align-items:center;gap:5px}
.tut-link svg{width:15px;height:15px}

/* ===== جزئیات سامانه ===== */
.sys-detail{padding:32px}
.sd-top{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.sd-logo{width:96px;height:96px;border-radius:22px;background:#f6f7f9;display:grid;place-items:center;flex:none;overflow:hidden}
.sd-logo img{width:68px;height:68px;object-fit:contain}
.sd-logo .logo-fb{display:none;width:100%;height:100%;place-items:center;font-size:34px;font-weight:800;color:#fff;border-radius:22px}
.sd-info{flex:1;min-width:230px}
.sd-info h1{font-size:21px;font-weight:800;color:var(--navy)}
.sd-url{display:inline-flex;align-items:center;gap:6px;direction:ltr;font-size:13px;color:var(--orange-d);background:var(--orange-s);padding:4px 13px;border-radius:99px;margin-top:8px}
.sd-url svg{width:14px;height:14px}
.sd-desc{margin-top:14px;color:#4b5563}
.sd-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.sd-meta span{background:#f3f4f6;color:#4b5563;font-size:12px;padding:5px 13px;border-radius:9px}
.sd-actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}
.sd-warn{margin-top:18px;background:#fffbeb;border:1px solid #fde68a;color:#92400e;font-size:12.5px;padding:11px 15px;border-radius:12px}
.article{padding:34px}
.article h1{font-size:22px;color:var(--navy);margin-bottom:6px}
.article .art-meta{font-size:12px;color:var(--muted);margin-bottom:20px}
.article p{margin-bottom:14px;color:#374151;text-align:justify}
.article h2{font-size:17px;color:var(--navy);margin:20px 0 10px}

/* ===== فوتر ===== */
.site-footer{background:var(--navy-d);color:#c7cede;margin-top:40px}
.ft-in{display:grid;grid-template-columns:1fr;gap:30px;padding:44px 0 34px}
@media(min-width:768px){.ft-in{grid-template-columns:2fr 1fr 1fr 1.3fr}}
.ft-col h4{color:#fff;font-size:15px;margin-bottom:14px;position:relative;padding-bottom:9px}
.ft-col h4::after{content:'';position:absolute;right:0;bottom:0;width:34px;height:2.5px;border-radius:9px;background:var(--orange)}
.ft-col p{font-size:13px;line-height:2}
.ft-col ul{list-style:none;display:flex;flex-direction:column;gap:8px}
.ft-col ul a{font-size:13px;color:#aab4c8;transition:.15s}
.ft-col ul a:hover{color:var(--orange)}
.ft-contact li{display:flex;gap:9px;align-items:flex-start;font-size:13px;color:#aab4c8}
.ft-contact svg{width:16px;height:16px;flex:none;margin-top:4px;color:var(--orange)}
.ft-social{display:flex;gap:9px;margin-top:14px}
.ft-social a{width:38px;height:38px;border-radius:11px;background:rgba(255,255,255,.07);display:grid;place-items:center;color:#c7cede;transition:.15s}
.ft-social a:hover{background:var(--orange);color:#fff}
.ft-social svg{width:18px;height:18px}
.ft-brand{display:flex;align-items:center;gap:10px;margin-bottom:13px;color:#fff;font-weight:800;font-size:16px}
.ft-bottom{border-top:1px solid rgba(255,255,255,.08);padding:16px 0;text-align:center;font-size:12.5px;color:#8b96ab}

/* ===== پنل مدیریت ===== */
.admin-body{background:#eef0f4}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,var(--navy-d),#2b3a63)}
.login-card{width:100%;max-width:400px;padding:34px 28px;text-align:center}
.login-logo{width:64px;height:64px;border-radius:18px;background:var(--orange);color:#fff;font-size:30px;font-weight:800;display:grid;place-items:center;margin:0 auto 15px}
.login-card h1{font-size:19px;color:var(--navy)}
.login-card .muted{margin:7px 0 18px}
.hint{font-size:11.5px;color:#9ca3af;margin-top:14px}
.form-error{background:#fef2f2;color:#b91c1c;font-size:12.5px;padding:8px 12px;border-radius:9px;margin-bottom:12px}
.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#3d4658}
.field input,.field textarea,.field select,.input-file{border:1.5px solid var(--line);border-radius:11px;padding:10px 13px;outline:none;background:#fff;transition:.15s;font-weight:400}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--orange)}
.admin-topbar{background:#fff;box-shadow:0 1px 8px rgba(30,42,74,.08);position:sticky;top:0;z-index:40}
.admin-topbar-in{display:flex;align-items:center;justify-content:space-between;height:62px}
.admin-actions{display:flex;gap:8px}
.admin-layout{padding:24px 16px 50px}
.admin-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:22px}
.admin-tab{background:#fff;border:1px solid var(--line);border-radius:12px;padding:9px 19px;font-weight:600;font-size:13.5px;color:#4b5563;transition:.15s}
.admin-tab.active{background:var(--navy);border-color:var(--navy);color:#fff}
.panel-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}
.panel-bar h2{font-size:17px;color:var(--navy)}
.badge{background:var(--orange-s);color:var(--orange-d);font-size:12px;padding:2px 11px;border-radius:99px;font-weight:700}
.table-wrap{overflow-x:auto}
.admin-table{width:100%;border-collapse:collapse;min-width:640px}
.admin-table th{background:#f8f9fb;color:#4b5563;font-size:12px;font-weight:700;text-align:right;padding:12px 14px;border-bottom:1px solid var(--line);white-space:nowrap}
.admin-table td{padding:10px 14px;border-bottom:1px solid #f0f1f4;font-size:13px;vertical-align:middle}
.admin-table tr:last-child td{border-bottom:none}
.admin-table tr:hover td{background:#fafbfc}
.w-order{width:90px}
.order-cell{display:flex;align-items:center;gap:2px}
.grip{cursor:grab;color:#c3c9d4;display:grid;place-items:center}
.grip svg{width:15px;height:15px}
.mv-btn{border:1px solid var(--line);background:#fff;width:24px;height:24px;border-radius:7px;font-size:11px;color:#6b7280;line-height:1}
.mv-btn:hover{border-color:var(--orange);color:var(--orange)}
.sys-name-cell{display:flex;align-items:center;gap:10px;min-width:0}
.sys-name-cell .mini-logo{width:36px;height:36px;border-radius:9px;background:#f3f4f6;object-fit:contain;padding:3px;flex:none}
.sys-name-cell b{display:block;font-size:13px;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.sys-name-cell span{font-size:11px;color:#9ca3af;direction:ltr;display:block}
.toggle{position:relative;width:40px;height:22px;border-radius:99px;background:#d7dbe3;border:none;transition:.18s;flex:none}
.toggle::after{content:'';position:absolute;top:2.5px;right:2.5px;width:17px;height:17px;border-radius:50%;background:#fff;transition:.18s}
.toggle.on{background:#22c55e}
.toggle.on::after{transform:translateX(-17px)}
.act-btns{display:flex;gap:6px}
.act-btns .icon-btn{width:33px;height:33px;border-radius:9px}
.act-btns .icon-btn.danger:hover{border-color:#ef4444;color:#ef4444;background:#fef2f2}
.drag-over td{border-top:2px dashed var(--orange)!important}
.form-card{padding:22px;margin-top:18px}
.form-card h3{font-size:16px;color:var(--navy);margin-bottom:16px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-grid .span2{grid-column:1/-1}
@media(max-width:560px){.form-grid{grid-template-columns:1fr}.form-grid .span2{grid-column:auto}}
.checks{display:flex;gap:22px;align-items:center}
.check{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;cursor:pointer}
.check input{width:17px;height:17px;accent-color:var(--orange)}
.form-btns{display:flex;gap:10px}
.backup-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.backup-card{padding:22px}
.backup-card h3{font-size:15.5px;color:var(--navy);margin-bottom:9px}
.backup-card .muted{margin-bottom:15px}
.backup-card .btn,.backup-card .input-file{margin-bottom:9px}
.backup-card.danger{border:1px solid #fecaca}
.input-file{width:100%;font-size:12.5px;padding:8px}

/* ===== توست ===== */
.toast{position:fixed;bottom:24px;right:50%;transform:translateX(50%);background:var(--navy);color:#fff;padding:11px 24px;border-radius:13px;font-size:13.5px;box-shadow:var(--sh-h);z-index:99;animation:toastIn .25s}
@keyframes toastIn{from{opacity:0;transform:translateX(50%) translateY(12px)}to{opacity:1;transform:translateX(50%) translateY(0)}}

/* ===== ریسپانسیو ===== */
.br-desktop{display:none}
@media(min-width:768px){.br-desktop{display:inline}}
@media(max-width:1023px){
  .hd-menu{display:none}
  .hamburger{display:grid}
  .hd-side .btn-support{display:none}
}
@media(max-width:767px){
  .hero{padding:36px 0 26px}
  .hero h1{font-size:21px}
  .hero-sub{font-size:13.5px}
  .section{padding:32px 0}
  .section-head h2{font-size:19.5px}
  .toolbar-side{margin-inline-start:0;width:100%}
  .select{flex:1}
  .sys-detail,.article{padding:22px 18px}
  .ft-in{padding:34px 0 26px}
}
@media(max-width:419px){
  .grid{grid-template-columns:1fr}
  .brand b{font-size:15px}
}
body.no-scroll{overflow:hidden}
/* ===== افزوده‌های CSS نسخه ۲ — به انتهای css/style.css موجود اضافه کنید ===== */

/* برچسب زیرمجموعه روی کارت */
.chip-sub{background:transparent;border:1px dashed var(--line);color:#6b7280;font-size:10.5px;font-weight:600;padding:2.5px 10px;border-radius:99px;margin:7px 4px 0 0;cursor:pointer;transition:.15s}
.chip-sub:hover{border-color:var(--orange);color:var(--orange)}

/* فوتر دسته‌های زیاد */
.ft-cats{column-count:1}
@media(min-width:480px){.ft-cats{column-count:2;column-gap:22px}}

/* ---------- بهینه‌سازی موبایل (کارت‌های ۲ستونه جمع‌وجور) ---------- */
@media(max-width:419px){
  .sys-card{padding:14px 10px 12px}
  .sys-logo{width:58px;height:58px;border-radius:14px;margin-bottom:8px}
  .sys-logo img{width:42px;height:42px}
  .sys-logo .logo-fb{font-size:20px}
  .sys-card h3{font-size:12.5px;min-height:3.2em}
  .sys-domain{font-size:10px}
  .sys-desc{font-size:11px;-webkit-line-clamp:2;margin-top:4px}
  .chip-cat{font-size:10px;padding:2px 9px}
  .chip-sub{font-size:9.5px;padding:2px 8px}
  .sys-actions .btn{padding:8px 6px;font-size:11.5px;border-radius:10px}
  .sys-actions .btn svg{width:14px;height:14px}
  .fav-btn{width:30px;height:30px;top:8px;left:8px}
  .fav-btn svg{width:16px;height:16px}
  .badge-new{font-size:9px;padding:2px 8px;top:8px;right:8px}
  .cat-card{padding:16px 10px}
  .cat-ico{width:46px;height:46px;border-radius:13px;margin-bottom:9px}
  .cat-ico svg{width:22px;height:22px}
  .cat-card h3{font-size:12.5px}
  .cat-cnt{min-width:21px;height:21px;font-size:10.5px}
  .hero{padding:30px 0 22px}
  .hero h1{font-size:18.5px}
  .hero-tags a{font-size:11.5px;padding:6px 12px}
  .search-box{padding:4px 13px;border-radius:14px}
  .search-box input{font-size:13.5px;padding:10px 0}
  .section{padding:28px 0}
  .section-head h2{font-size:18px}
  .section-head{margin-bottom:22px}
  .toolbar{gap:9px;margin-bottom:16px}
  .chip{font-size:12px;padding:6px 13px}
  .quick-card b{font-size:12.5px}
  .quick-ico{width:40px;height:40px}
  .quick-ico svg{width:19px;height:19px}
  .hd-in{height:60px;gap:10px}
  .brand-mark{width:36px;height:36px;font-size:18px;border-radius:10px}
  .qb-in{height:42px}
  .qb-in a{font-size:12px;padding:5px 10px}
  .btn{font-size:13px;padding:9px 16px}
  .btn-sm{padding:8px 12px;font-size:12px}
  .empty{padding:40px 14px}
}
@media(min-width:420px) and (max-width:767px){
  .sys-card{padding:16px 12px 14px}
  .sys-logo{width:64px;height:64px;margin-bottom:10px}
  .sys-card h3{font-size:13px}
  .sys-desc{font-size:11.5px}
}
/* جلوگیری از اسکرول افقی روی همه عرض‌ها */
html,body{max-width:100%;overflow-x:hidden}
img,svg,table{max-width:100%}
/* ===== افزوده‌های CSS نسخه ۳ — به انتهای css/style.css اضافه کنید ===== */

/* ---------- آکاردئون دسته‌ها در پنل‌ها ---------- */
.cat-acc{background:var(--card);border-radius:var(--r);box-shadow:var(--sh);margin-bottom:12px;overflow:hidden}
.cat-acc>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:11px;padding:13px 18px;font-size:14px;color:var(--navy);user-select:none;transition:background .15s}
.cat-acc>summary::-webkit-details-marker{display:none}
.cat-acc>summary:hover{background:#fafbfc}
.cat-acc>summary::after{content:'▾';margin-inline-start:auto;color:var(--muted);font-size:15px;transition:transform .2s}
.cat-acc[open]>summary::after{transform:rotate(180deg)}
.cat-acc>summary::before{content:'';position:absolute}
.acc-ico{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex:none}
.acc-ico svg{width:19px;height:19px}
.cat-acc .acc-table{border-top:1px solid var(--line)}
.cat-acc .acc-table th{background:#f8f9fb}
.cat-acc .table-wrap{overflow-x:auto}
@media(max-width:767px){
  .cat-acc>summary{padding:11px 13px;font-size:13px;gap:9px}
  .acc-ico{width:33px;height:33px;border-radius:9px}
  .acc-ico svg{width:17px;height:17px}
}

/* ---------- دکمه باز/بستن همه ---------- */
#accToggle{white-space:nowrap}
/* ===== افزوده‌های CSS نسخه ۴ — به انتهای css/style.css اضافه کنید ===== */

/* ---------- دکمه چشم رمز ---------- */
.pw-wrap{position:relative;display:flex;align-items:stretch;width:100%}
.pw-wrap .pw-input{flex:1;width:100%;padding-left:46px}
.pw-eye{position:absolute;left:6px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:none;background:transparent;border-radius:9px;display:grid;place-items:center;cursor:pointer;font-size:16px;opacity:.7;line-height:1;-webkit-tap-highlight-color:transparent}
.pw-eye:hover,.pw-eye:focus{background:#f1f2f5;opacity:1}
@media(max-width:560px){.pw-eye{width:42px;height:42px;font-size:18px}}

/* ---------- آکاردئون دسته‌ها ---------- */
.cat-acc{background:var(--card);border-radius:var(--r);box-shadow:var(--sh);margin-bottom:12px;overflow:hidden}
.cat-acc>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:11px;padding:13px 18px;font-size:14px;color:var(--navy);user-select:none;transition:background .15s}
.cat-acc>summary::-webkit-details-marker{display:none}
.cat-acc>summary:hover{background:#fafbfc}
.cat-acc>summary::after{content:'▾';margin-inline-start:auto;color:var(--muted);font-size:15px;transition:transform .2s}
.cat-acc[open]>summary::after{transform:rotate(180deg)}
.acc-ico{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex:none}
.acc-ico svg{width:19px;height:19px}
.cat-acc .acc-table{border-top:1px solid var(--line)}
.cat-acc .acc-table th{background:#f8f9fb}
.cat-acc .table-wrap{overflow-x:auto}
@media(max-width:767px){
  .cat-acc>summary{padding:11px 13px;font-size:13px;gap:9px}
  .acc-ico{width:33px;height:33px;border-radius:9px}
  .acc-ico svg{width:17px;height:17px}
}
/* ===== افزوده‌های CSS نسخه ۵ — به انتهای css/style.css اضافه کنید ===== */

/* ---------- دکمه چشم رمز ---------- */
.pw-wrap{position:relative;display:flex;align-items:stretch;width:100%}
.pw-wrap .pw-input{flex:1;width:100%;padding-left:46px}
.pw-eye{position:absolute;left:6px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:none;background:transparent;border-radius:9px;display:grid;place-items:center;cursor:pointer;font-size:16px;opacity:.7;line-height:1;-webkit-tap-highlight-color:transparent}
.pw-eye:hover,.pw-eye:focus{background:#f1f2f5;opacity:1}
@media(max-width:560px){.pw-eye{width:42px;height:42px;font-size:18px}}

/* ---------- آکاردئون دسته‌ها ---------- */
.cat-acc{background:var(--card);border-radius:var(--r);box-shadow:var(--sh);margin-bottom:12px;overflow:hidden}
.cat-acc>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:11px;padding:13px 18px;font-size:14px;color:var(--navy);user-select:none;transition:background .15s}
.cat-acc>summary::-webkit-details-marker{display:none}
.cat-acc>summary:hover{background:#fafbfc}
.cat-acc>summary::after{content:'▾';margin-inline-start:auto;color:var(--muted);font-size:15px;transition:transform .2s}
.cat-acc[open]>summary::after{transform:rotate(180deg)}
.acc-ico{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex:none}
.acc-ico svg{width:19px;height:19px}
.cat-acc .acc-table{border-top:1px solid var(--line)}
.cat-acc .acc-table th{background:#f8f9fb}
.cat-acc .table-wrap{overflow-x:auto}
@media(max-width:767px){
  .cat-acc>summary{padding:11px 13px;font-size:13px;gap:9px}
  .acc-ico{width:33px;height:33px;border-radius:9px}
  .acc-ico svg{width:17px;height:17px}
}

/* ---------- اسلایدر آموزش‌ها ---------- */
.slider-wrap{display:flex;align-items:center;gap:10px}
.tut-slider{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding:6px 4px 18px;scrollbar-width:none;flex:1}
.tut-slider::-webkit-scrollbar{display:none}
.tut-slide{flex:0 0 calc((100% - 36px)/3);scroll-snap-align:start;background:var(--card);border-radius:var(--r);box-shadow:var(--sh);padding:26px 22px;display:flex;flex-direction:column;gap:11px;text-decoration:none;color:inherit;transition:transform .18s,box-shadow .18s;min-height:230px}
.tut-slide:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(30,42,74,.13)}
.tut-slide .tut-ico{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;flex:none}
.tut-slide .tut-ico svg{width:24px;height:24px}
.tut-slide h3{font-size:14.5px;color:var(--navy);margin:0;line-height:1.7}
.tut-slide p{font-size:12.5px;color:#6b7280;line-height:2;margin:0;flex:1;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tut-slide .tut-link{color:var(--orange);font-size:12.5px;font-weight:700;display:flex;align-items:center;gap:5px}
.tut-slide .tut-link svg{width:15px;height:15px}
.sl-btn{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--navy);font-size:24px;line-height:1;cursor:pointer;flex:none;display:grid;place-items:center;box-shadow:var(--sh);transition:.15s;user-select:none}
.sl-btn:hover{background:var(--orange);border-color:var(--orange);color:#fff}
.sl-dots{display:flex;justify-content:center;gap:7px;margin-top:2px}
.sl-dots button{width:9px;height:9px;border-radius:99px;border:none;background:#d7dbe3;cursor:pointer;padding:0;transition:.2s}
.sl-dots button.on{background:var(--orange);width:24px}
@media(min-width:768px) and (max-width:1099px){.tut-slide{flex:0 0 calc((100% - 18px)/2)}}
@media(max-width:767px){
  .slider-wrap{gap:6px}
  .sl-btn{width:38px;height:38px;font-size:20px}
  .tut-slide{flex:0 0 82%;padding:20px 16px;min-height:210px}
  .tut-slide h3{font-size:13.5px}
}