@font-face{font-family:Vazirmatn;src:url('fonts/Vazirmatn-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Vazirmatn;src:url('fonts/Vazirmatn-SemiBold.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Vazirmatn;src:url('fonts/Vazirmatn-Bold.woff2') format('woff2');font-weight:700 900;font-style:normal;font-display:swap}
:root{
  --bk-primary:#052259;--bk-primary-2:#0b3473;--bk-blue:#2D74FF;--bk-cyan:#8EB9FF;
  --bk-bg:#F6F8FC;--bk-bg-soft:#F3F6FB;--bk-card:#fff;--bk-line:#DBE5F2;
  --bk-text:#13213A;--bk-muted:#65758E;--bk-soft:#EEF4FF;--good:#16825d;--bad:#b93b45;
  --shadow:0 5px 18px rgba(5,34,89,.05);--shadow-lg:0 18px 48px rgba(5,34,89,.13)
}
*{box-sizing:border-box}
html{color-scheme:light;background:var(--bk-bg)}
body,input,button,select,textarea{font-family:Vazirmatn,Tahoma,Arial,sans-serif;font-synthesis:none}
body{margin:0;background:var(--bk-bg);color:var(--bk-text);line-height:1.75;min-height:100vh}
a{color:inherit}

/* ---------- Login / setup — follows Bimehkar auth pages ---------- */
.auth{min-height:100vh;background:var(--bk-bg);display:flex;align-items:stretch}
.auth-shell{width:100%;min-height:100vh;display:grid;grid-template-columns:minmax(440px,680px) minmax(0,1fr);direction:ltr}
.brand-panel{direction:rtl;background:var(--bk-primary);color:#fff;padding:46px clamp(30px,5vw,72px);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}
.brand-panel:before{content:"";position:absolute;left:-13%;bottom:-23%;width:72%;aspect-ratio:1;border:82px solid rgba(255,255,255,.045);border-radius:45%;transform:rotate(-18deg);pointer-events:none}
.brand-panel>*{position:relative;z-index:1}
.auth-logo{width:190px;min-height:72px;display:flex;align-items:center;justify-content:flex-start;margin-bottom:40px}
.auth-logo img{width:180px;height:auto;display:block;object-fit:contain}
.brand-copy{margin:auto 0}
.brand-panel h1{font-size:clamp(28px,3vw,38px);line-height:1.5;margin:0 0 9px;font-weight:900;color:#fff}
.brand-panel p{max-width:560px;margin:0;color:rgba(255,255,255,.82);font-size:14px}
.brand-panel ul{margin:34px 0 0;padding:0;list-style:none;display:grid;gap:10px;color:rgba(255,255,255,.85);font-size:13px}
.brand-panel li{display:flex;align-items:center;gap:10px}
.brand-panel li:before{content:"";width:7px;height:7px;border-radius:50%;background:#8EB9FF;box-shadow:0 0 0 5px rgba(142,185,255,.10);flex:0 0 auto}
.brand-foot{font-size:11px;color:rgba(255,255,255,.55);direction:ltr;text-align:left}
.auth-card{direction:rtl;width:min(540px,calc(100% - 48px));align-self:center;justify-self:center;background:#fff;border:1px solid var(--bk-line);border-radius:26px;padding:30px;box-shadow:0 12px 32px rgba(5,34,89,.08)}
.auth-card-head{margin-bottom:16px}.auth-card h2{font-size:24px;line-height:1.5;color:var(--bk-primary);margin:4px 0 5px;font-weight:900}.auth-card-head p,.muted{color:var(--bk-muted);font-size:12px;margin:0}.eyebrow{display:inline-flex;align-items:center;min-height:28px;padding:4px 10px;border-radius:999px;background:var(--bk-soft);color:var(--bk-primary);font-size:10px;font-weight:900;margin-bottom:4px}.auth-meta-strip{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0 16px}.auth-meta-strip span{background:#f7f9fd;border:1px solid var(--bk-line);border-radius:999px;padding:5px 9px;color:var(--bk-muted);font-size:10px;font-weight:700}
.form{display:grid;gap:13px;margin-top:16px}.form label{display:grid;gap:6px;font-size:11px;color:#526079;font-weight:800}.form input{width:100%;min-height:46px;border:1px solid var(--bk-line);border-radius:12px;background:#fff;color:var(--bk-text);padding:10px 12px;font:inherit;outline:0}.form input:focus{border-color:var(--bk-blue);box-shadow:0 0 0 3px rgba(45,116,255,.13)}.form .two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form hr{border:0;border-top:1px solid var(--bk-line);width:100%;margin:4px 0}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:0;background:var(--bk-blue);color:#fff;text-decoration:none;padding:9px 18px;border-radius:12px;font:inherit;font-size:12px;font-weight:900;cursor:pointer;transition:.16s ease}.btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(45,116,255,.18)}.form>.btn{width:100%;margin-top:3px}.alert{padding:11px 13px;border-radius:14px;margin:12px 0;font-size:11px;font-weight:700}.alert.error{background:#fff0f1;color:var(--bad);border:1px solid #ffd4d8}.alert.ok{background:#edf9f4;color:var(--good);border:1px solid #cfeee1}

/* ---------- Analytics dashboard — follows Bimehkar Superadmin ---------- */
.topbar{position:fixed;right:0;top:0;bottom:0;width:260px;background:var(--bk-primary);border-left:1px solid rgba(255,255,255,.08);padding:18px 12px;z-index:20;display:flex;flex-direction:column;box-shadow:-12px 0 34px rgba(5,34,89,.10)}
.brand{min-height:82px;padding:12px;border-radius:17px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;margin-bottom:16px;box-shadow:0 12px 28px rgba(0,0,0,.12)}
.brand img{width:176px;height:auto;object-fit:contain;display:block}.brand-copy-mini{text-align:center;margin-top:5px;line-height:1.3}.brand-copy-mini strong{display:block;color:var(--bk-primary);font-size:11px}.brand-copy-mini span{display:block;color:var(--bk-muted);font-size:9px;margin-top:2px}
.nav-label{color:rgba(255,255,255,.48);font-size:9px;font-weight:900;padding:4px 9px 7px}.topbar nav{display:grid;gap:4px}.topbar nav a{min-height:38px;padding:8px 11px;border-radius:10px;color:rgba(255,255,255,.72);text-decoration:none;font-size:11px;font-weight:800;display:flex;align-items:center;gap:9px;border:1px solid transparent}.topbar nav a:before{content:"";width:7px;height:7px;border-radius:3px;background:rgba(255,255,255,.25);flex:0 0 auto}.topbar nav a:hover{background:rgba(255,255,255,.075);color:#fff}.topbar nav a.active{background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.12);box-shadow:inset -3px 0 0 var(--bk-cyan)}.topbar nav a.active:before{background:var(--bk-cyan)}
.sidebar-status{margin-top:auto;border-top:1px solid rgba(255,255,255,.08);padding:14px 8px 4px;color:rgba(255,255,255,.62);font-size:9px}.sidebar-status b{display:block;color:#fff;font-size:10px;margin-bottom:3px}.sidebar-status i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#4bd3a0;margin-left:5px;vertical-align:middle;box-shadow:0 0 0 4px rgba(75,211,160,.10)}
.dashboard-main{margin-right:260px;min-height:100vh}.dashboard-head{height:64px;min-height:64px;background:#fff;border:1px solid var(--bk-line);border-radius:0 0 18px 18px;box-shadow:0 6px 18px rgba(5,34,89,.045);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 18px;margin:0 16px}.dashboard-head-title{display:flex;align-items:center;gap:10px}.dashboard-head-title .head-mark{width:34px;height:34px;border-radius:11px;background:var(--bk-soft);display:grid;place-items:center;color:var(--bk-blue);font-size:13px;font-weight:900}.dashboard-head-title strong{display:block;color:var(--bk-text);font-size:12px}.dashboard-head-title span{display:block;color:var(--bk-muted);font-size:9px}.dashboard-head .quick-links{display:flex;gap:6px}.dashboard-head .quick-links a{min-height:34px;padding:6px 11px;border:1px solid var(--bk-line);border-radius:11px;background:#fff;color:var(--bk-primary);text-decoration:none;font-size:10px;font-weight:800}.dashboard-head .quick-links a:hover{background:var(--bk-bg-soft)}
.wrap{max-width:1500px;margin:0 auto;padding:16px 16px 42px}.hero{display:flex;align-items:end;justify-content:space-between;gap:24px;margin:8px 0 14px}.hero h1{font-size:22px;margin:3px 0 5px;color:var(--bk-primary);font-weight:900;position:relative;padding-right:14px}.hero h1:before{content:"";position:absolute;right:0;top:50%;transform:translateY(-50%);width:4px;height:27px;border-radius:8px;background:linear-gradient(180deg,var(--bk-blue),var(--bk-cyan))}.hero p{margin:0;color:var(--bk-muted);font-size:11px;max-width:760px}.hero .eyebrow{margin:0}.range{display:flex;gap:3px;background:#fff;border:1px solid var(--bk-line);padding:4px;border-radius:12px;white-space:nowrap}.range a{color:var(--bk-primary);text-decoration:none;padding:6px 10px;border-radius:9px;font-size:10px;font-weight:800}.range a:hover,.range a.active{background:var(--bk-soft);color:var(--bk-blue)}
.ingest{display:flex;gap:20px;align-items:center;background:#f2faf7;color:#2f6452;border:1px solid #d3eee4;padding:8px 12px;border-radius:12px;font-size:10px;margin-bottom:10px}.cards{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:10px}.cards article,.panel{background:#fff;border:1px solid var(--bk-line);border-radius:16px;box-shadow:var(--shadow)}.cards article{padding:13px;min-height:82px;position:relative}.cards article:before{content:"";position:absolute;right:12px;top:13px;width:8px;height:8px;border-radius:3px;background:var(--bk-soft);border:1px solid #c8daf3}.cards span{font-size:10px;color:var(--bk-muted);font-weight:700}.cards strong{display:block;color:var(--bk-primary);font-size:21px;line-height:1.25;margin:5px 0 2px;font-weight:900}.cards strong em{font-size:9px;font-style:normal;color:var(--bk-muted);font-weight:700}.cards small{font-size:8.5px;color:#93a0b2}.grid{display:grid;gap:10px;margin-bottom:10px}.grid.two{grid-template-columns:1.35fr 1fr}.grid.three{grid-template-columns:repeat(3,1fr)}.panel{padding:15px;min-width:0}.panel header{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px;padding-bottom:10px;border-bottom:1px solid #edf2f8}.panel h2{font-size:12px;color:var(--bk-text);margin:0;font-weight:900}.panel header p{font-size:8.5px;color:var(--bk-muted);margin:2px 0 0}.bar-row{display:grid;grid-template-columns:90px 1fr 45px;align-items:center;gap:8px;font-size:9.5px;margin:9px 0}.bar-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#526079}.bar-row>div{height:6px;background:#edf2f8;border-radius:10px;overflow:hidden}.bar-row i{display:block;height:100%;background:var(--bk-blue);border-radius:10px}.bar-row b{text-align:left;color:var(--bk-primary);font-size:9px}.trend{height:205px;display:flex;align-items:end;gap:6px;border-bottom:1px solid var(--bk-line);padding-top:22px}.trend-col{height:100%;flex:1;min-width:18px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px}.trend-col i{width:min(31px,78%);background:linear-gradient(180deg,var(--bk-blue),var(--bk-cyan));border-radius:6px 6px 2px 2px;min-height:5px}.trend-col span,.trend-value{font-size:8px;color:var(--bk-muted)}.trend-value{color:var(--bk-primary);font-weight:800}.table-wrap{overflow:auto;border:1px solid var(--bk-line);border-radius:12px}table{width:100%;border-collapse:collapse;font-size:9.5px;background:#fff}th{text-align:right;color:var(--bk-primary);font-weight:900;border-bottom:1px solid var(--bk-line);padding:8px;background:var(--bk-bg-soft);white-space:nowrap}td{border-bottom:1px solid #eef2f7;padding:8px;color:#40506a}tbody tr:hover td{background:#fafcff}tr:last-child td{border-bottom:0}.status{display:inline-block;border-radius:7px;padding:2px 6px;font-weight:800}.status.s4{background:#fff3df;color:#9a6516}.status.s5{background:#ffe8ea;color:var(--bad)}footer{color:var(--bk-muted);font-size:8.5px;text-align:center;padding:14px 0 0}.empty{font-size:10px;color:var(--bk-muted)}

@media(max-width:1180px){.cards{grid-template-columns:repeat(3,1fr)}.grid.two,.grid.three{grid-template-columns:1fr}}
@media(max-width:900px){.auth-shell{grid-template-columns:1fr;direction:rtl}.brand-panel{display:none}.auth-card{width:min(540px,calc(100% - 28px));padding:26px 22px}.topbar{position:relative;inset:auto;width:auto;min-height:auto;padding:10px 12px;box-shadow:none}.brand{min-height:62px;margin-bottom:9px}.brand img{width:150px}.brand-copy-mini{display:none}.nav-label,.sidebar-status{display:none}.topbar nav{grid-template-columns:repeat(4,1fr)}.topbar nav a{justify-content:center;text-align:center;padding:7px;font-size:9px}.topbar nav a:before{display:none}.topbar nav a.active{box-shadow:none;border-color:rgba(255,255,255,.14)}.dashboard-main{margin-right:0}.dashboard-head{margin:10px 12px 0;border-radius:16px;min-height:58px;height:auto;padding:9px 12px}.dashboard-head .quick-links{display:none}.wrap{padding:12px}.hero{align-items:start;flex-direction:column}.range{width:100%;overflow:auto}.range a{flex:1;text-align:center}.cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.form .two{grid-template-columns:1fr}.auth-card h2{font-size:21px}.cards{grid-template-columns:1fr 1fr}.ingest{display:block}.ingest span{display:block}.bar-row{grid-template-columns:72px 1fr 34px}.hero h1{font-size:18px}.dashboard-head-title span{display:none}.topbar nav{grid-template-columns:repeat(2,1fr)}}

/* ---------- v1.2 auth: exact current Bimehkar login language ---------- */
html body.auth-login-page{min-height:100vh;margin:0;background:#052259!important;color:#fff!important}
html body.auth-login-page .auth-layout{width:100%!important;max-width:none!important;min-height:100vh!important;margin:0!important;padding:46px 24px 64px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:20px!important;direction:rtl!important;background:radial-gradient(circle at 15% 8%,rgba(25,121,253,.24),transparent 29%),radial-gradient(circle at 88% 82%,rgba(74,151,255,.15),transparent 27%),linear-gradient(145deg,#031742 0%,#052259 52%,#0A3475 100%)!important}
html body.auth-login-page .auth-visual{width:min(590px,100%)!important;min-height:0!important;padding:0 18px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:11px!important;background:transparent!important;color:#fff!important;text-align:center!important;direction:rtl!important;overflow:visible!important}
html body.auth-login-page .auth-logo{width:174px!important;height:56px!important;margin:0 auto 2px!important;display:flex!important;align-items:center!important;justify-content:center!important}
html body.auth-login-page .auth-logo img{width:100%!important;height:100%!important;object-fit:contain!important;filter:none!important}
html body.auth-login-page .auth-visual>div{width:100%!important;text-align:center!important}
html body.auth-login-page .auth-visual h1{margin:2px 0 5px!important;color:#fff!important;font-size:27px!important;line-height:1.55!important;font-weight:900!important;letter-spacing:-.25px!important}
html body.auth-login-page .auth-visual p{max-width:540px!important;margin:0 auto!important;color:rgba(255,255,255,.74)!important;font-size:12.5px!important;line-height:1.95!important}
html body.auth-login-page .auth-visual>ul{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:7px 10px!important;margin:4px 0 0!important;padding:0!important;list-style:none!important}
html body.auth-login-page .auth-visual li{padding:6px 10px!important;border:1px solid rgba(255,255,255,.13)!important;border-radius:999px!important;background:rgba(255,255,255,.06)!important;color:rgba(255,255,255,.82)!important;font-size:10px!important;line-height:1.55!important}
html body.auth-login-page .auth-visual li:before{content:'✓';color:#8CC0FF!important;margin-left:5px!important}
html body.auth-login-page .auth-card{direction:rtl!important;width:min(590px,100%)!important;padding:30px!important;border:1px solid rgba(255,255,255,.62)!important;border-radius:26px!important;background:#fff!important;color:#17243a!important;box-shadow:0 30px 70px rgba(0,13,42,.28)!important;align-self:auto!important;justify-self:auto!important}
html body.auth-login-page .auth-card-head{margin:0 0 17px!important;text-align:right!important}
html body.auth-login-page .auth-card-head h2{margin:0!important;color:#052259!important;font-size:25px!important;line-height:1.55!important;font-weight:900!important}
html body.auth-login-page .auth-card-head p{margin:5px 0 0!important;color:#708096!important;font-size:11px!important;line-height:1.9!important}
html body.auth-login-page .auth-meta-strip{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin:0 0 18px!important;padding:0!important;background:transparent!important}
html body.auth-login-page .auth-meta-strip span{min-height:34px!important;padding:6px 7px!important;display:flex!important;align-items:center!important;justify-content:center!important;border:1px solid #E3EAF4!important;border-radius:10px!important;background:#F8FAFD!important;color:#65758D!important;font-size:9px!important;font-weight:800!important;text-align:center!important}
html body.auth-login-page .clean-form{display:grid!important;gap:13px!important;margin-top:0!important}
html body.auth-login-page .clean-form label{margin:0!important;display:grid!important;gap:6px!important;color:#40506A!important;font-size:11px!important;font-weight:800!important;text-align:right!important}
html body.auth-login-page .clean-form input[type=text],html body.auth-login-page .clean-form input[type=password]{width:100%!important;height:49px!important;margin:0!important;padding:0 14px!important;border:1px solid #DCE5EF!important;border-radius:12px!important;background:#fff!important;color:#17243a!important;font:13px Vazirmatn,Tahoma,sans-serif!important;outline:0!important}
html body.auth-login-page .clean-form input:focus{border-color:#8AB9FF!important;box-shadow:0 0 0 4px rgba(25,121,253,.09)!important}
.password-field{position:relative}.password-field input{padding-left:72px!important}.password-toggle{position:absolute;left:7px;top:7px;height:35px;padding:0 10px;border:0;border-radius:9px;background:#F3F6FB;color:#65758D;font:800 9px Vazirmatn,Tahoma,sans-serif;cursor:pointer}.password-toggle:hover{background:#EAF2FF;color:#1979FD}
html body.auth-login-page .bk-login-submit{width:100%!important;min-height:52px!important;margin-top:2px!important;padding:10px 18px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:1px solid #052259!important;border-radius:13px!important;background:#052259!important;color:#fff!important;text-decoration:none!important;font:900 13px Vazirmatn,Tahoma,sans-serif!important;box-shadow:0 10px 22px rgba(5,34,89,.16)!important;transition:.18s ease!important}
html body.auth-login-page .bk-login-submit:hover{background:#1979FD!important;border-color:#1979FD!important;transform:translateY(-2px)!important;box-shadow:0 14px 28px rgba(25,121,253,.27)!important}
.form-alert{padding:11px 13px;border-radius:12px;margin:0 0 15px;font-size:10px;font-weight:800}.form-alert.danger{background:#fff0f1;color:#b93b45;border:1px solid #ffd4d8}.form-alert.success{background:#edf9f4;color:#16825d;border:1px solid #cfeee1}
.staff-note{margin-top:17px;padding:11px;border:1px solid #E2EAF4;border-radius:12px;background:#F7F9FC;color:#6E7D92;font-size:9px;text-align:center}.back-home{display:block;margin-top:12px;text-align:center;text-decoration:none;color:#6B7A90;font-size:9px;font-weight:800}.back-home:hover{color:#1979FD}
.setup-card{width:min(650px,100%)!important}.setup-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:0 0 18px}.setup-steps span{min-height:42px;padding:7px 8px;border:1px solid #E3EAF4;border-radius:11px;background:#F8FAFD;color:#65758D;font-size:9px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:6px;text-align:center}.setup-steps b{width:22px;height:22px;border-radius:50%;background:#EEF4FF;color:#1979FD;display:grid;place-items:center;font-size:9px}.form-section-title{margin:6px 0 0;padding-top:13px;border-top:1px solid #E9EEF5}.form-section-title:first-child{border-top:0;padding-top:0}.form-section-title strong{display:block;color:#052259;font-size:11px}.form-section-title span{display:block;color:#7A899D;font-size:9px;margin-top:2px}.advanced{border:1px solid #E3EAF4;border-radius:12px;background:#FAFBFD;padding:9px 11px;color:#65758D}.advanced summary{cursor:pointer;font-size:9px;font-weight:800;color:#526079}.advanced-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.advanced p{font-size:8.5px;margin:8px 0 0;color:#8795A8}.advanced input:disabled{background:#F4F6F9!important;color:#8592A4!important}
@media(max-width:640px){html body.auth-login-page .auth-layout{padding:28px 13px 40px!important}.auth-visual h1{font-size:23px!important}.auth-card{padding:22px 18px!important;border-radius:20px!important}.auth-meta-strip,.setup-steps{grid-template-columns:1fr!important}.advanced-grid{grid-template-columns:1fr}.auth-visual>ul{display:none!important}}
