*{box-sizing:border-box}
  :root{
    --navy:#11243d;
    --blue:#1769ff;
    --teal:#00a88f;
    --purple:#7b3ff2;
    --orange:#ff7a00;
    --green:#159447;
    --red:#d92d20;
    --yellow:#f2b400;
    --bg:#f4f7fb;
    --line:#dce4ef;
    --text:#172234;
    --muted:#657286;
    --white:#fff;
  }
  body{
    margin:0;
    font-family:Inter,Segoe UI,Arial,sans-serif;
    background:var(--bg);
    color:var(--text);
  }
  .layout{display:flex;min-height:100vh}
  .sidebar{width:255px;background:#172554;color:#fff;position:fixed;left:0;top:0;bottom:0;padding:22px 15px;overflow:auto}
  .brand{font-size:19px;font-weight:900;line-height:1.2;padding:8px 10px 22px;border-bottom:1px solid #33447a}
  .brand span{display:block;color:#67e8f9;font-size:11px;margin-top:6px;letter-spacing:1px}
  .nav-title{font-size:10px;font-weight:800;color:#93a4d1;margin:20px 10px 8px;letter-spacing:1.2px}
  .nav a{display:flex;align-items:center;gap:10px;padding:11px 12px;margin:3px 0;border-radius:9px;color:#dbe5ff;text-decoration:none;font-size:13px;font-weight:650}
  .nav a:hover{background:#263a7a;color:#fff}
  .nav a.active{background:#7c3aed;color:#fff}
  .icon{width:25px;height:25px;display:grid;place-items:center;border-radius:7px;background:#33447a;font-size:13px}
  .active .icon{background:#5b21b6}
  .main{margin-left:255px;width:calc(100% - 255px)}
  .topbar{
    background:#fff;border-bottom:1px solid var(--line);padding:17px 28px;
    display:flex;align-items:center;justify-content:space-between;gap:20px;
    position:sticky;top:0;z-index:10;
  }
  .page-title{font-size:23px;font-weight:800}
  .page-sub{font-size:12px;color:var(--muted);margin-top:4px}
  .admin-chip{
    display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700
  }
  .avatar{width:36px;height:36px;background:var(--purple);color:#fff;border-radius:50%;display:grid;place-items:center}
  .content{padding:24px 28px 40px}
  .toolbar{
    background:#fff;border:1px solid var(--line);padding:16px;border-radius:12px;
    display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;
  }
  .toolbar-left{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
  .input,.select{
    height:42px;border:1px solid #cfd9e6;border-radius:8px;padding:0 12px;
    background:#fff;color:var(--text);font-size:13px;min-width:220px;
  }
  .select{min-width:160px}
  .btn{
    border:0;border-radius:8px;padding:11px 16px;font-size:13px;font-weight:800;cursor:pointer;
  }
  .btn-primary{background:var(--blue);color:#fff}
  .btn-secondary{background:#edf3ff;color:#1856c8}
  .btn-danger{background:#fff0ee;color:var(--red)}
  .btn-dark{background:var(--navy);color:#fff}
  .summary{
    display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0;
  }
  .stat{
    background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px 18px;
    border-top:4px solid var(--blue);
  }
  .stat:nth-child(2){border-top-color:var(--teal)}
  .stat:nth-child(3){border-top-color:var(--orange)}
  .stat:nth-child(4){border-top-color:var(--purple)}
  .stat-label{font-size:12px;color:var(--muted);font-weight:700}
  .stat-value{font-size:28px;font-weight:850;margin-top:7px}
  .manager{
    display:grid;grid-template-columns:230px 1fr;gap:16px;
  }
  .categories,.faq-panel{
    background:#fff;border:1px solid var(--line);border-radius:12px;
  }
  .panel-head{
    padding:17px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;
  }
  .panel-title{font-size:15px;font-weight:850}
  .category-list{padding:10px}
  .cat{
    padding:11px 12px;border-radius:8px;margin:4px 0;font-size:13px;font-weight:700;cursor:pointer;
    display:flex;align-items:center;justify-content:space-between;
  }
  .cat.active{background:#eaf1ff;color:#1556c8}
  .cat:hover{background:#f1f5fa}
  .count{font-size:11px;border-radius:20px;padding:3px 7px;background:#edf2f7;color:#5b6878}
  .cat.active .count{background:#1769ff;color:#fff}
  .faq-list{padding:8px 12px 15px}
  .faq-row{
    border-bottom:1px solid #edf1f5;padding:17px 8px;
  }
  .faq-row:last-child{border-bottom:0}
  .faq-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
  .q-wrap{min-width:0}
  .q-number{color:#7b3ff2;font-size:11px;font-weight:900;letter-spacing:.6px}
  .question{font-size:15px;font-weight:800;margin:5px 0 7px;line-height:1.4}
  .answer{font-size:13px;color:#596779;line-height:1.6;max-width:900px}
  .meta{display:flex;gap:8px;align-items:center;margin-top:10px;flex-wrap:wrap}
  .tag{
    padding:4px 8px;border-radius:20px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.4px
  }
  .tag-active{background:#e7f7ee;color:var(--green)}
  .tag-inactive{background:#f3f5f8;color:#687588}
  .tag-cat{background:#fff3e8;color:#b45600}
  .actions{display:flex;gap:7px;flex-shrink:0}
  .icon-btn{
    width:34px;height:34px;border:1px solid #d6dfeb;border-radius:8px;background:#fff;cursor:pointer;font-weight:800
  }
  .icon-btn.edit{color:#1556c8}
  .icon-btn.delete{color:var(--red)}
  .empty{padding:40px;text-align:center;color:var(--muted);font-size:13px}
  .modal-backdrop{
    position:fixed;inset:0;background:rgba(13,29,48,.58);display:none;align-items:center;justify-content:center;
    z-index:50;padding:20px;
  }
  .modal{
    background:#fff;width:min(700px,100%);border-radius:14px;border:1px solid var(--line);overflow:hidden;
  }
  .modal-head{
    padding:18px 20px;background:var(--navy);color:#fff;display:flex;justify-content:space-between;align-items:center
  }
  .modal-title{font-size:16px;font-weight:850}
  .close{background:none;border:0;color:#fff;font-size:24px;cursor:pointer}
  .modal-body{padding:20px}
  .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
  .field.full{grid-column:1/-1}
  label{display:block;font-size:12px;font-weight:800;margin-bottom:6px}
  textarea,.text{
    width:100%;border:1px solid #cfd9e6;border-radius:8px;padding:11px 12px;font:inherit;font-size:13px
  }
  textarea{min-height:115px;resize:vertical}
  .modal-foot{padding:15px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}
  .switch-line{display:flex;align-items:center;gap:10px;margin-top:3px}
  .switch{width:42px;height:23px;position:relative;display:inline-block}
  .switch input{display:none}
  .slider{position:absolute;inset:0;background:#cbd4df;border-radius:30px;cursor:pointer}
  .slider:before{content:"";position:absolute;width:17px;height:17px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.15s}
  .switch input:checked + .slider{background:var(--green)}
  .switch input:checked + .slider:before{transform:translateX(19px)}
  .toast{
    position:fixed;right:22px;bottom:22px;background:var(--navy);color:#fff;padding:13px 16px;border-radius:8px;
    font-size:13px;display:none;z-index:100
  }
  @media(max-width:900px){
    .sidebar{width:210px}.main{margin-left:210px;width:calc(100% - 210px)}
    .summary{grid-template-columns:repeat(2,1fr)}
    .manager{grid-template-columns:1fr}
  }
  @media(max-width:650px){
    .sidebar{position:static;width:100%;min-height:auto}.main{margin-left:0;width:100%}
    .layout{display:block}.topbar{position:static}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}
    .summary{grid-template-columns:1fr}.faq-top{flex-direction:column}.actions{align-self:flex-start}
  }
