:root{
  --brand:#0BBBEF; --brand-deep:#0994C4; --brand-ink:#0779A1;
  --text:#2D2D3C; --body:#5B6270; --muted:#8A8F99; --line:#E1E6EB;
  --soft:#E3F6FD; --th:#D7F3FC; --panel:#F4F8FA; --page:#EEF1F4; --card:#FFFFFF;
  --red:#E5484D; --red-soft:#FDECEC; --amber:#B7791F; --amber-soft:#FDF3E1; --green:#1E8E5A; --green-soft:#E4F5EC;
  --shadow:0 10px 30px rgba(45,45,60,.07); --charcoal:#2D2D3C; --on-charcoal:#FFFFFF;
  color-scheme:light;
  box-sizing:border-box; padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){
  --brand:#2CC6F2; --brand-deep:#0BA5DA; --brand-ink:#6FD6F6;
  --text:#E8ECF1; --body:#B4BCC7; --muted:#8792A0; --line:#2C3542;
  --soft:#12313E; --th:#163A49; --panel:#1A222C; --page:#10161D; --card:#161E27;
  --red:#FF6B6F; --red-soft:#3A1D20; --amber:#F2B45A; --amber-soft:#3A2D16; --green:#4CC98A; --green-soft:#16332A;
  --shadow:0 10px 30px rgba(0,0,0,.35); --charcoal:#E8ECF1; --on-charcoal:#10161D; color-scheme:dark; } }
:root[data-theme="dark"]{
  --brand:#2CC6F2; --brand-deep:#0BA5DA; --brand-ink:#6FD6F6;
  --text:#E8ECF1; --body:#B4BCC7; --muted:#8792A0; --line:#2C3542;
  --soft:#12313E; --th:#163A49; --panel:#1A222C; --page:#10161D; --card:#161E27;
  --red:#FF6B6F; --red-soft:#3A1D20; --amber:#F2B45A; --amber-soft:#3A2D16; --green:#4CC98A; --green-soft:#16332A;
  --shadow:0 10px 30px rgba(0,0,0,.35); --charcoal:#E8ECF1; --on-charcoal:#10161D; color-scheme:dark;
}
html{scroll-padding-top:env(safe-area-inset-top,0px);}
*,*::before,*::after{box-sizing:border-box;}
body{margin:0; background:var(--page); color:var(--text); font-family:'Poppins','Cairo',Arial,sans-serif; font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased;}
[dir="rtl"] body{font-family:'Cairo','Poppins',Arial,sans-serif;}
.ar,[lang="ar"]{font-family:'Cairo','Poppins',Arial,sans-serif;}
button,input,select,textarea{font:inherit; color:inherit;}
a{color:var(--brand-ink); text-decoration:none;} a:hover{text-decoration:underline;}
:focus-visible{outline:2px solid var(--brand); outline-offset:2px;}
[hidden]{display:none !important;}
.num{font-variant-numeric:tabular-nums;}

/* ---------- login ---------- */
#login{min-height:100vh; display:grid; place-items:center; padding:24px;}
.login-card{width:100%; max-width:420px; background:var(--card); border-radius:24px; box-shadow:var(--shadow); overflow:hidden;}
.login-band{background:linear-gradient(135deg,var(--brand),var(--brand-deep)); padding:28px 28px 30px; color:#fff;}
.login-band .logo-pill{margin-bottom:22px;}
.login-band h1{margin:0; font-size:26px; font-weight:700; line-height:1.2;}
.login-band p{margin:6px 0 0; opacity:.92;}
.login-body{padding:24px 28px 28px;}
.field{display:block; margin-bottom:14px;}
.field span{display:block; font-size:12.5px; font-weight:600; color:var(--body); margin-bottom:6px;}
.input{width:100%; border:1px solid var(--line); background:var(--card); border-radius:12px; padding:11px 14px; outline:none;}
.input:focus{border-color:var(--brand);}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--line); background:var(--card); border-radius:40px; padding:9px 16px; font-weight:600; cursor:pointer; white-space:nowrap;}
.btn:hover{border-color:var(--brand);}
.btn.primary{background:var(--brand); border-color:var(--brand); color:#fff;}
.btn.primary:hover{background:var(--brand-deep);}
.btn.dark{background:var(--charcoal); border-color:var(--charcoal); color:var(--on-charcoal);}
.btn.small{padding:6px 12px; font-size:12.5px;}
.btn.ghost{border-color:transparent; background:transparent;}
.btn:disabled{opacity:.5; cursor:not-allowed;}
.btn.block{width:100%; padding:12px;}
.login-err{color:var(--red); font-size:13px; min-height:20px; margin:-4px 0 8px;}
.demo{margin-top:20px; padding-top:16px; border-top:1px solid var(--line);}
.demo h3{margin:0 0 4px; font-size:13px;}
.demo p{margin:0 0 10px; font-size:12.5px; color:var(--muted);}
.demo-list{display:flex; flex-wrap:wrap; gap:8px;}
.demo-list button{border:1px solid var(--line); background:var(--panel); border-radius:40px; padding:6px 12px; font-size:12.5px; cursor:pointer;}
.demo-list button:hover{border-color:var(--brand);}
.loading-line{font-size:12.5px; color:var(--muted); margin-top:12px;}

/* ---------- top bar ---------- */
.topbar{position:sticky; top:env(safe-area-inset-top,0px); z-index:20; background:var(--card); border-bottom:1px solid var(--line); padding:10px 20px; display:flex; align-items:center; gap:16px;}
body::before{content:""; position:fixed; inset:0 0 auto; height:env(safe-area-inset-top,0px); z-index:30; background:var(--card);}
.logo-pill{display:inline-flex; align-items:center; background:#fff; border-radius:40px; padding:7px 16px; box-shadow:0 2px 8px rgba(45,45,60,.08); flex:none;}
.logo-pill img{height:22px; display:block;}
.logo-pill img.ar-logo{height:26px;}
.nav{display:flex; gap:4px; flex:1; justify-content:center; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none;}
.nav::-webkit-scrollbar{display:none;}
.nav button{border:0; background:transparent; border-radius:40px; padding:8px 14px; font-weight:600; color:var(--body); cursor:pointer; white-space:nowrap;}
.nav button:hover{color:var(--text); background:var(--panel);}
.nav button.active{background:var(--charcoal); color:var(--on-charcoal);}
.tools{display:flex; align-items:center; gap:6px; flex:none;}
.icon-btn{width:36px; height:36px; border-radius:50%; border:1px solid var(--line); background:var(--card); display:grid; place-items:center; cursor:pointer; font-weight:700; font-size:13px;}
.icon-btn:hover{border-color:var(--brand);}
.icon-btn svg{width:17px; height:17px;}
.user-btn{display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:40px; padding:4px 12px 4px 4px; background:var(--card); cursor:pointer;}
[dir="rtl"] .user-btn{padding:4px 4px 4px 12px;}
.avatar{width:28px; height:28px; border-radius:50%; background:var(--soft); color:var(--brand-ink); display:grid; place-items:center; font-weight:700; font-size:12px;}
.user-btn small{display:block; font-size:11px; color:var(--muted); line-height:1.1;}
.user-btn b{display:block; font-size:12.5px; line-height:1.2;}
.menu{position:absolute; top:58px; inset-inline-end:16px; background:var(--card); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); padding:8px; min-width:220px; z-index:40;}
.menu .mi{display:block; width:100%; text-align:start; border:0; background:none; padding:9px 12px; border-radius:10px; cursor:pointer;}
.menu .mi:hover{background:var(--panel);}
.menu .who{padding:8px 12px 10px; border-bottom:1px solid var(--line); margin-bottom:6px;}
.menu .who small{color:var(--muted);}

/* ---------- layout ---------- */
main{max-width:1320px; margin:0 auto; padding:24px 20px 60px;}
.page-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:18px;}
.page-title{margin:0; font-size:26px; font-weight:700; line-height:1.2;}
.page-title em{font-style:normal; color:var(--brand);}
.page-sub{margin:4px 0 0; color:var(--body); max-width:760px;}
.section-title{display:flex; align-items:center; gap:10px; font-size:17px; font-weight:700; margin:30px 0 12px;}
.section-title::before{content:""; width:5px; height:20px; border-radius:3px; background:var(--brand); flex:none;}
.section-title .hint{font-size:12.5px; font-weight:400; color:var(--muted); margin-inline-start:auto;}
.card{background:var(--card); border-radius:20px; box-shadow:var(--shadow); padding:18px 20px;}
.grid{display:grid; gap:14px;}
.g4{grid-template-columns:repeat(4,minmax(0,1fr));}
.g5{grid-template-columns:repeat(5,minmax(0,1fr));}
.g3{grid-template-columns:repeat(3,minmax(0,1fr));}
.g2{grid-template-columns:repeat(2,minmax(0,1fr));}
@media (max-width:1100px){.g5{grid-template-columns:repeat(3,minmax(0,1fr));} .g4{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:640px){.g5,.g4,.g3,.g2{grid-template-columns:1fr 1fr;} }
@media (max-width:420px){.g3,.g2{grid-template-columns:1fr;}}

/* KPI */
.kpi{position:relative; background:var(--card); border-radius:20px; box-shadow:var(--shadow); padding:18px 20px 16px; text-align:start; border:0; cursor:pointer; display:flex; flex-direction:column; gap:2px; width:100%;}
.kpi:hover{box-shadow:0 0 0 2px var(--brand), var(--shadow);}
.kpi.static{cursor:default;} .kpi.static:hover{box-shadow:var(--shadow);}
.kpi .k{font-size:12.5px; font-weight:600; color:var(--body);}
.kpi .v{font-size:28px; font-weight:700; line-height:1.15; margin-top:4px;}
.kpi .v small{font-size:13px; font-weight:600; color:var(--muted);}
.kpi .s{font-size:12.5px; color:var(--muted); margin-top:2px;}
.kpi .bar{height:5px; border-radius:3px; background:var(--panel); margin-top:12px; overflow:hidden;}
.kpi .bar i{display:block; height:100%; background:var(--brand); border-radius:3px;}
.kpi.alert .v{color:var(--red);}
.kpi.dark{background:var(--charcoal); color:var(--on-charcoal);}
.kpi.dark .k,.kpi.dark .s{color:inherit; opacity:.8;}
.kpi.dark .v{color:var(--brand);}

/* hero search */
.hero{background:linear-gradient(135deg,var(--brand),var(--brand-deep)); border-radius:24px; padding:30px 30px 34px; color:#fff; position:relative;}
.hero h1{margin:0; font-size:28px; font-weight:700; line-height:1.2;}
.hero p{margin:6px 0 18px; opacity:.92;}
.search-wrap{position:relative; max-width:760px;}
.search-wrap input{width:100%; border:0; border-radius:16px; padding:16px 18px 16px 50px; font-size:16px; background:#fff; color:#2D2D3C; box-shadow:0 8px 24px rgba(0,0,0,.12); outline:none;}
[dir="rtl"] .search-wrap input{padding:16px 50px 16px 18px;}
.search-wrap .sicon{position:absolute; inset-inline-start:17px; top:50%; transform:translateY(-50%); width:20px; height:20px; color:#8A8F99;}
.results{position:absolute; top:calc(100% + 8px); inset-inline:0; background:var(--card); color:var(--text); border-radius:16px; box-shadow:0 18px 40px rgba(0,0,0,.18); max-height:420px; overflow:auto; z-index:15; padding:6px;}
.results .grp{font-size:11.5px; font-weight:700; color:var(--muted); padding:8px 12px 4px;}
.results .it{display:flex; justify-content:space-between; gap:12px; align-items:center; padding:9px 12px; border-radius:10px; cursor:pointer;}
.results .it:hover,.results .it.on{background:var(--soft);}
.results .it b{font-weight:600;}
.results .it small{color:var(--muted); font-size:12px;}
.results .empty{padding:14px; color:var(--muted);}

/* tables */
.tbl-card{background:var(--card); border-radius:20px; box-shadow:var(--shadow); padding:6px 6px 10px;}
.tbl-wrap{overflow-x:auto;}
table{width:100%; border-collapse:separate; border-spacing:0; font-size:13px;}
thead th{background:var(--th); color:var(--text); font-weight:700; text-align:start; padding:10px 12px; white-space:nowrap; position:sticky; top:0;}
thead th:first-child{border-start-start-radius:14px; border-end-start-radius:14px;} thead th:last-child{border-start-end-radius:14px; border-end-end-radius:14px;}
tbody td{padding:9px 12px; border-bottom:1px solid var(--line); vertical-align:top;}
tbody tr:nth-child(even) td{background:var(--panel);}
tbody tr.click{cursor:pointer;} tbody tr.click:hover td{background:var(--soft);}
td.r,th.r{text-align:end;} td.nw{white-space:nowrap;}
tfoot td{background:var(--soft); font-weight:700; padding:10px 12px; border-top:2px solid var(--brand);}
.tbl-foot{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 10px 2px; flex-wrap:wrap; color:var(--muted); font-size:12.5px;}
.pager{display:flex; gap:6px; align-items:center;}

/* filters */
.filters{display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:12px;}
.filters .input,.filters select{width:auto; min-width:150px; border:1px solid var(--line); background:var(--card); border-radius:10px; padding:8px 10px; font-size:13px;}
.filters .grow{flex:1; min-width:200px;}
.filters .count{color:var(--muted); font-size:12.5px; margin-inline-start:auto;}

/* chips / badges */
.chip{display:inline-flex; align-items:center; gap:4px; border-radius:40px; padding:2px 10px; font-size:12px; font-weight:600; background:var(--panel); color:var(--body); white-space:nowrap;}
.chip.cyan{background:var(--soft); color:var(--brand-ink);}
.chip.red{background:var(--red-soft); color:var(--red);}
.chip.amber{background:var(--amber-soft); color:var(--amber);}
.chip.green{background:var(--green-soft); color:var(--green);}
.chip.dark{background:var(--charcoal); color:var(--on-charcoal);}
.chips{display:flex; flex-wrap:wrap; gap:6px;}

/* sub-nav */
.seg{display:inline-flex; background:var(--card); border-radius:40px; padding:4px; box-shadow:var(--shadow); gap:2px; flex-wrap:wrap; margin-bottom:16px;}
.seg button{border:0; background:transparent; border-radius:40px; padding:7px 14px; font-weight:600; color:var(--body); cursor:pointer; font-size:13px;}
.seg button.active{background:var(--soft); color:var(--brand-ink);}
.utabs{display:flex; gap:20px; border-bottom:1px solid var(--line); margin:4px 0 18px; overflow-x:auto; scrollbar-width:none;}
.utabs button{border:0; background:none; padding:10px 0; font-weight:600; color:var(--body); cursor:pointer; border-bottom:3px solid transparent; white-space:nowrap;}
.utabs button.active{color:var(--text); border-bottom-color:var(--brand);}

/* profile */
.back{display:inline-flex; gap:6px; align-items:center; color:var(--body); font-weight:600; cursor:pointer; border:0; background:none; padding:0; margin-bottom:12px;}
.prof-head{display:grid; grid-template-columns:1fr auto; gap:18px; align-items:start;}
.prof-name{font-size:24px; font-weight:700; margin:0 0 8px; line-height:1.25;}
.meta{display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px 20px; margin-top:16px;}
.meta div small{display:block; font-size:12px; color:var(--muted);}
.meta div b{font-weight:600; word-break:break-word;}
.dl{display:grid; grid-template-columns:minmax(150px,240px) 1fr; gap:8px 18px; margin:0;}
.dl dt{color:var(--muted); font-size:13px;}
.dl dd{margin:0; font-weight:500;}
@media (max-width:560px){.dl{grid-template-columns:1fr;} .dl dd{margin-bottom:6px;} .prof-head{grid-template-columns:1fr;}}
.callout{background:var(--panel); border-radius:16px; padding:12px 16px; display:flex; gap:12px; align-items:flex-start; color:var(--body); font-size:13px;}
.callout b{color:var(--text);}
.callout .ic{width:30px; height:30px; border-radius:50%; border:2px solid var(--brand); color:var(--brand); display:grid; place-items:center; flex:none; font-weight:700;}
.callout.warn .ic{border-color:var(--amber); color:var(--amber);}
.channel{border-radius:20px; background:var(--card); box-shadow:var(--shadow); padding:16px 18px; border-top:6px solid var(--line);}
.channel.lv-critical{border-top-color:var(--red);} .channel.lv-high{border-top-color:var(--amber);} .channel.lv-ok{border-top-color:var(--green);} .channel.lv-info{border-top-color:var(--brand);}
.channel h4{margin:0 0 6px; font-size:13px; color:var(--body); font-weight:600;}
.channel .lvl{font-size:19px; font-weight:700; margin-bottom:6px;}
.channel p{margin:0; font-size:13px; color:var(--body);}
.meter{display:flex; gap:6px; margin:8px 0 4px;}
.meter i{flex:1; height:8px; border-radius:4px; background:var(--panel);}
.meter i.on{background:var(--red);}
.empty-state{text-align:center; padding:40px 20px; color:var(--body);}
.empty-state .ic{width:64px; height:64px; border-radius:50%; border:2px solid var(--brand); color:var(--brand); display:grid; place-items:center; margin:0 auto 14px;}
.empty-state .ic svg{width:28px; height:28px;}
.empty-state h3{margin:0 0 6px; color:var(--text);}
.empty-state p{margin:0 auto; max-width:520px;}
.hide-note{color:var(--muted); font-style:italic;}

/* notes */
.note{border-bottom:1px solid var(--line); padding:10px 0;}
.note small{color:var(--muted);}
.note p{margin:4px 0 0; white-space:pre-wrap;}
textarea.input{min-height:80px; resize:vertical;}

/* bars */
.hbar{display:grid; grid-template-columns:150px 1fr 60px; gap:10px; align-items:center; margin:7px 0; font-size:13px;}
.hbar .t{height:12px; background:var(--panel); border-radius:6px; overflow:hidden; display:flex;}
.hbar .t i{display:block; height:100%;}
.hbar .t i.s{background:var(--brand);} .hbar .t i.n{background:var(--line);} .hbar .t i.d{background:var(--charcoal);}
.legend{display:flex; gap:14px; flex-wrap:wrap; font-size:12.5px; color:var(--body); margin-top:8px;}
.legend span::before{content:""; display:inline-block; width:10px; height:10px; border-radius:3px; margin-inline-end:6px; vertical-align:-1px; background:var(--c);}

/* settings */
.switch{position:relative; display:inline-block; width:38px; height:22px; flex:none;}
.switch input{opacity:0; width:0; height:0;}
.switch span{position:absolute; inset:0; background:var(--line); border-radius:22px; cursor:pointer; transition:background .15s;}
.switch span::before{content:""; position:absolute; width:16px; height:16px; inset-inline-start:3px; top:3px; background:#fff; border-radius:50%; transition:transform .15s;}
.switch input:checked + span{background:var(--brand);}
.switch input:checked + span::before{transform:translateX(16px);}
[dir="rtl"] .switch input:checked + span::before{transform:translateX(-16px);}
.switch input:disabled + span{opacity:.5; cursor:not-allowed;}
.perm-row{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--line);}
.perm-row small{display:block; color:var(--muted); font-size:12px;}
.perm-group{font-size:12px; font-weight:700; color:var(--brand-ink); margin:16px 0 4px;}
.matrix td,.matrix th{text-align:center;} .matrix td:first-child,.matrix th:first-child{text-align:start;}
.custom-dot{display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--amber); margin-inline-start:6px;}

/* modal / drawer */
.scrim{position:fixed; inset:0; background:rgba(16,22,29,.45); z-index:50; display:flex; justify-content:flex-end;}
.drawer{width:min(520px,100%); height:100%; background:var(--card); padding:22px 22px calc(22px + env(safe-area-inset-bottom,0px)); overflow:auto; padding-top:calc(22px + env(safe-area-inset-top,0px));}
.drawer h3{margin:0 0 4px; font-size:19px;}
.drawer .sub{color:var(--muted); margin-bottom:12px;}
.drawer-foot{display:flex; gap:8px; justify-content:flex-end; margin-top:18px;}

/* toast */
#toast{position:fixed; bottom:calc(84px + env(safe-area-inset-bottom,0px)); left:50%; transform:translateX(-50%); background:var(--charcoal); color:var(--on-charcoal); padding:10px 18px; border-radius:40px; font-weight:600; font-size:13px; z-index:60; box-shadow:var(--shadow); max-width:90vw;}
@media (min-width:861px){#toast{bottom:24px;}}

/* bottom nav (mobile) */
.bottomnav{display:none;}
@media (max-width:860px){
  .topbar{padding:8px 12px; gap:8px;}
  .topbar .nav{display:none;}
  .topbar .tools{margin-inline-start:auto;}
  .user-btn .uname{display:none;}
  .user-btn{padding:3px;}
  .bottomnav{display:flex; position:fixed; bottom:0; left:0; right:0; z-index:20; background:var(--card); border-top:1px solid var(--line); padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px)); overflow-x:auto; gap:2px; scrollbar-width:none;}
  .bottomnav::-webkit-scrollbar{display:none;}
  .bottomnav button{flex:1 0 auto; min-width:68px; border:0; background:none; border-radius:12px; padding:6px 8px; display:flex; flex-direction:column; align-items:center; gap:2px; font-size:11px; font-weight:600; color:var(--body); cursor:pointer;}
  .bottomnav button svg{width:20px; height:20px;}
  .bottomnav button.active{color:var(--brand-ink); background:var(--soft);}
  main{padding:16px 12px 100px;}
  .hero{padding:22px 18px 24px; border-radius:20px;}
  .hero h1{font-size:22px;}
  .page-title{font-size:22px;}
  .kpi .v{font-size:22px;}
  .card{padding:16px;}
  .hbar{grid-template-columns:100px 1fr 46px;}
}
@media (prefers-reduced-motion:reduce){*{transition:none !important; animation:none !important;}}

[dir="rtl"] .kpi span,[dir="rtl"] td,[dir="rtl"] th,[dir="rtl"] dd,[dir="rtl"] dt,[dir="rtl"] p,[dir="rtl"] .chip,[dir="rtl"] .meta b,[dir="rtl"] .callout div,[dir="rtl"] .section-title .hint,[dir="rtl"] .results small{unicode-bidi:plaintext;}

/* v2 additions */
.icon-btn.bell{position:relative;}
.icon-btn .badge{position:absolute; top:-4px; inset-inline-end:-4px; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--red); color:#fff; font-size:10.5px; font-weight:700; display:grid; place-items:center; line-height:1;}
.menu{max-height:70vh; overflow:auto;}
.menu .notif{display:block; font-size:13px; line-height:1.4; border-bottom:1px solid var(--line); border-radius:0;}
.menu .notif.unread{background:var(--soft); border-radius:10px;}
.menu .notif .ntext{display:block; color:var(--body); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:300px;}
.menu .notif small{display:block; color:var(--muted); font-size:11.5px;}
.menu[data-kind="bell"]{width:min(360px,92vw);}
.asof{max-width:1320px; margin:0 auto; padding:10px 20px 0; font-size:12px; color:var(--muted);}
.qgrid{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px;}
.qgrid select{width:100%; border:1px solid var(--line); background:var(--card); border-radius:10px; padding:8px 10px; font-size:13px;}
@media (max-width:900px){.qgrid{grid-template-columns:1fr 1fr;}}
.sugg{background:var(--panel); border-radius:12px; padding:9px 14px; font-size:13px; color:var(--body);}
.sugg b.red{color:var(--red);} .sugg b.green{color:var(--green);}
.cs-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:14px; align-items:start;}
@media (max-width:900px){.cs-grid{grid-template-columns:1fr;}}
.cs-phone{font-size:24px; font-weight:700; color:var(--brand-ink); margin:10px 0 14px;}
.cs-phone small{font-size:13px; color:var(--muted); font-weight:500;}
.script{max-height:640px; overflow:auto;}
.sc-step{padding:10px 0; border-bottom:1px solid var(--line);}
.sc-step b{display:block; font-size:12.5px; color:var(--brand-ink);}
.sc-step p{margin:4px 0 2px; font-size:15px; line-height:1.7; color:var(--text); font-family:'Cairo','Poppins',Arial,sans-serif;}
.sc-step small{display:block; color:var(--muted); font-size:12.5px;}
.sc-step.q5{background:var(--soft); border-radius:12px; padding:10px 12px; border:0; margin:6px 0;}
.sc-step.note small{color:var(--body);}
.timeline{list-style:none; margin:0; padding:0 0 0 6px; position:relative;}
[dir="rtl"] .timeline{padding:0 6px 0 0;}
.timeline li{position:relative; padding:0 0 16px 24px; border-inline-start:2px solid var(--line); margin-inline-start:6px;}
[dir="rtl"] .timeline li{padding:0 24px 16px 0;}
.timeline li::before{content:""; position:absolute; inset-inline-start:-7px; top:4px; width:12px; height:12px; border-radius:50%; background:var(--card); border:2px solid var(--muted);}
.timeline li.tl-cyan::before{border-color:var(--brand); background:var(--brand);}
.timeline li.tl-green::before{border-color:var(--green); background:var(--green);}
.timeline li.tl-red::before{border-color:var(--red); background:var(--red);}
.timeline li.tl-amber::before{border-color:var(--amber); background:var(--amber);}
.timeline li:last-child{border-inline-start-color:transparent;}
.timeline small{display:block; color:var(--muted); font-size:12px;}
.timeline b{display:block; font-weight:600;}
.timeline span{display:block; color:var(--body); font-size:13px;}
#printArea{display:none;}
@media print{
  body{background:#fff; color:#000;} body::before{display:none;}
  #app,#login,#toast,.scrim{display:none !important;}
  #printArea{display:block; padding:10mm; font-size:11pt;}
  #printArea .card{box-shadow:none; border:1px solid #ddd; padding:10px; margin-bottom:8px; break-inside:avoid;}
  #printArea .grid{display:block;} #printArea .section-title{margin:10px 0 6px; font-size:12pt;}
  #printArea h2{font-size:13pt; margin:16px 0 6px; padding-bottom:4px; border-bottom:2px solid #0BBBEF;}
  .pr-head{display:flex; gap:16px; align-items:center; border-bottom:1px solid #ddd; padding-bottom:10px;}
  .pr-head img{height:30px;} .pr-head h1{margin:0; font-size:18pt;} .pr-head p{margin:2px 0 0; color:#555;}
}

/* T&C */
.tc .card{margin-bottom:14px;}
.tc-head h2{margin:0 0 4px; font-size:19px;}
.tc-upd{margin:0 0 10px; color:var(--muted); font-size:12.5px;}
.tc-head p:last-child{margin:0; color:var(--body);}
.tc-grid{display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:14px; align-items:start;}
.tc-grid .card{margin-bottom:0;} .tc-grid{margin-bottom:14px;}
@media (max-width:900px){.tc-grid{grid-template-columns:1fr;}}
.tc-note{margin:10px 0 0; font-size:12.5px; color:var(--muted);}
.tc-qa .qa{padding:10px 0; border-bottom:1px solid var(--line);} .tc-qa .qa:last-child{border-bottom:0;}
.tc-qa .qa b{display:block; color:var(--brand-ink);} .tc-qa .qa p{margin:3px 0 0; color:var(--body); font-size:13.5px;}
.tc-sec ol{margin:0; padding-inline-start:20px;} .tc-sec li{margin:6px 0; color:var(--text); line-height:1.6;}
.tc[dir="rtl"], .tc[dir="rtl"] *{font-family:'Cairo','Poppins',Arial,sans-serif;}
.tc[dir="rtl"] td,.tc[dir="rtl"] th{text-align:right;}
.tc-explain ul{margin:0; padding-inline-start:18px; color:var(--body);} .tc-explain li{margin:4px 0;}
.tc-explain ul.ar{margin-top:10px; padding-top:10px; border-top:1px dashed var(--line); font-family:'Cairo','Poppins',Arial,sans-serif; padding-right:18px; padding-left:0; font-size:14px;}

.stack{display:flex; height:14px; border-radius:7px; overflow:hidden; background:var(--panel);}
.stack i{display:block; height:100%;}
.dot{display:inline-block; width:10px; height:10px; border-radius:3px; margin-inline-end:8px; vertical-align:-1px;}
.months{display:flex; gap:6px; align-items:flex-end; overflow-x:auto; padding-bottom:4px;}
.mo{display:flex; flex-direction:column; align-items:center; min-width:46px; font-size:11.5px;}
.mo .mb{height:70px; width:22px; background:var(--panel); border-radius:6px; display:flex; align-items:flex-end; overflow:hidden;}
.mo .mb i{display:block; width:100%; background:var(--brand); border-radius:6px;}
.mo b{font-weight:600; margin-top:4px;} .mo small{color:var(--muted);}
