:root{
  --bg:#eef3f8;--bg2:#dbe8f2;--surface:rgba(255,255,255,.82);--surface-solid:#fff;--text:#0b1220;--muted:#64748b;--border:rgba(15,23,42,.10);
  --primary:#0f766e;--primary2:#14b8a6;--accent:#7c3aed;--danger:#ef4444;--success:#22c55e;--shadow:0 28px 80px rgba(15,23,42,.14);--glow:0 0 0 1px rgba(20,184,166,.12),0 16px 60px rgba(20,184,166,.14)
}
[data-theme=dark]{
  --bg:#050a12;--bg2:#07111f;--surface:rgba(9,18,32,.76);--surface-solid:#0b1628;--text:#eef7ff;--muted:#91a4bb;--border:rgba(148,163,184,.16);
  --primary:#2dd4bf;--primary2:#06b6d4;--accent:#a78bfa;--shadow:0 30px 90px rgba(0,0,0,.48);--glow:0 0 0 1px rgba(45,212,191,.16),0 22px 70px rgba(45,212,191,.12)
}
*{box-sizing:border-box}html{min-height:100%}body{margin:0;min-height:100vh;color:var(--text);font-family:Inter,Segoe UI,Tahoma,Arial,sans-serif;background:radial-gradient(circle at 15% -10%,rgba(20,184,166,.26),transparent 32%),radial-gradient(circle at 100% 0%,rgba(124,58,237,.22),transparent 28%),linear-gradient(135deg,var(--bg),var(--bg2));}body:before{content:"";position:fixed;inset:0;background-image:linear-gradient(rgba(148,163,184,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(148,163,184,.06) 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(to bottom,black,transparent 80%);pointer-events:none}a{color:inherit;text-decoration:none}.glass-panel,.card{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);backdrop-filter:blur(22px);border-radius:28px}.app-shell{display:flex;min-height:100vh}.sidebar{width:292px;position:fixed;inset:18px auto 18px 18px;z-index:20;padding:20px;background:linear-gradient(180deg,var(--surface),rgba(255,255,255,.54));border:1px solid var(--border);border-radius:30px;box-shadow:var(--shadow);backdrop-filter:blur(26px);display:flex;flex-direction:column}[data-theme=dark] .sidebar{background:linear-gradient(180deg,rgba(9,18,32,.90),rgba(9,18,32,.56))}.brand{display:flex;align-items:center;gap:12px}.brand.big{margin-bottom:38px}.brand strong{display:block;font-size:22px;font-weight:900;letter-spacing:-.04em}.brand span{display:block;color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.brand-mark{width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;display:grid;place-items:center;font-weight:900;box-shadow:var(--glow)}.nav-menu{margin-top:28px;display:grid;gap:8px}.nav-menu a{display:flex;align-items:center;gap:12px;padding:14px 14px;border-radius:18px;color:var(--muted);font-weight:800;transition:.18s}.nav-menu a span{width:28px;height:28px;display:grid;place-items:center;border-radius:10px;background:rgba(148,163,184,.12);color:var(--text)}.nav-menu a:hover,.nav-menu a.active{background:linear-gradient(135deg,rgba(20,184,166,.18),rgba(124,58,237,.13));color:var(--text);transform:translateX(3px)}.sidebar-card{margin-top:auto;padding:16px;border-radius:22px;background:linear-gradient(135deg,rgba(20,184,166,.14),rgba(124,58,237,.12));border:1px solid var(--border)}.sidebar-card p{color:var(--muted);font-size:13px;margin:6px 0 0}.pulse{width:9px;height:9px;background:var(--success);border-radius:50%;display:inline-block;margin-right:8px;box-shadow:0 0 0 8px rgba(34,197,94,.12)}.main-panel{margin-left:328px;width:calc(100% - 328px);padding:18px 22px 28px}.topbar{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;margin-bottom:22px}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.14em;color:var(--primary);font-weight:900}.page-title h1{margin:2px 0 0;font-size:30px;letter-spacing:-.04em}.top-actions{display:flex;align-items:center;gap:10px}.theme-switch,.logout-link,.icon-btn,.btn,.primary-action,.google-btn{border:0;cursor:pointer;border-radius:16px;padding:12px 16px;font-weight:900;background:rgba(148,163,184,.14);color:var(--text);display:inline-flex;align-items:center;justify-content:center;gap:9px}.theme-switch{border:1px solid var(--border)}.logout-link{background:rgba(239,68,68,.12);color:var(--danger)}.btn-primary,.primary-action{background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;box-shadow:var(--glow)}.btn-danger{background:rgba(239,68,68,.12);color:var(--danger)}.btn-success{background:rgba(34,197,94,.14);color:var(--success)}.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.card{padding:22px}.card h2,.card h3{margin:0 0 12px;letter-spacing:-.03em}.muted{color:var(--muted)}.stat{display:flex;align-items:center;justify-content:space-between}.stat strong{font-size:34px}.table-wrap{overflow:auto;border-radius:22px;border:1px solid var(--border);background:var(--surface)}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:15px 16px;border-bottom:1px solid var(--border);vertical-align:middle}th{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);background:rgba(148,163,184,.10)}tr:hover td{background:rgba(20,184,166,.06)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field label{display:block;font-weight:800;margin-bottom:8px}.field input,.field textarea,.auth-form input{width:100%;border:1px solid var(--border);background:rgba(255,255,255,.52);color:var(--text);border-radius:16px;padding:13px 14px;outline:none}[data-theme=dark] .field input,[data-theme=dark] .field textarea,[data-theme=dark] .auth-form input{background:rgba(15,23,42,.72)}.field input:focus,.auth-form input:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(20,184,166,.16)}.alert{border-radius:18px;padding:14px 16px;margin-bottom:16px;border:1px solid var(--border);font-weight:800}.alert.success{background:rgba(34,197,94,.12);color:var(--success)}.alert.error{background:rgba(239,68,68,.12);color:var(--danger)}.floating-alert{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:60}.pagination{display:flex;gap:8px;justify-content:center;margin-top:18px;flex-wrap:wrap}.pagination a{padding:10px 13px;background:rgba(148,163,184,.13);border-radius:12px;color:var(--text);font-weight:800}.hero{min-height:72vh;display:grid;place-items:center;text-align:center;padding:42px 20px}.hero-card{max-width:900px}.hero h1{font-size:clamp(38px,7vw,76px);line-height:1;margin:0 0 18px;letter-spacing:-.06em}.hero p{font-size:18px;color:var(--muted);max-width:680px;margin:0 auto 24px}.mobile-toggle{display:none}.footer{margin-top:24px;color:var(--muted);font-size:13px;text-align:center}.auth-page{min-height:100vh;display:grid;place-items:center;padding:28px;position:relative;overflow:hidden}.auth-bg{position:absolute;border-radius:999px;filter:blur(20px);opacity:.8}.auth-bg-1{width:420px;height:420px;background:rgba(20,184,166,.28);left:-120px;top:-90px}.auth-bg-2{width:360px;height:360px;background:rgba(124,58,237,.28);right:-100px;bottom:-80px}.auth-shell{position:relative;width:min(1120px,100%);display:grid;grid-template-columns:1.05fr .95fr;gap:20px}.auth-visual{padding:38px;min-height:650px;display:flex;flex-direction:column;justify-content:center}.auth-visual h1{font-size:clamp(44px,5vw,76px);line-height:.95;margin:0 0 18px;letter-spacing:-.07em}.auth-visual p{color:var(--muted);font-size:18px;line-height:1.7;max-width:560px}.security-points{display:flex;flex-wrap:wrap;gap:10px;margin:26px 0}.security-points span{padding:10px 12px;border-radius:999px;background:rgba(148,163,184,.13);font-weight:800;color:var(--text)}.auth-theme{width:max-content;margin-top:20px}.auth-card{padding:26px;align-self:center}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px;padding:6px;background:rgba(148,163,184,.12);border-radius:18px}.auth-tabs a{text-align:center;padding:12px;border-radius:14px;font-weight:900;color:var(--muted)}.auth-tabs a.active{background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;box-shadow:var(--glow)}.google-btn{width:100%;background:var(--surface-solid);border:1px solid var(--border);font-size:15px}.google-icon{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#111;font-weight:900}.divider{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.12em;margin:20px 0}.divider:before,.divider:after{content:"";height:1px;background:var(--border);flex:1}.auth-form{display:grid;gap:14px}.auth-form label{font-weight:850}.auth-form label input{margin-top:8px}.form-line{display:flex;justify-content:flex-end}.form-line a{color:var(--primary);font-weight:900}.check-row{display:flex!important;gap:10px;align-items:flex-start;font-size:14px;color:var(--muted)}.check-row input{width:auto!important;margin-top:3px}.captcha-box{overflow:auto;padding:6px 0}.primary-action{width:100%;font-size:16px;padding:15px}.page-card{display:grid;gap:12px;padding:16px;border:1px solid var(--border);border-radius:22px;background:rgba(255,255,255,.55);transition:.18s;min-height:176px}[data-theme=dark] .page-card{background:rgba(15,23,42,.48)}.page-card:hover{transform:translateY(-3px);box-shadow:var(--glow)}.page-card img{width:84px;height:62px;object-fit:contain;border-radius:14px;background:#fff;border:1px solid var(--border)}.page-card strong{font-size:16px}.url-box{display:flex;gap:8px;align-items:center;padding:10px 12px;background:rgba(148,163,184,.13);border-radius:14px;min-width:0}.url-box code{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:12px}.copy-btn{border:0;border-radius:12px;background:rgba(20,184,166,.18);color:var(--primary);font-weight:900;padding:9px 11px;cursor:pointer;flex:0 0 auto}.blog-list{display:grid;gap:14px}.blog-card{display:block;padding:20px;border-radius:24px;background:rgba(255,255,255,.56);border:1px solid var(--border)}[data-theme=dark] .blog-card{background:rgba(15,23,42,.50)}.blog-card h3{margin:0 0 10px}.blog-article{line-height:1.85;font-size:16px}.toast{position:fixed;right:18px;bottom:18px;background:var(--surface-solid);border:1px solid var(--border);border-radius:16px;padding:13px 16px;box-shadow:var(--shadow);opacity:0;transform:translateY(12px);transition:.2s;z-index:80;font-weight:900}.toast.show{opacity:1;transform:translateY(0)}@media(max-width:980px){.sidebar{transform:translateX(calc(-100% - 24px));transition:.25s}.sidebar.open{transform:translateX(0)}.main-panel{margin-left:0;width:100%;padding:14px}.mobile-toggle{display:inline-flex}.topbar{align-items:flex-start}.grid-2,.grid-3,.form-grid,.auth-shell{grid-template-columns:1fr}.auth-visual{min-height:auto;padding:26px}.auth-card{padding:20px}table{min-width:720px}.page-title h1{font-size:24px}}@media(max-width:560px){.auth-page{padding:12px}.auth-visual{display:none}.top-actions b{display:none}.sidebar{inset:10px auto 10px 10px;width:min(300px,calc(100% - 20px))}.card{padding:17px}.page-card{min-height:auto}.captcha-box{transform:scale(.88);transform-origin:left top;height:74px}.topbar{border-radius:22px}}


/* V3 polish: sharper cyber dashboard finishing touches */
body:after{content:"";position:fixed;inset:0;background:radial-gradient(circle at 50% 120%,rgba(20,184,166,.10),transparent 36%);pointer-events:none;z-index:-1}
.sidebar{overflow:hidden}
.sidebar:before{content:"";position:absolute;inset:-1px;border-radius:30px;padding:1px;background:linear-gradient(180deg,rgba(45,212,191,.45),rgba(124,58,237,.22),transparent);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
.brand-mark{position:relative}
.brand-mark:after{content:"";position:absolute;inset:-8px;border-radius:24px;background:linear-gradient(135deg,var(--primary),var(--accent));opacity:.18;filter:blur(12px);z-index:-1}
.nav-menu a{position:relative}
.nav-menu a.active:before{content:"";width:4px;height:24px;border-radius:99px;background:linear-gradient(180deg,var(--primary),var(--accent));position:absolute;left:0}
.card{position:relative;overflow:hidden}
.card:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.10),transparent 42%);pointer-events:none}
.stat span{font-size:24px;width:54px;height:54px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(20,184,166,.18),rgba(124,58,237,.14));border:1px solid var(--border)}
.page-card{position:relative}
.page-card:before{content:"";position:absolute;inset:0;border-radius:22px;background:linear-gradient(135deg,rgba(20,184,166,.10),transparent 38%,rgba(124,58,237,.10));opacity:.75;pointer-events:none}
.page-card>*{position:relative}
.url-box code{user-select:all}
.copy-btn:hover,.btn:hover,.theme-switch:hover{transform:translateY(-1px)}
.page-library-card h2{font-size:32px}
@media(max-width:980px){.topbar{position:sticky;top:10px;z-index:10}.grid-3{grid-template-columns:1fr}}

/* Dynamic AdSense manager + safe placements */
.ad-slot{margin:18px 0;padding:12px;border:1px dashed rgba(20,184,166,.35);border-radius:22px;background:linear-gradient(135deg,rgba(20,184,166,.08),rgba(124,58,237,.07));position:relative;overflow:hidden;min-height:96px;display:grid;align-items:center}
.ad-label{position:absolute;top:8px;left:12px;font-size:10px;text-transform:uppercase;letter-spacing:.14em;color:var(--muted);font-weight:900;background:var(--surface-solid);border:1px solid var(--border);padding:4px 8px;border-radius:999px;z-index:2}
.ad-content{display:grid;place-items:center;min-height:80px;padding-top:12px;max-width:100%;overflow:hidden}.ad-content ins{max-width:100%}.ad-placeholder{min-height:90px;display:grid;place-items:center;text-align:center;color:var(--muted);gap:4px;padding-top:14px}.ad-placeholder strong{color:var(--text)}.ad-placeholder span{font-size:12px}.ad-top{margin:0 0 18px}.ad-footer{margin-top:24px}.ad-sidebar{margin-top:16px;min-height:120px;padding:14px}.ad-sidebar .ad-label{position:static;width:max-content;margin-bottom:8px}.ad-sidebar .ad-content{min-height:90px}.grid-ad-break{grid-column:1/-1}.ad-between-cards{margin:0}.ads-admin-layout{align-items:start}.ads-form{display:grid;gap:14px}.field select{width:100%;border:1px solid var(--border);background:rgba(255,255,255,.52);color:var(--text);border-radius:16px;padding:13px 14px;outline:none}[data-theme=dark] .field select{background:rgba(15,23,42,.72)}.placement-map{display:grid;gap:10px;margin-top:14px}.placement-map div{padding:14px;border-radius:18px;background:rgba(148,163,184,.12);border:1px solid var(--border);display:grid;gap:3px}.placement-map strong{color:var(--primary)}.placement-map span{color:var(--muted);font-size:13px}.ad-policy-note{margin-top:16px;padding:16px;border-radius:20px;background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.20)}.ad-policy-note p{margin:6px 0 0;color:var(--muted);font-size:14px}.status-pill{display:inline-flex;padding:7px 10px;border-radius:999px;font-weight:900;font-size:12px}.status-pill.on{background:rgba(34,197,94,.14);color:var(--success)}.status-pill.off{background:rgba(148,163,184,.14);color:var(--muted)}
@media(max-width:980px){.ad-slot{min-height:78px}.ad-sidebar{display:none}.ads-admin-layout{grid-template-columns:1fr}}

/* V9 final UI polish: public landing, login screen, sidebar icons */
.public-landing{min-height:100vh;position:relative;display:grid;grid-template-rows:auto 1fr;gap:28px;padding:22px;overflow:hidden}.public-orb{position:absolute;border-radius:999px;filter:blur(18px);opacity:.85;pointer-events:none}.public-orb-a{width:430px;height:430px;left:-160px;top:-120px;background:rgba(20,184,166,.30)}.public-orb-b{width:390px;height:390px;right:-140px;bottom:-100px;background:rgba(124,58,237,.28)}.public-nav{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-radius:26px;max-width:1180px;width:100%;margin:0 auto}.public-brand{display:flex;align-items:center;gap:12px;min-width:0}.public-brand-mark{width:48px;height:48px;border-radius:17px;display:grid;place-items:center;color:#fff;font-weight:950;font-size:20px;background:linear-gradient(135deg,var(--primary),var(--accent));box-shadow:var(--glow)}.public-brand strong{display:block;font-size:20px;font-weight:950;letter-spacing:-.04em}.public-brand small{display:block;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:850}.public-nav-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.theme-switch.compact{padding:11px 13px}.btn.ghost{background:transparent;border:1px solid var(--border)}.public-hero{position:relative;z-index:1;width:min(1180px,100%);margin:0 auto 22px;padding:clamp(28px,6vw,70px);display:grid;place-items:center;text-align:center;align-self:center;min-height:620px;border-radius:38px}.public-hero:after{content:"";position:absolute;inset:14px;border-radius:30px;border:1px solid rgba(148,163,184,.12);pointer-events:none}.hero-kicker{display:inline-flex;align-items:center;gap:9px;padding:9px 13px;border-radius:999px;background:rgba(20,184,166,.12);border:1px solid rgba(20,184,166,.20);color:var(--primary);font-weight:950;text-transform:uppercase;letter-spacing:.13em;font-size:12px}.hero-kicker span{width:8px;height:8px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 7px rgba(20,184,166,.12)}.public-hero h1{margin:18px 0 14px;font-size:clamp(52px,11vw,122px);line-height:.86;letter-spacing:-.09em;font-weight:950;background:linear-gradient(135deg,var(--text),var(--primary),var(--accent));-webkit-background-clip:text;background-clip:text;color:transparent}.hero-lead{max-width:760px;color:var(--muted);font-size:clamp(16px,2vw,21px);line-height:1.75;margin:0 auto 30px}.hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:32px}.hero-login,.hero-register{min-width:190px;justify-content:center}.public-feature-grid{width:min(860px,100%);display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.public-feature-grid div{padding:18px;border-radius:22px;background:rgba(148,163,184,.10);border:1px solid var(--border);text-align:left}.public-feature-grid strong{display:block;font-size:15px;margin-bottom:6px}.public-feature-grid span{display:block;color:var(--muted);font-size:13px;line-height:1.5}.auth-page-v9{padding:22px}.auth-shell-clean{grid-template-columns:.82fr .78fr;width:min(1040px,100%);align-items:stretch}.auth-intro{padding:34px;display:flex;flex-direction:column;justify-content:space-between;min-height:620px;overflow:hidden;position:relative}.auth-intro:before{content:"";position:absolute;width:360px;height:360px;right:-120px;bottom:-140px;border-radius:999px;background:linear-gradient(135deg,rgba(20,184,166,.22),rgba(124,58,237,.22));filter:blur(3px)}.auth-intro>*{position:relative}.auth-brand{align-self:flex-start}.auth-intro-copy h1{font-size:clamp(42px,5vw,74px);line-height:.92;letter-spacing:-.07em;margin:16px 0 18px}.auth-intro-copy p{color:var(--muted);font-size:18px;line-height:1.7;max-width:520px}.auth-mini-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.auth-mini-stats div{padding:16px;border-radius:20px;border:1px solid var(--border);background:rgba(148,163,184,.10)}.auth-mini-stats strong{display:block}.auth-mini-stats span{display:block;margin-top:5px;color:var(--muted);font-size:13px}.auth-card-clean{padding:28px;align-self:center}.auth-card-head{margin-bottom:18px}.auth-card-head span{display:inline-flex;padding:7px 10px;border-radius:999px;background:rgba(20,184,166,.12);color:var(--primary);font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.13em}.auth-card-head h2{font-size:30px;letter-spacing:-.04em;margin:12px 0 0}.nav-menu a{font-size:15px;letter-spacing:-.01em}.nav-menu a .nav-icon{width:34px;height:34px;border-radius:13px;display:grid;place-items:center;flex:0 0 auto;background:linear-gradient(135deg,rgba(20,184,166,.14),rgba(124,58,237,.11));border:1px solid var(--border);color:var(--primary)}.nav-menu a .nav-icon svg{width:19px;height:19px;display:block;fill:currentColor}.nav-menu a.active .nav-icon,.nav-menu a:hover .nav-icon{color:#fff;background:linear-gradient(135deg,var(--primary),var(--accent));box-shadow:var(--glow)}.sidebar .brand span{letter-spacing:.11em}.sidebar-card{display:none!important}@media(max-width:980px){.public-landing{padding:12px;gap:14px}.public-nav{align-items:flex-start}.public-nav-actions .theme-switch b{display:none}.public-hero{min-height:auto;padding:38px 18px;border-radius:28px}.public-feature-grid,.auth-shell-clean,.auth-mini-stats{grid-template-columns:1fr}.auth-intro{min-height:auto}.auth-intro-copy h1{font-size:42px}.auth-card-clean{align-self:stretch}}@media(max-width:560px){.public-nav{border-radius:22px}.public-brand small{display:none}.public-nav-actions{gap:7px}.public-nav-actions .btn,.public-nav-actions .theme-switch{padding:10px 11px;font-size:13px}.public-hero h1{font-size:58px}.hero-actions{display:grid;width:100%}.hero-login,.hero-register{width:100%;min-width:0}.public-feature-grid div{text-align:center}.auth-page-v9{padding:12px}.auth-intro{padding:22px}.auth-intro-copy p{font-size:15px}.auth-card-clean{padding:20px}.auth-card-head h2{font-size:25px}}

/* V10 login/register final polish */
.auth-page-v10{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
  position:relative;
  overflow:hidden;
}
.auth-page-v10:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% -10%,rgba(45,212,191,.20),transparent 34%),
    radial-gradient(circle at 88% 82%,rgba(124,58,237,.18),transparent 30%);
  pointer-events:none;
}
.auth-panel-v10{
  width:min(470px,100%);
  padding:26px;
  border-radius:34px;
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.auth-panel-v10:before{
  content:"";
  position:absolute;
  inset:-1px;
  background:linear-gradient(135deg,rgba(20,184,166,.18),transparent 42%,rgba(124,58,237,.16));
  z-index:-1;
}
.auth-topbar-v10{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:28px;
}
.auth-logo-v10{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.auth-logo-mark-v10{
  width:52px;
  height:52px;
  border-radius:18px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:22px;
  font-weight:950;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  box-shadow:var(--glow);
}
.auth-logo-v10 strong{
  display:block;
  font-size:22px;
  font-weight:950;
  letter-spacing:-.05em;
}
.auth-logo-v10 small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.10em;
}
.auth-card-head-v10{
  text-align:left;
  margin-bottom:20px;
}
.auth-card-head-v10 span{
  display:inline-flex;
  padding:8px 11px;
  border-radius:999px;
  color:var(--primary);
  background:rgba(20,184,166,.12);
  border:1px solid rgba(20,184,166,.18);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.14em;
}
.auth-card-head-v10 h2{
  margin:14px 0 8px;
  font-size:34px;
  line-height:1.05;
  letter-spacing:-.055em;
}
.auth-card-head-v10 p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
}
.auth-tabs-v10{
  margin-bottom:14px;
  padding:5px;
  border-radius:18px;
  background:rgba(148,163,184,.12);
  border:1px solid var(--border);
}
.auth-tabs-v10 a{
  border-radius:14px;
  font-weight:950;
}
.auth-tabs-v10 a.active{
  background:linear-gradient(135deg,var(--primary),var(--accent));
  color:#fff;
  box-shadow:var(--glow);
}
.google-btn-v10{
  width:100%;
  justify-content:center;
  min-height:48px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.48);
}
[data-theme=dark] .google-btn-v10{background:rgba(15,23,42,.58)}
.auth-form-v10{display:grid;gap:13px}
.auth-form-v10 label{
  display:grid;
  gap:7px;
  font-weight:850;
  color:var(--text);
}
.auth-form-v10 input{
  min-height:48px;
}
.auth-form-v10 .primary-action{
  width:100%;
  min-height:50px;
  margin-top:2px;
  justify-content:center;
  font-size:15px;
}
.auth-page-v10 .divider{margin:16px 0}
.auth-page-v10 .form-line{margin:-2px 0 2px;text-align:right}
.auth-page-v10 .form-line a{color:var(--primary);font-weight:850;font-size:13px}
.auth-page-v10 .check-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-weight:700;
  color:var(--muted);
  line-height:1.45;
}
.auth-page-v10 .check-row input{width:auto;min-height:auto;margin-top:4px}
.auth-page-v10 .captcha-box{
  overflow:auto;
  padding:10px;
  border:1px solid var(--border);
  background:rgba(148,163,184,.08);
  border-radius:18px;
}
@media(max-width:560px){
  .auth-page-v10{padding:12px;place-items:start center;align-items:center}
  .auth-panel-v10{padding:20px;border-radius:28px;margin:18px 0}
  .auth-logo-mark-v10{width:48px;height:48px;border-radius:16px}
  .auth-logo-v10 strong{font-size:20px}
  .auth-card-head-v10 h2{font-size:29px}
  .auth-card-head-v10 p{font-size:14px}
}


/* V11 mobile polish fixes */
.sidebar-close{display:none;position:absolute;top:16px;right:16px;width:42px;height:42px;border:1px solid var(--border);border-radius:14px;background:rgba(148,163,184,.14);color:var(--text);font-size:26px;font-weight:900;line-height:1;cursor:pointer;z-index:3}.sidebar-backdrop{display:none}.topbar{overflow:hidden}.top-actions{flex:0 0 auto}.page-title{min-width:0;flex:1}.page-title h1{overflow:hidden;text-overflow:ellipsis}.url-box{width:100%}.copy-btn{min-height:42px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.captcha-box{overflow:visible!important}.captcha-box .g-recaptcha{transform-origin:left top}.public-nav-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap}.public-brand strong{line-height:1.05}.public-hero h1{line-height:.98;padding-bottom:.06em;overflow:visible}.blog-article h1,.blog-article h2,.blog-article h3{overflow-wrap:anywhere}

@media(max-width:980px){
  body.sidebar-open{overflow:hidden}.sidebar{transform:translateX(-112%);transition:transform .22s ease;inset:14px auto 14px 14px;width:min(330px,82vw);z-index:70}.sidebar.open{transform:translateX(0)}.sidebar-backdrop{position:fixed;inset:0;background:rgba(2,6,23,.42);backdrop-filter:blur(6px);z-index:60}.sidebar.open + .sidebar-backdrop,body.sidebar-open .sidebar-backdrop{display:block}.sidebar-close{display:grid;place-items:center}.sidebar .brand{padding-right:48px}.main-panel{margin-left:0;width:100%;padding:16px}.mobile-toggle{display:inline-flex}.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:640px){
  .main-panel{padding:14px 14px 24px}.topbar{min-height:74px;padding:12px;border-radius:22px;gap:10px;align-items:center}.mobile-toggle{width:48px;height:48px;border-radius:16px;font-size:20px;flex:0 0 auto}.eyebrow{font-size:10px;letter-spacing:.12em}.page-title h1{font-size:24px;line-height:1.12;margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal}.top-actions{gap:8px}.theme-switch{width:48px;height:48px;padding:0;border-radius:16px}.theme-switch b{display:none}.logout-link{padding:0 14px;height:48px;border-radius:16px;font-size:14px;white-space:nowrap}.card{padding:18px;border-radius:24px}.grid-2,.grid-3{grid-template-columns:1fr}.page-library-card h2{font-size:34px}.page-library-card .muted{font-size:16px;line-height:1.45}.page-card{padding:18px;border-radius:24px}.page-card img{width:92px;height:72px}.url-box{padding:8px;gap:7px}.url-box code{font-size:13px;min-width:0;flex:1}.copy-btn{padding:10px 14px;border-radius:14px;font-size:14px}.blog-card h3,.blog-article h1{font-size:clamp(28px,8vw,44px);line-height:1.12;letter-spacing:-.045em}.public-nav{display:grid;grid-template-columns:1fr;gap:14px;padding:18px;border-radius:26px}.public-brand{width:100%}.public-brand-mark{flex:0 0 auto}.public-brand strong{font-size:26px}.public-nav-actions{width:100%;display:grid;grid-template-columns:48px 1fr 1fr;gap:10px}.public-nav-actions .theme-switch{width:48px;min-width:48px}.public-nav-actions .btn{height:48px;padding:0 12px;white-space:nowrap}.public-hero h1{font-size:clamp(46px,14vw,62px);letter-spacing:-.07em;line-height:1.02}.hero-lead{font-size:16px;line-height:1.6}.auth-page-v10 .captcha-box{padding:0;border:0;background:transparent;border-radius:0}.auth-page-v10 .captcha-box .g-recaptcha{transform:scale(.88);width:304px;height:68px}.auth-panel-v10{max-width:calc(100vw - 24px);overflow:hidden}.auth-card-head-v10 h2{font-size:30px;line-height:1.1}.auth-logo-v10 small{font-size:10px}.auth-logo-v10 strong{font-size:20px}
}

@media(max-width:380px){
  .topbar{gap:7px}.mobile-toggle,.theme-switch{width:44px;height:44px}.logout-link{height:44px;padding:0 12px;font-size:13px}.page-title h1{font-size:21px}.eyebrow{font-size:9px}.public-nav-actions{grid-template-columns:44px 1fr 1fr}.public-nav-actions .btn{font-size:13px}.public-brand strong{font-size:23px}.auth-page-v10 .captcha-box .g-recaptcha{transform:scale(.80)}
}

/* V12: Mobile theme switch icon visibility polish */
@media (max-width: 768px) {
  .theme-switch span {
    font-size: 24px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .theme-switch.compact {
    font-size: 24px !important;
    line-height: 1 !important;
  }
}

/* V13: Static/support pages polish */
.static-card{max-width:900px;margin:0 auto}.static-card h2{font-size:clamp(30px,4vw,48px);line-height:1.05;letter-spacing:-.05em;margin:10px 0 14px}.static-content{color:var(--muted);font-size:16px;line-height:1.75}.static-content p{margin:0 0 12px}.static-public-page{min-height:100vh}.static-public-panel{max-width:520px}.static-public-panel .static-content{margin-top:12px}.static-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.static-actions .btn,.static-actions .primary-action{text-align:center;text-decoration:none}
@media(max-width:560px){.static-actions{grid-template-columns:1fr}.static-public-panel{margin:18px 0}.static-content{font-size:15px}}

/* V14: Reset password flow */
.reset-page-v14{min-height:100vh;padding:22px}.reset-panel-v14{width:min(560px,100%);margin:auto;padding:clamp(22px,4vw,34px)}.auth-subtitle-v10{color:var(--muted);font-size:16px;line-height:1.65;margin:12px 0 0}.reset-form-v14{margin-top:22px}.captcha-box-reset{overflow:visible;min-height:90px;padding:12px;border-radius:20px}.reset-actions-v14{grid-template-columns:1fr;margin-top:14px}.reset-message-v14{margin-top:14px}.reset-message-v14 strong{color:var(--text)}@media(max-width:560px){.reset-page-v14{padding:12px}.reset-panel-v14{border-radius:28px}.captcha-box-reset{padding:8px;transform-origin:left top}.captcha-box-reset .g-recaptcha{transform:scale(.94);transform-origin:left top;min-height:78px}}

/* V12/V14: bigger Light/Dark icon on mobile */
@media(max-width:768px){.theme-switch span{font-size:24px!important;line-height:1!important}}

/* V16: TailwindAdmin closer clone - Grinta green primary (#00674F)
   Visual layer only: preserves PHP behavior, database flow, ads, reset link, and go.php redirect logic. */
:root{--bg:#f7f8fb!important;--bg2:#eef2f6!important;--surface:#ffffff!important;--surface-solid:#ffffff!important;--text:#101828!important;--muted:#667085!important;--border:#e4e7ec!important;--primary:#00674F!important;--primary2:#008f6c!important;--accent:#00a878!important;--danger:#f04438!important;--success:#12b76a!important;--warning:#f79009!important;--shadow:0 1px 2px rgba(16,24,40,.04),0 8px 24px rgba(16,24,40,.055)!important;--glow:0 12px 28px rgba(0,103,79,.18)!important;--sidebar-bg:#ffffff;--topbar-bg:#ffffff;--input-bg:#ffffff;--card-radius:20px}
[data-theme=dark]{--bg:#0b1220!important;--bg2:#070d18!important;--surface:#111827!important;--surface-solid:#111827!important;--text:#f9fafb!important;--muted:#98a2b3!important;--border:#1f2937!important;--primary:#00b386!important;--primary2:#31d0a5!important;--accent:#34d399!important;--danger:#f97066!important;--success:#32d583!important;--shadow:0 1px 2px rgba(0,0,0,.24),0 16px 40px rgba(0,0,0,.28)!important;--glow:0 12px 28px rgba(0,179,134,.16)!important;--sidebar-bg:#111827;--topbar-bg:#111827;--input-bg:#0b1220}
html{scroll-behavior:smooth}body{background:var(--bg)!important;color:var(--text)!important;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}body:before{display:none!important}a{transition:.18s ease}.glass-panel,.card{background:var(--surface)!important;border:1px solid var(--border)!important;box-shadow:var(--shadow)!important;backdrop-filter:none!important;border-radius:var(--card-radius)!important}.app-shell{display:flex;min-height:100vh;background:var(--bg)!important}
.sidebar{width:290px!important;inset:0 auto 0 0!important;border-radius:0!important;border-width:0 1px 0 0!important;background:var(--sidebar-bg)!important;box-shadow:none!important;padding:24px 20px!important;overflow:auto}.brand-v16{min-height:48px;margin-bottom:26px}.brand-mark{width:44px!important;height:44px!important;border-radius:14px!important;background:linear-gradient(135deg,#00674F,#00a878)!important;box-shadow:0 10px 22px rgba(0,103,79,.22)!important}.brand strong{font-size:19px!important;line-height:1.05!important;font-weight:850!important;letter-spacing:-.025em!important}.brand span{font-size:11px!important;color:var(--muted)!important;font-weight:700!important;letter-spacing:.08em!important;text-transform:uppercase!important}.nav-menu-v16{margin-top:6px!important;display:grid!important;gap:5px!important}.nav-group-label{margin:18px 10px 7px;color:#98a2b3;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.nav-menu a{height:44px!important;padding:0 12px!important;border-radius:12px!important;color:var(--muted)!important;font-size:14px!important;font-weight:700!important;gap:12px!important}.nav-menu a b{font:inherit}.nav-menu a span{width:30px!important;height:30px!important;background:transparent!important;color:inherit!important;border-radius:10px!important}.nav-menu a svg{width:20px;height:20px;fill:currentColor;display:block}.nav-menu a:hover{background:rgba(0,103,79,.07)!important;color:var(--primary)!important;transform:none!important}.nav-menu a.active{background:#e9f8f3!important;color:#00674F!important;transform:none!important}[data-theme=dark] .nav-menu a.active{background:rgba(0,179,134,.16)!important;color:#31d0a5!important}.sidebar-profile-v16{margin-top:auto;display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;border:1px solid var(--border);background:#f9fafb}[data-theme=dark] .sidebar-profile-v16{background:#0b1220}.sidebar-profile-v16 .profile-dot{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--accent));box-shadow:var(--glow);position:relative}.sidebar-profile-v16 .profile-dot:after{content:"";position:absolute;right:1px;bottom:2px;width:10px;height:10px;border-radius:50%;background:#12b76a;border:2px solid var(--surface)}.sidebar-profile-v16 strong{display:block;font-size:14px;color:var(--text);max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-profile-v16 small{display:block;color:var(--muted);font-size:12px;margin-top:2px}.sidebar-close{background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--border)!important}
.main-panel{margin-left:290px!important;width:calc(100% - 290px)!important;padding:24px!important;background:var(--bg)!important}.topbar{height:76px!important;min-height:76px!important;padding:0 22px!important;margin:0 0 24px!important;border-radius:18px!important;background:var(--topbar-bg)!important;border:1px solid var(--border)!important;box-shadow:var(--shadow)!important;overflow:visible!important}.page-title{display:flex;flex-direction:column;justify-content:center}.eyebrow{font-size:12px!important;letter-spacing:.08em!important;color:var(--muted)!important;font-weight:700!important}.page-title h1{font-size:24px!important;line-height:1.2!important;font-weight:800!important;letter-spacing:-.02em!important;color:var(--text)!important;margin:2px 0 0!important}.top-actions{gap:10px!important}.theme-switch,.logout-link,.icon-btn,.btn,.primary-action,.google-btn{height:42px;border-radius:12px!important;padding:0 14px!important;font-size:14px!important;font-weight:700!important;border:1px solid var(--border)!important;background:var(--surface)!important;color:var(--text)!important;box-shadow:none!important}.theme-switch span{font-size:19px!important;line-height:1}.theme-switch:hover,.btn:hover,.icon-btn:hover{border-color:rgba(0,103,79,.35)!important;color:var(--primary)!important;background:rgba(0,103,79,.05)!important}.logout-link{background:#fff1f3!important;color:#d92d20!important;border-color:#ffe4e8!important}[data-theme=dark] .logout-link{background:rgba(240,68,56,.14)!important;color:#f97066!important;border-color:rgba(240,68,56,.24)!important}.btn-primary,.primary-action{background:#00674F!important;color:#fff!important;border-color:#00674F!important;box-shadow:0 8px 18px rgba(0,103,79,.20)!important}.btn-primary:hover,.primary-action:hover{background:#00523f!important;color:#fff!important}.btn-danger{background:#fff1f3!important;color:#d92d20!important;border-color:#ffe4e8!important}.btn-success{background:#ecfdf3!important;color:#039855!important;border-color:#d1fadf!important}.grid{gap:20px!important}.card{padding:24px!important}.card h2,.card h3{font-weight:800!important;letter-spacing:-.02em!important;color:var(--text)!important}.card h2{font-size:22px!important}.muted{color:var(--muted)!important}
.dashboard-v16{display:grid;gap:20px}.dashboard-hero-v16{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(135deg,#fff,rgba(0,103,79,.06))!important;overflow:hidden;position:relative}.dashboard-hero-v16:after{content:"";position:absolute;right:-72px;top:-96px;width:260px;height:260px;border-radius:999px;background:rgba(0,103,79,.10)}[data-theme=dark] .dashboard-hero-v16{background:linear-gradient(135deg,#111827,rgba(0,179,134,.09))!important}.dashboard-hero-v16 h2{font-size:30px!important;line-height:1.12;margin:6px 0 8px!important}.dashboard-hero-v16 p{margin:0;max-width:660px}.hero-badge-v16{position:relative;z-index:1;display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 14px;border-radius:999px;background:#ecfdf3;color:#027a48;font-weight:800;border:1px solid #d1fadf;white-space:nowrap}[data-theme=dark] .hero-badge-v16{background:rgba(50,213,131,.12);color:#32d583;border-color:rgba(50,213,131,.22)}.hero-badge-v16 span{width:8px;height:8px;border-radius:50%;background:#12b76a;box-shadow:0 0 0 6px rgba(18,183,106,.12)}.metrics-v16{margin-top:0}.stat-v16{min-height:142px;align-items:flex-start!important;position:relative;overflow:hidden}.stat-v16:after{content:"";position:absolute;right:-32px;top:-42px;width:132px;height:132px;border-radius:999px;background:rgba(0,103,79,.08)}.stat-v16 p{margin:0 0 10px!important;font-size:14px!important;font-weight:650}.stat-v16 strong{display:block;font-size:34px!important;letter-spacing:-.03em!important;line-height:1.05}.stat-v16 em{display:block;margin-top:10px;color:var(--muted);font-style:normal;font-size:13px;font-weight:600}.stat-v16>span{position:relative;z-index:1;width:46px;height:46px;border-radius:14px;background:#e9f8f3;color:#00674F;display:grid;place-items:center;font-size:22px!important}[data-theme=dark] .stat-v16>span{background:rgba(0,179,134,.15);color:#31d0a5}.section-head-v16{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.section-head-v16 h2{margin:2px 0 0!important}.latest-card-v16 .blog-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.table-wrap{background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:16px!important;box-shadow:none!important}table{font-size:14px}th{height:48px;padding:12px 18px!important;background:#f9fafb!important;color:#667085!important;border-bottom:1px solid var(--border)!important;font-size:12px!important;font-weight:700!important;letter-spacing:.04em!important}[data-theme=dark] th{background:#0b1220!important;color:#98a2b3!important}td{padding:16px 18px!important;border-bottom:1px solid var(--border)!important;color:var(--text)!important}tr:hover td{background:#f9fbff!important}[data-theme=dark] tr:hover td{background:rgba(255,255,255,.025)!important}.field label,.auth-form label{font-weight:700!important;color:var(--text)!important}.field input,.field textarea,.field select,.auth-form input{height:46px;background:var(--input-bg)!important;border:1px solid var(--border)!important;border-radius:12px!important;color:var(--text)!important;padding:0 14px!important}.field textarea{height:auto!important;padding:14px!important}.field input:focus,.field textarea:focus,.field select:focus,.auth-form input:focus{border-color:#00674F!important;box-shadow:0 0 0 4px rgba(0,103,79,.12)!important}.alert{border-radius:14px!important;font-size:14px}.footer{margin:26px 0 0!important;color:var(--muted)!important}.pagination a{background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:10px!important}.pagination a.active,.pagination a:hover{background:#00674F!important;color:#fff!important;border-color:#00674F!important}.toast{position:fixed;right:22px;bottom:22px;z-index:90;background:#101828;color:#fff;padding:12px 16px;border-radius:12px;box-shadow:var(--shadow);opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translateY(0)}
.page-library-card{overflow:hidden}.page-library-card h2{font-size:28px!important}.page-card{background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:18px!important;padding:18px!important;box-shadow:var(--shadow)!important;display:grid;gap:14px;transition:.18s}.page-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(16,24,40,.08)!important}.page-card img{width:100%;height:118px;object-fit:contain;background:#f9fafb;border:1px solid var(--border);border-radius:14px;padding:12px}[data-theme=dark] .page-card img{background:#0b1220}.url-box{background:#f9fafb!important;border:1px solid var(--border)!important;border-radius:12px!important;padding:8px!important;display:flex!important;align-items:center!important;gap:8px!important}[data-theme=dark] .url-box{background:#0b1220!important}.url-box code{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.copy-btn{height:38px;border-radius:10px!important;background:#00674F!important;color:#fff!important;border:0!important;font-weight:700!important;padding:0 12px!important;cursor:pointer}.blog-list{display:grid;gap:14px}.blog-card{display:block;padding:18px;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:none}.blog-card:hover{border-color:rgba(0,103,79,.35);transform:translateY(-1px);box-shadow:var(--shadow)}.blog-card h3{margin:0 0 8px!important;font-size:20px!important}.blog-article{line-height:1.75;color:var(--muted)}.blog-article h1,.blog-article h2,.blog-article h3{color:var(--text)}.placement-map{display:grid;gap:12px}.placement-map div{border:1px solid var(--border);border-radius:14px;padding:14px;background:#f9fafb}[data-theme=dark] .placement-map div{background:#0b1220}.placement-map strong{display:block;color:var(--text);margin-bottom:4px}.placement-map span{color:var(--muted);font-size:13px}.status-pill{display:inline-flex;align-items:center;height:28px;border-radius:999px;padding:0 10px;font-size:12px;font-weight:800}.status-pill.on{background:#ecfdf3;color:#039855}.status-pill.off{background:#f2f4f7;color:#667085}[data-theme=dark] .status-pill.on{background:rgba(50,213,131,.14);color:#32d583}[data-theme=dark] .status-pill.off{background:#1f2937;color:#98a2b3}.ad-top,.ad-footer,.ad-dashboard,.ad-dashboard-mid,.ad-records,.ad-blogs-top,.ad-article-top{margin:20px 0}.ad-slot{border:1px dashed var(--border);border-radius:16px;background:rgba(0,103,79,.035);padding:14px;text-align:center}.grid-ad-break{grid-column:1/-1}.password-mask{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--muted)!important}.new-row td:first-child:before{content:"";display:inline-block;width:8px;height:8px;border-radius:99px;background:#12b76a;margin-right:8px}.form-grid{gap:16px!important}
.public-landing,.auth-page,.reset-page-v14,.static-public-page{background:linear-gradient(180deg,var(--bg),var(--bg2))!important}.public-orb,.auth-bg{display:none!important}.public-nav{max-width:1180px;margin:22px auto 0!important;border-radius:18px!important;padding:16px 18px!important;background:var(--surface)!important}.public-brand-mark,.auth-logo-mark-v10{background:#00674F!important;border-radius:12px!important;box-shadow:0 8px 18px rgba(0,103,79,.22)!important}.public-brand strong,.auth-logo-v10 strong{font-weight:850!important;letter-spacing:-.02em!important}.public-brand small,.auth-logo-v10 small{color:var(--muted)!important}.public-hero{max-width:1180px;margin:22px auto 0!important;min-height:520px!important;border-radius:24px!important;text-align:left!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;padding:clamp(30px,6vw,70px)!important;background:linear-gradient(135deg,var(--surface),rgba(0,103,79,.05))!important}.public-hero h1{font-size:clamp(46px,8vw,92px)!important;letter-spacing:-.07em!important;color:var(--text)!important}.hero-kicker{color:#00674F!important;font-weight:800!important}.hero-kicker span{background:#00674F!important}.hero-lead{max-width:680px!important;margin:0 0 28px!important;color:var(--muted)!important}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.public-feature-grid{width:100%;margin-top:36px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.public-feature-grid div{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:18px}.public-feature-grid strong{display:block;margin-bottom:6px}.public-feature-grid span{color:var(--muted);font-size:14px}.auth-page{padding:24px!important}.auth-panel-v10,.reset-panel-v14,.static-public-panel{background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:24px!important;box-shadow:var(--shadow)!important;padding:30px!important;max-width:480px!important}.auth-topbar-v10{margin-bottom:28px!important}.auth-card-head-v10 span{color:#00674F!important;font-weight:800!important}.auth-card-head-v10 h2{font-size:32px!important;color:var(--text)!important}.auth-card-head-v10 p,.auth-subtitle-v10{color:var(--muted)!important}.auth-tabs-v10{background:#f2f4f7!important;border:1px solid var(--border)!important;border-radius:14px!important;padding:4px!important}[data-theme=dark] .auth-tabs-v10{background:#0b1220!important}.auth-tabs-v10 a{height:40px;display:grid;place-items:center;border-radius:10px!important}.auth-tabs-v10 a.active{background:var(--surface)!important;color:#00674F!important;box-shadow:0 1px 2px rgba(16,24,40,.08)!important}[data-theme=dark] .auth-tabs-v10 a.active{background:#1f2937!important;color:#31d0a5!important}.google-btn-v10{background:var(--surface)!important;border:1px solid var(--border)!important}.divider{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px}.divider:before,.divider:after{content:"";height:1px;background:var(--border);flex:1}.auth-page-v10 .captcha-box,.captcha-box-reset{border:1px solid var(--border)!important;background:var(--surface)!important;border-radius:14px!important;overflow:visible!important;padding:12px!important}.check-row{display:flex!important;gap:10px!important;align-items:flex-start!important}.check-row input{width:auto!important;height:auto!important}.static-actions{gap:12px}.reset-message-v14{color:var(--muted)!important}
@media(max-width:1100px){.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))!important}.grid-2{grid-template-columns:1fr!important}.latest-card-v16 .blog-list{grid-template-columns:1fr!important}}
@media(max-width:980px){body.sidebar-open{overflow:hidden}.sidebar{transform:translateX(-104%)!important;transition:transform .22s ease!important;width:min(310px,84vw)!important;z-index:70}.sidebar.open{transform:translateX(0)!important}.main-panel{margin-left:0!important;width:100%!important;padding:16px!important}.mobile-toggle{display:inline-flex!important}.sidebar-backdrop{position:fixed!important;inset:0!important;background:rgba(16,24,40,.55)!important;backdrop-filter:blur(6px)!important;z-index:60!important}.sidebar.open + .sidebar-backdrop,body.sidebar-open .sidebar-backdrop{display:block!important}.sidebar-close{display:grid!important;place-items:center!important}.topbar{height:auto!important;min-height:70px!important}.grid-3,.grid-2{grid-template-columns:1fr!important}}
@media(max-width:640px){.main-panel{padding:12px!important}.topbar{padding:12px!important;border-radius:16px!important;gap:8px!important}.mobile-toggle,.theme-switch{width:44px!important;height:44px!important;padding:0!important}.theme-switch b{display:none!important}.theme-switch span{font-size:24px!important;line-height:1!important}.logout-link{height:44px!important;padding:0 12px!important;font-size:13px!important}.page-title h1{font-size:21px!important;line-height:1.15!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.eyebrow{font-size:10px!important}.card{padding:18px!important;border-radius:18px!important}.dashboard-hero-v16{display:block}.dashboard-hero-v16 h2{font-size:25px!important}.hero-badge-v16{margin-top:18px}.stat-v16{min-height:118px}.stat-v16 strong{font-size:30px!important}.table-wrap{overflow:auto}.public-nav{margin:12px 12px 0!important;display:grid!important;grid-template-columns:1fr!important;gap:12px!important}.public-nav-actions{display:grid!important;grid-template-columns:44px 1fr 1fr!important;gap:8px!important;width:100%!important}.public-nav-actions .btn{height:44px!important;padding:0 10px!important;font-size:13px!important}.public-brand strong{font-size:22px!important}.public-hero{margin:12px!important;min-height:auto!important;padding:28px 20px!important;text-align:left!important}.public-hero h1{font-size:48px!important;line-height:1.02!important}.public-feature-grid{grid-template-columns:1fr!important;gap:10px!important}.auth-page{padding:12px!important}.auth-panel-v10,.reset-panel-v14,.static-public-panel{max-width:calc(100vw - 24px)!important;padding:22px!important;border-radius:20px!important}.auth-card-head-v10 h2{font-size:28px!important}.captcha-box .g-recaptcha,.captcha-box-reset .g-recaptcha{transform:scale(.90)!important;transform-origin:left top!important;min-height:72px!important}.captcha-box,.captcha-box-reset{padding:6px!important;min-height:82px!important}.page-card img{height:96px}.url-box{align-items:stretch!important}.copy-btn{height:38px!important;min-width:74px}.toast{left:12px;right:12px;bottom:14px;text-align:center}}
@media(max-width:380px){.public-brand strong{font-size:20px!important}.public-nav-actions{grid-template-columns:42px 1fr 1fr!important}.mobile-toggle,.theme-switch{width:42px!important;height:42px!important}.logout-link{height:42px!important;padding:0 10px!important}.captcha-box .g-recaptcha,.captcha-box-reset .g-recaptcha{transform:scale(.82)!important}.auth-panel-v10,.reset-panel-v14{padding:18px!important}.public-hero h1{font-size:42px!important}}

/* V17: Mobile/Desktop UI polish based on review notes */
html, body { overflow-x: hidden !important; }

.public-hero { text-align: center !important; align-items: center !important; }
.public-hero .hero-lead { margin-left: auto !important; margin-right: auto !important; }
.hero-actions { justify-content: center !important; width: 100%; }
.public-feature-grid { text-align: left; }

.sidebar { overflow: hidden !important; }
.nav-menu, .nav-menu-v16 { overflow-x: hidden !important; overflow-y: auto !important; min-height: 0; padding-right: 2px; scrollbar-width: none; }
.nav-menu::-webkit-scrollbar, .nav-menu-v16::-webkit-scrollbar { width: 0 !important; height: 0 !important; }
.sidebar-profile-v16 { display: none !important; }

.grid-4, .page-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.page-grid-4 .grid-ad-break { grid-column: 1 / -1; }

.copy-btn { background: rgba(0, 103, 79, 0.10) !important; color: #00674F !important; border: 1px solid rgba(0, 103, 79, 0.22) !important; box-shadow: none !important; }
.copy-btn:hover { background: rgba(0, 103, 79, 0.16) !important; }
[data-theme="dark"] .copy-btn { background: rgba(49, 208, 165, 0.12) !important; color: #31d0a5 !important; border-color: rgba(49, 208, 165, 0.26) !important; }

.auth-page-v10 .captcha-box, .captcha-box, .captcha-box-reset { overflow: visible !important; border: 0 !important; background: transparent !important; padding: 0 !important; min-height: auto !important; display: flex !important; justify-content: center !important; align-items: center !important; }
.auth-page-v10 .captcha-box .g-recaptcha, .captcha-box .g-recaptcha, .captcha-box-reset .g-recaptcha { transform-origin: center top !important; }

@media (max-width: 1280px) { .grid-4, .page-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .grid-4, .page-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) {
  .grid-4, .page-grid-4 { grid-template-columns: 1fr !important; }
  .public-hero { text-align: center !important; align-items: center !important; }
  .public-feature-grid { text-align: left; }
  .auth-page-v10 .captcha-box .g-recaptcha, .captcha-box .g-recaptcha, .captcha-box-reset .g-recaptcha { transform: scale(.88) !important; }
}
@media (max-width: 380px) { .auth-page-v10 .captcha-box .g-recaptcha, .captcha-box .g-recaptcha, .captcha-box-reset .g-recaptcha { transform: scale(.80) !important; } }

/* V22: final public landing polish - precise centering and button sizing */
.public-landing {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}
.public-nav,
.public-hero {
  margin-left: auto !important;
  margin-right: auto !important;
}
.public-hero {
  text-align: center !important;
  align-items: center !important;
}
.public-hero .hero-kicker,
.public-hero h1,
.public-hero .hero-lead,
.public-hero .hero-actions,
.public-hero .public-feature-grid {
  margin-left: auto !important;
  margin-right: auto !important;
}
.public-hero .hero-actions {
  width: auto !important;
  max-width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
.public-hero .hero-login {
  width: auto !important;
  min-width: 240px !important;
  max-width: 280px !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
}
.public-hero .hero-register {
  width: auto !important;
  min-width: 190px !important;
  max-width: 240px !important;
}
@media (max-width: 640px) {
  .public-landing {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .public-nav,
  .public-hero {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .public-nav {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
  }
  .public-hero {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .public-hero .hero-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .public-hero .hero-login,
  .public-hero .hero-register {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .public-feature-grid,
  .public-feature-grid div {
    width: 100% !important;
  }
}

/* V26 - Pages list mobile URL vertical alignment fix */
.url-box code{
  display:flex !important;
  align-items:center !important;
  min-height:38px !important;
  line-height:1.2 !important;
}
@media(max-width:640px){
  .url-box{
    align-items:center !important;
  }
  .url-box code{
    min-height:38px !important;
  }
}

/* V41: Admin-only Analytics Dashboard */
.analytics-page-v41{display:grid;gap:18px}.analytics-metrics-v41{margin-top:0}.analytics-chart-card-v41{overflow:hidden}.analytics-chart-v41{height:280px;display:grid;grid-template-columns:repeat(30,minmax(18px,1fr));gap:8px;align-items:end;padding:18px 4px 4px;overflow-x:auto}.analytics-bar-wrap-v41{height:230px;min-width:20px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px}.analytics-bar-wrap-v41 span{font-size:11px;color:var(--muted);font-weight:800;line-height:1}.analytics-bar-wrap-v41 small{font-size:10px;color:var(--muted);white-space:nowrap;writing-mode:vertical-rl;transform:rotate(180deg);max-height:58px}.analytics-bar-v41{width:100%;min-height:4px;border-radius:999px 999px 5px 5px;background:linear-gradient(180deg,var(--primary2),var(--primary));box-shadow:0 8px 18px rgba(0,103,79,.16)}.analytics-panels-v41{align-items:start}.analytics-list-v41{display:grid;gap:10px}.analytics-list-row-v41{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border:1px solid var(--border);border-radius:16px;background:rgba(16,24,40,.015)}[data-theme=dark] .analytics-list-row-v41{background:rgba(255,255,255,.025)}.analytics-list-row-v41 strong{display:block;color:var(--text);font-size:14px}.analytics-list-row-v41 small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.analytics-list-row-v41 b{min-width:44px;height:34px;padding:0 10px;border-radius:999px;display:inline-grid;place-items:center;background:#e9f8f3;color:#00674F;font-size:14px}[data-theme=dark] .analytics-list-row-v41 b{background:rgba(0,179,134,.16);color:#31d0a5}.analytics-list-main-v41{display:flex;align-items:center;gap:10px;min-width:0}.analytics-list-main-v41 img{width:44px;max-height:28px;object-fit:contain;border-radius:8px;background:#fff;border:1px solid var(--border)}@media(max-width:980px){.analytics-chart-v41{grid-template-columns:repeat(30,22px)}}@media(max-width:640px){.analytics-chart-v41{height:250px;gap:7px}.analytics-bar-wrap-v41{height:205px}.analytics-list-row-v41{align-items:flex-start}.analytics-list-main-v41{align-items:flex-start}}
.analytics-filter-v42{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:8px 0 18px;padding:14px;border:1px solid var(--border);border-radius:18px;background:rgba(16,24,40,.015)}
[data-theme=dark] .analytics-filter-v42{background:rgba(255,255,255,.025)}
.analytics-filter-v42 label{display:grid;gap:6px;font-size:12px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.analytics-filter-v42 input{height:42px;border:1px solid var(--border);border-radius:12px;background:var(--card);color:var(--text);padding:0 12px;min-width:160px}
.analytics-range-result-v42{margin-inline-start:auto;min-height:42px;display:flex;align-items:center;gap:10px;padding:8px 14px;border-radius:999px;background:#e9f8f3;color:#00674F;font-weight:900}
.analytics-range-result-v42 span{font-size:12px;color:inherit;opacity:.8}.analytics-range-result-v42 strong{font-size:20px}
[data-theme=dark] .analytics-range-result-v42{background:rgba(0,179,134,.16);color:#31d0a5}
@media(max-width:700px){.analytics-filter-v42{align-items:stretch}.analytics-filter-v42 label,.analytics-filter-v42 input,.analytics-filter-v42 .btn{width:100%}.analytics-range-result-v42{margin-inline-start:0;width:100%;justify-content:space-between}}

.hero-actions-v43{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.switch-row-v43{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid rgba(148,163,184,.18);border-radius:18px;background:rgba(15,23,42,.35)}
.switch-row-v43 span{display:flex;flex-direction:column;gap:4px}.switch-row-v43 small{color:var(--muted);line-height:1.4}.switch-row-v43 input{width:46px;height:24px;accent-color:#22c55e}.switch-row-v43.compact{min-height:86px}.settings-toggle-grid-v43{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}@media(max-width:900px){.settings-toggle-grid-v43{grid-template-columns:1fr}.hero-actions-v43{justify-content:flex-start}}
.field textarea{width:100%;border:1px solid rgba(148,163,184,.24);border-radius:16px;background:rgba(15,23,42,.5);color:var(--text);padding:14px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.45}.field small{display:block;margin-top:6px}

/* V45 dynamic language / RTL support */
html[dir="rtl"], body.dir-rtl { direction: rtl; }
body.lang-ar { font-family: 'Cairo', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
body.lang-ar input, body.lang-ar textarea, body.lang-ar select, body.lang-ar button { font-family: 'Cairo', 'Inter', system-ui, sans-serif; }
.language-switch{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;border-radius:999px;text-decoration:none;color:var(--text);background:rgba(255,255,255,.72);border:1px solid rgba(148,163,184,.22);box-shadow:0 10px 30px rgba(15,23,42,.08);font-weight:800;transition:.2s ease}
.language-switch:hover{transform:translateY(-1px);box-shadow:0 16px 40px rgba(15,23,42,.12)}
.language-switch .lang-globe{width:22px;height:22px;border-radius:50%;display:inline-grid;place-items:center;background:linear-gradient(135deg,var(--brand),#0ea57c);color:white;font-size:13px;line-height:1}
body.dir-rtl .sidebar{right:0;left:auto;border-right:0;border-left:1px solid var(--line)}
body.dir-rtl .main-panel{margin-left:0;margin-right:var(--sidebar-w)}
body.dir-rtl .sidebar-backdrop{right:0;left:0}
body.dir-rtl .nav-menu a, body.dir-rtl .brand, body.dir-rtl .topbar, body.dir-rtl .section-head-v16, body.dir-rtl .analytics-list-row-v41, body.dir-rtl .check-row{flex-direction:row-reverse;text-align:right}
body.dir-rtl .page-title, body.dir-rtl .card, body.dir-rtl .field, body.dir-rtl table, body.dir-rtl .muted{text-align:right}
body.dir-rtl .top-actions{flex-direction:row-reverse}
body.dir-rtl .nav-icon{margin-left:0;margin-right:0}
body.dir-rtl .sidebar-close{left:14px;right:auto}
body.dir-rtl .mobile-toggle{margin-left:8px;margin-right:0}
body.dir-rtl .pagination{direction:ltr}
body.dir-rtl .analytics-chart-v41{direction:ltr}
body.dir-rtl code, body.dir-rtl pre{direction:ltr;text-align:left;display:inline-block}
.language-settings-grid-v45{align-items:start;margin-top:18px}.language-form-v45 textarea{min-height:96px}.language-table-v45 td{vertical-align:top;max-width:360px}.language-table-v45 code{white-space:normal;word-break:break-word}.language-search-v45 select{height:46px;border:1px solid var(--line);border-radius:14px;padding:0 14px;background:var(--card);color:var(--text)}
@media(max-width:960px){body.dir-rtl .main-panel{margin-right:0}.language-settings-grid-v45{grid-template-columns:1fr}.language-switch b{display:none}}

/* V46 - Professional RTL shell + language switch refinement */
.sidebar-tools{margin-top:auto;padding-top:16px;border-top:1px solid var(--border)}
.language-switch{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border-radius:16px;text-decoration:none;color:var(--text);background:rgba(148,163,184,.10);border:1px solid var(--border);box-shadow:none;font-weight:850;transition:.18s ease;line-height:1}
.language-switch:hover{transform:translateY(-1px);background:rgba(0,103,79,.08);border-color:rgba(0,103,79,.24);color:var(--text)}
.language-switch .lang-globe{width:34px;height:34px;min-width:34px;border-radius:12px;display:inline-grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;font-size:12px;font-weight:950;letter-spacing:.02em;box-shadow:0 8px 16px rgba(0,103,79,.18)}
.language-switch .lang-copy{display:flex;flex-direction:column;gap:3px;min-width:0;text-align:start}.language-switch .lang-copy b{font-size:13px;white-space:nowrap}.language-switch .lang-copy small{font-size:10px;color:var(--muted);font-weight:800;white-space:nowrap}.language-switch-sidebar{width:100%;justify-content:flex-start}.language-switch-public,.language-switch-auth{min-height:44px}.language-switch-auth .lang-copy small,.language-switch-public .lang-copy small{display:none}.auth-top-actions{display:flex;align-items:center;gap:8px}.top-actions .language-switch{display:none!important}
body.dir-rtl{font-family:Cairo,Inter,Segoe UI,Tahoma,Arial,sans-serif;text-align:right}body.dir-rtl .sidebar{left:auto!important;right:18px!important;inset:18px 18px 18px auto!important}body.dir-rtl .main-panel{margin-left:0!important;margin-right:328px!important;width:calc(100% - 328px)!important}body.dir-rtl .brand,body.dir-rtl .nav-menu a,body.dir-rtl .topbar,body.dir-rtl .stat,body.dir-rtl .auth-topbar-v10,body.dir-rtl .public-nav,body.dir-rtl .public-brand,body.dir-rtl .public-nav-actions,body.dir-rtl .hero-actions,body.dir-rtl .check-row,body.dir-rtl .language-switch{flex-direction:row-reverse}body.dir-rtl .nav-menu a:hover,body.dir-rtl .nav-menu a.active{transform:translateX(-3px)}body.dir-rtl .page-title,body.dir-rtl .card,body.dir-rtl .field,body.dir-rtl .auth-card-head-v10,body.dir-rtl .auth-form label,body.dir-rtl .public-hero,body.dir-rtl .blog-article,body.dir-rtl .muted{text-align:right!important}body.dir-rtl th,body.dir-rtl td{text-align:right}body.dir-rtl .top-actions{flex-direction:row-reverse}body.dir-rtl .form-line{justify-content:flex-start}body.dir-rtl .floating-alert{left:auto;right:50%;transform:translateX(50%)}body.dir-rtl .toast{right:auto;left:18px}body.dir-rtl .public-hero{text-align:right!important;align-items:flex-end!important}body.dir-rtl .hero-lead{margin-left:0!important;margin-right:0!important}body.dir-rtl .captcha-box .g-recaptcha,body.dir-rtl .captcha-box-reset .g-recaptcha{transform-origin:right top!important}body.dir-rtl code,body.dir-rtl pre,body.dir-rtl .analytics-chart-v41,body.dir-rtl .pagination{direction:ltr;text-align:left}body.dir-rtl input[type=email],body.dir-rtl input[name=email],body.dir-rtl input[name=ga4_client_email],body.dir-rtl input[name=property_id],body.dir-rtl .url-box code{direction:ltr;text-align:left}.sidebar-backdrop{display:none}
@media(max-width:980px){body.dir-rtl .sidebar{left:auto!important;right:0!important;inset:0 auto 0 0!important;transform:translateX(104%)!important;border-radius:0 0 0 24px!important}body.dir-rtl .sidebar.open{transform:translateX(0)!important}body.dir-rtl .main-panel{margin-right:0!important;width:100%!important}body.dir-rtl .mobile-toggle{margin-left:0!important;margin-right:0!important}body.dir-rtl .topbar{flex-direction:row-reverse}.sidebar-tools{padding-bottom:8px}}
@media(max-width:640px){.language-switch-public .lang-copy,.language-switch-auth .lang-copy{display:none}.language-switch-public,.language-switch-auth{width:44px;height:44px;min-height:44px;padding:0;justify-content:center}.language-switch-public .lang-globe,.language-switch-auth .lang-globe{width:30px;height:30px;min-width:30px;border-radius:10px;font-size:11px}.public-nav-actions{grid-template-columns:44px 44px 1fr 1fr!important}.auth-top-actions .theme-switch{width:44px!important;height:44px!important}.sidebar-tools{padding-top:12px}.language-switch-sidebar .lang-copy small{display:none}body.dir-rtl .public-hero{align-items:flex-start!important}body.dir-rtl .toast{left:12px;right:12px;text-align:center}}

/* V47 - Mobile RTL sidebar/layout hard fix
   Fixes Arabic mobile layout where the sidebar was partially off-screen and the page content stayed compressed. */
@media (min-width: 981px){
  body.dir-rtl .app-shell{direction:rtl;}
  body.dir-rtl .sidebar{
    position:fixed!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:auto!important;
    inset:0 0 0 auto!important;
    width:290px!important;
    transform:none!important;
    border-radius:0!important;
    border-left:1px solid var(--border)!important;
    border-right:0!important;
  }
  body.dir-rtl .main-panel{
    margin-right:290px!important;
    margin-left:0!important;
    width:calc(100% - 290px)!important;
  }
}

@media (max-width: 980px){
  html[dir="rtl"], body.dir-rtl{overflow-x:hidden!important;}
  body.dir-rtl .app-shell{display:block!important;direction:rtl;overflow-x:hidden!important;}
  body.dir-rtl .main-panel{
    margin:0!important;
    margin-right:0!important;
    margin-left:0!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:16px!important;
    overflow-x:hidden!important;
  }
  body.dir-rtl .sidebar{
    position:fixed!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:auto!important;
    inset:0 0 0 auto!important;
    width:min(310px,84vw)!important;
    max-width:84vw!important;
    height:100dvh!important;
    border-radius:24px 0 0 24px!important;
    border-left:1px solid var(--border)!important;
    border-right:0!important;
    transform:translateX(110%)!important;
    transition:transform .22s ease!important;
    z-index:90!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    box-shadow:-24px 0 60px rgba(2,6,23,.28)!important;
  }
  body.dir-rtl .sidebar.open,
  body.dir-rtl.sidebar-open .sidebar{
    transform:translateX(0)!important;
  }
  body.dir-rtl .sidebar-backdrop{
    position:fixed!important;
    inset:0!important;
    z-index:80!important;
    background:rgba(2,6,23,.56)!important;
    backdrop-filter:blur(6px)!important;
  }
  body.dir-rtl .sidebar.open + .sidebar-backdrop,
  body.dir-rtl.sidebar-open .sidebar-backdrop{
    display:block!important;
  }
  body.dir-rtl .sidebar-close{
    display:grid!important;
    place-items:center!important;
    position:absolute!important;
    top:16px!important;
    left:16px!important;
    right:auto!important;
    z-index:3!important;
  }
  body.dir-rtl .brand{padding-left:54px!important;padding-right:0!important;}
  body.dir-rtl .topbar{
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    overflow:hidden!important;
  }
  body.dir-rtl .mobile-toggle{order:3!important;flex:0 0 auto!important;margin:0!important;}
  body.dir-rtl .page-title{order:2!important;flex:1 1 auto!important;min-width:0!important;text-align:right!important;}
  body.dir-rtl .top-actions{order:1!important;flex:0 0 auto!important;display:flex!important;flex-direction:row-reverse!important;gap:8px!important;}
  body.dir-rtl .page-title h1,
  body.dir-rtl .page-title .eyebrow{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  body.dir-rtl .grid,
  body.dir-rtl .grid-2,
  body.dir-rtl .grid-3{min-width:0!important;}
  body.dir-rtl .card,
  body.dir-rtl .stat,
  body.dir-rtl .glass-panel{max-width:100%!important;min-width:0!important;}
}

@media (max-width: 640px){
  body.dir-rtl .main-panel{padding:12px!important;}
  body.dir-rtl .topbar{min-height:64px!important;padding:10px!important;border-radius:18px!important;}
  body.dir-rtl .top-actions .logout-link{display:none!important;}
  body.dir-rtl .top-actions .theme-switch{width:44px!important;height:44px!important;min-width:44px!important;padding:0!important;}
  body.dir-rtl .top-actions .theme-switch b{display:none!important;}
  body.dir-rtl .sidebar{width:min(300px,86vw)!important;max-width:86vw!important;}
}

/* V48 RTL mobile polish: keep English layout untouched, fix Arabic mobile off-canvas UI */
body.dir-rtl .nav-menu a,
body.dir-rtl .nav-menu-v16 a{
  direction:rtl!important;
  flex-direction:row-reverse!important;
  justify-content:flex-end!important;
  text-align:right!important;
}
body.dir-rtl .nav-menu a b,
body.dir-rtl .nav-menu-v16 a b{
  flex:1 1 auto!important;
  text-align:right!important;
}
body.dir-rtl .nav-menu a span,
body.dir-rtl .nav-menu-v16 a span{
  flex:0 0 auto!important;
}
body.dir-rtl .nav-group-label{
  text-align:right!important;
}
body.dir-rtl .nav-menu a:hover,
body.dir-rtl .nav-menu a.active{
  transform:none!important;
}
body.dir-rtl .sidebar,
body.dir-rtl .nav-menu,
body.dir-rtl .nav-menu-v16{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
body.dir-rtl .sidebar::-webkit-scrollbar,
body.dir-rtl .nav-menu::-webkit-scrollbar,
body.dir-rtl .nav-menu-v16::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
}

@media(max-width:980px){
  body.dir-rtl .topbar{
    direction:rtl!important;
    flex-direction:row-reverse!important;
    justify-content:space-between!important;
  }
  body.dir-rtl .mobile-toggle{
    order:0!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  body.dir-rtl .page-title{
    order:0!important;
    text-align:right!important;
  }
  body.dir-rtl .top-actions{
    order:0!important;
    flex-direction:row-reverse!important;
  }
  body.dir-rtl .sidebar{
    right:0!important;
    left:auto!important;
    inset:0 0 0 auto!important;
    transform:translateX(104%)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    border-radius:24px 0 0 24px!important;
    border-right:0!important;
    border-left:1px solid var(--border)!important;
    box-shadow:-24px 0 60px rgba(2,6,23,.30)!important;
  }
  body.dir-rtl .sidebar.open,
  body.dir-rtl.sidebar-open .sidebar{
    transform:translateX(0)!important;
  }
  body.dir-rtl .sidebar .brand,
  body.dir-rtl .brand-v16{
    direction:rtl!important;
    flex-direction:row-reverse!important;
    justify-content:flex-start!important;
    text-align:right!important;
    padding-left:54px!important;
    padding-right:0!important;
  }
  body.dir-rtl .sidebar-close{
    left:16px!important;
    right:auto!important;
  }
  body.dir-rtl .sidebar-tools{
    direction:rtl!important;
  }
  body.dir-rtl .language-switch-sidebar{
    direction:rtl!important;
    flex-direction:row-reverse!important;
    justify-content:flex-end!important;
  }
}

@media(max-width:640px){
  body.dir-rtl .topbar{
    grid-template-columns:auto minmax(0,1fr) auto!important;
  }
  body.dir-rtl .page-title h1,
  body.dir-rtl .page-title .eyebrow{
    text-align:right!important;
  }
}

/* V49 - Final RTL mobile layout correction
   Arabic must mirror the UI: menu button on the right, actions on the left,
   cards text aligned right, card icons mirrored, and sidebar items icon-right/text-left.
   English layout remains untouched because all rules are scoped to body.dir-rtl. */
body.dir-rtl{
  direction:rtl!important;
  text-align:right!important;
}

body.dir-rtl .brand,
body.dir-rtl .nav-menu a,
body.dir-rtl .nav-menu-v16 a,
body.dir-rtl .language-switch,
body.dir-rtl .language-switch-sidebar{
  direction:rtl!important;
  flex-direction:row!important;
  justify-content:flex-start!important;
  text-align:right!important;
}

body.dir-rtl .nav-menu a b,
body.dir-rtl .nav-menu-v16 a b{
  text-align:right!important;
  flex:1 1 auto!important;
}

body.dir-rtl .nav-menu a .nav-icon,
body.dir-rtl .nav-menu-v16 a .nav-icon,
body.dir-rtl .nav-menu a span,
body.dir-rtl .nav-menu-v16 a span{
  flex:0 0 auto!important;
}

body.dir-rtl .nav-group-label,
body.dir-rtl .brand div,
body.dir-rtl .brand strong,
body.dir-rtl .brand span{
  text-align:right!important;
}

body.dir-rtl .dashboard-v16,
body.dir-rtl .dashboard-hero-v16,
body.dir-rtl .metrics-v16,
body.dir-rtl .card,
body.dir-rtl .stat-v16,
body.dir-rtl .stat-v16 div,
body.dir-rtl .stat-v16 p,
body.dir-rtl .stat-v16 strong,
body.dir-rtl .stat-v16 em{
  direction:rtl!important;
  text-align:right!important;
}

body.dir-rtl .dashboard-hero-v16{
  flex-direction:row!important;
}
body.dir-rtl .dashboard-hero-v16:after{
  right:auto!important;
  left:-72px!important;
}

body.dir-rtl .hero-badge-v16{
  flex-direction:row-reverse!important;
}

body.dir-rtl .stat-v16{
  flex-direction:row-reverse!important;
  justify-content:space-between!important;
}
body.dir-rtl .stat-v16:after{
  right:auto!important;
  left:-32px!important;
}
body.dir-rtl .stat-v16>span{
  margin-right:0!important;
  margin-left:0!important;
}

body.dir-rtl .footer{
  text-align:center!important;
}

@media (max-width:980px){
  body.dir-rtl .topbar{
    direction:rtl!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
  }
  body.dir-rtl .mobile-toggle{
    order:1!important;
    flex:0 0 auto!important;
    margin:0!important;
  }
  body.dir-rtl .page-title{
    order:2!important;
    flex:1 1 auto!important;
    min-width:0!important;
    text-align:right!important;
    align-items:flex-start!important;
  }
  body.dir-rtl .top-actions{
    order:3!important;
    flex:0 0 auto!important;
    display:flex!important;
    flex-direction:row!important;
    justify-content:flex-end!important;
    gap:8px!important;
  }
  body.dir-rtl .page-title h1,
  body.dir-rtl .page-title .eyebrow{
    text-align:right!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  body.dir-rtl .sidebar{
    direction:rtl!important;
    right:0!important;
    left:auto!important;
    inset:0 0 0 auto!important;
    transform:translateX(104%)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
  }
  body.dir-rtl .sidebar::-webkit-scrollbar{display:none!important;width:0!important;height:0!important;}
  body.dir-rtl .sidebar.open,
  body.dir-rtl.sidebar-open .sidebar{
    transform:translateX(0)!important;
  }
  body.dir-rtl .sidebar .brand,
  body.dir-rtl .brand-v16{
    direction:rtl!important;
    flex-direction:row!important;
    justify-content:flex-start!important;
    text-align:right!important;
    padding-left:54px!important;
    padding-right:0!important;
  }
}

@media (max-width:640px){
  body.dir-rtl .topbar{
    min-height:66px!important;
    padding:10px!important;
  }
  body.dir-rtl .mobile-toggle{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
  }
  body.dir-rtl .top-actions .logout-link{
    display:inline-flex!important;
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    padding:0!important;
    font-size:0!important;
    overflow:hidden!important;
  }
  body.dir-rtl .top-actions .logout-link::before{
    content:"↪";
    font-size:20px!important;
    line-height:1!important;
  }
  body.dir-rtl .top-actions .theme-switch{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    padding:0!important;
  }
  body.dir-rtl .top-actions .theme-switch b{display:none!important;}
  body.dir-rtl .dashboard-hero-v16{
    align-items:flex-start!important;
    text-align:right!important;
  }
  body.dir-rtl .dashboard-hero-v16 h2{
    text-align:right!important;
  }
}

/* V50 - RTL Dashboard cards + polished mobile logout icon
   Scoped to Arabic/RTL only; English/LTR remains untouched. */
body.dir-rtl .metrics-v16 .stat-v16{
  direction:rtl!important;
  display:flex!important;
  flex-direction:row!important;
  justify-content:space-between!important;
  align-items:flex-start!important;
  text-align:right!important;
}
body.dir-rtl .metrics-v16 .stat-v16 > div{
  order:1!important;
  flex:1 1 auto!important;
  min-width:0!important;
  text-align:right!important;
  direction:rtl!important;
  display:block!important;
}
body.dir-rtl .metrics-v16 .stat-v16 > span{
  order:2!important;
  margin-right:14px!important;
  margin-left:0!important;
  flex:0 0 46px!important;
}
body.dir-rtl .metrics-v16 .stat-v16 p,
body.dir-rtl .metrics-v16 .stat-v16 strong,
body.dir-rtl .metrics-v16 .stat-v16 em{
  text-align:right!important;
  direction:rtl!important;
}
body.dir-rtl .metrics-v16 .stat-v16:after{
  right:auto!important;
  left:-32px!important;
}
@media(max-width:640px){
  body.dir-rtl .metrics-v16 .stat-v16{
    flex-direction:row!important;
    text-align:right!important;
  }
  body.dir-rtl .metrics-v16 .stat-v16 > span{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    margin-right:14px!important;
    margin-left:0!important;
  }
  body.dir-rtl .top-actions .logout-link{
    position:relative!important;
    display:inline-grid!important;
    place-items:center!important;
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    padding:0!important;
    border-radius:14px!important;
    font-size:0!important;
    line-height:1!important;
    background:rgba(239,68,68,.12)!important;
    color:var(--danger)!important;
    border:1px solid rgba(239,68,68,.24)!important;
  }
  body.dir-rtl .top-actions .logout-link::before{
    content:""!important;
    width:20px!important;
    height:20px!important;
    display:block!important;
    background:currentColor!important;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='M16 17l5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E") center / contain no-repeat!important;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='M16 17l5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E") center / contain no-repeat!important;
  }
  body.dir-rtl .top-actions .logout-link:hover{
    transform:translateY(-1px)!important;
    background:rgba(239,68,68,.18)!important;
  }
}

/* V51 - Unified premium logout button + polished sidebar language switch */
.logout-link{position:relative!important;width:48px!important;height:48px!important;min-width:48px!important;padding:0!important;display:inline-grid!important;place-items:center!important;border-radius:16px!important;font-size:0!important;line-height:1!important;overflow:hidden!important;color:#f87171!important;background:linear-gradient(135deg,rgba(239,68,68,.16),rgba(239,68,68,.07))!important;border:1px solid rgba(248,113,113,.28)!important;box-shadow:0 12px 28px rgba(239,68,68,.10),inset 0 1px 0 rgba(255,255,255,.05)!important;transform:none!important}.logout-link span{display:none!important}.logout-link:before{content:""!important;width:22px!important;height:22px!important;display:block!important;margin:0!important;background:currentColor!important;transform:none!important;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 3a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0V5H6v14h3v-1a1 1 0 1 1 2 0v2a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5Zm6.7 5.3 3 3a1 1 0 0 1 0 1.4l-3 3a1 1 0 1 1-1.4-1.4L16.6 13H10a1 1 0 1 1 0-2h6.6l-1.3-1.3a1 1 0 1 1 1.4-1.4Z'/%3E%3C/svg%3E") center/contain no-repeat!important;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 3a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0V5H6v14h3v-1a1 1 0 1 1 2 0v2a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5Zm6.7 5.3 3 3a1 1 0 0 1 0 1.4l-3 3a1 1 0 1 1-1.4-1.4L16.6 13H10a1 1 0 1 1 0-2h6.6l-1.3-1.3a1 1 0 1 1 1.4-1.4Z'/%3E%3C/svg%3E") center/contain no-repeat!important}.logout-link:hover{background:linear-gradient(135deg,rgba(239,68,68,.24),rgba(239,68,68,.10))!important;border-color:rgba(248,113,113,.42)!important;transform:translateY(-1px)!important}body.dir-rtl .logout-link:before{transform:scaleX(-1)!important}
.sidebar-tools{margin-top:auto!important;padding-top:14px!important;border-top:1px solid var(--border)!important}.language-switch-sidebar{width:100%!important;min-height:58px!important;padding:8px 10px!important;border-radius:18px!important;display:flex!important;align-items:center!important;gap:11px!important;background:linear-gradient(135deg,rgba(20,184,166,.14),rgba(124,58,237,.10))!important;border:1px solid var(--border)!important;color:var(--text)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;overflow:hidden!important}.language-switch-sidebar:hover{transform:translateY(-1px)!important;background:linear-gradient(135deg,rgba(20,184,166,.22),rgba(124,58,237,.14))!important;box-shadow:var(--glow)!important}.language-switch-sidebar .lang-globe{width:40px!important;height:40px!important;min-width:40px!important;border-radius:14px!important;display:grid!important;place-items:center!important;color:#fff!important;font-size:13px!important;font-weight:950!important;letter-spacing:-.02em!important;background:linear-gradient(135deg,var(--primary),var(--accent))!important;box-shadow:0 12px 26px rgba(20,184,166,.22)!important}.language-switch-sidebar .lang-copy{display:block!important;flex:1 1 auto!important;min-width:0!important;text-align:left!important;line-height:1.2!important}.language-switch-sidebar .lang-copy b{display:block!important;color:var(--text)!important;font-size:14px!important;font-weight:950!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.language-switch-sidebar .lang-copy small{display:block!important;margin-top:3px!important;color:var(--muted)!important;font-size:11px!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}body.dir-rtl .language-switch-sidebar{direction:rtl!important;flex-direction:row!important;text-align:right!important}body.dir-rtl .language-switch-sidebar .lang-copy{text-align:right!important}
@media(max-width:640px){.logout-link,body.dir-rtl .top-actions .logout-link{width:48px!important;height:48px!important;min-width:48px!important;border-radius:16px!important}.logout-link:before,body.dir-rtl .top-actions .logout-link:before{width:22px!important;height:22px!important;margin:0!important}.language-switch-sidebar{min-height:58px!important;padding:8px 10px!important}}

/* V52 - Pixel-perfect centered logout icon + centered mobile auth language toggle
   Safe overrides: visual controls only; no English layout changes. */
.logout-link,
body.dir-rtl .logout-link,
body.dir-rtl .top-actions .logout-link{
  position:relative!important;
  display:inline-grid!important;
  place-items:center!important;
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  padding:0!important;
  border-radius:16px!important;
  font-size:0!important;
  line-height:0!important;
  text-indent:-9999px!important;
  overflow:hidden!important;
  color:#f87171!important;
  background:linear-gradient(135deg,rgba(239,68,68,.17),rgba(239,68,68,.08))!important;
  border:1px solid rgba(248,113,113,.30)!important;
  box-shadow:0 12px 28px rgba(239,68,68,.10),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
.logout-link:before,
body.dir-rtl .logout-link:before,
body.dir-rtl .top-actions .logout-link:before{
  content:none!important;
  display:none!important;
}
.logout-link:after,
body.dir-rtl .logout-link:after,
body.dir-rtl .top-actions .logout-link:after{
  content:""!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  width:22px!important;
  height:22px!important;
  margin:0!important;
  transform:translate(-50%,-50%)!important;
  display:block!important;
  background:currentColor!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13 3a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0V3Zm4.83 2.17a1 1 0 0 0-1.18 1.62 7 7 0 1 1-9.3 0 1 1 0 1 0-1.18-1.62 9 9 0 1 0 11.66 0Z'/%3E%3C/svg%3E") center/contain no-repeat!important;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13 3a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0V3Zm4.83 2.17a1 1 0 0 0-1.18 1.62 7 7 0 1 1-9.3 0 1 1 0 1 0-1.18-1.62 9 9 0 1 0 11.66 0Z'/%3E%3C/svg%3E") center/contain no-repeat!important;
}
.logout-link:hover,
body.dir-rtl .logout-link:hover{
  transform:translateY(-1px)!important;
  background:linear-gradient(135deg,rgba(239,68,68,.24),rgba(239,68,68,.11))!important;
  border-color:rgba(248,113,113,.44)!important;
}
@media(max-width:640px){
  .logout-link,
  body.dir-rtl .logout-link,
  body.dir-rtl .top-actions .logout-link{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    border-radius:14px!important;
  }
  .logout-link:after,
  body.dir-rtl .logout-link:after,
  body.dir-rtl .top-actions .logout-link:after{
    width:20px!important;
    height:20px!important;
  }
  .auth-top-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    flex:0 0 auto!important;
  }
  .language-switch-auth{
    position:relative!important;
    display:inline-grid!important;
    place-items:center!important;
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
    flex:0 0 44px!important;
    padding:0!important;
    border-radius:14px!important;
    direction:ltr!important;
    text-align:center!important;
    justify-content:center!important;
    align-content:center!important;
    gap:0!important;
  }
  body.dir-rtl .language-switch-auth{
    flex-direction:initial!important;
    margin:0!important;
    transform:none!important;
  }
  .language-switch-auth .lang-copy{display:none!important;}
  .language-switch-auth .lang-globe{
    position:absolute!important;
    left:50%!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    margin:0!important;
    border-radius:10px!important;
    display:grid!important;
    place-items:center!important;
    line-height:1!important;
    text-align:center!important;
  }
}

/* V55 Private Referral System */
.table-responsive{width:100%;overflow:auto;border-radius:18px}.modern-table{width:100%;border-collapse:separate;border-spacing:0 10px}.modern-table th{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);text-align:left;padding:0 12px}.modern-table td{background:rgba(148,163,184,.08);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:14px 12px;color:var(--text)}.modern-table td:first-child{border-left:1px solid var(--border);border-radius:16px 0 0 16px}.modern-table td:last-child{border-right:1px solid var(--border);border-radius:0 16px 16px 0}.small-text{font-size:12px}.copy-code{display:inline-block;max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgba(0,103,79,.12);color:var(--primary);border:1px solid rgba(0,103,79,.20);border-radius:12px;padding:8px 10px}.inline-form{display:inline}.mini-action{height:38px;border:0;border-radius:12px;background:var(--primary);color:#fff;font-weight:900;padding:0 14px;cursor:pointer}.mini-action.danger{background:rgba(239,68,68,.16);color:#ef4444;border:1px solid rgba(239,68,68,.25)}.status-pill.active{background:rgba(34,197,94,.14);color:var(--success)}.status-pill.inactive{background:rgba(148,163,184,.14);color:var(--muted)}.referral-link-card{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.referral-link-card code{display:block;margin-top:8px;font-size:15px;color:var(--text);background:rgba(148,163,184,.10);border:1px solid var(--border);border-radius:16px;padding:13px 14px;max-width:100%;overflow:auto}.compact-action{width:auto!important;min-width:130px;padding-inline:18px!important}.referral-hero p{margin:8px 0 0;max-width:680px}.referral-metrics .stat strong{font-size:34px}.dir-rtl .modern-table th{text-align:right}.dir-rtl .modern-table td:first-child{border-left:0;border-right:1px solid var(--border);border-radius:0 16px 16px 0}.dir-rtl .modern-table td:last-child{border-right:0;border-left:1px solid var(--border);border-radius:16px 0 0 16px}@media(max-width:760px){.referral-link-card{align-items:stretch}.compact-action{width:100%!important}.copy-code{max-width:220px}.modern-table{min-width:760px}}

/* V56 Referral Management Scaling + Anti-fraud UI */
.referral-admin-summary{margin-top:18px;margin-bottom:18px}.referral-toolbar-card{margin-bottom:18px}.referral-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) minmax(180px,260px) auto auto;gap:14px;align-items:end}.referral-search-field,.referral-sort-field{display:flex;flex-direction:column;gap:8px}.referral-search-field span,.referral-sort-field span{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.referral-search-field input,.referral-sort-field select{width:100%;height:46px;border:1px solid var(--border);border-radius:14px;background:rgba(15,23,42,.40);color:var(--text);padding:0 14px;outline:none}.referral-search-field input:focus,.referral-sort-field select:focus{border-color:rgba(16,185,129,.45);box-shadow:0 0 0 4px rgba(16,185,129,.10)}.muted-action{display:inline-grid;place-items:center;text-decoration:none;background:rgba(148,163,184,.12)!important;color:var(--text)!important;border:1px solid var(--border)!important}.top-referrals-card{margin-bottom:18px}.top-referrals-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.top-referral-item{padding:14px;border:1px solid var(--border);border-radius:16px;background:rgba(148,163,184,.08);display:flex;flex-direction:column;gap:6px}.top-referral-item strong{color:var(--text);font-size:14px}.top-referral-item span{color:var(--muted);font-size:12px}.pagination-v56{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid var(--border)}.page-btn{height:40px;padding:0 16px;border-radius:13px;background:rgba(16,185,129,.13);border:1px solid rgba(16,185,129,.24);color:var(--primary);font-weight:900;text-decoration:none;display:inline-grid;place-items:center}.page-btn.disabled{opacity:.45;pointer-events:none}.page-info{color:var(--muted);font-weight:800}.dir-rtl .referral-toolbar{direction:rtl}.dir-rtl .referral-search-field input,.dir-rtl .referral-sort-field select{text-align:right}.dir-rtl .pagination-v56{direction:rtl}@media(max-width:980px){.referral-toolbar{grid-template-columns:1fr 1fr}.top-referrals-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.referral-toolbar{grid-template-columns:1fr}.top-referrals-grid{grid-template-columns:1fr}.pagination-v56{flex-direction:column}.page-btn{width:100%}}

/* V58 Notifications Center */
.notification-bell{position:relative;width:46px;height:46px;min-width:46px;border-radius:15px;display:grid;place-items:center;text-decoration:none;color:var(--text);background:rgba(148,163,184,.10);border:1px solid var(--border);box-shadow:inset 0 1px 0 rgba(255,255,255,.05);transition:.18s ease}.notification-bell:hover{transform:translateY(-1px);border-color:rgba(16,185,129,.32);background:rgba(16,185,129,.10)}.notification-bell-icon{width:21px;height:21px;background:currentColor;display:block;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 22a2.4 2.4 0 0 0 2.3-2H9.7A2.4 2.4 0 0 0 12 22Zm7-6v-5a7 7 0 0 0-5-6.7V3a2 2 0 0 0-4 0v1.3A7 7 0 0 0 5 11v5l-2 2v1h18v-1l-2-2Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 22a2.4 2.4 0 0 0 2.3-2H9.7A2.4 2.4 0 0 0 12 22Zm7-6v-5a7 7 0 0 0-5-6.7V3a2 2 0 0 0-4 0v1.3A7 7 0 0 0 5 11v5l-2 2v1h18v-1l-2-2Z'/%3E%3C/svg%3E") center/contain no-repeat}.notification-bell em{position:absolute;right:-5px;top:-7px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;font-style:normal;font-weight:900;display:grid;place-items:center;border:2px solid var(--panel)}body.dir-rtl .notification-bell em{right:auto;left:-5px}.notification-hero{align-items:center}.notification-stats{margin:18px 0}.notification-list{display:flex;flex-direction:column;gap:12px;margin-top:14px}.notification-item{display:flex;gap:14px;padding:16px;border:1px solid var(--border);border-radius:18px;background:rgba(148,163,184,.07);transition:.18s ease}.notification-item.unread{background:linear-gradient(135deg,rgba(16,185,129,.14),rgba(59,130,246,.07));border-color:rgba(16,185,129,.26)}.notification-icon{width:44px;height:44px;min-width:44px;border-radius:15px;display:grid;place-items:center;background:rgba(16,185,129,.13);border:1px solid rgba(16,185,129,.23)}.notification-icon.record{background:rgba(34,197,94,.13);border-color:rgba(34,197,94,.24)}.notification-icon.admin{background:rgba(59,130,246,.13);border-color:rgba(59,130,246,.24)}.notification-body{flex:1;min-width:0}.notification-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.notification-head strong{font-size:15px;color:var(--text)}.notification-head span{font-size:12px;color:var(--muted);white-space:nowrap}.notification-body p{margin:7px 0 0;color:var(--muted);line-height:1.6}.notification-actions-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.notification-admin-grid{align-items:start}.selected-users-field{display:none}.target-selected-users .selected-users-field{display:flex!important}.compact-search{grid-template-columns:1fr auto!important}.empty-state{padding:18px;border:1px dashed var(--border);border-radius:16px;text-align:center}.dir-rtl .notification-item{flex-direction:row-reverse;text-align:right}.dir-rtl .notification-head{flex-direction:row-reverse}.dir-rtl .notification-actions-row{justify-content:flex-start;direction:rtl}@media(max-width:760px){.notification-bell{width:44px;height:44px;min-width:44px;border-radius:14px}.notification-item{padding:14px}.notification-head{flex-direction:column!important;gap:4px}.notification-icon{width:40px;height:40px;min-width:40px}.notification-admin-grid{grid-template-columns:1fr!important}.compact-search{grid-template-columns:1fr!important}}

/* V59 - Notifications UI polish + compact top controls */
.top-actions .theme-switch{width:48px!important;height:48px!important;min-width:48px!important;padding:0!important;border-radius:16px!important;display:inline-grid!important;place-items:center!important;background:rgba(148,163,184,.10)!important;border:1px solid var(--border)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;overflow:hidden!important}
.top-actions .theme-switch b{display:none!important}.top-actions .theme-switch span{font-size:24px!important;line-height:1!important;display:block!important;transform:translateY(-1px)!important}.top-actions .theme-switch:hover{transform:translateY(-1px)!important;background:rgba(16,185,129,.10)!important;border-color:rgba(16,185,129,.28)!important}
.notification-stats.stats-grid,.stats-grid.notification-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;margin:18px 0 22px!important}.notification-stats .stat{position:relative!important;min-height:112px!important;padding:22px!important;border-radius:24px!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;overflow:hidden!important;background:linear-gradient(135deg,rgba(148,163,184,.12),rgba(16,185,129,.055))!important;border:1px solid var(--border)!important;box-shadow:var(--shadow)!important}.notification-stats .stat:before{content:"";position:absolute;inset:auto -30px -34px auto;width:106px;height:106px;border-radius:999px;background:rgba(16,185,129,.08);pointer-events:none}.notification-stats .stat span{position:relative;z-index:1;color:var(--muted)!important;font-size:13px!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:.08em!important;line-height:1.35!important;max-width:70%}.notification-stats .stat strong{position:relative;z-index:1;color:var(--text)!important;font-size:34px!important;font-weight:950!important;line-height:1!important;white-space:nowrap!important}body.dir-rtl .notification-stats .stat{direction:rtl!important;text-align:right!important}body.dir-rtl .notification-stats .stat:before{inset:auto auto -34px -30px!important}.notification-stats .stat:nth-child(2):last-child{grid-column:auto!important}
.notification-create-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:start!important}.notification-field{display:flex!important;flex-direction:column!important;gap:8px!important;font-weight:900!important;color:var(--text)!important}.notification-field select,.notification-field input,.notification-field textarea{width:100%!important;min-height:48px!important;border:1px solid var(--border)!important;border-radius:16px!important;background:rgba(255,255,255,.58)!important;color:var(--text)!important;padding:13px 14px!important;outline:none!important;font:inherit!important;font-weight:700!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease!important}[data-theme=dark] .notification-field select,[data-theme=dark] .notification-field input,[data-theme=dark] .notification-field textarea{background:rgba(15,23,42,.72)!important}.notification-field textarea{resize:vertical!important;min-height:132px!important;line-height:1.55!important}.notification-field select:focus,.notification-field input:focus,.notification-field textarea:focus{border-color:rgba(16,185,129,.48)!important;box-shadow:0 0 0 4px rgba(16,185,129,.12)!important;background:rgba(16,185,129,.055)!important}.notification-message-field{grid-column:1/-1!important}.notification-submit{grid-column:1/-1!important;margin-top:4px!important;min-height:50px!important;border-radius:16px!important}.notification-admin-grid .card{overflow:hidden!important}body.dir-rtl .notification-create-form{direction:rtl!important}body.dir-rtl .notification-field{text-align:right!important}body.dir-rtl .notification-field select,body.dir-rtl .notification-field input,body.dir-rtl .notification-field textarea{text-align:right!important}@media(max-width:760px){.notification-stats.stats-grid,.stats-grid.notification-stats{grid-template-columns:1fr!important}.notification-create-form{grid-template-columns:1fr!important}}@media(max-width:640px){.top-actions .theme-switch{width:44px!important;height:44px!important;min-width:44px!important;border-radius:14px!important}.notification-stats .stat{min-height:96px!important;padding:18px!important;border-radius:20px!important}.notification-stats .stat strong{font-size:30px!important}}

/* V60 live notifications */
.notification-badge.is-hidden{display:none!important}.notification-bell.has-unread{border-color:rgba(16,185,129,.34);background:rgba(16,185,129,.12)}.notification-pulse{animation:notificationPulse .9s ease both}@keyframes notificationPulse{0%{transform:scale(1)}35%{transform:scale(1.12);box-shadow:0 0 0 8px rgba(16,185,129,.12)}100%{transform:scale(1)}}.live-notification-toast{position:fixed;right:22px;bottom:22px;z-index:9999;width:min(360px,calc(100vw - 28px));display:flex;align-items:flex-start;gap:12px;padding:14px 15px;border-radius:18px;text-decoration:none;color:var(--text);background:rgba(15,23,42,.94);border:1px solid rgba(16,185,129,.26);box-shadow:0 22px 70px rgba(0,0,0,.38);backdrop-filter:blur(14px);opacity:0;transform:translateY(12px) scale(.98);transition:.22s ease}.live-notification-toast.show{opacity:1;transform:translateY(0) scale(1)}.live-notification-toast-icon{width:42px;height:42px;min-width:42px;border-radius:14px;display:grid;place-items:center;background:rgba(16,185,129,.16);border:1px solid rgba(16,185,129,.24)}.live-notification-toast strong{display:block;font-size:14px;font-weight:950;margin-bottom:4px}.live-notification-toast p{margin:0;color:var(--muted);font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}body.dir-rtl .live-notification-toast{right:auto;left:22px;direction:rtl;text-align:right}@media(max-width:640px){.live-notification-toast{right:14px;bottom:14px;width:calc(100vw - 28px)}body.dir-rtl .live-notification-toast{left:14px}}


/* V61 notification fixes: dark select options, selected-user lock, retention-safe UI */
.notification-field select option{background:#ffffff!important;color:#111827!important;font-weight:800!important}
[data-theme=dark] .notification-field select option{background:#0f172a!important;color:#e5eefb!important}
.notification-field textarea:disabled,.notification-field input:disabled,.notification-field select:disabled{opacity:.58!important;cursor:not-allowed!important;background:rgba(148,163,184,.10)!important;border-color:rgba(148,163,184,.18)!important;color:var(--muted)!important}
.notification-field textarea:disabled::placeholder{color:rgba(148,163,184,.82)!important}
body:not(.target-selected-users) .selected-users-field{display:flex!important;opacity:.58!important}
body:not(.target-selected-users) .selected-users-field textarea{pointer-events:none!important}
body.target-selected-users .selected-users-field{opacity:1!important}
.live-notification-toast[href$="vtable.php"],.live-notification-toast[href*="vtable.php"]{cursor:pointer}

/* V63 CSRF-safe logout form wrapper */
.logout-form{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0!important;line-height:1!important}.logout-form .logout-link{appearance:none!important;-webkit-appearance:none!important}

/* V65 UX polish: loading indicators, empty states, and custom confirmation dialog */
.btn.is-loading,.primary-action.is-loading,.mini-action.is-loading,.logout-link.is-loading,.google-btn.is-loading{position:relative!important;pointer-events:none!important;opacity:.82!important;color:transparent!important;min-width:44px!important}
.btn.is-loading:after,.primary-action.is-loading:after,.mini-action.is-loading:after,.logout-link.is-loading:after,.google-btn.is-loading:after{content:"";position:absolute;width:18px;height:18px;border-radius:999px;border:2px solid rgba(148,163,184,.55);border-top-color:currentColor;color:#fff;animation:grintaSpin .75s linear infinite;left:50%;top:50%;margin-left:-9px;margin-top:-9px}
.btn:not(.btn-primary):not(.primary-action).is-loading:after,.mini-action.is-loading:after,.logout-link.is-loading:after{border-color:rgba(148,163,184,.45);border-top-color:var(--primary)}
@keyframes grintaSpin{to{transform:rotate(360deg)}}
.grinta-confirm-backdrop{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:18px;background:rgba(2,6,23,.58);backdrop-filter:blur(10px);opacity:0;pointer-events:none;transition:opacity .18s ease}
.grinta-confirm-backdrop.show{opacity:1;pointer-events:auto}.grinta-confirm-dialog{width:min(430px,100%);border-radius:28px;padding:22px;background:var(--surface-solid);border:1px solid var(--border);box-shadow:0 34px 100px rgba(0,0,0,.36);transform:translateY(10px) scale(.98);transition:transform .18s ease}.grinta-confirm-backdrop.show .grinta-confirm-dialog{transform:translateY(0) scale(1)}[data-theme=dark] .grinta-confirm-dialog{background:#0b1628}.grinta-confirm-icon{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;margin-bottom:14px;background:rgba(239,68,68,.12);color:var(--danger);font-weight:950;font-size:24px}.grinta-confirm-dialog h3{margin:0 0 8px;font-size:22px;letter-spacing:-.04em}.grinta-confirm-dialog p{margin:0;color:var(--muted);line-height:1.65}.grinta-confirm-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:20px}.grinta-confirm-actions .btn{min-width:108px}.dir-rtl .grinta-confirm-dialog{direction:rtl;text-align:right}.dir-rtl .grinta-confirm-actions{justify-content:flex-start}
.empty-state{display:grid!important;place-items:center!important;gap:8px!important;padding:24px 18px!important;border:1px dashed var(--border)!important;border-radius:20px!important;text-align:center!important;background:linear-gradient(135deg,rgba(148,163,184,.08),rgba(20,184,166,.035))!important;color:var(--muted)!important;font-weight:800!important}.empty-state:before{content:"";width:42px;height:42px;border-radius:16px;background:rgba(148,163,184,.14);display:block;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V5Zm4 3v2h8V8H8Zm0 4v2h8v-2H8Zm0 4v2h5v-2H8Z'/%3E%3C/svg%3E") center/24px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V5Zm4 3v2h8V8H8Zm0 4v2h8v-2H8Zm0 4v2h5v-2H8Z'/%3E%3C/svg%3E") center/24px no-repeat;background-color:var(--primary)}
tr.empty-table-row td{padding:22px!important;background:transparent!important}.table-empty-box{display:grid;place-items:center;gap:7px;padding:22px 16px;border:1px dashed var(--border);border-radius:18px;background:rgba(148,163,184,.07);color:var(--muted);font-weight:850}.table-empty-box strong{color:var(--text)}
@media(max-width:640px){.grinta-confirm-dialog{border-radius:24px;padding:20px}.grinta-confirm-actions{display:grid;grid-template-columns:1fr}.grinta-confirm-actions .btn{width:100%}}

/* V67 Backup Tool */
.backup-hero{margin-bottom:18px}.backup-stats{margin-bottom:18px}.backup-stats .stat strong{font-size:22px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.backup-grid{align-items:stretch}.backup-export-card,.backup-safety-card{display:flex;flex-direction:column;gap:14px}.backup-export-card form{margin-top:auto}.backup-download-btn{max-width:280px}.backup-checklist{display:grid;gap:12px;margin:0;padding:0;list-style:none}.backup-checklist li{position:relative;padding:13px 14px 13px 42px;border:1px solid var(--border);border-radius:16px;background:rgba(148,163,184,.08);color:var(--text);font-weight:750}.backup-checklist li:before{content:"✓";position:absolute;left:14px;top:50%;transform:translateY(-50%);width:20px;height:20px;border-radius:999px;display:grid;place-items:center;background:rgba(34,197,94,.16);color:var(--success);font-weight:900}.backup-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.backup-detail-grid div{padding:16px;border:1px solid var(--border);border-radius:18px;background:rgba(148,163,184,.08)}.backup-detail-grid strong{display:block;font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:6px}.backup-detail-grid span{font-size:18px;font-weight:900;color:var(--text)}body.dir-rtl .backup-checklist li{padding:13px 42px 13px 14px}body.dir-rtl .backup-checklist li:before{left:auto;right:14px}@media(max-width:760px){.backup-detail-grid{grid-template-columns:1fr 1fr}.backup-download-btn{max-width:none;width:100%}.backup-stats .stat strong{font-size:18px}}@media(max-width:480px){.backup-detail-grid{grid-template-columns:1fr}}

/* V68 Database Backup layout fix */
.backup-stats-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  margin:18px 0 22px!important;
}
.backup-stat-card{
  position:relative!important;
  min-height:112px!important;
  padding:22px!important;
  border-radius:24px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  align-items:flex-start!important;
  overflow:hidden!important;
  background:linear-gradient(135deg,rgba(148,163,184,.12),rgba(16,185,129,.055))!important;
  border:1px solid var(--border)!important;
  box-shadow:var(--shadow)!important;
}
.backup-stat-card:before{
  content:"";
  position:absolute;
  inset:auto -28px -36px auto;
  width:108px;
  height:108px;
  border-radius:999px;
  background:rgba(16,185,129,.08);
  pointer-events:none;
}
.backup-stat-card span{
  position:relative;
  z-index:1;
  color:var(--muted)!important;
  font-size:12px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.10em!important;
  line-height:1.35!important;
}
.backup-stat-card strong{
  position:relative;
  z-index:1;
  display:block!important;
  width:100%!important;
  color:var(--text)!important;
  font-size:28px!important;
  font-weight:950!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  text-align:left!important;
}
body.dir-rtl .backup-stat-card{
  direction:rtl!important;
  text-align:right!important;
  align-items:flex-end!important;
}
body.dir-rtl .backup-stat-card:before{inset:auto auto -36px -28px!important;}
body.dir-rtl .backup-stat-card strong{text-align:right!important;}
@media(max-width:900px){
  .backup-stats-grid{grid-template-columns:1fr!important;}
  .backup-stat-card{min-height:96px!important;padding:18px!important;}
  .backup-stat-card strong{font-size:24px!important;}
}

/* V73 public trust and policy pages */
.public-landing-rich{display:block!important;min-height:100vh!important;padding-bottom:28px!important}.public-content-band{width:min(1180px,calc(100% - 44px));margin:18px auto 0;padding:30px;border:1px solid var(--border);border-radius:24px;background:var(--surface);box-shadow:var(--shadow)}.public-section-head{max-width:780px;margin-bottom:20px}.public-section-head h2,.public-two-column h2{margin:8px 0 10px;color:var(--text);font-size:clamp(28px,4vw,46px);line-height:1.08;letter-spacing:-.04em}.public-section-head p,.public-two-column p{color:var(--muted);line-height:1.75;font-size:16px}.public-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.public-info-grid article,.public-link-list a{display:block;border:1px solid var(--border);border-radius:16px;background:rgba(148,163,184,.07);padding:18px}.public-info-grid strong,.public-link-list strong{display:block;color:var(--text);font-size:16px;margin-bottom:8px}.public-info-grid p,.public-link-list span{display:block;margin:0;color:var(--muted);line-height:1.6;font-size:14px}.public-two-column{display:grid;grid-template-columns:.9fr 1.1fr;gap:24px;align-items:start}.public-link-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.public-link-list a:hover{border-color:rgba(0,103,79,.34);transform:translateY(-1px);box-shadow:0 12px 28px rgba(16,24,40,.08)}.public-footer-links{width:min(1180px,calc(100% - 44px));margin:18px auto 0;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;color:var(--muted);font-weight:800}.public-footer-links a{padding:10px 12px;border-radius:12px}.public-footer-links a:hover{background:rgba(148,163,184,.10);color:var(--text)}.static-public-shell{width:min(1180px,calc(100% - 44px));margin:22px auto 0;padding:0;display:grid;grid-template-columns:230px minmax(0,1fr);overflow:hidden;border-radius:24px!important}.static-policy-nav{padding:22px;border-right:1px solid var(--border);background:rgba(148,163,184,.06);display:flex;flex-direction:column;gap:8px}.static-policy-nav a{padding:12px 13px;border:1px solid transparent;border-radius:13px;color:var(--muted);font-weight:850}.static-policy-nav a:hover{color:var(--text);background:rgba(0,103,79,.08);border-color:rgba(0,103,79,.18)}.static-public-article{padding:clamp(24px,5vw,54px);min-width:0}.static-public-article h1{margin:10px 0 12px;color:var(--text);font-size:clamp(36px,6vw,68px);line-height:1.02;letter-spacing:-.06em}.static-intro{max-width:780px;color:var(--muted);font-size:18px;line-height:1.7;margin:0 0 26px}.static-content{max-width:860px}.static-content h2{margin:28px 0 10px;color:var(--text);font-size:24px;line-height:1.2;letter-spacing:-.03em}.static-content p{margin:0 0 14px;color:var(--muted);line-height:1.78}.static-content a{color:var(--primary);font-weight:850;text-decoration:underline;text-underline-offset:3px}.static-card .static-intro{margin:0 0 18px}.public-nav-actions-legal{flex-wrap:wrap!important}
body.dir-rtl .public-info-grid article,body.dir-rtl .public-section-head,body.dir-rtl .public-two-column,body.dir-rtl .public-link-list a,body.dir-rtl .static-public-article{text-align:right!important}body.dir-rtl .static-public-shell{direction:rtl}body.dir-rtl .static-policy-nav{border-right:0;border-left:1px solid var(--border)}
@media(max-width:980px){.public-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.public-two-column,.static-public-shell{grid-template-columns:1fr}.static-policy-nav{border-right:0;border-bottom:1px solid var(--border);flex-direction:row;flex-wrap:wrap}.static-policy-nav a{flex:1 1 130px;text-align:center}body.dir-rtl .static-policy-nav{border-left:0;border-bottom:1px solid var(--border)}}@media(max-width:640px){.public-content-band,.static-public-shell,.public-footer-links{width:calc(100% - 24px);margin-top:12px}.public-content-band{padding:22px}.public-info-grid,.public-link-list{grid-template-columns:1fr}.public-section-head h2,.public-two-column h2{font-size:28px}.static-public-article{padding:22px}.static-public-article h1{font-size:38px}.static-intro{font-size:16px}.public-nav-actions-legal{grid-template-columns:44px 44px 1fr 1fr!important}.public-nav-actions-legal .btn-primary{grid-column:1/-1}}

/* V74 mobile public header alignment */
@media(max-width:640px){
  .public-nav{
    width:calc(100% - 24px)!important;
    margin:12px auto 0!important;
    padding:16px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    border-radius:18px!important;
  }
  .public-brand{
    width:100%!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:48px minmax(0,1fr)!important;
    align-items:center!important;
    gap:12px!important;
  }
  .public-brand-mark{
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    border-radius:12px!important;
  }
  .public-brand strong{
    display:block!important;
    max-width:100%!important;
    font-size:22px!important;
    line-height:1.12!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .public-brand small{
    display:none!important;
  }
  .public-nav-actions,
  .public-nav-actions-legal{
    width:100%!important;
    display:grid!important;
    grid-template-columns:44px 44px repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    align-items:stretch!important;
    justify-content:stretch!important;
  }
  .public-nav-actions .language-switch-public,
  .public-nav-actions .theme-switch,
  .public-nav-actions .btn{
    width:100%!important;
    min-width:0!important;
    height:44px!important;
    min-height:44px!important;
    padding:0 10px!important;
    border-radius:12px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    font-size:13px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  .public-nav-actions .language-switch-public,
  .public-nav-actions .theme-switch{
    padding:0!important;
  }
  .public-nav-actions .language-switch-public .lang-copy,
  .public-nav-actions .theme-switch b{
    display:none!important;
  }
  .public-nav-actions .language-switch-public .lang-globe{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    border-radius:10px!important;
    display:grid!important;
    place-items:center!important;
  }
  .public-nav-actions .btn-primary{
    box-shadow:none!important;
  }
}

@media(max-width:420px){
  .public-nav-actions,
  .public-nav-actions-legal{
    grid-template-columns:44px 44px 1fr 1fr!important;
  }
  .public-nav-actions .btn-primary{
    grid-column:1/-1!important;
  }
}

@media(max-width:340px){
  .public-nav-actions,
  .public-nav-actions-legal{
    grid-template-columns:44px 44px 1fr!important;
  }
  .public-nav-actions .btn-primary,
  .public-nav-actions .btn.ghost:last-of-type{
    grid-column:auto!important;
  }
}

/* V74 legal page admin editor */
.legal-pages-admin-v74{display:grid;gap:18px;margin-top:18px}.legal-editor-card-v74{border:1px solid var(--border);border-radius:20px;background:rgba(148,163,184,.06);padding:18px;display:grid;gap:16px}.legal-editor-head-v74{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.legal-editor-head-v74 h3{margin:4px 0 6px;color:var(--text);font-size:22px;letter-spacing:-.03em}.legal-editor-head-v74 a{font-size:13px;color:var(--muted);word-break:break-all}.legal-visible-toggle-v74{display:inline-flex;align-items:center;gap:10px;min-height:42px;padding:0 12px;border:1px solid var(--border);border-radius:14px;background:var(--surface);font-weight:850;color:var(--text);white-space:nowrap}.legal-visible-toggle-v74 input{width:18px;height:18px;accent-color:var(--primary)}.legal-rich-field-v74{display:grid;gap:8px}.legal-toolbar-v74{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:8px;border:1px solid var(--border);border-radius:14px;background:rgba(148,163,184,.08)}.legal-toolbar-v74 button{height:36px;min-width:40px;padding:0 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-weight:850;cursor:pointer}.legal-toolbar-v74 button:hover{border-color:rgba(0,103,79,.34);background:rgba(0,103,79,.08)}.legal-rich-editor-v74{min-height:260px;max-height:520px;overflow:auto;padding:18px;border:1px solid var(--border);border-radius:16px;background:var(--input-bg,var(--surface));color:var(--text);line-height:1.75;outline:none}.legal-rich-editor-v74:focus{border-color:rgba(0,103,79,.45);box-shadow:0 0 0 4px rgba(0,103,79,.12)}.legal-rich-editor-v74 h2,.legal-rich-editor-v74 h3{margin:18px 0 8px;color:var(--text);line-height:1.2}.legal-rich-editor-v74 p{margin:0 0 12px;color:var(--muted)}.legal-rich-editor-v74 ul,.legal-rich-editor-v74 ol{margin:0 0 14px;padding-left:22px;color:var(--muted)}.legal-rich-editor-v74 a{color:var(--primary);font-weight:850;text-decoration:underline;text-underline-offset:3px}body.dir-rtl .legal-editor-card-v74,body.dir-rtl .legal-rich-editor-v74{text-align:right;direction:rtl}body.dir-rtl .legal-rich-editor-v74 ul,body.dir-rtl .legal-rich-editor-v74 ol{padding-left:0;padding-right:22px}@media(max-width:760px){.legal-editor-head-v74{display:grid}.legal-visible-toggle-v74{justify-content:space-between}.legal-toolbar-v74 button{flex:1 1 auto}.legal-rich-editor-v74{min-height:220px}}

/* V75 public language toggle removed */
@media(max-width:640px){
  .public-nav-actions,
  .public-nav-actions-legal{
    grid-template-columns:44px repeat(auto-fit,minmax(72px,1fr))!important;
  }
  .public-nav-actions .theme-switch{
    grid-column:auto!important;
  }
  .public-nav-actions .btn-primary{
    grid-column:auto!important;
  }
}
@media(max-width:420px){
  .public-nav-actions,
  .public-nav-actions-legal{
    grid-template-columns:44px 1fr 1fr!important;
  }
  .public-nav-actions .btn-primary{
    grid-column:1/-1!important;
  }
}
@media(max-width:340px){
  .public-nav-actions,
  .public-nav-actions-legal{
    grid-template-columns:44px 1fr!important;
  }
}

/* V76 stable theme icon */
.theme-switch .theme-icon{
  position:relative!important;
  display:inline-block!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  border-radius:999px!important;
  color:currentColor!important;
  font-size:0!important;
  line-height:0!important;
  transform:none!important;
}
.theme-switch .theme-icon:before{
  content:""!important;
  position:absolute!important;
  inset:4px!important;
  border-radius:999px!important;
  background:currentColor!important;
}
.theme-switch .theme-icon:after{
  content:""!important;
  position:absolute!important;
  width:12px!important;
  height:12px!important;
  top:2px!important;
  right:2px!important;
  border-radius:999px!important;
  background:var(--surface-solid)!important;
}
[data-theme="light"] .theme-switch .theme-icon:after{
  width:3px!important;
  height:3px!important;
  top:9px!important;
  right:9px!important;
  background:currentColor!important;
  box-shadow:
    0 -8px 0 0 currentColor,
    0 8px 0 0 currentColor,
    8px 0 0 0 currentColor,
    -8px 0 0 0 currentColor,
    6px 6px 0 0 currentColor,
    -6px -6px 0 0 currentColor,
    6px -6px 0 0 currentColor,
    -6px 6px 0 0 currentColor!important;
}

/* V77 public homepage content depth */
.public-section-head-row{
  max-width:none!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:20px!important;
}
.public-section-head-row>div{
  max-width:780px!important;
}
.public-section-link{
  flex:0 0 auto!important;
  min-height:42px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 14px!important;
  border:1px solid var(--border)!important;
  border-radius:12px!important;
  background:rgba(0,103,79,.08)!important;
  color:var(--primary)!important;
  font-weight:850!important;
}
.public-section-link:hover{
  background:rgba(0,103,79,.13)!important;
  border-color:rgba(0,103,79,.28)!important;
}
.public-post-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
}
.public-post-card{
  min-height:238px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  padding:20px!important;
  border:1px solid var(--border)!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,rgba(148,163,184,.09),rgba(148,163,184,.04))!important;
  color:var(--text)!important;
  transition:.18s ease!important;
}
.public-post-card:hover{
  transform:translateY(-2px)!important;
  border-color:rgba(0,103,79,.34)!important;
  box-shadow:0 14px 34px rgba(16,24,40,.10)!important;
}
.public-post-card span{
  color:var(--primary)!important;
  font-size:12px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
}
.public-post-card strong{
  display:block!important;
  color:var(--text)!important;
  font-size:20px!important;
  line-height:1.22!important;
  letter-spacing:-.03em!important;
}
.public-post-card p{
  margin:0!important;
  color:var(--muted)!important;
  line-height:1.65!important;
  font-size:14px!important;
}
.public-empty-posts{
  padding:20px!important;
  border:1px dashed var(--border)!important;
  border-radius:18px!important;
  background:rgba(148,163,184,.06)!important;
}
.public-empty-posts strong{
  display:block!important;
  color:var(--text)!important;
  margin-bottom:6px!important;
}
.public-empty-posts p{
  margin:0!important;
  color:var(--muted)!important;
  line-height:1.65!important;
}
.public-editorial-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
}
.public-editorial-grid article{
  padding:18px!important;
  border:1px solid var(--border)!important;
  border-radius:16px!important;
  background:rgba(148,163,184,.07)!important;
}
.public-editorial-grid strong{
  display:block!important;
  color:var(--text)!important;
  margin-bottom:8px!important;
  font-size:16px!important;
}
.public-editorial-grid p{
  margin:0!important;
  color:var(--muted)!important;
  line-height:1.65!important;
  font-size:14px!important;
}
body.dir-rtl .public-post-card,
body.dir-rtl .public-editorial-grid article{
  text-align:right!important;
}
@media(max-width:980px){
  .public-post-grid,
  .public-editorial-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:640px){
  .public-section-head-row{
    display:grid!important;
    align-items:start!important;
  }
  .public-section-link{
    width:100%!important;
  }
  .public-post-grid,
  .public-editorial-grid{
    grid-template-columns:1fr!important;
  }
  .public-post-card{
    min-height:auto!important;
  }
}

/* V78 public alignment and blog navigation */
.public-hero .hero-signin{
  width:auto!important;
  min-width:150px!important;
  max-width:190px!important;
  justify-content:center!important;
}
.blog-list-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin-bottom:14px!important;
}
.blog-list-head h2{
  margin-bottom:0!important;
}
.blog-list-head .btn{
  flex:0 0 auto!important;
  min-width:104px!important;
}
.blog-card-meta{
  display:block!important;
  margin-bottom:8px!important;
  color:var(--primary)!important;
  font-size:12px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
}
@media(max-width:640px){
  .public-landing{
    padding:12px!important;
  }
  .public-nav,
  .public-hero,
  .public-content-band,
  .public-footer-links{
    width:100%!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  .public-nav{
    margin-top:12px!important;
    margin-bottom:0!important;
  }
  .public-hero,
  .public-content-band,
  .public-footer-links{
    margin-top:12px!important;
  }
  .public-nav-actions{
    grid-template-columns:44px 1fr 1fr 1fr!important;
  }
  .public-nav-actions .btn-primary{
    grid-column:auto!important;
  }
  .public-hero .hero-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .public-hero .hero-login,
  .public-hero .hero-register,
  .public-hero .hero-signin{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
  .blog-list-head{
    display:grid!important;
  }
  .blog-list-head .btn{
    width:100%!important;
  }
}
@media(max-width:420px){
  .public-nav-actions{
    grid-template-columns:44px 1fr 1fr!important;
  }
  .public-nav-actions .btn-primary{
    grid-column:1/-1!important;
  }
}
