:root{--navy:#071d3b;--navy2:#0d2d5c;--blue:#1555a5;--gold:#c99a2e;--gold2:#f0c45c;--bg:#f3f7fb;--card:#fff;--text:#14213d;--muted:#6b7890;--line:#e6edf6;--danger:#b42318;--green:#087443;--shadow:0 20px 55px rgba(7,29,59,.12);--radius:22px}*{box-sizing:border-box}body.ad-system{margin:0;background:linear-gradient(180deg,#f7fbff,#edf4fb);font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--text);min-height:100vh}body[dir=rtl]{font-family:"NRT",Tahoma,Arial,sans-serif}.ad-auth{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at top left,rgba(201,154,46,.18),transparent 35%),linear-gradient(140deg,#061a35,#0d2d5c 55%,#f7fbff 55%)}.auth-card{width:100%;max-width:460px;background:#fff;border-radius:28px;padding:34px;box-shadow:0 30px 80px rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.55)}.brand-row{display:flex;align-items:center;gap:14px;margin-bottom:22px}.brand-mark{width:54px;height:54px;border-radius:18px;background:linear-gradient(145deg,var(--gold),#f8df97);display:grid;place-items:center;color:#071d3b;font-weight:900;box-shadow:0 10px 28px rgba(201,154,46,.35)}.brand-title{font-weight:900;font-size:18px;line-height:1.15;color:var(--navy)}.muted{color:var(--muted)}.form{display:grid;gap:13px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:grid;gap:7px}.field label{font-weight:800;color:#20314e;font-size:13px}.input,.select,.textarea{width:100%;border:1px solid var(--line);border-radius:15px;padding:13px 14px;background:#fff;color:var(--text);font:inherit;outline:none;transition:.2s}.textarea{min-height:110px;resize:vertical}.input:focus,.select:focus,.textarea:focus{border-color:var(--gold);box-shadow:0 0 0 4px rgba(201,154,46,.13)}.btn{border:none;border-radius:15px;padding:12px 16px;font-weight:900;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;background:var(--navy);color:#fff;box-shadow:0 12px 26px rgba(7,29,59,.16)}.btn.gold{background:linear-gradient(135deg,var(--gold),var(--gold2));color:#061a35}.btn.light{background:#eef4fb;color:var(--navy);box-shadow:none}.btn.danger{background:#fee4e2;color:var(--danger);box-shadow:none}.btn.green{background:#dcfae6;color:var(--green);box-shadow:none}.btn.small{padding:8px 11px;border-radius:11px;font-size:12px}.lang-switch{display:flex;gap:8px;flex-wrap:wrap}.lang-switch a{padding:8px 11px;border-radius:12px;border:1px solid var(--line);color:var(--navy);text-decoration:none;font-weight:800;background:#fff}.lang-switch a.active{background:var(--navy);color:#fff;border-color:var(--navy)}.app{display:flex;min-height:100vh}.sidebar{width:300px;background:linear-gradient(180deg,#061a35,#0b2a55);color:#fff;position:fixed;inset-block:0;inset-inline-start:0;padding:18px;overflow:auto;z-index:50;box-shadow:20px 0 50px rgba(7,29,59,.18)}.main{min-height:100vh;width:100%;padding:22px;margin-inline-start:300px}.side-brand{display:flex;align-items:center;gap:12px;padding:10px 8px 20px;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:18px}.side-brand .brand-mark{width:48px;height:48px;border-radius:16px}.side-brand strong{display:block;font-size:16px;line-height:1.1}.side-brand span{font-size:12px;color:#b9c7de}.nav-group{margin:16px 0 8px;color:#8fa8cc;font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;padding:0 10px}.nav-link{display:flex;align-items:center;gap:11px;padding:12px 12px;border-radius:15px;color:#e7effa;text-decoration:none;font-weight:800;margin:4px 0;transition:.18s}.nav-link svg{width:19px;height:19px;stroke:currentColor;stroke-width:2;fill:none}.nav-link:hover,.nav-link.active{background:linear-gradient(135deg,rgba(201,154,46,.22),rgba(255,255,255,.08));color:#fff}.topbar{background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border:1px solid rgba(230,237,246,.9);box-shadow:0 20px 55px rgba(7,29,59,.08);border-radius:24px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:14px;z-index:30}.top-title h1{margin:0;font-size:22px;color:var(--navy)}.top-title p{margin:4px 0 0;color:var(--muted);font-size:13px}.top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.mobile-menu{display:none}.content{padding:20px 0}.grid{display:grid;gap:18px}.grid.two{grid-template-columns:1fr 1fr}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.card,.panel{background:var(--card);border-radius:var(--radius);border:1px solid var(--line);box-shadow:var(--shadow)}.card{padding:20px}.kpi{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:118px;position:relative;overflow:hidden}.kpi:after{content:"";position:absolute;inset-inline-end:-35px;inset-block-start:-35px;width:110px;height:110px;background:rgba(201,154,46,.12);border-radius:50%}.kpi span{display:block;color:var(--muted);font-weight:800;font-size:13px}.kpi strong{display:block;font-size:28px;color:var(--navy);margin-top:6px}.iconbox{width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,var(--navy),var(--blue));display:grid;place-items:center;color:#fff;box-shadow:0 12px 26px rgba(7,29,59,.18);z-index:1}.iconbox.gold{background:linear-gradient(135deg,var(--gold),var(--gold2));color:#081f3e}.iconbox svg{width:22px;height:22px;stroke:currentColor;stroke-width:2;fill:none}.panel{padding:0;overflow:hidden}.panel-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head h2,.panel-head h3{margin:0;color:var(--navy)}.panel-head p{margin:4px 0 0;color:var(--muted);font-size:13px}.panel-body{padding:18px 20px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:separate;border-spacing:0;min-width:920px}.table th{background:#f2f6fb;color:#31415f;text-align:start;font-size:12px;text-transform:uppercase;letter-spacing:.03em}.table th,.table td{padding:13px 14px;border-bottom:1px solid var(--line);vertical-align:top}.table tr:hover td{background:#fbfdff}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;background:#edf2f7;color:#344054;margin:2px}.badge.gold{background:#fff3cd;color:#7a5900}.badge.green{background:#dcfae6;color:#087443}.badge.red{background:#fee4e2;color:#b42318}.badge.blue{background:#dbeafe;color:#1d4ed8}.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin-bottom:16px}.filters .field{min-width:160px}.totals{display:flex;flex-wrap:wrap;gap:10px;padding:14px;background:#f7fafc;border-radius:16px;margin-top:14px}.total-pill{background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 13px;font-weight:900;color:var(--navy)}.empty{padding:35px;text-align:center;color:var(--muted)}.notice{padding:13px 15px;border-radius:15px;background:#ecfdf3;border:1px solid #abefc6;color:#067647;margin-bottom:16px;font-weight:800}.error{padding:13px 15px;border-radius:15px;background:#fef3f2;border:1px solid #fecdca;color:#b42318;margin-bottom:16px;font-weight:800}.section-title{display:flex;align-items:center;gap:10px;margin:0}.section-title .line{height:4px;width:38px;border-radius:99px;background:var(--gold)}.mini-chart{height:10px;border-radius:99px;background:#e8eef7;overflow:hidden}.mini-chart span{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--navy));border-radius:99px}.profile-card{display:grid;grid-template-columns:130px 1fr;gap:18px;align-items:start}.avatar{width:110px;height:110px;border-radius:28px;object-fit:cover;background:#edf2f7;border:1px solid var(--line)}.footer-note{padding:16px;text-align:center;color:#6b7890;font-size:12px}.checkbox-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.check{display:flex;align-items:center;gap:8px;background:#f7fafc;border:1px solid var(--line);border-radius:13px;padding:10px;font-weight:800}.report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.report-box{padding:16px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fff,#f9fbfe)}.report-box span{color:var(--muted);font-weight:800;font-size:13px}.report-box strong{display:block;font-size:24px;color:var(--navy);margin-top:6px}.rtl .sidebar{right:0;left:auto}.rtl .main{margin-right:300px;margin-left:0}@media(max-width:1100px){.kpi-grid,.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.two,.grid.three,.report-grid{grid-template-columns:1fr}.form-grid,.form-grid.three{grid-template-columns:1fr}}@media(max-width:760px){.sidebar{transform:translateX(-105%);transition:.25s}.rtl .sidebar{transform:translateX(105%)}.sidebar.open{transform:translateX(0)}.main,.rtl .main{margin:0;padding:12px}.topbar{border-radius:18px;top:8px}.mobile-menu{display:inline-flex}.kpi-grid{grid-template-columns:1fr}.top-actions .lang-switch{display:none}.table{min-width:760px}.auth-card{padding:24px;border-radius:22px}.profile-card{grid-template-columns:1fr}.checkbox-grid{grid-template-columns:1fr}}@media print{.sidebar,.topbar,.btn,.filters{display:none!important}.main{margin:0!important;padding:0}.panel,.card{box-shadow:none;border:1px solid #ddd}.table{min-width:0;font-size:12px}}


.brand-mark.logo{background:#fff;padding:3px;overflow:hidden;border:1px solid rgba(201,154,46,.35)}.brand-mark.logo img{width:100%;height:100%;object-fit:contain;display:block}.dash-charts{margin-top:18px}.line-chart{width:100%;height:190px;background:linear-gradient(180deg,#f8fbff,#eef5fd);border-radius:18px;border:1px solid var(--line);padding:10px}.bar-chart{display:flex;align-items:end;gap:12px;height:120px;margin-top:14px}.bar-chart div{flex:1;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:flex-end}.bar-chart span{width:100%;min-height:8px;border-radius:10px 10px 4px 4px;background:linear-gradient(180deg,var(--gold2),var(--gold));box-shadow:0 8px 18px rgba(201,154,46,.24)}.bar-chart small{color:var(--muted);font-weight:800}.donut-row{display:grid;grid-template-columns:180px 1fr;align-items:center;gap:22px}.donut{--p:0;width:170px;height:170px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--gold) calc(var(--p)*1%),#e8eef7 0);position:relative}.donut:before{content:"";position:absolute;inset:22px;background:#fff;border-radius:50%;box-shadow:inset 0 0 0 1px var(--line)}.donut span{position:relative;font-size:28px;font-weight:900;color:var(--navy)}.legend{display:grid;gap:10px}.legend span{display:flex;align-items:center;gap:9px;font-weight:800;color:#31415f}.legend b{width:11px;height:11px;border-radius:50%;display:inline-block}.green-dot{background:#087443}.red-dot{background:#b42318}.gold-dot{background:#c99a2e}.blue-dot{background:#1555a5}.public-member-search{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}.member-page-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 6%;background:#fff;box-shadow:0 6px 24px rgba(7,29,59,.08);position:sticky;top:0;z-index:5}.member-page-head a{display:flex;align-items:center;gap:12px;text-decoration:none;color:#071d3b}.member-page-head img{width:56px;height:56px;object-fit:contain}.member-search-wrap{padding:50px 6%}.member-search-card{max-width:1050px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);padding:28px}.member-search-card h1{margin:0 0 6px;color:#071d3b}.member-profile-card{display:grid;grid-template-columns:140px 1fr;gap:20px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(180deg,#fff,#f9fbff);padding:18px;margin-top:18px}.member-photo{width:86px;height:110px;border-radius:10px;object-fit:cover;border:1px solid var(--line);background:#edf2f7}.profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.profile-grid span{display:block;background:#f7fafc;border:1px solid var(--line);border-radius:14px;padding:10px;color:var(--muted);font-weight:800}.profile-grid b{display:block;color:var(--navy);margin-top:4px}@media(max-width:760px){.donut-row,.member-profile-card,.profile-grid{grid-template-columns:1fr}.member-page-head{align-items:flex-start;flex-direction:column}.member-search-card{padding:18px}}

/* V32 membership / agency profile refinements */
.logo img,.brand-mark img,.side-brand img,.member-page-head img{background:transparent!important;object-fit:contain!important;box-shadow:none!important;border-radius:0!important;}
.public-intro{background:#fff;border:1px solid rgba(20,55,100,.12);border-radius:18px;padding:18px 20px;margin:0 0 18px;color:#233044;line-height:1.75;box-shadow:0 10px 25px rgba(15,45,90,.06);white-space:normal;}
.public-intro.compact{max-height:260px;overflow:auto;font-size:14px;text-align:start;}
.public-intro.after-profile{margin-top:18px;background:#f8fbff;}
.terms-box{background:#f8fbff;border:1px solid rgba(20,55,100,.14);border-radius:18px;padding:18px;margin:16px 0;}
.rules-details{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:14px;margin:12px 0;padding:12px;max-height:300px;overflow:auto;}
.rules-details summary{font-weight:800;color:#0a2f5a;cursor:pointer;margin-bottom:8px;}
.member-profile-card{align-items:flex-start;}
.member-photo{background:transparent!important;object-fit:contain!important;}
.agency-profile-card .member-photo{border-radius:10px!important;max-width:86px!important;width:86px!important;height:110px!important;background:#fff!important;}
.profile-grid span{min-height:70px;}
.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr));}
@media(max-width:900px){.form-grid.three{grid-template-columns:1fr}.public-intro.compact{max-height:360px}.member-profile-card{display:block}.member-photo{margin-bottom:12px}}


/* V33 employee dashboard and expense upgrade */
.kpi-grid.six{grid-template-columns:repeat(6,minmax(0,1fr));}
.simple-bars{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.bar-row{display:grid;grid-template-columns:120px 1fr 72px;gap:10px;align-items:center;font-size:13px}
.bar-name{font-weight:700;color:#14213d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar-track{height:12px;background:#e8edf7;border-radius:999px;overflow:hidden;border:1px solid #dfe6f1}
.bar-track span{display:block;height:100%;background:linear-gradient(90deg,#153e7e,#c99a2e);border-radius:999px}
.ranking-grid{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:12px}
.ranking-box{border:1px solid #e7dfcf;background:linear-gradient(180deg,#fff,#fbf7ef);border-radius:18px;padding:16px;box-shadow:0 8px 22px rgba(16,31,58,.07)}
.ranking-box h4{margin:0 0 12px;color:#14213d;font-size:15px}
.rank-line{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-top:1px dashed #eadfca}
.rank-line:first-of-type{border-top:0}
.rank-line span{color:#667085}.rank-line strong{color:#14213d;text-align:end}
.employee-table td,.employee-table th{white-space:nowrap}
.btn.danger{background:#fff1f0;color:#b42318;border:1px solid #f3b8b3}
.btn.danger:hover{background:#ffe4e1}
.badge.gold{background:#fff4d6;color:#8a5a00}.badge.green{background:#e8fbef;color:#027a48}.badge.red{background:#fff0f0;color:#b42318}.badge.blue{background:#eff6ff;color:#1555a5}
@media(max-width:1100px){.kpi-grid.six{grid-template-columns:repeat(2,minmax(0,1fr));}.bar-row{grid-template-columns:90px 1fr 54px}}
@media(max-width:760px){.kpi-grid.six{grid-template-columns:1fr}.bar-row{grid-template-columns:1fr;gap:5px}.rank-line{flex-direction:column}.grid.three{grid-template-columns:1fr!important}}

/* V35 refined application/profile/forms */
.auth-card.wide{max-width:1120px;width:min(1120px,96vw)}
.premium-form{gap:18px}.form-section-title{display:flex;align-items:center;gap:10px;margin:4px 0 2px;color:var(--navy);font-size:18px}.form-section-title span{display:block;width:42px;height:5px;border-radius:99px;background:linear-gradient(90deg,var(--gold),var(--gold2))}.field-help{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.public-application-form .input,.public-application-form .select,.public-application-form .textarea,.agency-form .input,.agency-form .select,.agency-form .textarea{background:#fbfdff}.public-application-form .field label,.agency-form .field label{color:#0b2a55}.public-head-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.profile-verified-note{background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid rgba(201,154,46,.28);border-radius:18px;padding:16px 18px;margin:18px 0;color:#26364e;line-height:1.72;max-height:220px;overflow:auto}.premium-member-profile{grid-template-columns:100px 1fr;padding:16px;border-radius:18px;background:linear-gradient(135deg,#ffffff 0%,#f8fbff 58%,#fff9e8 100%);border:1px solid rgba(201,154,46,.24);box-shadow:0 28px 70px rgba(7,29,59,.12);position:relative;overflow:hidden}.premium-member-profile:before{content:"";position:absolute;inset-inline-end:-80px;inset-block-start:-80px;width:220px;height:220px;border-radius:50%;background:rgba(201,154,46,.10)}.profile-photo-box{position:relative;z-index:1}.premium-member-profile .member-photo{width:86px!important;height:110px!important;border-radius:10px!important;background:#fff!important;object-fit:cover!important;box-shadow:0 6px 16px rgba(7,29,59,.08)}.verified-badge{display:inline-flex;margin-top:10px;background:#dcfae6;color:#087443;border-radius:999px;padding:7px 12px;font-weight:900;font-size:12px}.profile-main-info{position:relative;z-index:1}.profile-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.profile-title-row h2{font-size:28px;margin:0;color:var(--navy);letter-spacing:-.02em}.profile-seal{width:70px;height:70px;border-radius:22px;background:#fff;border:1px solid rgba(201,154,46,.28);display:grid;place-items:center;box-shadow:0 12px 28px rgba(7,29,59,.08)}.profile-seal img{width:58px;height:58px;object-fit:contain}.clean-profile-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.clean-profile-grid span{background:#fff;border:1px solid rgba(14,42,82,.10);box-shadow:0 8px 20px rgba(7,29,59,.04);min-height:78px}.clean-profile-grid b{word-break:break-word}.profile-items{margin-top:14px;padding-top:12px;border-top:1px dashed rgba(7,29,59,.15)}.member-search-card{border-color:rgba(201,154,46,.22);box-shadow:0 30px 80px rgba(7,29,59,.13)}.member-search-card h1{font-size:30px;letter-spacing:-.02em}.member-page-head{backdrop-filter:blur(14px)}@media(max-width:900px){.auth-card.wide{width:96vw}.premium-member-profile{display:block}.premium-member-profile .member-photo{width:80px!important;height:102px!important}.profile-title-row{flex-direction:column}.clean-profile-grid{grid-template-columns:1fr}.public-head-actions{width:100%}.public-head-actions .btn{flex:1}.member-page-head .lang-switch{width:100%}.form-section-title{font-size:16px}} 


/* V36 signup form refinement */
.public-form-shell{display:grid;gap:18px}
.form-hero-card{display:flex;align-items:flex-start;gap:16px;padding:20px 22px;border-radius:24px;background:linear-gradient(135deg,#0b2a55 0%,#143d72 65%,#1e4d89 100%);color:#fff;box-shadow:0 24px 50px rgba(7,29,59,.18)}
.form-hero-icon{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,var(--gold),var(--gold2));color:#081f3e;font-weight:900;font-size:24px;flex:0 0 auto;box-shadow:0 12px 28px rgba(201,154,46,.28)}
.form-hero-card h2{margin:0 0 6px;font-size:28px;line-height:1.15}
.form-hero-card p{margin:0;color:rgba(255,255,255,.88);line-height:1.8;font-size:14px}
.form-card{background:linear-gradient(180deg,#ffffff,#f8fbff);border:1px solid rgba(14,42,82,.10);border-radius:24px;padding:18px 18px 20px;box-shadow:0 16px 40px rgba(7,29,59,.07)}
.form-card-title{display:inline-flex;align-items:center;gap:10px;margin:0 0 16px;padding:10px 16px;border-radius:999px;background:#0b2a55;color:#fff;font-weight:900;font-size:14px;letter-spacing:.01em;box-shadow:0 10px 24px rgba(11,42,85,.18)}
.public-application-form .form-grid{gap:16px}
.public-application-form .field{background:#fff;border:1px solid rgba(14,42,82,.09);border-radius:20px;padding:12px;box-shadow:0 10px 22px rgba(7,29,59,.04)}
.public-application-form .field label{display:inline-flex;align-items:center;align-self:flex-start;background:rgba(11,42,85,.07);color:#0b2a55;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:900;letter-spacing:0;text-transform:none}
.public-application-form .input,.public-application-form .select,.public-application-form .textarea{background:#fbfdff;border:1px solid #d7e1ec;border-radius:15px;min-height:48px}
.public-application-form input[type=file].input{padding:14px;border:2px dashed rgba(11,42,85,.18);background:#f9fbff}
.public-application-form .field-help{margin-top:8px}
.public-application-form .terms-box{margin:0;background:linear-gradient(180deg,#fff,#f8fbff);border-color:rgba(201,154,46,.28);box-shadow:0 16px 40px rgba(7,29,59,.06)}
.public-application-form .check{align-items:flex-start;line-height:1.7}
.form-actions{display:flex;flex-wrap:wrap;gap:10px}
.form-actions .btn{min-width:180px}
@media(max-width:900px){
  .form-hero-card{padding:18px}
  .form-hero-card h2{font-size:24px}
  .form-card{padding:16px}
  .form-actions .btn{flex:1 1 100%;min-width:0}
}


/* V38 premium form softness */
.ad-auth{background:radial-gradient(circle at top left,rgba(201,154,46,.12),transparent 32%),linear-gradient(140deg,#f4f8fd,#eaf3fc 52%,#ffffff)}
.auth-card.wide{max-width:1060px}
.welcome-cap-banner{
  background:linear-gradient(135deg,#f4c84d,#d8a72e 55%,#b98216);
  color:#081f3e;
  border:1px solid rgba(115,80,10,.18);
  border-radius:20px;
  padding:14px 18px;
  text-align:center;
  font-weight:950;
  letter-spacing:.055em;
  text-transform:uppercase;
  box-shadow:0 18px 42px rgba(201,154,46,.20);
}
.form-hero-card{
  border-radius:20px!important;
  padding:17px 18px!important;
}
.form-hero-card h2{font-size:25px!important}
.form-hero-card p{font-size:13.5px!important;line-height:1.85!important}
.form-card{
  border-radius:20px!important;
  padding:15px 15px 17px!important;
  box-shadow:0 10px 25px rgba(7,29,59,.055)!important;
}
.form-card-title{
  padding:8px 14px!important;
  font-size:13px!important;
}
.public-application-form .field{
  border-radius:16px!important;
  padding:10px!important;
}
.public-application-form .field label{
  font-size:11.5px!important;
  padding:6px 10px!important;
}
.public-application-form .input,.public-application-form .select,.public-application-form .textarea{
  min-height:44px!important;
  border-radius:13px!important;
  font-size:13px!important;
}
.terms-box{
  border-radius:18px!important;
}
.lang-switch a{
  border-radius:999px!important;
  padding:7px 12px!important;
  font-size:12px!important;
}
@media(max-width:900px){
  .auth-card.wide{width:97vw!important}
  .welcome-cap-banner{font-size:12px;line-height:1.55;padding:12px 13px}
  .form-hero-card{gap:12px!important}
  .form-hero-icon{width:46px!important;height:46px!important;border-radius:15px!important}
  .form-card{padding:13px!important}
}


/* V45 premium system polish */
body.ad-system{background:
 radial-gradient(circle at 18% 0%,rgba(201,154,46,.11),transparent 28%),
 radial-gradient(circle at 90% 12%,rgba(21,85,165,.12),transparent 30%),
 linear-gradient(180deg,#f8fbff 0%,#eef5fc 100%)!important}
.sidebar{box-shadow:0 28px 90px rgba(7,29,59,.22)!important;border-right:1px solid rgba(255,255,255,.08)}
.panel,.card,.table-wrap{border:1px solid rgba(14,42,82,.08)!important;box-shadow:0 16px 42px rgba(7,29,59,.07)!important}
.panel{border-radius:26px!important;overflow:hidden}
.panel-head{background:linear-gradient(180deg,#fff,#f8fbff);border-bottom:1px solid rgba(14,42,82,.08)}
.kpi{background:linear-gradient(135deg,#fff 0%,#f8fbff 72%,#fff8e8 100%)!important;border-radius:24px!important}
.kpi strong{letter-spacing:-.04em}
.table th{background:#f4f8fd!important;color:#0a2d63!important;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.table td{vertical-align:middle}
.btn{border-radius:10px!important;font-weight:800!important}
.btn.green{background:#087443!important;color:#fff!important}
.bulk-actions{display:flex;gap:10px;align-items:center;justify-content:flex-start;flex-wrap:wrap;background:#fff;border:1px solid rgba(14,42,82,.08);padding:12px 14px;border-radius:18px;margin-bottom:12px;box-shadow:0 10px 26px rgba(7,29,59,.06)}
.check.compact{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border-radius:999px;background:#f7fbff;border:1px solid rgba(14,42,82,.08);font-weight:800;color:#0a2d63}
.selectable-table .request-check{width:18px;height:18px;accent-color:#087443}
.premium-font-panel{background:linear-gradient(135deg,#ffffff,#f8fbff 70%,#fff8e6)!important}
.font-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.font-card{background:#fff;border:1px solid rgba(14,42,82,.10);border-radius:20px;padding:16px;box-shadow:0 12px 30px rgba(7,29,59,.06)}
.font-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.font-card-head strong{color:#0a2d63;font-size:16px}
.font-card-head span{font-size:12px;color:#6b7890;max-width:55%;word-break:break-word;text-align:right}
.settings-premium-form textarea{min-height:120px}
@media(max-width:800px){.font-upload-grid{grid-template-columns:1fr}.font-card-head{display:block}.font-card-head span{display:block;max-width:none;text-align:left;margin-top:6px}.bulk-actions{display:grid;grid-template-columns:1fr}.bulk-actions .btn{width:100%}}

/* V50 soft rectangular buttons, app-like mobile, terms, hub */
.btn,.btn.gold,.btn.light,.btn.small,.btn.green,.btn.danger{border-radius:10px!important;font-weight:800!important;padding:10px 14px!important;font-size:13px!important}
.brand-mark.logo{width:64px!important;height:64px!important;border-radius:50%!important;padding:6px!important}
.section-title-box,.form-card-title{display:inline-block;background:var(--ad-title-bg,#fff);border:1px solid rgba(14,42,82,.1);border-radius:10px;padding:8px 12px;box-shadow:0 4px 12px rgba(7,29,59,.05)}
.soft-terms{background:#f7fafc;border:1px solid rgba(14,42,82,.08);border-radius:12px;padding:12px 14px;margin:12px 0}
.terms-soft-title{font-size:14px;font-weight:800;color:#0a2d63;margin-bottom:4px}
.terms-soft-note{font-size:12px!important;margin:0 0 8px!important}
.rules-details summary{font-size:13px;font-weight:700;cursor:pointer;color:#0a2d63}
.rules-body{font-size:12px;line-height:1.6;max-height:180px;overflow:auto;margin-top:8px;color:#31415f}
.soft-check{font-size:12px!important;padding:8px 10px!important;border-radius:10px!important}
.fixed-form-text{pointer-events:none;user-select:text;background:#f8fbff;border:1px solid rgba(14,42,82,.08);border-radius:12px;padding:12px;font-size:13px;line-height:1.65}
.date-parts{display:grid;grid-template-columns:1.1fr .8fr .8fr;gap:8px}
.date-parts-field .date-manual{margin-top:8px}
.hub-choice-grid{display:grid;gap:12px;margin-top:8px}
.hub-choice{display:block;padding:16px;border-radius:12px;border:1px solid rgba(14,42,82,.1);background:#f8fbff;text-decoration:none;color:#0a2d63;box-shadow:0 8px 20px rgba(7,29,59,.05)}
.hub-choice strong{display:block;font-size:16px;margin-bottom:4px}
.hub-choice span{display:block;font-size:12px;color:#6b7890}
.hub-choice.gold{background:linear-gradient(135deg,#fff8e8,#fff);border-color:rgba(201,154,46,.35)}
.back-btn{margin-bottom:10px;border-radius:10px!important}
.sidebar-backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:40}
.sidebar-backdrop.show{display:block}
body.app-like .sidebar{transition:transform .25s ease}
@media(max-width:900px){
  body.app-like .sidebar{width:86vw;max-width:320px;transform:translateX(-105%);box-shadow:none}
  body.app-like.rtl .sidebar,body.app-like [dir=rtl] .sidebar{transform:translateX(105%)}
  body.app-like .sidebar.open{transform:translateX(0)!important;box-shadow:20px 0 50px rgba(7,29,59,.25)}
  body.app-like .main{margin:0!important;padding:10px}
  body.app-like .mobile-menu{display:inline-flex!important}
  body.app-like .top-actions .lang-switch{display:flex!important}
  body.app-like .topbar{border-radius:14px;padding:10px 12px}
  body.app-like .top-title h1{font-size:18px}
  body.app-like .top-title p{display:none}
  .auth-card.wide{max-width:100%;padding:18px;border-radius:16px}
  .form-grid.three{grid-template-columns:1fr!important}
  .date-parts{grid-template-columns:1fr 1fr 1fr}
}

/* ========== V51 Premium System UI ========== */
body.ad-system.ui-v51{
  font-family:"DM Sans",system-ui,sans-serif!important;
  background:
    radial-gradient(1200px 500px at 0% -10%,rgba(201,154,46,.12),transparent 50%),
    radial-gradient(900px 400px at 100% 0%,rgba(21,85,165,.10),transparent 45%),
    linear-gradient(165deg,#f4f7fb 0%,#eef3f9 40%,#f8fafc 100%)!important;
}
body.ad-system.ui-v51[dir=rtl],body.ad-system.ui-v51.rtl{
  font-family:"Noto Naskh Arabic","NRT",Tahoma,sans-serif!important;
}
body.ui-v51 .sidebar{
  width:280px!important;
  padding:16px 12px!important;
  background:linear-gradient(185deg,#041527 0%,#0a274f 48%,#0d3568 100%)!important;
  border-inline-end:1px solid rgba(255,255,255,.06);
  box-shadow:12px 0 40px rgba(4,21,39,.25)!important;
}
body.ui-v51 .side-brand{
  padding:8px 10px 16px!important;
  margin-bottom:10px!important;
  border-bottom:1px solid rgba(255,255,255,.1)!important;
}
body.ui-v51 .side-brand .brand-mark.logo{
  width:52px!important;height:52px!important;
  border-radius:50%!important;
  box-shadow:0 8px 24px rgba(201,154,46,.35);
}
body.ui-v51 .side-brand strong{font-size:14px!important;letter-spacing:.02em}
body.ui-v51 .side-brand span{color:#9fb4d4!important;font-size:11px!important;font-weight:600}
body.ui-v51 .side-user-chip{
  display:flex;flex-direction:column;gap:2px;
  margin:0 6px 14px;padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}
body.ui-v51 .side-user-chip b{color:#fff;font-size:13px;font-weight:700}
body.ui-v51 .side-user-chip small{color:#9fb4d4;font-size:11px;text-transform:capitalize}
body.ui-v51 .nav-group{
  margin:14px 8px 6px!important;
  color:#7e96b8!important;
  font-size:10px!important;
  letter-spacing:.14em!important;
}
body.ui-v51 .nav-link{
  margin:3px 4px!important;
  padding:11px 12px!important;
  border-radius:12px!important;
  font-size:13px!important;
  font-weight:600!important;
  color:rgba(255,255,255,.82)!important;
  gap:12px!important;
}
body.ui-v51 .nav-link svg{opacity:.85}
body.ui-v51 .nav-link:hover{
  background:rgba(255,255,255,.08)!important;
  transform:translateX(2px);
}
body.ui-v51[dir=rtl] .nav-link:hover,body.ui-v51.rtl .nav-link:hover{transform:translateX(-2px)}
body.ui-v51 .nav-link.active{
  background:linear-gradient(135deg,rgba(201,154,46,.28),rgba(255,255,255,.08))!important;
  color:#fff!important;
  box-shadow:inset 3px 0 0 #c99a2e;
}
body.ui-v51[dir=rtl] .nav-link.active,body.ui-v51.rtl .nav-link.active{box-shadow:inset -3px 0 0 #c99a2e}
body.ui-v51 .main{margin-inline-start:280px!important;padding:18px 20px 28px!important}
body.ui-v51 .topbar{
  background:rgba(255,255,255,.78)!important;
  backdrop-filter:blur(18px) saturate(1.2);
  -webkit-backdrop-filter:blur(18px) saturate(1.2);
  border:1px solid rgba(255,255,255,.7)!important;
  border-radius:16px!important;
  padding:12px 16px!important;
  box-shadow:0 10px 36px rgba(7,29,59,.07)!important;
  top:10px!important;
}
body.ui-v51 .top-title h1{
  font-size:20px!important;
  font-weight:700!important;
  letter-spacing:-.02em;
  color:#0a2348!important;
}
body.ui-v51 .top-title p{font-size:12px!important;color:#6b7890!important;margin-top:2px!important}
body.ui-v51 .pill-lang{
  background:#f0f4f9;border-radius:10px;padding:3px;gap:3px!important;border:1px solid rgba(14,42,82,.08);
}
body.ui-v51 .pill-lang a{
  border:0!important;border-radius:8px!important;padding:7px 11px!important;
  font-size:11px!important;font-weight:700!important;background:transparent!important;color:#31415f!important;
}
body.ui-v51 .pill-lang a.active{
  background:#0a274f!important;color:#fff!important;
  box-shadow:0 4px 12px rgba(10,39,79,.25);
}
body.ui-v51 .btn{
  border-radius:10px!important;
  font-weight:700!important;
  letter-spacing:.01em;
  transition:transform .15s ease,box-shadow .15s ease,filter .15s ease!important;
}
body.ui-v51 .btn:hover{transform:translateY(-1px);filter:brightness(1.03)}
body.ui-v51 .btn.gold{
  background:linear-gradient(135deg,#e2b84a,#c99a2e)!important;
  color:#061a35!important;
  box-shadow:0 8px 20px rgba(201,154,46,.28)!important;
}
body.ui-v51 .btn.light{
  background:#fff!important;
  border:1px solid rgba(14,42,82,.1)!important;
  color:#0a274f!important;
}
body.ui-v51 .panel,.ui-v51 .card{
  border-radius:16px!important;
  border:1px solid rgba(14,42,82,.07)!important;
  box-shadow:0 12px 32px rgba(7,29,59,.06)!important;
  background:#fff!important;
  overflow:hidden;
}
body.ui-v51 .panel-head{
  padding:14px 18px!important;
  background:linear-gradient(180deg,#ffffff,#f7fafd)!important;
  border-bottom:1px solid rgba(14,42,82,.06)!important;
}
body.ui-v51 .panel-head h2,body.ui-v51 .panel-head h3{
  font-size:16px!important;font-weight:700!important;color:#0a2348!important;
}
body.ui-v51 .panel-body{padding:16px 18px!important}
body.ui-v51 .kpi{
  border-radius:16px!important;
  min-height:104px!important;
  background:linear-gradient(145deg,#ffffff 0%,#f8fbff 60%,#fff9ec 100%)!important;
  border:1px solid rgba(14,42,82,.06)!important;
  box-shadow:0 10px 28px rgba(7,29,59,.05)!important;
  transition:transform .18s ease,box-shadow .18s ease;
}
body.ui-v51 .kpi:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(7,29,59,.1)!important}
body.ui-v51 .kpi span{font-size:11px!important;letter-spacing:.06em;text-transform:uppercase}
body.ui-v51 .kpi strong{font-size:26px!important;font-weight:700!important;letter-spacing:-.03em}
body.ui-v51 .iconbox{
  width:44px!important;height:44px!important;border-radius:12px!important;
  box-shadow:0 8px 18px rgba(7,29,59,.18)!important;
}
body.ui-v51 .table{min-width:860px}
body.ui-v51 .table th{
  background:#f5f8fc!important;
  font-size:11px!important;
  font-weight:700!important;
  color:#3d4f6f!important;
  padding:11px 12px!important;
  border-bottom:1px solid rgba(14,42,82,.08)!important;
}
body.ui-v51 .table td{padding:12px!important;font-size:13px!important;border-bottom:1px solid rgba(14,42,82,.05)!important}
body.ui-v51 .table tr:hover td{background:#f8fbff!important}
body.ui-v51 .badge{border-radius:8px!important;font-weight:700!important;font-size:11px!important;padding:5px 9px!important}
body.ui-v51 .input,.ui-v51 .select,.ui-v51 .textarea,
body.ui-v51 .field .input,body.ui-v51 .field .select,body.ui-v51 .field .textarea{
  border-radius:10px!important;
  border:1px solid rgba(14,42,82,.12)!important;
  padding:11px 12px!important;
  background:#fbfdff!important;
  transition:border-color .15s,box-shadow .15s!important;
}
body.ui-v51 .input:focus,.ui-v51 .select:focus,.ui-v51 .textarea:focus{
  border-color:#c99a2e!important;
  box-shadow:0 0 0 3px rgba(201,154,46,.15)!important;
  background:#fff!important;
}
body.ui-v51 .filters{
  background:#fff;border:1px solid rgba(14,42,82,.07);border-radius:14px;
  padding:12px;margin-bottom:14px;box-shadow:0 6px 18px rgba(7,29,59,.04);
}
body.ui-v51 .notice{
  border-radius:12px!important;border:0!important;
  background:linear-gradient(90deg,#ecfdf3,#f0fdf4)!important;
  box-shadow:0 4px 14px rgba(6,118,71,.08);
}
body.ui-v51 .footer-note{
  margin-top:8px;padding:14px!important;
  color:#8a97ab!important;font-size:11px!important;font-weight:600;
}
body.ui-v51 .page-enter{animation:pageIn .35s ease}
@keyframes pageIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
body.ui-v51 .report-box{
  border-radius:14px!important;
  background:linear-gradient(160deg,#fff,#f7fafd)!important;
  border:1px solid rgba(14,42,82,.07)!important;
  transition:transform .15s ease;
}
body.ui-v51 .report-box:hover{transform:translateY(-2px)}
body.ui-v51 .simple-bars .bar-track{background:#e8eef7;border-radius:99px;height:8px;overflow:hidden}
body.ui-v51 .simple-bars .bar-track span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#0a274f,#c99a2e)}
body.ui-v51 .ranking-box{border-radius:14px;border:1px solid rgba(14,42,82,.08);padding:12px;background:#fff}
.profile-statement{
  margin-top:14px;padding:14px 16px;border-radius:12px;
  background:linear-gradient(180deg,#fbfcff,#f4f8fc);
  border:1px solid rgba(14,42,82,.08);
  font-size:13px;line-height:1.75;color:#2a3a52;font-weight:500;
}
.premium-member-profile{margin-top:16px!important}
@media(max-width:900px){
  body.ui-v51 .main{margin-inline-start:0!important;padding:10px!important}
  body.ui-v51 .sidebar{width:min(86vw,300px)!important}
  body.ui-v51 .top-title p{display:none}
  body.ui-v51 .side-user-chip{margin-bottom:10px}
}

/* ========== V52 Glass International System (reference UI) ========== */
body.ad-system.ui-v52{
  font-family:"DM Sans",system-ui,sans-serif!important;
  background:#EEF1F8!important;
  color:#1a1f36;
}
body.ui-v52[dir=rtl],body.ui-v52.rtl{font-family:"Noto Naskh Arabic",Tahoma,sans-serif!important}
body.ui-v52 .glass-app{min-height:100vh}
body.ui-v52 .sidebar.slim-side{
  width:268px!important;
  background:linear-gradient(180deg,var(--ad-primary,#0b2b57) 0%,var(--navy2,#0d2d5c) 55%,var(--ad-accent,#1555a5) 100%)!important;
  border:0!important;box-shadow:18px 0 40px color-mix(in srgb,var(--ad-primary,#0b2b57) 28%,transparent)!important;
  padding:18px 12px!important;display:flex;flex-direction:column;
}
body.ui-v52 .side-brand{border:0!important;padding:4px 8px 14px!important;margin:0!important}
body.ui-v52 .side-brand .brand-mark.logo{
  width:48px!important;height:48px!important;border-radius:14px!important;
  background:#fff!important;padding:5px!important;box-shadow:0 10px 24px rgba(0,0,0,.15);
}
body.ui-v52 .side-brand-text strong{color:#fff;font-size:13px;letter-spacing:.06em;text-transform:uppercase}
body.ui-v52 .side-brand-text span{color:rgba(255,255,255,.7);font-size:11px}
body.ui-v52 .side-user-chip{
  margin:0 6px 16px;padding:10px 12px;border-radius:14px;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);
}
body.ui-v52 .side-user-chip b{color:#fff;font-size:13px}
body.ui-v52 .side-user-chip small{color:rgba(255,255,255,.7);text-transform:uppercase;font-size:10px;letter-spacing:.08em}
body.ui-v52 .side-nav{flex:1;overflow:auto;padding-bottom:12px}
body.ui-v52 .nav-group{color:rgba(255,255,255,.45)!important;margin:12px 10px 6px!important;letter-spacing:.16em!important}
body.ui-v52 .nav-link{
  margin:3px 4px!important;padding:11px 12px!important;border-radius:14px!important;
  color:rgba(255,255,255,.88)!important;font-weight:600!important;font-size:13px!important;
}
body.ui-v52 .nav-link:hover{background:rgba(255,255,255,.12)!important}
body.ui-v52 .nav-link.active{
  background:rgba(255,255,255,.2)!important;color:#fff!important;
  box-shadow:0 8px 20px rgba(0,0,0,.12);inset:none;
}
body.ui-v52 .side-bottom{margin-top:auto;padding-top:10px;border-top:1px solid rgba(255,255,255,.12)}
body.ui-v52 .main{margin-inline-start:268px!important;padding:18px 22px 30px!important;background:transparent}
body.ui-v52 .glass-top,.ui-v52 .topbar{
  background:rgba(255,255,255,.72)!important;
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.8)!important;
  border-radius:20px!important;
  box-shadow:0 12px 36px rgba(40,40,90,.06)!important;
  padding:12px 16px!important;
}
body.ui-v52 .top-title h1{text-transform:uppercase;letter-spacing:.05em;font-size:20px!important;color:#1a1f36!important}
body.ui-v52 .pill-lang{
  background:#fff;border-radius:999px;padding:3px;gap:2px!important;
  border:1px solid rgba(80,80,140,.08);box-shadow:0 4px 14px rgba(40,40,90,.05);
}
body.ui-v52 .pill-lang a{
  border:0!important;border-radius:999px!important;padding:8px 12px!important;
  font-size:11px!important;font-weight:800!important;color:#5a6280!important;background:transparent!important;
}
body.ui-v52 .pill-lang a.active{
  background:var(--ad-primary,#0b2b57)!important;color:#fff!important;
  box-shadow:0 6px 16px rgba(75,46,255,.3);
}
body.ui-v52 .top-avatar{
  width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--ad-primary,#0b2b57),var(--ad-pink,#c99a2e));
  color:#fff;font-weight:800;font-size:14px;box-shadow:0 8px 18px color-mix(in srgb,var(--ad-primary,#0b2b57) 25%,transparent);
}
body.ui-v52 .dash-hero-row{display:grid;grid-template-columns:1.6fr .9fr;gap:16px;margin-bottom:16px}
body.ui-v52 .dash-hero-card{
  border-radius:24px;padding:20px 22px;color:#fff;
  background:linear-gradient(135deg,var(--ad-primary,#0b2b57) 0%,var(--ad-accent,#1555a5) 55%,var(--ad-pink,#c99a2e) 100%);
  box-shadow:0 18px 40px color-mix(in srgb,var(--ad-primary,#0b2b57) 30%,transparent);position:relative;overflow:hidden;min-height:260px;
}
body.ui-v52 .dash-hero-card:after{
  content:"";position:absolute;inset:auto -40px -60px auto;width:220px;height:220px;border-radius:50%;
  background:rgba(255,255,255,.08);
}
body.ui-v52 .dash-hero-top{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:1}
body.ui-v52 .dash-hero-top h3{margin:0;font-size:14px;letter-spacing:.08em}
body.ui-v52 .dash-chip{background:rgba(255,255,255,.2);border-radius:999px;padding:5px 10px;font-size:10px;font-weight:800}
body.ui-v52 .dash-hero-metric{margin:18px 0 10px;position:relative;z-index:1}
body.ui-v52 .dash-hero-metric strong{display:block;font-size:42px;line-height:1;letter-spacing:-.03em}
body.ui-v52 .dash-hero-metric span{opacity:.85;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
body.ui-v52 .dash-hero-bars{position:relative;z-index:1;max-height:110px;overflow:hidden;opacity:.95}
body.ui-v52 .dash-hero-bars .bar-name,body.ui-v52 .dash-hero-bars strong{color:#fff!important;font-size:11px}
body.ui-v52 .dash-hero-bars .bar-track{background:rgba(255,255,255,.2)!important}
body.ui-v52 .dash-hero-bars .bar-track span{background:#fff!important}
body.ui-v52 .dash-hero-foot{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px;position:relative;z-index:1}
body.ui-v52 .dash-hero-foot div{background:rgba(255,255,255,.12);border-radius:14px;padding:10px}
body.ui-v52 .dash-hero-foot b{display:block;font-size:16px}
body.ui-v52 .dash-hero-foot small{opacity:.8;font-size:10px;letter-spacing:.06em}
body.ui-v52 .dash-side-cards{display:grid;gap:14px}
body.ui-v52 .dash-mini{
  border-radius:22px;padding:22px;color:#fff;min-height:120px;
  display:flex;flex-direction:column;justify-content:flex-end;gap:6px;
  box-shadow:0 14px 30px rgba(40,40,90,.12);
}
body.ui-v52 .dash-mini.purple{background:linear-gradient(145deg,var(--ad-primary,#0b2b57),var(--ad-accent,#1555a5))}
body.ui-v52 .dash-mini.pink{background:linear-gradient(145deg,var(--ad-pink,#c99a2e),var(--gold2,#f0c45c))}
body.ui-v52 .dash-mini span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;opacity:.9}
body.ui-v52 .dash-mini strong{font-size:28px;letter-spacing:-.03em}
body.ui-v52 .panel,.ui-v52 .card,.ui-v52 .kpi{
  border-radius:22px!important;border:1px solid rgba(80,80,140,.06)!important;
  box-shadow:0 12px 30px rgba(40,40,90,.05)!important;background:#fff!important;
}
body.ui-v52 .kpi{
  background:linear-gradient(160deg,#fff,#f8f7ff)!important;min-height:110px!important;
  transition:transform .18s ease,box-shadow .18s ease;
}
body.ui-v52 .kpi:hover{transform:translateY(-3px);box-shadow:0 18px 36px rgba(75,46,255,.12)!important}
body.ui-v52 .kpi span{text-transform:uppercase;letter-spacing:.07em;font-size:11px!important;color:#7a8299!important}
body.ui-v52 .kpi strong{font-size:26px!important;color:#1a1f36!important}
body.ui-v52 .iconbox{border-radius:14px!important;background:linear-gradient(135deg,var(--ad-primary,#0b2b57) ,var(--ad-accent,#1555a5))!important}
body.ui-v52 .iconbox.gold{background:linear-gradient(135deg,var(--ad-pink,#c99a2e),var(--gold2,#f0c45c))!important;color:#081f3e!important}
body.ui-v52 .panel-head{background:transparent!important;border-bottom:1px solid rgba(80,80,140,.06)!important}
body.ui-v52 .panel-head h2,body.ui-v52 .panel-head h3{text-transform:uppercase;letter-spacing:.05em;font-size:14px!important}
body.ui-v52 .btn{border-radius:14px!important;font-weight:700!important}
body.ui-v52 .btn.gold{background:linear-gradient(135deg,var(--ad-primary,#0b2b57) ,var(--ad-accent,#1555a5))!important;color:#fff!important;box-shadow:0 10px 22px color-mix(in srgb,var(--ad-primary,#0b2b57) 25%,transparent)!important}
body.ui-v52 .btn.light{background:#fff!important;border:1px solid rgba(80,80,140,.1)!important;color:var(--ad-primary,#0b2b57)!important}
body.ui-v52 .table th{background:#F6F7FC!important;text-transform:uppercase;font-size:10px!important;letter-spacing:.06em}
body.ui-v52 .badge{border-radius:999px!important}
body.ui-v52 .simple-bars .bar-track{height:8px;border-radius:99px;background:#ECEFF8}
body.ui-v52 .simple-bars .bar-track span{background:linear-gradient(90deg,var(--ad-primary,#0b2b57),var(--ad-pink,#c99a2e));border-radius:99px;transition:width .8s ease}
body.ui-v52 .donut{background:conic-gradient(var(--ad-primary,#0b2b57) calc(var(--p)*1%),#E8EAF5 0)!important}
body.ui-v52 .filters,.ui-v52 .ranking-box,.ui-v52 .report-box{border-radius:18px!important;border:1px solid rgba(80,80,140,.07)!important}
body.ui-v52 .ad-auth{background:radial-gradient(circle at 10% 10%,rgba(75,46,255,.18),transparent 40%),radial-gradient(circle at 90% 20%,rgba(255,77,166,.16),transparent 35%),#EEF1F8!important}
body.ui-v52 .auth-card{border-radius:24px!important;box-shadow:0 24px 60px rgba(40,40,90,.12)!important;border:1px solid rgba(255,255,255,.8)!important}
@media(max-width:980px){
  body.ui-v52 .dash-hero-row{grid-template-columns:1fr}
  body.ui-v52 .main{margin-inline-start:0!important;padding:12px!important}
  body.ui-v52 .sidebar.slim-side{width:min(86vw,300px)!important}
}

/* V53 reports / sales / expenses polish */
body.ui-v52 .report-pretty-grid{gap:14px}
body.ui-v52 .report-box{padding:18px!important;background:linear-gradient(160deg,#fff,#f8f9ff)!important}
body.ui-v52 .report-box span{text-transform:uppercase;letter-spacing:.06em;font-size:11px!important;font-weight:800!important;color:#7a8299!important}
body.ui-v52 .report-box strong{font-size:26px!important;letter-spacing:-.02em;margin-top:8px!important}
body.ui-v52 .report-box-sales{background:linear-gradient(145deg,#eef7ff,#ffffff)!important;border-color:rgba(37,99,235,.18)!important}
body.ui-v52 .report-box-sales strong{color:#1d4ed8!important}
body.ui-v52 .report-box-ad{background:linear-gradient(145deg,#fff7ed,#ffffff)!important;border-color:rgba(234,88,12,.2)!important}
body.ui-v52 .report-box-ad strong,.expense-ad{color:#c2410c!important}
body.ui-v52 .report-box-gen{background:linear-gradient(145deg,#f5f3ff,#ffffff)!important;border-color:rgba(124,58,237,.2)!important}
body.ui-v52 .report-box-gen strong,.expense-gen{color:#6d28d9!important}
body.ui-v52 .report-box-total{background:linear-gradient(145deg,#ecfeff,#ffffff)!important;border-color:rgba(8,145,178,.2)!important}
body.ui-v52 .report-box-course{background:linear-gradient(145deg,#ecfdf5,#ffffff)!important;border-color:rgba(5,150,105,.2)!important}
body.ui-v52 .report-box-course strong,.price-course{color:#047857!important}
body.ui-v52 .report-box-cert{background:linear-gradient(145deg,#fdf4ff,#ffffff)!important;border-color:rgba(192,38,211,.2)!important}
body.ui-v52 .report-box-cert strong,.price-cert{color:#a21caf!important}
body.ui-v52 .kpi-expense-ad{background:linear-gradient(160deg,#fff,#fff7ed)!important}
body.ui-v52 .kpi-expense-gen{background:linear-gradient(160deg,#fff,#f5f3ff)!important}
body.ui-v52 .badge.sales-num,.sales-num{color:#047857!important;font-weight:900!important}
body.ui-v52 .badge.sales-num{background:#dcfce7!important;color:#166534!important;font-size:13px!important;padding:7px 12px!important}
body.ui-v52 .ranking-sales{background:linear-gradient(180deg,#fff,#f3faf5)!important;border:1px solid rgba(16,185,129,.18)!important}
body.ui-v52 .ranking-sales .rank-best{background:#dcfce7;border-radius:12px;padding:10px 12px;margin:8px 0;border:0!important}
body.ui-v52 .ranking-sales .rank-best strong{color:#166534!important}
body.ui-v52 .ranking-sales .rank-best span{color:#15803d!important;font-weight:800}
body.ui-v52 .ranking-sales .rank-worst{background:#fee2e2;border-radius:12px;padding:10px 12px;margin:8px 0;border:0!important}
body.ui-v52 .ranking-sales .rank-worst strong{color:#991b1b!important}
body.ui-v52 .ranking-sales .rank-worst span{color:#b91c1c!important;font-weight:800}
body.ui-v52 .ranking-expense{background:linear-gradient(180deg,#fff,#fffaf5)!important}
body.ui-v52 .ranking-expense .rank-best{background:#ffedd5;border-radius:12px;padding:10px 12px;margin:8px 0;border:0!important}
body.ui-v52 .ranking-expense .rank-worst{background:#ede9fe;border-radius:12px;padding:10px 12px;margin:8px 0;border:0!important}
body.ui-v52 .bars-sales .bar-track span{background:linear-gradient(90deg,#22c55e,#16a34a)!important}
body.ui-v52 .bars-expense-ad .bar-track span{background:linear-gradient(90deg,#fb923c,#ea580c)!important}
body.ui-v52 .bars-expense-gen .bar-track span{background:linear-gradient(90deg,#a78bfa,#7c3aed)!important}
body.ui-v52 .exp-badge-ad{background:#ffedd5!important;color:#c2410c!important}
body.ui-v52 .exp-badge-gen{background:#ede9fe!important;color:#6d28d9!important}
body.ui-v52 .exp-row-ad td{background:rgba(255,247,237,.45)}
body.ui-v52 .exp-row-gen td{background:rgba(245,243,255,.55)}
body.ui-v52 .report-pretty th{font-family:"DM Sans",sans-serif!important}
body.ui-v52 .report-pretty td{font-size:13px}
body.ui-v52[dir=rtl] .report-box span,
body.ui-v52.rtl .report-box span{letter-spacing:0!important}
body.ui-v52 .panel-head h3,body.ui-v52 .panel-head h2{font-weight:800!important}


/* V54 Sales Platform */
.sales-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.sales-kpi{display:flex;flex-direction:column;gap:2px;padding:16px;border-radius:18px;text-decoration:none;color:inherit;border:1px solid rgba(80,80,140,.08);background:#fff;box-shadow:0 10px 24px rgba(40,40,90,.06);transition:transform .15s ease,box-shadow .15s}
.sales-kpi:hover{transform:translateY(-3px);box-shadow:0 16px 32px rgba(40,40,90,.12)}
.sales-kpi-title{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#64748b}
.sales-kpi-count{font-size:28px;line-height:1.1;font-weight:900;margin-top:6px}
.sales-kpi-money{font-size:18px;font-weight:800;margin-top:8px}
.sales-kpi small{font-size:10px;color:#94a3b8;font-weight:700;text-transform:uppercase}
.sales-kpi.tone-green{background:linear-gradient(160deg,#ecfdf5,#fff);border-color:rgba(16,185,129,.22)}
.sales-kpi.tone-green .sales-kpi-count,.sales-kpi.tone-green .sales-kpi-money{color:#047857}
.sales-kpi.tone-amber{background:linear-gradient(160deg,#fffbeb,#fff);border-color:rgba(245,158,11,.25)}
.sales-kpi.tone-amber .sales-kpi-count,.sales-kpi.tone-amber .sales-kpi-money{color:#b45309}
.sales-kpi.tone-slate{background:linear-gradient(160deg,#f8fafc,#fff);border-color:rgba(100,116,139,.2)}
.sales-kpi.tone-orange{background:linear-gradient(160deg,#fff7ed,#fff);border-color:rgba(249,115,22,.25)}
.sales-kpi.tone-orange .sales-kpi-count,.sales-kpi.tone-orange .sales-kpi-money{color:#c2410c}
.sales-kpi.tone-purple{background:linear-gradient(160deg,#f5f3ff,#fff);border-color:rgba(124,58,237,.22)}
.sales-kpi.tone-purple .sales-kpi-count,.sales-kpi.tone-purple .sales-kpi-money{color:#6d28d9}
.sales-kpi.tone-red{background:linear-gradient(160deg,#fef2f2,#fff);border-color:rgba(239,68,68,.25)}
.sales-kpi.tone-red .sales-kpi-count,.sales-kpi.tone-red .sales-kpi-money{color:#b91c1c}
.sales-kpi.tone-blue{background:linear-gradient(160deg,#eff6ff,#fff);border-color:rgba(37,99,235,.22)}
.sales-kpi.tone-blue .sales-kpi-count,.sales-kpi.tone-blue .sales-kpi-money{color:#1d4ed8}
.sales-kpi.tone-primary{background:linear-gradient(160deg,#eef2ff,#fff);border-color:color-mix(in srgb,var(--ad-primary,#0b2b57) 25%,transparent)}
.sales-kpi.tone-primary .sales-kpi-count,.sales-kpi.tone-primary .sales-kpi-money{color:var(--ad-primary,#0b2b57)}
.sale-profile-card{border:1px solid rgba(80,80,140,.08);border-radius:18px;padding:16px;margin-bottom:12px;background:linear-gradient(160deg,#fff,#f8f9ff);box-shadow:0 8px 22px rgba(40,40,90,.05)}
.sale-profile-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:10px}
.sale-profile-head h3{margin:0;font-size:18px}
.sale-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sale-profile-grid span{display:block;background:#fff;border:1px solid rgba(80,80,140,.07);border-radius:12px;padding:10px;font-size:12px;color:#64748b;font-weight:700}
.sale-profile-grid b{display:block;margin-top:4px;color:#1a1f36;font-size:13px}
.sales-total-box{margin-top:14px;padding:14px 16px;border-radius:14px;background:linear-gradient(135deg,var(--ad-primary,#0b2b57),var(--ad-accent,#1555a5));color:#fff;display:flex;justify-content:space-between;align-items:center;font-weight:800}
.sales-total-box strong{font-size:28px}
.sales-items-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.sales-item{background:#f8fafc!important}
.compare-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:8px}
.compare-card,.compare-box{border-radius:18px;padding:18px;background:#fff;border:1px solid rgba(80,80,140,.08);box-shadow:0 10px 24px rgba(40,40,90,.05)}
.compare-card span,.compare-box span{display:block;font-size:12px;font-weight:800;color:#64748b;text-transform:uppercase}
.compare-card strong,.compare-box strong{display:block;font-size:32px;margin-top:8px}
.compare-card b,.compare-box b{display:block;font-size:18px;margin-top:6px;color:var(--ad-primary,#0b2b57)}
.compare-card.month-a{background:linear-gradient(160deg,#f8fafc,#fff)}
.compare-card.month-b{background:linear-gradient(160deg,#eef2ff,#fff)}
.compare-card.up{background:linear-gradient(160deg,#ecfdf5,#fff)}
.compare-card.down{background:linear-gradient(160deg,#fef2f2,#fff)}
.compare-card.up strong,.diff-up{color:#047857!important}
.compare-card.down strong,.diff-down{color:#b91c1c!important}
.compare-mini{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.badge.status-arrived,.badge.status-made,.badge.status-presented{background:#dcfce7;color:#166534}
.badge.status-sent{background:#dbeafe;color:#1d4ed8}
.badge.status-not_made,.badge.status-not_sent,.badge.status-not_arrived{background:#ffedd5;color:#c2410c}
.badge.status-returned,.badge.status-rejected{background:#fee2e2;color:#991b1b}
@media(max-width:980px){
  .sales-kpi-grid,.compare-grid,.sales-page-grid,.sales-two{grid-template-columns:1fr!important}
  .sale-profile-grid,.sales-items-box{grid-template-columns:1fr}
}


/* V55: ID-card photos + theme-respecting polish */
.member-photo,
.premium-member-profile .member-photo,
.agency-profile-card .member-photo,
.avatar,
.sale-id-photo{
  width:86px!important;height:110px!important;max-width:86px!important;
  border-radius:10px!important;object-fit:cover!important;
  background:#fff!important;border:1px solid rgba(20,30,70,.08)!important;
  box-shadow:0 6px 16px rgba(20,30,70,.08)!important;padding:0!important;
}
.premium-member-profile{grid-template-columns:100px 1fr!important;padding:16px!important}
.profile-photo-box{width:86px}
.profile-seal{width:44px!important;height:44px!important;border-radius:10px!important}
.profile-seal img{width:34px!important;height:34px!important}
.member-profile-card{grid-template-columns:100px 1fr!important}
body.ui-v52 .side-brand .brand-mark.logo,
body.ui-v52 .brand-mark.logo{
  width:42px!important;height:42px!important;border-radius:10px!important;padding:4px!important;
}
body.ui-v52 .btn.gold{
  background:linear-gradient(135deg,var(--ad-btn-bg,var(--ad-primary,#0b2b57)),var(--ad-accent,#1555a5))!important;
  color:var(--ad-btn-text,#fff)!important;
  box-shadow:0 10px 22px color-mix(in srgb,var(--ad-primary,#0b2b57) 25%,transparent)!important;
}
body.ui-v52 .iconbox{background:linear-gradient(135deg,var(--ad-primary,#0b2b57),var(--ad-accent,#1555a5))!important}
body.ui-v52 .pill-lang a.active,
body.ui-v52 .site-lang-switch button.active{background:var(--ad-primary,#0b2b57)!important}
body.ui-v52 .simple-bars .bar-track span{background:linear-gradient(90deg,var(--ad-primary,#0b2b57),var(--ad-pink,#c99a2e))!important}
body.ui-v52 .donut{background:conic-gradient(var(--ad-primary,#0b2b57) calc(var(--p)*1%),#E8EAF5 0)!important}
.gallery-admin-grid img{width:86px!important;height:110px!important;object-fit:cover!important;border-radius:8px}
.gallery-admin-grid > div{width:86px}
@media(max-width:900px){
  .premium-member-profile .member-photo,.member-photo{width:80px!important;height:102px!important}
}


/* V56 force id-photo for member profiles only (not website gallery) */
img.member-photo,
.premium-member-profile img.member-photo,
.member-profile-card img.member-photo,
.agency-profile-card img.member-photo,
img.id-photo{
  width:86px!important;height:110px!important;max-width:86px!important;max-height:110px!important;
  border-radius:10px!important;object-fit:cover!important;
}
.gallery-admin-grid img.gallery-thumb,
.gallery-admin-grid img{
  width:86px!important;height:110px!important;object-fit:cover!important;border-radius:8px;
}
.profile-photo-box{width:86px!important}
.premium-member-profile{grid-template-columns:100px 1fr!important}

/* Lightweight System Polish */
body.ad-system {
  font-family: 'DM Sans', 'Noto Naskh Arabic', system-ui, -apple-system, sans-serif !important;
}
body[dir="rtl"].ad-system {
  font-family: 'Noto Naskh Arabic', 'DM Sans', system-ui, -apple-system, sans-serif !important;
}
.sidebar .nav-link {
  border-radius: 13px !important;
  transition: all 0.18s ease !important;
}
.topbar {
  border-radius: 20px !important;
}
.panel, .card {
  border-radius: 22px !important;
}
