:root{
  --ink:#0B1F3A; --ink-2:#13294B; --ink-3:#1d3a63;
  --brass:#C6963C; --brass-soft:#E8D5A8; --brass-deep:#a97c2b;
  --palm:#2E6E5E; --palm-soft:#d7ebe4;
  --canvas:#EEF1F6; --surface:#FFFFFF; --surface-2:#F7F9FC;
  --line:#DDE3EC; --muted:#5B6B82; --text:#16233a;
  --ok:#2E6E5E; --warn:#b9832a; --danger:#b3413b;
  --radius:16px; --radius-lg:22px;
  --shadow:0 10px 30px rgba(11,31,58,.07);
  --shadow-sm:0 4px 14px rgba(11,31,58,.06);
  --display:'Noto Kufi Arabic', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --body:'IBM Plex Sans Arabic', system-ui, Segoe UI, Tahoma, sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0}
html{font-size:16px}
/* keep proportions consistent from laptops to large monitors */
@media (min-width:1600px){ .content{max-width:1440px} }
@media (min-width:1920px){ .content{max-width:1600px} }
body{
  font-family:var(--body); color:var(--text); background:var(--canvas);
  -webkit-font-smoothing:antialiased; line-height:1.6;
}
h1,h2,h3,h4{font-family:var(--display); margin:0; color:var(--ink); font-weight:700}
button{font-family:inherit; cursor:pointer}
input,select,textarea{font-family:inherit; font-size:15px}
.hidden{display:none !important}
.muted{color:var(--muted)}

/* Layout */
.app{display:flex; min-height:100vh}
.main{flex:1; min-width:0; display:flex; flex-direction:column}
.content{padding:26px 30px 60px; max-width:1200px; width:100%; margin:0 auto}

/* Sidebar */
.sidebar{
  width:270px; flex-shrink:0; background:linear-gradient(180deg,var(--ink),#081527);
  color:#e8eefb; padding:22px 18px; position:sticky; top:0; height:100vh;
  display:flex; flex-direction:column; gap:8px;
}
.brand{display:flex; gap:10px; align-items:center; padding:6px 6px 18px; border-bottom:1px solid rgba(255,255,255,.08); margin-bottom:10px}
.uni-logo{width:44px; height:44px; object-fit:contain; border-radius:10px; background:#fff; padding:4px; flex-shrink:0; box-shadow:0 4px 12px rgba(0,0,0,.25)}
.brand-divider{width:1px; align-self:stretch; margin:4px 0; background:rgba(255,255,255,.14)}
.modal-uni-logo{width:64px; height:64px; object-fit:contain; display:block; margin:0 auto 6px; border-radius:12px; background:#fff; padding:6px; box-shadow:0 6px 16px rgba(0,0,0,.12)}
.modal-uni-name{text-align:center; font-size:12px; color:var(--muted); margin:2px 0 10px}
.mark{width:46px; height:46px; border-radius:14px; background:var(--brass); color:var(--ink); display:grid; place-items:center; box-shadow:0 6px 16px rgba(198,150,60,.35)}
.mark svg{width:26px; height:26px}
.brand-text h1{color:#fff; font-size:22px; line-height:1; display:flex; align-items:baseline; gap:8px}
.brand-text h1 span{font-family:var(--body); font-size:11px; letter-spacing:3px; color:var(--brass-soft); font-weight:600}
.brand-text p{margin:5px 0 0; font-size:12px; color:#9fb2d4}

.nav{display:flex; flex-direction:column; gap:3px; overflow-y:auto; flex:1; padding-inline-end:2px}
.nav button{
  display:flex; align-items:center; gap:11px; width:100%; text-align:start;
  background:transparent; color:#c3d0e8; border:0; padding:11px 13px; border-radius:11px;
  font-size:14.5px; transition:.15s;
}
.nav button:hover{background:rgba(255,255,255,.06); color:#fff}
.nav button.active{background:rgba(198,150,60,.16); color:#fff; box-shadow:inset 3px 0 0 var(--brass)}
.nav .ico{width:20px; text-align:center; opacity:.85}
.side-foot{padding-top:12px; border-top:1px solid rgba(255,255,255,.08)}
.uni{font-size:11.5px; color:#8ea3c6; line-height:1.7}

/* Topbar */
.topbar{
  display:flex; align-items:center; gap:14px; padding:14px 30px;
  background:var(--surface); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20;
}
.page-head{flex:1; min-width:0}
.page-head h2{font-size:20px}
.page-head span{font-size:12.5px; color:var(--muted)}
.top-actions{display:flex; align-items:center; gap:9px}
.icon-btn{background:var(--surface-2); border:1px solid var(--line); width:40px; height:40px; border-radius:11px; font-size:16px; color:var(--ink); position:relative; display:grid; place-items:center}
.icon-btn:hover{border-color:var(--brass)}
.menu-toggle{display:none}
.lang-btn{background:var(--surface-2); border:1px solid var(--line); border-radius:11px; height:40px; padding:0 14px; font-weight:700; color:var(--ink); font-size:13px}
.bell .badge{position:absolute; top:-4px; inset-inline-start:-4px; background:var(--danger); color:#fff; min-width:16px; height:16px; border-radius:9px; font-size:10px; display:none; place-items:center; padding:0 4px}
.bell .badge.show{display:grid}
.user-chip .who{display:flex; align-items:center; gap:9px; background:var(--surface-2); border:1px solid var(--line); border-radius:12px; padding:5px 8px 5px 12px}
.who-text{display:flex; flex-direction:column; line-height:1.25}
.who-text b{font-size:13.5px}
.who-text span{font-size:11px; color:var(--muted)}

/* Buttons */
.btn-primary{background:var(--ink); color:#fff; border:0; border-radius:11px; padding:11px 18px; font-weight:600; font-size:14px; transition:.15s}
.btn-primary:hover{background:var(--ink-3)}
.btn-primary.full{width:100%}
.btn-ghost{background:transparent; color:var(--ink); border:1.5px solid var(--line); border-radius:11px; padding:10px 18px; font-weight:600}
.btn-ghost:hover{border-color:var(--brass)}
.link{background:none; border:0; color:var(--brass-deep); font-weight:600; font-size:13px}

/* Pages */
.page{display:none; animation:fade .25s ease}
.page.active{display:block}
@keyframes fade{from{opacity:0; transform:translateY(6px)}to{opacity:1; transform:none}}
.stack{display:flex; flex-direction:column; gap:18px}

/* Panels */
.panel{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:20px 22px; box-shadow:var(--shadow-sm); margin-bottom:18px}
.panel-head{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px}
.panel-head h4{font-size:16px}
.two-col{display:grid; grid-template-columns:1fr 1fr; gap:18px}
.two-col .panel{margin-bottom:0}

/* Hero */
.hero{
  background:radial-gradient(120% 140% at 100% 0%, var(--ink-3), var(--ink) 55%, #081527);
  color:#fff; border-radius:26px; padding:34px 36px; display:grid; grid-template-columns:1.1fr .9fr; gap:24px; align-items:center; margin-bottom:20px;
  position:relative; overflow:hidden;
}
.hero::after{content:''; position:absolute; inset:0; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 60 L60 0' stroke='%23ffffff' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E"); pointer-events:none}
.eyebrow{display:inline-block; font-size:12px; letter-spacing:1px; color:var(--brass-soft); background:rgba(198,150,60,.14); padding:5px 12px; border-radius:20px; margin-bottom:14px}
.hero h3{color:#fff; font-size:34px; line-height:1.25; margin-bottom:12px}
.hero-copy p{color:#c7d3e8; max-width:520px; margin:0 0 20px}
.hero-cta{display:flex; gap:10px; flex-wrap:wrap}
.hero-cta .btn-primary{background:var(--brass); color:var(--ink)}
.hero-cta .btn-primary:hover{background:var(--brass-deep); color:#fff}
.hero-cta .btn-ghost{color:#fff; border-color:rgba(255,255,255,.3)}
.hero-path{position:relative; z-index:1}

/* Stat cards */
.stat-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:20px}
.stat{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow-sm); position:relative; overflow:hidden}
.stat::before{content:''; position:absolute; inset-inline-start:0; top:0; bottom:0; width:4px; background:var(--brass)}
.stat.palm::before{background:var(--palm)}
.stat.ink::before{background:var(--ink)}
.stat .k{font-size:12.5px; color:var(--muted); display:flex; align-items:center; gap:7px}
.stat .v{font-size:30px; font-family:var(--display); font-weight:800; color:var(--ink); margin-top:6px}

/* Path rail (signature) */
.pathrail{--dot:22px; position:relative; padding:10px 0}
.pathrail .track{position:absolute; top:calc(10px + var(--dot)/2); inset-inline:calc(var(--dot)/2); height:3px; background:rgba(255,255,255,.18); border-radius:3px}
.pathrail .track.dark{background:var(--line)}
.pathrail .fill{position:absolute; top:calc(10px + var(--dot)/2); inset-inline-start:calc(var(--dot)/2); height:3px; background:var(--brass); border-radius:3px; transition:width .6s ease}
.pathrail .stops{position:relative; display:flex; justify-content:space-between}
.stop{display:flex; flex-direction:column; align-items:center; gap:8px; width:calc(100%/9); z-index:1}
.stop .dot{width:var(--dot); height:var(--dot); border-radius:50%; border:2px solid rgba(255,255,255,.35); background:transparent; display:grid; place-items:center; font-size:11px}
.stop.dark .dot{border-color:var(--line); background:var(--surface)}
.stop.done .dot{background:var(--brass); border-color:var(--brass); color:var(--ink)}
.stop.current .dot{background:#fff; border-color:var(--brass); box-shadow:0 0 0 5px rgba(198,150,60,.25); animation:pulse 1.8s infinite}
.stop.dark.current .dot{background:var(--brass)}
@keyframes pulse{0%,100%{box-shadow:0 0 0 5px rgba(198,150,60,.25)}50%{box-shadow:0 0 0 9px rgba(198,150,60,.08)}}
.stop .lbl{font-size:10.5px; text-align:center; color:#b9c6df; line-height:1.3; max-width:74px}
.pathrail.dark .stop .lbl{color:var(--muted)}
.stop.current .lbl{color:#fff; font-weight:700}
.pathrail.dark .stop.current .lbl{color:var(--ink)}

/* Student summary */
.thesis-card{display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; align-items:flex-start}
.thesis-card .title{font-size:17px; font-family:var(--display); color:var(--ink); max-width:640px; line-height:1.5}
.progress-ring{display:flex; align-items:center; gap:14px}
.ring{width:76px; height:76px}
.chip{display:inline-flex; align-items:center; gap:6px; padding:5px 11px; border-radius:20px; font-size:12px; font-weight:600; background:var(--palm-soft); color:var(--palm)}
.chip.brass{background:var(--brass-soft); color:var(--brass-deep)}
.chip.line{background:var(--surface-2); color:var(--muted); border:1px solid var(--line)}
.hint{font-size:12px; color:var(--muted); margin:6px 0 10px; line-height:1.7}
.btn-ghost.sm,.btn-primary.sm{padding:7px 12px; font-size:13px}
.doc-note{font-size:12px; color:var(--muted); margin-top:6px}
.creds-box{margin-top:6px}
.creds-ok{color:var(--palm); font-weight:700; margin:8px 0 12px; line-height:1.7}
.creds-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:8px}
.creds-grid > div{background:var(--surface-2); border:1px solid var(--line); border-radius:10px; padding:10px 12px}
.creds-grid span{display:block; font-size:11px; color:var(--muted); margin-bottom:3px}
.creds-grid b{font-size:16px; letter-spacing:.5px; user-select:all; color:var(--ink)}
.chip.danger{background:#fdecea; color:#b3261e; border:1px solid #f6c7c2}
.danger-btn{color:#b3261e; border-color:#f0b8b2}
.danger-btn:hover{border-color:#b3261e}
/* academic management */
.gs-list{display:flex; flex-direction:column; gap:14px}
.gs-card{border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; background:var(--surface)}
.gs-top{display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px}
.gs-badges{display:inline-flex; gap:6px; flex-wrap:wrap}
.gs-grid{display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; margin-bottom:10px}
.gs-grid label{display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--muted); flex:1; min-width:150px}
.gs-grid input,.gs-grid select{min-width:140px}
.gs-actions{display:inline-flex; gap:8px; flex-wrap:wrap}
.muted{color:var(--muted)}
/* personal timeline */
.tl-meta{display:flex; gap:16px; align-items:center; flex-wrap:wrap; margin-bottom:12px; font-size:14px}
.tl-years{display:flex; flex-direction:column; gap:8px}
.tl-year{display:flex; align-items:center; gap:12px; padding:10px 14px; border:1px solid var(--line); border-radius:12px; background:var(--surface-2)}
.tl-year.current{border-color:var(--brass); background:var(--brass-soft)}
.tl-y{font-weight:700; color:var(--ink); min-width:70px}
.tl-range{color:var(--muted)}
.tl-note{margin-top:12px; padding:10px 14px; border-radius:12px; background:var(--palm-soft); color:var(--palm); font-size:14px}
.modal-card.wide{max-width:720px; width:92vw; max-height:88vh; overflow:auto; text-align:right}
.file-list{list-style:none; padding:0; margin:0}
.file-list li{padding:8px 0; border-bottom:1px solid var(--line); font-size:14px}
.stage-action{margin-top:14px; display:flex; flex-direction:column; gap:8px}
.stage-action .hint{margin:0}
.plan-view{display:flex; flex-direction:column; gap:8px; font-size:14px; line-height:1.8}
.plan-view b{color:var(--ink)}
#planModal label{display:block; margin:10px 0 4px; font-size:13px; color:var(--muted)}
#planModal textarea,#planModal input{width:100%}

/* Lists / tables */
.mini-list{display:flex; flex-direction:column; gap:2px}
.mini-item{display:flex; gap:10px; align-items:flex-start; padding:11px 4px; border-bottom:1px solid var(--line)}
.mini-item:last-child{border-bottom:0}
.mini-item .tag{font-size:11px; color:var(--brass-deep); background:var(--brass-soft); padding:2px 8px; border-radius:8px; white-space:nowrap; margin-top:2px}
.mini-item .mt{font-size:14px; font-weight:600}
.mini-item .md{font-size:12px; color:var(--muted)}

table{width:100%; border-collapse:collapse; font-size:14px}
th,td{padding:12px 10px; text-align:start; border-bottom:1px solid var(--line)}
th{background:var(--surface-2); color:var(--ink); font-family:var(--display); font-weight:700; font-size:13px}
tbody tr:hover{background:var(--surface-2)}
.bar{height:7px; background:var(--surface-2); border-radius:6px; overflow:hidden; min-width:80px}
.bar i{display:block; height:100%; background:var(--brass)}

/* Doc grid (forms) */
.doc-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:14px}
.doc{background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius); padding:16px; display:flex; flex-direction:column; gap:8px}
.doc .cat{font-size:11px; color:var(--brass-deep); font-weight:600}
.doc h5{margin:0; font-family:var(--display); font-size:14.5px; color:var(--ink)}
.doc p{margin:0; font-size:12.5px; color:var(--muted); flex:1}
.doc .row{display:flex; gap:8px}
.doc .dl{background:var(--ink); color:#fff; border:0; border-radius:9px; padding:8px 12px; font-size:13px; flex:1}
.doc .del{background:none; border:1px solid var(--line); border-radius:9px; color:var(--danger); width:36px}

/* Timeline (calendar) */
.timeline{position:relative; padding-inline-start:20px}
.timeline::before{content:''; position:absolute; inset-inline-start:6px; top:6px; bottom:6px; width:2px; background:var(--line)}
.tl-item{position:relative; padding:0 0 18px 0}
.tl-item::before{content:''; position:absolute; inset-inline-start:-18px; top:5px; width:11px; height:11px; border-radius:50%; background:var(--brass); border:2px solid var(--surface); box-shadow:0 0 0 2px var(--brass-soft)}
.tl-date{font-size:12px; color:var(--brass-deep); font-weight:700}
.tl-title{font-family:var(--display); font-size:15px; margin:2px 0}
.tl-desc{font-size:13px; color:var(--muted)}
.tl-type{font-size:11px; background:var(--surface-2); border:1px solid var(--line); border-radius:8px; padding:2px 8px; color:var(--muted)}

/* News */
.news-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:20px 22px; box-shadow:var(--shadow-sm)}
.news-card.pinned{border-color:var(--brass); box-shadow:0 8px 22px rgba(198,150,60,.12)}
.news-card .meta{display:flex; align-items:center; gap:10px; margin-bottom:8px}
.news-card .cat{font-size:11px; font-weight:700; color:var(--brass-deep); background:var(--brass-soft); padding:3px 10px; border-radius:20px}
.news-card .date{font-size:12px; color:var(--muted)}
.news-card h4{font-size:18px; margin-bottom:8px}
.news-card p{margin:0; color:#3a495f}
.pin-flag{margin-inline-start:auto; font-size:11px; color:var(--brass-deep)}

/* Guide */
.guide{display:flex; flex-direction:column; gap:4px}
.g-item{border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; margin-bottom:10px}
.g-head{display:flex; align-items:center; gap:12px; padding:15px 16px; cursor:pointer; background:var(--surface-2)}
.g-head .num{width:28px; height:28px; border-radius:9px; background:var(--ink); color:#fff; display:grid; place-items:center; font-family:var(--display); font-size:13px; flex-shrink:0}
.g-head b{font-family:var(--display); font-size:15px}
.g-head .arrow{margin-inline-start:auto; transition:.2s; color:var(--muted)}
.g-item.open .g-head .arrow{transform:rotate(90deg)}
.g-body{max-height:0; overflow:hidden; transition:.3s; padding:0 16px}
.g-item.open .g-body{max-height:400px; padding:14px 16px}
.g-body p{margin:0; color:#3a495f; line-height:1.9}

/* Forms/inputs */
input,select,textarea{border:1.5px solid var(--line); border-radius:11px; padding:11px 13px; background:var(--surface); color:var(--text); width:100%}
input:focus,select:focus,textarea:focus{outline:none; border-color:var(--brass)}
textarea{min-height:150px; resize:vertical; line-height:1.8}
.form-row{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.form-row > input,.form-row > select{flex:1; min-width:150px}
.form-col{display:flex; flex-direction:column; gap:10px}
.search{display:flex; gap:10px; margin-bottom:14px}
.search input{flex:1}
.search-inline{max-width:200px}
.check{display:flex; align-items:center; gap:7px; font-size:14px; white-space:nowrap}
.check input{width:auto}

/* AI */
.ai-tag{font-size:10px; font-weight:800; letter-spacing:1px; color:#fff; background:linear-gradient(90deg,var(--palm),var(--brass)); padding:3px 9px; border-radius:8px}
.ai-tabs{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px}
.ai-tab{background:var(--surface-2); border:1.5px solid var(--line); border-radius:20px; padding:8px 15px; font-size:13px; color:var(--muted); font-weight:600}
.ai-tab.active{background:var(--ink); color:#fff; border-color:var(--ink)}
.ai-out{margin-top:14px; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px; white-space:pre-wrap; line-height:1.9; min-height:20px; font-size:14.5px; color:#28374f}
.ai-out:empty{display:none}
.ai-out.loading{color:var(--muted); font-style:italic}

/* Journal result */
.jr{margin-top:14px}
.jr-card{background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px}
.jr-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; margin:10px 0}
.jr-grid div{background:var(--surface); border:1px solid var(--line); border-radius:11px; padding:9px 12px}
.jr-grid span{font-size:11px; color:var(--muted); display:block}
.jr-grid b{font-size:14px; color:var(--ink)}
.jr-warn{background:#fdf3e7; border:1px solid var(--brass-soft); border-radius:11px; padding:11px 14px; font-size:13px; color:var(--warn); margin-top:10px}

/* Chart */
.chart{width:100%; overflow:hidden}
.chart svg{width:100%; height:auto; display:block}

/* Modal */
.modal{position:fixed; inset:0; background:rgba(8,20,39,.55); backdrop-filter:blur(3px); display:grid; place-items:center; z-index:100; padding:16px}
.modal-card{background:var(--surface); border-radius:22px; padding:26px; width:min(430px,100%); position:relative; box-shadow:0 30px 70px rgba(0,0,0,.35)}
.modal-card label{display:block; font-size:12.5px; color:var(--muted); margin:12px 0 5px}
.modal-card h3{font-size:20px; margin:6px 0 2px}
.modal-brand{display:flex; align-items:center; gap:9px; color:var(--brass-deep); font-family:var(--display)}
.mark-sm{width:30px; height:30px; border-radius:9px; background:var(--brass); color:var(--ink); display:grid; place-items:center; font-weight:800}
.modal-card .full{margin-top:16px}
.x{position:absolute; inset-inline-end:14px; top:14px; background:var(--surface-2); border:1px solid var(--line); width:32px; height:32px; border-radius:9px; font-size:18px; color:var(--muted)}
.err{color:var(--danger); font-size:13px; min-height:16px; margin:8px 0 0}
.demo-accounts{margin-top:16px; padding-top:14px; border-top:1px solid var(--line); font-size:12px; color:var(--muted); display:flex; flex-wrap:wrap; gap:6px; align-items:center}
.demo-accounts span{width:100%; margin-bottom:2px}
.demo-accounts button{background:var(--surface-2); border:1px solid var(--line); border-radius:8px; padding:5px 10px; font-size:12px; color:var(--ink)}
.demo-accounts button:hover{border-color:var(--brass)}

/* Toast */
.toast{position:fixed; inset-block-end:24px; inset-inline:0; margin:auto; width:max-content; max-width:90%; background:var(--ink); color:#fff; padding:12px 22px; border-radius:12px; box-shadow:var(--shadow); z-index:200; font-size:14px; animation:rise .3s}
.toast.err{background:var(--danger)}
@keyframes rise{from{transform:translateY(14px); opacity:0}to{transform:none; opacity:1}}

.empty{text-align:center; color:var(--muted); padding:26px; font-size:14px}

/* Responsive */
@media(max-width:960px){
  .stat-grid{grid-template-columns:repeat(2,1fr)}
  .two-col{grid-template-columns:1fr}
  .hero{grid-template-columns:1fr}
  .hero h3{font-size:28px}
}
@media(max-width:760px){
  .sidebar{position:fixed; inset-block:0; inset-inline-start:-290px; z-index:60; transition:.28s; box-shadow:0 0 40px rgba(0,0,0,.4)}
  .sidebar.open{inset-inline-start:0}
  html[dir=ltr] .sidebar{inset-inline-start:auto; inset-inline-end:-290px}
  html[dir=ltr] .sidebar.open{inset-inline-end:0}
  .menu-toggle{display:grid}
  .content{padding:18px}
  .topbar{padding:12px 16px}
  .stop .lbl{display:none}
  .who-text{display:none}
  .stat-grid{grid-template-columns:1fr 1fr}
}

/* transactions */
.tx-list{display:flex; flex-direction:column; gap:10px}
.tx-card{border:1px solid var(--line); border-radius:12px; padding:12px 14px; cursor:pointer; transition:border-color .15s}
.tx-card:hover{border-color:var(--brass)}
.tx-row{display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:space-between}
.tx-route{display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:12px 0}
.tx-node{padding:5px 12px; border-radius:20px; font-size:12px; font-weight:600; background:var(--surface-2); color:var(--muted); border:1px solid var(--line)}
.tx-node.current{background:var(--brass-soft); color:var(--brass-deep); border-color:var(--brass)}
.tx-node.done{background:var(--palm-soft); color:var(--palm)}
.tx-arrow{color:var(--muted)}
.tx-actions{margin-top:14px; padding-top:14px; border-top:1px solid var(--line)}
.tl-steps{display:flex; flex-direction:column; gap:12px}
.tl-step{display:flex; gap:12px; align-items:flex-start; font-size:14px}
.tl-dot{width:12px; height:12px; border-radius:50%; margin-top:5px; flex-shrink:0; background:var(--palm)}
.tl-dot.warn{background:var(--brass)}
.tl-dot.bad{background:var(--danger)}

/* smart alerts */
.alert-list{display:flex; flex-direction:column; gap:8px}
.alert-item{display:flex; gap:12px; align-items:center; padding:10px 14px; border:1px solid var(--line); border-radius:12px; font-size:14px; background:var(--surface-2)}
.alert-item > div{flex:1}
.alert-item.danger{border-color:#f0b8b2; background:#fdf3f2}
.alert-item.warn{border-color:var(--brass); background:var(--brass-soft)}
.alert-ico{font-size:16px}

/* public portal */
.notice{background:#fff8e6; border:1px solid var(--brass-soft); border-radius:var(--radius); padding:14px 18px; margin-bottom:18px; font-size:14px}
.notice b{color:var(--brass-deep)}

/* ---- Design credit & Telegram support ---- */
.credit{margin-top:10px; display:flex; flex-direction:column; gap:6px}
.side-foot .credit-by{font-size:11px; color:#8ea3c6; line-height:1.6}
.tg-link{display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:700;
  color:#37a3e6; text-decoration:none; padding:5px 10px; border:1px solid rgba(55,163,230,.35);
  border-radius:999px; background:rgba(55,163,230,.10); width:fit-content;
  transition:background .15s ease, border-color .15s ease}
.tg-link:hover{background:rgba(55,163,230,.20); border-color:rgba(55,163,230,.6)}
.tg-ico{font-size:12px; transform:translateY(-1px)}
.login-support{margin-top:14px; padding-top:14px; border-top:1px solid var(--line);
  display:flex; align-items:center; gap:14px; justify-content:space-between}
.login-support-txt{display:flex; flex-direction:column; gap:8px; text-align:start}
.login-support .credit-by{font-size:12px; color:var(--muted); line-height:1.6; font-weight:700}
.tg-qr{width:90px; height:auto; border-radius:12px; border:1px solid var(--line);
  background:#fff; padding:5px; flex-shrink:0; box-shadow:0 4px 12px rgba(0,0,0,.12)}
@media (max-width:520px){
  .login-support{flex-direction:column-reverse; text-align:center}
  .login-support-txt{align-items:center}
}

/* ===== شريط الأخبار المتحرك (الواجهة العامة) ===== */
.news-ticker{
  display:flex; align-items:stretch; gap:0; margin-bottom:16px;
  background:linear-gradient(90deg,var(--ink),var(--ink-2));
  border-radius:14px; overflow:hidden; box-shadow:0 6px 18px rgba(11,31,58,.18);
  border:1px solid rgba(198,150,60,.25);
}
.ticker-live{
  display:flex; align-items:center; gap:7px; padding:0 16px;
  background:var(--brass); color:var(--ink); font-weight:700; font-size:13px;
  white-space:nowrap; flex-shrink:0; letter-spacing:.5px;
}
.ticker-dot{ width:9px; height:9px; border-radius:50%; background:#c0392b; box-shadow:0 0 0 0 rgba(192,57,43,.7); animation:tickerPulse 1.4s infinite; }
@keyframes tickerPulse{ 0%{box-shadow:0 0 0 0 rgba(192,57,43,.6)} 70%{box-shadow:0 0 0 8px rgba(192,57,43,0)} 100%{box-shadow:0 0 0 0 rgba(192,57,43,0)} }
.ticker-viewport{ flex:1; overflow:hidden; position:relative; display:flex; align-items:center; }
.ticker-track{ display:inline-flex; gap:48px; white-space:nowrap; will-change:transform; animation:tickerScroll 38s linear infinite; padding-inline-start:48px; }
.ticker-track:hover{ animation-play-state:paused; }
.ticker-item{ color:#eaf1fb; font-size:13.5px; font-weight:500; display:inline-flex; align-items:center; gap:9px; }
.ticker-item::before{ content:'▪'; color:var(--brass-soft); }
.ticker-item .tk-cat{ color:var(--brass-soft); font-weight:700; font-size:12px; }
@keyframes tickerScroll{ from{transform:translateX(0)} to{transform:translateX(-50%)} }
html[dir="ltr"] .ticker-track{ animation-name:tickerScrollLtr; }
@keyframes tickerScrollLtr{ from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ===== إحصائيات الواجهة العامة (تفاعلية) ===== */
.pub-stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; margin-bottom:18px; }
.pub-stat{
  position:relative; overflow:hidden; padding:18px 16px; border-radius:16px;
  background:linear-gradient(135deg,#fff, #f7faff); border:1px solid var(--line);
  box-shadow:0 4px 14px rgba(11,31,58,.06); transition:transform .25s ease, box-shadow .25s ease;
}
.pub-stat:hover{ transform:translateY(-4px); box-shadow:0 10px 24px rgba(11,31,58,.14); border-color:var(--brass-soft); }
.pub-stat .ps-ico{ font-size:22px; margin-bottom:6px; }
.pub-stat .ps-v{ font-family:var(--display); font-size:30px; font-weight:800; color:var(--ink); line-height:1; }
.pub-stat .ps-k{ font-size:13px; color:var(--muted); margin-top:5px; font-weight:600; }
.pub-stat::after{ content:''; position:absolute; inset-block-start:-30px; inset-inline-end:-30px; width:90px; height:90px; border-radius:50%; background:radial-gradient(circle,rgba(198,150,60,.14),transparent 70%); }

/* اختصاص التنبيه (القسم/المشرف) */
.alert-scope{ font-size:11.5px; color:var(--brass-deep); margin-top:3px; font-weight:600; }

/* أشرطة توزيع قنوات القبول */
.ch-bars{ display:flex; flex-direction:column; gap:9px; margin-top:6px; }
.ch-bar-row{ display:flex; align-items:center; gap:10px; }
.ch-bar-row .ch-lbl{ min-width:120px; font-size:13px; font-weight:600; color:var(--ink); }
.ch-bar-row .ch-pct{ min-width:80px; font-size:12.5px; color:var(--muted); text-align:end; }
