@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');
:root{--top:#2f93d8;--green:#45b957;--red:#ff4d5e;--orange:#ff7a32;--cyan:#13a6b2;--bg:#eef2f6;--side:#fff;--text:#172033;--muted:#758195;--line:#dfe7ef;--shadow:0 2px 10px rgba(15,23,42,.12);--radius:12px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);font-family:Cairo,Arial,sans-serif;color:var(--text);font-size:15px}a{text-decoration:none;color:inherit}.rtl-box{direction:rtl;text-align:right}.muted{color:var(--muted);font-weight:700}.loader{position:fixed;inset:0;background:rgba(255,255,255,.85);z-index:9999;display:flex;align-items:center;justify-content:center;transition:.35s}.loader.hide,body.loaded .loader{opacity:0;visibility:hidden}.spinner{width:42px;height:42px;border:4px solid #dbeafe;border-top-color:var(--top);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f4f6f8;position:relative;overflow:hidden}.auth-page:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(47,147,216,.06),rgba(69,185,87,.05)),repeating-linear-gradient(45deg,rgba(15,23,42,.025) 0 16px,transparent 16px 55px)}.login-card{position:relative;width:430px;max-width:92vw;background:#fff;border-radius:10px;box-shadow:0 12px 28px rgba(15,23,42,.18);padding:38px;border-top:6px solid var(--green)}.setup-card{width:560px}.login-logo{width:82px;height:82px;margin:0 auto 20px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#16213e,#23114e);color:#fff;font-size:27px;font-weight:900;box-shadow:0 8px 20px rgba(15,23,42,.25)}.login-card h1{text-align:center;margin:0;font-size:31px;font-weight:900}.login-sub{text-align:center;color:var(--muted);font-weight:700;margin:6px 0 24px}.field{margin-bottom:16px}.field label,label{display:block;font-weight:800;font-size:13px;color:#667085;margin-bottom:8px}.input{width:100%;min-height:46px;border:1px solid var(--line);border-radius:4px;background:#f8fafc;padding:0 14px;font-family:Cairo;font-weight:700;color:#334155}.input:focus{outline:0;border-color:var(--top);box-shadow:0 0 0 3px rgba(47,147,216,.14)}textarea.input{height:112px;padding-top:12px}.captcha-row{display:grid;grid-template-columns:1fr 126px;gap:8px}.captcha-box{height:46px;border:1px solid #d9e2ec;border-radius:4px;background:linear-gradient(135deg,#eef3f8,#fff);display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:900;letter-spacing:8px;color:#253047;user-select:none}.check-line{display:flex;align-items:center;gap:9px;margin:10px 0;color:#334155}.btn{border:0;border-radius:4px;padding:10px 15px;font-family:Cairo;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;gap:7px;justify-content:center;transition:.18s}.btn:hover{filter:brightness(.96);transform:translateY(-1px)}.btn-primary{background:linear-gradient(135deg,var(--green),#2da946);color:#fff}.btn-soft{background:#f3f6f9;color:#334155;border:1px solid #dfe7ef}.btn-red{background:var(--red);color:#fff}.alert{background:#fff4f4;border-right:4px solid var(--red);padding:13px 15px;border-radius:6px;margin:12px 0;color:#9b1c1c;font-weight:800}.maintenance-note{background:#fff7ed;border-right-color:var(--orange);color:#9a3412}.ok{background:#ecfdf3;border-right-color:var(--green);color:#0b6b32}
.shell{min-height:100vh;padding-top:58px}.topbar{height:58px;background:var(--top);position:fixed;inset:0 0 auto 0;z-index:20;display:flex;align-items:center;gap:14px;padding:0 16px;color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.18);direction:ltr}.brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:900;letter-spacing:.3px;min-width:235px}.brand-mark{width:36px;height:36px;border-radius:10px;background:#fff;color:var(--top);display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:900}.top-search{flex:1;display:flex;justify-content:flex-end}.top-search input{width:300px;max-width:45vw;height:36px;border-radius:18px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.14);color:#fff;padding:0 17px;font-family:Cairo}.top-search input::placeholder{color:#d9edff}.top-actions{display:flex;align-items:center;gap:9px}.top-link,.icon-btn{width:36px;height:36px;border-radius:8px;background:rgba(255,255,255,.13);display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.18);color:#fff;position:relative}.icon-btn{cursor:pointer}.notify-badge{position:absolute;top:-5px;right:-5px;background:var(--red);color:#fff;border-radius:50%;font-size:10px;min-width:18px;height:18px;display:flex;align-items:center;justify-content:center}.user-chip{height:36px;display:flex;align-items:center;gap:8px;padding:0 9px;border-radius:8px;background:rgba(255,255,255,.13);font-weight:800}.avatar{width:27px;height:27px;border-radius:7px;background:#fff;color:var(--top);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900}.logout-btn{height:36px;padding:0 13px;border-radius:6px;background:#fff;color:var(--top);font-weight:900;display:inline-flex;align-items:center}.sidebar{position:fixed;top:58px;bottom:0;left:0;width:245px;background:var(--side);box-shadow:3px 0 11px rgba(15,23,42,.08);overflow:auto;padding:12px 0;z-index:10;direction:ltr}.side-title{padding:14px 18px 6px;color:#a7b1bf;font-size:13px;font-weight:900;letter-spacing:.3px}.nav a{display:flex;align-items:center;gap:12px;padding:10px 18px;margin:1px 9px;border-radius:5px;color:#273346;font-weight:800}.nav a:hover,.nav a.active{background:#eef7ff;color:#0f67ad}.nav .ico{width:23px;text-align:center;font-size:17px}.main{margin-left:245px;padding:22px;direction:rtl}.page-head{background:#fff;border-radius:5px;box-shadow:var(--shadow);padding:17px 22px;margin-bottom:18px;display:flex;align-items:center;justify-content:space-between;border:1px solid #dfe5eb}.page-head h1{margin:0;font-size:25px;font-weight:900}.section-block{scroll-margin-top:76px;margin-bottom:18px}.dashboard-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.stat-card{background:#fff;border-radius:6px;box-shadow:var(--shadow);padding:20px;min-height:132px;position:relative;overflow:hidden;border:1px solid #dfe5eb}.stat-card:before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:var(--top)}.stat-card.success:before{background:var(--green)}.stat-card.danger:before{background:var(--red)}.stat-card.dark:before{background:#334155}.stat-card small{display:block;color:var(--muted);font-weight:900;margin-top:10px}.stat-card b{display:block;font-size:34px;font-weight:900;margin-top:5px}.stat-icon{width:52px;height:52px;border-radius:10px;background:#edf7ff;display:flex;align-items:center;justify-content:center;font-size:25px}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.quick-card{background:#fff;border-radius:6px;box-shadow:var(--shadow);padding:20px;border:1px solid #dfe5eb;transition:.18s}.quick-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(15,23,42,.12)}.quick-card span{font-size:30px}.quick-card b{display:block;font-size:17px;margin:8px 0 5px}.quick-card small{color:var(--muted);font-weight:700}.panel{background:#fff;border-radius:6px;box-shadow:var(--shadow);padding:22px;margin-bottom:18px;border:1px solid #dfe5eb}.panel h2{margin:0 0 16px;font-size:21px;font-weight:900}.notice{background:#f8fafc;border:1px solid var(--line);border-right:4px solid var(--top);border-radius:6px;padding:14px;margin:10px 0}.notice p{margin:7px 0 0;color:#475569;font-weight:700}.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.toolbar{display:flex;gap:10px;margin:10px 0 15px}.toolbar .input{max-width:310px}.table-responsive{overflow:auto}.table{width:100%;border-collapse:collapse;background:#fff}.table th,.table td{padding:13px 10px;border-bottom:1px solid #e8edf2;text-align:right;vertical-align:middle}.table th{color:#111;font-weight:900;background:#f8fafc}.table tbody tr:hover{background:#f7fafc}.mobile-menu{display:none}@media(max-width:1050px){.mobile-menu{display:inline-flex}.sidebar{transform:translateX(-105%);transition:.25s}.sidebar.open,body.menu-open .sidebar{transform:none}.main{margin-left:0;padding:15px}.dashboard-grid,.quick-grid,.two{grid-template-columns:1fr}.brand{min-width:auto;font-size:20px}.user-chip span:last-child{display:none}.top-search{display:none}}
.health-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:900;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.15);white-space:nowrap}
.health-pill.ok{background:rgba(34,197,94,.16);color:#dcfce7;border-color:rgba(34,197,94,.45)}
.health-pill.down{background:rgba(239,68,68,.16);color:#fee2e2;border-color:rgba(239,68,68,.45)}
.server-note{border-right:5px solid var(--red);background:#fff1f2;color:#7f1d1d;font-weight:800}
.cache-status{margin:0 0 18px 0;background:#eef6ff;border:1px solid #b7dcff;color:#075985;border-radius:14px;padding:12px 16px;font-weight:800;box-shadow:0 8px 24px rgba(47,147,216,.08)}
button:disabled,.btn:disabled{opacity:.55;cursor:not-allowed;filter:grayscale(.2)}

/* v2.5 refinements */
:root{--card:#fff;--input:#f8fafc;--soft:#f3f6f9;--note:#eef6ff}
body[data-theme="dark"]{--bg:#0f172a;--side:#111c30;--card:#162238;--text:#e5eefb;--muted:#94a3b8;--line:#26384f;--shadow:0 2px 14px rgba(0,0,0,.35);--input:#111c30;--soft:#17253b;--note:#10243a}
body[data-theme="dark"] .panel,body[data-theme="dark"] .page-head,body[data-theme="dark"] .stat-card,body[data-theme="dark"] .quick-card,body[data-theme="dark"] .sidebar,body[data-theme="dark"] .login-card{background:var(--card);border-color:var(--line)}
body[data-theme="dark"] .input,body[data-theme="dark"] .table th,body[data-theme="dark"] .notice{background:var(--input);border-color:var(--line);color:var(--text)}
body[data-theme="dark"] .table,body[data-theme="dark"] .table tbody tr:hover{background:var(--card)}
body[data-theme="dark"] .btn-soft{background:var(--soft);color:var(--text);border-color:var(--line)}
body[data-theme="dark"] .cache-status{background:var(--note);border-color:#1e4d78;color:#bde3ff}
body[data-theme="dark"] .auth-page{background:#0b1220}.theme-toggle{font-family:Arial,sans-serif}
.dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.stat-card{padding:13px 14px;min-height:92px}.stat-icon{width:40px;height:40px;font-size:20px}.stat-card small{font-size:12px;margin-top:7px}.stat-card b{font-size:25px;margin-top:2px}.panel{padding:18px}.panel h2{font-size:18px}.page-head{padding:12px 16px}.page-head h1{font-size:22px}.main{padding:16px}.section-block{margin-bottom:14px}.table th,.table td{padding:9px 8px}.notice{padding:11px}.top-search{position:relative}.search-result{position:absolute;top:42px;right:0;width:360px;max-width:75vw;background:var(--card);color:var(--text);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 35px rgba(15,23,42,.22);display:none;z-index:50;overflow:hidden;direction:rtl;text-align:right}.search-result.show{display:block}.search-card{padding:14px}.search-card h3{margin:0 0 8px;font-size:17px}.search-card .row{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:7px 0;gap:10px}.search-card .row:first-of-type{border-top:0}.search-empty{padding:13px;font-weight:800;color:var(--muted)}.server-note{border-right-color:var(--top);background:#eef6ff;color:#075985}body[data-theme="dark"] .server-note{background:#10243a;color:#bde3ff}.loader{backdrop-filter:blur(4px)}.loader:after{content:'PALVISION';position:absolute;margin-top:82px;font-weight:900;color:var(--top);letter-spacing:1px}.skeleton{position:relative;overflow:hidden;background:linear-gradient(90deg,var(--soft),rgba(255,255,255,.55),var(--soft));background-size:200% 100%;animation:skeleton 1.2s infinite}@keyframes skeleton{to{background-position:-200% 0}}
@media(max-width:1050px){.dashboard-grid{grid-template-columns:repeat(2,1fr)}.stat-card{min-height:86px}.top-search{display:flex}.top-search input{width:190px;max-width:38vw}.search-result{right:auto;left:0}}
@media(max-width:640px){.dashboard-grid{grid-template-columns:1fr}.top-search{display:none}.top-actions{gap:5px}.health-pill{display:none}}

/* v2.6 dark mode readability + database status polish */
body[data-theme="dark"], body[data-theme="dark"] *{color:var(--text)}
body[data-theme="dark"] .muted,
body[data-theme="dark"] small,
body[data-theme="dark"] .quick-card small,
body[data-theme="dark"] .stat-card small,
body[data-theme="dark"] .side-title{color:var(--muted)!important}
body[data-theme="dark"] .nav a{color:#dbeafe}
body[data-theme="dark"] .nav a:hover,
body[data-theme="dark"] .nav a.active{background:#183452;color:#ffffff}
body[data-theme="dark"] .table th{color:#ffffff!important;background:#111c30!important}
body[data-theme="dark"] .table td{color:#e5eefb!important;border-color:var(--line)}
body[data-theme="dark"] .table tbody tr:hover{background:#1b2b46!important}
body[data-theme="dark"] .field label,
body[data-theme="dark"] label{color:#cbd5e1!important}
body[data-theme="dark"] .input,
body[data-theme="dark"] input,
body[data-theme="dark"] textarea,
body[data-theme="dark"] select{background:#111c30!important;color:#ffffff!important;border-color:#2b405a!important}
body[data-theme="dark"] .input::placeholder,
body[data-theme="dark"] input::placeholder{color:#94a3b8!important}
body[data-theme="dark"] .notice p{color:#cbd5e1!important}
body[data-theme="dark"] .alert{background:#351b22;color:#fecdd3;border-right-color:#fb7185}
body[data-theme="dark"] .alert.ok{background:#123322;color:#bbf7d0;border-right-color:#22c55e}
body[data-theme="dark"] .maintenance-note{background:#332411;color:#fed7aa;border-right-color:#fb923c}
body[data-theme="dark"] .captcha-box{background:#111c30;color:#ffffff;border-color:#2b405a}
body[data-theme="dark"] .stat-icon{background:#10243a;color:#bfdbfe}
body[data-theme="dark"] .server-note{background:#10243a!important;color:#bde3ff!important;border-color:#2f93d8!important}
body[data-theme="dark"] .search-result{background:#162238!important;color:#e5eefb!important;border-color:#26384f!important}
body[data-theme="dark"] .search-card .row{border-color:#26384f!important}
body[data-theme="dark"] .loader{background:rgba(15,23,42,.88)}
body[data-theme="dark"] .btn-soft{background:#17253b!important;color:#e5eefb!important;border-color:#26384f!important}
.db-dev-note{border-right-color:var(--top)!important;background:#eef6ff!important;color:#075985!important}
body[data-theme="dark"] .db-dev-note{background:#10243a!important;color:#bde3ff!important}
/* ===== v3.0 real panel improvements ===== */
body{font-family:Cairo,Arial,sans-serif}.topbar{background:linear-gradient(90deg,#2e96d5,#2388c8)}.brand span:last-child{letter-spacing:.5px}.health-pill{font-weight:900;border-radius:18px;padding:7px 13px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22)}.health-pill.ok{background:#eafff2;color:#087c3b}.health-pill.down{background:#fff7e6;color:#8a4b00}.dashboard-grid.compact{grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px}.dashboard-grid.compact .stat-card{min-height:95px;padding:16px 18px}.dashboard-grid.compact .stat-card b{font-size:28px}.section-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-title-row h2{margin:0 0 4px;font-size:22px}.actions-row{display:flex;gap:8px;flex-wrap:wrap}.users-panel{padding:18px}.table-tools{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px;gap:12px}.mini-status{font-weight:900;color:#334155;background:#f8fafc;border:1px solid var(--line);padding:8px 12px;border-radius:20px}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-left:6px}.ok-dot{background:#22c55e}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px;background:#fff}.active-table{min-width:980px;border-collapse:separate;border-spacing:0}.active-table thead th{background:#f7f9fc;color:#111827;font-weight:900;text-align:center;border-bottom:2px solid #d1d5db;padding:13px 10px}.active-table tbody td{text-align:center;vertical-align:middle;padding:12px 10px;border-bottom:1px solid #e8eef5;font-weight:800}.active-table tbody tr:nth-child(even){background:#fcfdff}.active-table tbody tr:hover{background:#f1f8ff}.badge{display:inline-flex;align-items:center;justify-content:center;min-width:72px;padding:6px 11px;border-radius:7px;font-weight:900;font-size:13px}.badge.green{background:#dcfce7;color:#166534}.badge.red{background:#ffe4e6;color:#9f1239}.badge.orange{background:#ffedd5;color:#9a3412}.id-pill{display:inline-flex;background:#edf5ff;color:#155e9f;padding:5px 10px;border-radius:16px;font-weight:900}.copy-code{border:0;background:transparent;color:#246da8;font-weight:900;font-family:Cairo;cursor:pointer}.mac-pill{display:inline-flex;background:#f8fafc;border:1px solid #dbe4ee;color:#475569;padding:5px 10px;border-radius:15px;direction:ltr}.conn-pill{display:inline-flex;background:#eefcf3;color:#0f7a39;border-radius:50%;min-width:32px;height:32px;align-items:center;justify-content:center;font-weight:900}.row-actions{display:flex;gap:6px;justify-content:center}.act{width:34px;height:34px;border-radius:8px;border:0;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:900;cursor:pointer;box-shadow:0 4px 10px rgba(15,23,42,.12)}.act.blue{background:#2f80ed}.act.green{background:#22c55e}.act.orange{background:#ff7a32}.act.red{background:#ef4444}.pagination-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;flex-wrap:wrap}.pagination{display:flex;gap:6px}.pagination button{min-width:38px;height:38px;border:1px solid #dbe4ee;background:#fff;border-radius:8px;font-weight:900;cursor:pointer}.pagination button.active{background:#00a7b5;color:#fff;border-color:#00a7b5}.pagination button:disabled{opacity:.45;cursor:not-allowed}.loading-cell{text-align:center!important;padding:28px!important;color:#64748b}.mini-spinner{display:inline-block;width:18px;height:18px;border:3px solid #dbeafe;border-top-color:#2e96d5;border-radius:50%;animation:spin .8s linear infinite;vertical-align:middle;margin-left:8px}.modal{position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:100;display:none;align-items:center;justify-content:center;padding:18px}.modal.show{display:flex}.modal-card{position:relative;background:#fff;width:520px;max-width:96vw;border-radius:15px;padding:24px;box-shadow:0 24px 60px rgba(15,23,42,.28);border-top:5px solid var(--top)}.modal-card h2{margin-top:0}.modal-close{position:absolute;top:10px;left:12px;width:34px;height:34px;border:0;border-radius:8px;background:#f1f5f9;font-size:22px;cursor:pointer}.codes-box textarea{height:160px;direction:ltr}.btn:disabled{opacity:.55;cursor:not-allowed}.server-note{background:#fff8e6;color:#8a4b00;border-right-color:#f59e0b}.search-card .row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #edf2f7}.search-card h3{margin:0 0 8px}.search-result{position:absolute;top:45px;right:0;width:360px;max-width:90vw;background:#fff;color:#172033;border-radius:10px;box-shadow:0 18px 48px rgba(15,23,42,.25);padding:12px;display:none;z-index:60}.search-result.show{display:block}.top-search{position:relative}.search-empty{padding:14px;text-align:center;color:#64748b;font-weight:800}
body[data-theme="dark"]{--bg:#0f172a;--side:#111827;--text:#f8fafc;--muted:#cbd5e1;--line:#334155;background:#0f172a;color:#f8fafc}body[data-theme="dark"] .main,body[data-theme="dark"] .shell{background:#0f172a;color:#f8fafc}body[data-theme="dark"] .panel,body[data-theme="dark"] .page-head,body[data-theme="dark"] .table-wrap,body[data-theme="dark"] .modal-card,body[data-theme="dark"] .notice{background:#182235;color:#f8fafc;border-color:#334155}body[data-theme="dark"] .sidebar{background:#111827;color:#f8fafc}body[data-theme="dark"] .nav a{color:#e5e7eb}body[data-theme="dark"] .nav a:hover,body[data-theme="dark"] .nav a.active{background:#1e3a5f;color:#fff}body[data-theme="dark"] .input{background:#0f172a;border-color:#334155;color:#fff}body[data-theme="dark"] label,body[data-theme="dark"] .muted{color:#cbd5e1}body[data-theme="dark"] .active-table thead th{background:#111827;color:#fff;border-color:#334155}body[data-theme="dark"] .active-table tbody td{color:#f8fafc;border-color:#293548}body[data-theme="dark"] .active-table tbody tr:nth-child(even){background:#151f31}body[data-theme="dark"] .active-table tbody tr:hover{background:#1e293b}body[data-theme="dark"] .btn-soft,body[data-theme="dark"] .pagination button,body[data-theme="dark"] .mini-status,body[data-theme="dark"] .mac-pill,body[data-theme="dark"] .modal-close{background:#111827;color:#fff;border-color:#334155}body[data-theme="dark"] .search-result{background:#182235;color:#fff}body[data-theme="dark"] .search-card .row{border-color:#334155}body[data-theme="dark"] .id-pill{background:#123154;color:#bfdbfe}body[data-theme="dark"] .copy-code{color:#93c5fd}
@media(max-width:1000px){.dashboard-grid.compact{grid-template-columns:repeat(2,1fr)}.section-title-row{align-items:flex-start;flex-direction:column}.main{margin-left:0}.sidebar{transform:translateX(-104%);transition:.2s}.menu-open .sidebar{transform:none}.brand{min-width:auto}.top-search input{width:220px}.user-chip{display:none}}@media(max-width:640px){.dashboard-grid.compact{grid-template-columns:1fr}.top-search{display:none}.top-actions{gap:5px}.main{padding:12px}.pagination-row{align-items:flex-start;flex-direction:column}.modal-card{padding:18px}}
/* ===== v3.1 refinements ===== */
.small-muted{font-size:13px;margin:2px 0 0}.clean-status{display:inline-flex;padding:7px 12px;border-radius:20px;background:#eef7ff;color:#1769a7;font-weight:900;margin-bottom:12px}.modern-tools{align-items:flex-end}.table-search{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.table-search .input{width:250px;height:42px}.table-search small{font-weight:800;color:#64748b}.table-top-pages{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.users-info-top{font-size:12px;margin:-6px 0 8px}.compact-pages button{height:34px;min-width:34px;border-radius:7px}.small-table{font-size:13px;min-width:900px}.small-table thead th{padding:10px 8px}.small-table tbody td{padding:9px 8px}.user-under{display:block;color:#64748b;margin-top:3px;font-size:11px;font-weight:700}.badge{border:0;cursor:pointer;transition:.15s}.badge:hover{transform:translateY(-1px)}.badge.blue{background:#dbeafe;color:#1d4ed8}.mac-cell{display:flex;align-items:center;justify-content:center;gap:6px}.mac-pill.new{background:#eef2ff;color:#4338ca;border-color:#c7d2fe}.mini-reset{width:28px;height:28px;border:0;border-radius:8px;background:#fff3dd;color:#b45309;font-weight:900;cursor:pointer;box-shadow:0 2px 7px rgba(15,23,42,.10)}.mini-reset:hover{background:#fed7aa}.date-stack{display:flex;flex-direction:column;gap:2px;line-height:1.35;font-size:12px}.date-stack b{color:#0f766e;font-size:12px}.note-pill{display:inline-block;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#f8fafc;border:1px solid #e5edf5;border-radius:14px;padding:4px 9px;color:#475569}.row-actions .act{width:30px;height:30px;font-size:13px}.toast-box{position:fixed;bottom:22px;left:22px;z-index:99999;display:flex;flex-direction:column;gap:8px}.toast{transform:translateY(10px);opacity:0;transition:.2s;padding:11px 16px;border-radius:12px;box-shadow:0 12px 30px rgba(15,23,42,.22);font-weight:900;background:#fff;color:#0f172a;border-right:5px solid #2f93d8}.toast.show{transform:translateY(0);opacity:1}.toast.ok{border-right-color:#22c55e}.toast.bad{border-right-color:#ef4444}.ajax-result{margin-top:12px}.ajax-msg{padding:10px 12px;border-radius:10px;font-weight:900;margin-top:8px}.ajax-msg.ok{background:#dcfce7;color:#166534}.ajax-msg.bad{background:#fee2e2;color:#991b1b}.created-code button{margin-top:10px;width:100%;padding:13px;border:1px dashed #60a5fa;background:#eff6ff;border-radius:12px;color:#1d4ed8;font-weight:900;cursor:pointer;font-size:18px}.codes-result{height:145px;direction:ltr;margin-top:10px}.search-card.pro{padding:4px}.search-card.pro h3{display:flex;align-items:center;gap:6px}.code-big{background:linear-gradient(135deg,#eff6ff,#ecfdf5);border:1px solid #dbeafe;border-radius:12px;padding:12px;font-size:20px;font-weight:900;text-align:center;color:#1d4ed8;margin-bottom:8px;direction:ltr}.chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:7px}.chips span{background:#f1f5f9;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;color:#334155}.notify-button{position:relative}.notify-dropdown{position:absolute;top:58px;left:118px;width:360px;max-width:92vw;background:#fff;border:1px solid #dbe4ee;border-radius:14px;box-shadow:0 20px 55px rgba(15,23,42,.24);padding:8px;z-index:90;display:none}.notify-dropdown.show{display:block}.notify-item{width:100%;text-align:right;border:0;background:#fff;border-radius:11px;padding:11px;display:flex;flex-direction:column;gap:4px;cursor:pointer;border-right:4px solid transparent}.notify-item:hover{background:#f8fafc}.notify-item.unread{border-right-color:#2f93d8;background:#f0f8ff}.notify-item b{font-size:14px}.notify-item span{font-size:12px;color:#475569;line-height:1.5}.notify-item small{font-size:11px;color:#64748b;font-weight:800}.notice-modal-card p{white-space:pre-wrap;line-height:1.9;font-weight:700;color:#334155}.elegant-notice{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border:1px solid #e5edf5;border-radius:14px;background:#fbfdff}.elegant-notice p{margin:.35rem 0}.support-wrap{display:grid;grid-template-columns:360px 1fr;gap:18px}.support-list{margin-top:0!important}.ticket-card{border:1px solid #e5edf5;border-radius:14px;padding:14px;margin-bottom:12px;background:#fbfdff}.ticket-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.ticket-head span{background:#e0f2fe;color:#075985;border-radius:20px;padding:5px 10px;font-size:12px;font-weight:900}.ticket-messages{display:flex;flex-direction:column;gap:7px;margin:10px 0}.msg{max-width:78%;padding:10px 12px;border-radius:14px;margin:0!important;font-size:13px;line-height:1.6}.user-msg{background:#eff6ff;color:#1e3a8a;margin-right:auto!important}.admin-msg{background:#ecfdf5;color:#065f46;margin-left:auto!important}.ticket-reply{display:flex;gap:8px}.ticket-reply .input{margin:0}.top-actions{position:relative}
body[data-theme="dark"] .clean-status{background:#10243a;color:#bde3ff}body[data-theme="dark"] .small-muted,body[data-theme="dark"] .table-search small,body[data-theme="dark"] .user-under{color:#cbd5e1}body[data-theme="dark"] .note-pill{background:#111827;color:#e5eefb;border-color:#334155}body[data-theme="dark"] .mac-pill.new{background:#172554;color:#bfdbfe;border-color:#1e40af}body[data-theme="dark"] .date-stack b{color:#5eead4}body[data-theme="dark"] .mini-reset{background:#422006;color:#fed7aa}body[data-theme="dark"] .toast{background:#182235;color:#fff}body[data-theme="dark"] .code-big{background:#10243a;color:#bfdbfe;border-color:#334155}body[data-theme="dark"] .chips span{background:#111827;color:#e5eefb}body[data-theme="dark"] .notify-dropdown{background:#182235;border-color:#334155}body[data-theme="dark"] .notify-item{background:#182235;color:#fff}body[data-theme="dark"] .notify-item:hover{background:#1e293b}body[data-theme="dark"] .notify-item.unread{background:#10243a;border-right-color:#60a5fa}body[data-theme="dark"] .notify-item span,body[data-theme="dark"] .notify-item small,body[data-theme="dark"] .notice-modal-card p{color:#cbd5e1}body[data-theme="dark"] .elegant-notice,body[data-theme="dark"] .ticket-card{background:#111827;border-color:#334155}body[data-theme="dark"] .user-msg{background:#172554;color:#dbeafe}body[data-theme="dark"] .admin-msg{background:#052e25;color:#ccfbf1}body[data-theme="dark"] .ajax-msg.ok{background:#052e16;color:#bbf7d0}body[data-theme="dark"] .ajax-msg.bad{background:#450a0a;color:#fecaca}body[data-theme="dark"] .created-code button{background:#10243a;color:#bfdbfe;border-color:#1d4ed8}
@media(max-width:900px){.support-wrap{grid-template-columns:1fr}.modern-tools{align-items:flex-start;flex-direction:column}.table-top-pages{width:100%;justify-content:space-between}.notify-dropdown{left:8px;right:8px;width:auto}.ticket-reply{flex-direction:column}.msg{max-width:100%}}
/* ===== v3.5 premium responsive refinements ===== */
body{font-size:14px}.page-head h1{font-size:22px}.panel{border-radius:18px}.selected,.nav a.active,.pagination button.active{filter:brightness(.92);box-shadow:inset 0 0 0 1px rgba(15,23,42,.12)}
.loader{flex-direction:column;gap:12px}.loader-text{font-weight:900;color:var(--top);letter-spacing:2px}.action-loader{position:fixed;inset:0;background:rgba(15,23,42,.18);backdrop-filter:blur(2px);z-index:100000;display:none;align-items:center;justify-content:center}.action-loader.show{display:flex}.action-loader-card{background:#fff;border-radius:18px;padding:24px 34px;box-shadow:0 20px 60px rgba(15,23,42,.28);display:flex;gap:14px;align-items:center;color:#172033}.mini-top-info{height:34px;display:inline-flex;align-items:center;gap:5px;padding:0 10px;border-radius:999px;background:rgba(255,255,255,.15);font-weight:900;font-size:12px}.lang-select{height:34px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.15);color:#fff;border-radius:9px;font-family:Cairo;font-weight:900}.lang-select option{color:#111}.side-action{width:calc(100% - 18px);margin:2px 9px;border:0;background:#f0f8ff;border-radius:9px;color:#0f67ad;display:flex;align-items:center;gap:12px;padding:11px 18px;font-family:Cairo;font-weight:900;cursor:pointer}.side-action:hover{background:#dff0ff}.top-search input{font-weight:800}.notify-dropdown{position:fixed;top:68px;left:50%;transform:translateX(-50%);width:430px}.notify-dropdown.show{animation:popIn .16s ease-out}@keyframes popIn{from{opacity:.3;transform:translateX(-50%) translateY(-8px) scale(.98)}to{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}}.modal{align-items:center!important;justify-content:center!important}.modal.show{display:flex!important}.modal-card{animation:modalPop .18s ease-out}@keyframes modalPop{from{opacity:.35;transform:scale(.96) translateY(12px)}to{opacity:1;transform:scale(1) translateY(0)}}.notice-modal-card{max-width:620px;text-align:center}.notice-modal-card h2{font-size:24px}.notice-modal-card p{font-size:16px}.readers-list{margin-top:8px;display:flex;gap:6px;flex-wrap:wrap;align-items:center}.readers-list span{background:#e0f2fe;color:#075985;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900}.active-table{border-collapse:separate;border-spacing:0 7px}.active-table thead th{font-size:12px}.active-table tbody tr{background:#fff;box-shadow:0 3px 14px rgba(15,23,42,.06)}.active-table tbody td:first-child{border-radius:12px 0 0 12px}.active-table tbody td:last-child{border-radius:0 12px 12px 0}.small-table{font-size:12px}.copy-code{font-size:12px;border-radius:999px;background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;padding:7px 10px;cursor:pointer;font-weight:900}.status-stack{display:flex;flex-direction:column;align-items:center;gap:5px}.status-action{border:0;background:transparent;color:#dc2626;font-size:10px;font-family:Cairo;font-weight:900;cursor:pointer}.status-action.enable{color:#16a34a}.badge{border-radius:999px;padding:6px 11px;font-size:11px;display:inline-flex;align-items:center;justify-content:center;min-width:74px}.badge.green{background:#dcfce7;color:#166534}.badge.red{background:#fee2e2;color:#991b1b}.badge.orange{background:#ffedd5;color:#9a3412}.badge.blue{background:#dbeafe;color:#1d4ed8}.mac-pill{font-size:11px}.date-stack{font-size:11px}.date-stack b{font-size:11px}.note-pill{max-width:130px;font-size:11px}.row-actions{justify-content:center}.search-card.better{padding:8px}.search-head{display:flex;align-items:center;justify-content:center;gap:7px;font-size:15px;margin-bottom:8px}.code-big button{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.created-card{margin-top:12px;border:1px solid #bfdbfe;background:linear-gradient(135deg,#eff6ff,#ecfdf5);border-radius:18px;padding:16px;text-align:center}.created-title{font-weight:900;margin-bottom:8px}.created-card button[data-copy]{border:0;border-radius:14px;background:#fff;color:#1d4ed8;padding:12px 16px;font-size:20px;font-weight:900;cursor:pointer;box-shadow:0 4px 14px rgba(15,23,42,.08)}.created-card small{display:block;margin-top:8px;color:#166534;font-weight:900}.print-code{margin-top:10px!important;border:1px solid #dbeafe!important;background:#fff!important;color:#334155!important;border-radius:10px!important;padding:8px 14px!important;font-size:13px!important}.form-hint{font-size:12px;background:#f8fafc;border:1px dashed #dbe4ee;border-radius:12px;padding:10px}.support-wrap .panel{border-radius:18px}.ticket-card{box-shadow:0 4px 16px rgba(15,23,42,.06)}
body[data-theme="dark"] .action-loader-card{background:#182235;color:#fff}body[data-theme="dark"] .side-action{background:#10243a;color:#bfdbfe}body[data-theme="dark"] .side-action:hover{background:#17375a}body[data-theme="dark"] .active-table tbody tr{background:#182235;box-shadow:0 3px 14px rgba(0,0,0,.25)}body[data-theme="dark"] .copy-code{background:#10243a;color:#bfdbfe;border-color:#334155}body[data-theme="dark"] .created-card{background:#10243a;border-color:#334155}body[data-theme="dark"] .created-card button[data-copy],body[data-theme="dark"] .print-code{background:#0f172a!important;color:#bfdbfe!important;border-color:#334155!important}body[data-theme="dark"] .form-hint{background:#111827;border-color:#334155;color:#cbd5e1}body[data-theme="dark"] .readers-list span{background:#172554;color:#dbeafe}body[data-theme="dark"] .badge.green{background:#052e16;color:#bbf7d0}body[data-theme="dark"] .badge.red{background:#450a0a;color:#fecaca}body[data-theme="dark"] .badge.orange{background:#431407;color:#fed7aa}body[data-theme="dark"] .badge.blue{background:#172554;color:#bfdbfe}
@media(max-width:760px){.topbar{height:auto;min-height:58px;flex-wrap:wrap;padding:8px}.brand{font-size:18px}.top-actions{margin-inline-start:auto;flex-wrap:wrap;justify-content:flex-end}.mini-top-info{height:30px;font-size:11px}.main{padding:12px}.table-wrap{overflow-x:auto;border-radius:14px}.small-table{min-width:760px}.dashboard-grid.compact{gap:10px}.stat-card{min-height:90px}.modal-card{width:94vw;max-height:88vh;overflow:auto}.notify-dropdown{top:70px;left:50%;width:92vw}.sidebar{top:58px}.lang-select{width:64px}.logout-btn,.user-chip{display:none}.page-head{padding:12px 14px}.page-head h1{font-size:18px}.section-title-row h2{font-size:20px}}
@media print{body>*:not(.modal){display:none!important}.modal.show{display:block!important;position:static!important;background:#fff!important}.modal-card{box-shadow:none!important;border:0!important}.modal-close,.print-code,.btn,.input,label,.form-hint,.ajax-msg{display:none!important}.created-card{display:block!important;border:2px solid #111!important;background:#fff!important;color:#111!important}.created-card button[data-copy]{display:block!important;box-shadow:none!important;color:#111!important;font-size:28px!important}.created-card small{color:#111!important;font-size:16px!important}}
.login-version{text-align:center;margin:-10px auto 10px;background:#eef7ff;color:#0f67ad;width:max-content;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:900}.login-lang{display:flex;justify-content:center;gap:8px;margin-top:15px}.login-lang a{background:#f1f5f9;color:#334155;border-radius:999px;padding:5px 10px;font-weight:900;font-size:12px}body[data-theme="dark"] .login-lang a{background:#111827;color:#fff}
/* v3.6 premium responsive polish */
body{background:linear-gradient(135deg,#f5f8fc 0%,#eef4fb 100%)}
.shell{min-height:100vh}.topbar{box-shadow:0 10px 28px rgba(38,94,142,.16);backdrop-filter:blur(12px)}
.sidebar{box-shadow:12px 0 35px rgba(31,78,121,.09)}
.section-block.panel,.panel,.stat-card{border:1px solid rgba(148,163,184,.18);box-shadow:0 18px 45px rgba(15,23,42,.08);border-radius:22px}.stat-card{overflow:hidden;position:relative}.stat-card:after{content:"";position:absolute;inset:auto -40px -40px auto;width:110px;height:110px;border-radius:50%;background:rgba(255,255,255,.16)}
.table-wrap{border-radius:20px;overflow:hidden;border:1px solid rgba(148,163,184,.18)}.small-table{font-size:12.5px}.small-table th{font-size:12px;letter-spacing:.2px}.small-table td{padding:9px 10px}.active-table tbody tr{transition:.18s}.active-table tbody tr:hover{background:rgba(47,147,216,.10)!important}.badge{padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800}.badge.green{background:#dcfce7;color:#166534}.badge.red{background:#fee2e2;color:#991b1b}.badge.orange{background:#ffedd5;color:#9a3412}.badge.blue{background:#dbeafe;color:#1e40af}.status-action{border:0;background:transparent;color:#2563eb;font-size:10px;cursor:pointer;margin-top:3px}.status-action.enable{color:#16a34a}.mac-cell{display:flex;gap:6px;align-items:center}.mac-pill,.note-pill,.id-pill,.flag-pill{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:5px 8px;font-size:11px}.mac-pill.new{background:#eef2ff;color:#3730a3}.mini-reset,.act{border:0;border-radius:10px;cursor:pointer;padding:6px 8px;background:#e0f2fe}.act.blue{background:#dbeafe}.date-stack{display:grid;gap:2px;font-size:11px;color:#64748b}.date-stack b{color:#0f172a}.copy-code{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:7px 10px;cursor:pointer;font-weight:800}.copy-code:hover{background:#e0f2fe}.row-actions{display:flex;gap:6px;align-items:center}.details-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.details-grid p{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:10px;margin:0}.details-grid b,.details-grid span{display:block}.details-grid span{color:#334155;margin-top:5px}.form-grid-small{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:10px 0}.security-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.security-list span{background:#fff1f2;color:#9f1239;border:1px solid #fecdd3;padding:8px 10px;border-radius:12px}.modal-card.wide{max-width:850px}.created-card{border:1px solid #c7d2fe;background:linear-gradient(135deg,#eef2ff,#fff);border-radius:18px;padding:16px;margin-top:12px;text-align:center}.created-card button[data-copy]{font-size:20px;font-weight:900;border:0;background:#2563eb;color:white;border-radius:14px;padding:10px 16px}.print-code{display:block;margin:12px auto 0;border:1px solid #cbd5e1;background:#fff;border-radius:12px;padding:8px 12px}.notify-dropdown{top:56px!important}.notice-modal-card{margin:auto;transform:none!important;top:auto!important}.modal.show{display:flex!important;align-items:center;justify-content:center}.action-loader-card{border-radius:22px;background:rgba(255,255,255,.92);box-shadow:0 22px 70px rgba(15,23,42,.22)}
body[data-theme="dark"]{background:#0b1220;color:#e5e7eb}body[data-theme="dark"] .main,body[data-theme="dark"] .panel,body[data-theme="dark"] .section-block.panel,body[data-theme="dark"] .modal-card,body[data-theme="dark"] .stat-card{background:#111827;color:#f8fafc;border-color:#263244}body[data-theme="dark"] .small-table td,body[data-theme="dark"] .small-table th{color:#f8fafc;border-color:#263244}body[data-theme="dark"] .table-wrap,body[data-theme="dark"] .input,body[data-theme="dark"] .copy-code,body[data-theme="dark"] .mac-pill,body[data-theme="dark"] .note-pill,body[data-theme="dark"] .id-pill,body[data-theme="dark"] .details-grid p{background:#0f172a;color:#f8fafc;border-color:#334155}body[data-theme="dark"] .date-stack,body[data-theme="dark"] .muted{color:#cbd5e1}body[data-theme="dark"] .date-stack b{color:#fff}body[data-theme="dark"] .sidebar{background:#0f172a;color:#fff}body[data-theme="dark"] .nav a,body[data-theme="dark"] .side-action{color:#e5e7eb}
@media(max-width:760px){.main{padding:14px}.dashboard-grid.compact{grid-template-columns:1fr 1fr}.table-wrap{overflow-x:auto}.small-table{min-width:820px}.form-grid-small,.details-grid,.two{grid-template-columns:1fr!important}.top-search{display:none}.modal-card{width:94vw;max-height:90vh;overflow:auto}.sidebar{width:280px}.top-actions{gap:5px}.mini-top-info,.health-pill{display:none}.brand span:last-child{display:none}}

/* v3.8 refinements */
.lang-select{display:none!important}
.logout-btn{display:none!important}
.brand{cursor:pointer;user-select:none}
.active-table tbody tr:hover,.table tbody tr:hover{background:rgba(15,23,42,.16)!important;box-shadow:inset 0 0 0 9999px rgba(15,23,42,.03)}
body[data-theme="dark"] .active-table tbody tr:hover,body[data-theme="dark"] .table tbody tr:hover{background:#263244!important;color:#fff}
.form-hint{font-weight:800;line-height:1.8;background:#eef6ff!important;border-color:#b7d8ff!important;color:#0f4f83!important}
.redis-check-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0 18px;padding:12px;border:1px solid #dbeafe;border-radius:14px;background:#f8fbff}
body[data-theme="dark"] .redis-check-row{background:#0f172a;border-color:#334155;color:#e5e7eb}
.nav a[href="logout.php"]{justify-content:center;border:1px solid #e2e8f0;background:#f8fafc;margin-top:10px;color:#dc2626;font-weight:900}
body[data-theme="dark"] .nav a[href="logout.php"]{background:#111827;border-color:#334155;color:#fca5a5}

/* v4.0 backup + premium dashboard polish */
.dashboard-grid.compact{grid-template-columns:repeat(4,minmax(160px,1fr));gap:18px}.dashboard-grid.compact .stat-card{border-radius:24px;background:linear-gradient(135deg,#ffffff,#f8fbff);min-height:126px;padding:22px;box-shadow:0 18px 45px rgba(31,78,121,.10);border:1px solid rgba(148,163,184,.20)}.dashboard-grid.compact .stat-card:before{height:0}.dashboard-grid.compact .stat-card.success{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff}.dashboard-grid.compact .stat-card.dark{background:linear-gradient(135deg,#2f93d8,#2563eb);color:#fff}.dashboard-grid.compact .stat-card.danger{background:linear-gradient(135deg,#ff5a66,#ef4444);color:#fff}.dashboard-grid.compact .stat-card small,.dashboard-grid.compact .stat-card .muted{color:rgba(255,255,255,.82)}.dashboard-grid.compact .stat-card:not(.success):not(.dark):not(.danger) small{color:#64748b}.page-head{border-radius:20px;background:linear-gradient(135deg,#fff,#f8fbff);box-shadow:0 18px 45px rgba(31,78,121,.08)}.topbar{background:linear-gradient(90deg,var(--top),#348ddb)}.backup-panel{margin-top:18px}.backup-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}.backup-actions form{display:grid;gap:10px;padding:14px;border:1px solid #e2e8f0;border-radius:18px;background:#f8fbff}.backup-table td,.backup-table th{font-size:13px}.mini-input{min-height:36px;width:160px}.premium-settings h2,.backup-panel h2{position:relative;padding-right:14px}.premium-settings h2:before,.backup-panel h2:before{content:"";position:absolute;right:0;top:8px;width:5px;height:22px;border-radius:20px;background:var(--top)}.restore-setup-card{margin-top:20px}.setup-page{align-items:flex-start;gap:22px;padding:35px 12px;flex-wrap:wrap}.brand:hover .brand-mark{transform:scale(1.06);box-shadow:0 8px 18px rgba(255,255,255,.22)}.brand-mark{transition:.18s}.section-block.panel.users-panel{background:linear-gradient(135deg,#fff,#fafdff)}
body[data-theme="dark"] .dashboard-grid.compact .stat-card{background:#111827;color:#fff;border-color:#263244}body[data-theme="dark"] .dashboard-grid.compact .stat-card.success{background:linear-gradient(135deg,#065f46,#047857)}body[data-theme="dark"] .dashboard-grid.compact .stat-card.dark{background:linear-gradient(135deg,#1e3a8a,#2563eb)}body[data-theme="dark"] .dashboard-grid.compact .stat-card.danger{background:linear-gradient(135deg,#7f1d1d,#dc2626)}body[data-theme="dark"] .backup-actions form{background:#0f172a;border-color:#334155}body[data-theme="dark"] .page-head{background:#111827;border-color:#263244}
@media(max-width:900px){.dashboard-grid.compact{grid-template-columns:1fr 1fr}.backup-actions{grid-template-columns:1fr}.mini-input{width:120px}}@media(max-width:520px){.dashboard-grid.compact{grid-template-columns:1fr}.backup-table{min-width:680px}.setup-page{display:block}.restore-setup-card{margin:18px auto 0}}

/* v4.1 refinements */
.per-select{width:78px;height:38px;padding:6px 10px;border-radius:12px;font-weight:900;text-align:center}.per-label{font-weight:900;color:#64748b;margin:0 4px}.dark-codes-wrap{background:linear-gradient(180deg,#182234,#111827)!important;border-color:#273449!important;box-shadow:0 18px 45px rgba(15,23,42,.16)}.dark-codes-table thead th{background:#111827!important;color:#eaf2ff!important;border-bottom:1px solid #334155!important}.dark-codes-table tbody tr{background:#1b2738!important;color:#edf5ff}.dark-codes-table tbody tr:nth-child(even){background:#162132!important}.dark-codes-table tbody td{border-color:#2c3a4f!important;color:#eef6ff}.dark-codes-table tbody tr:hover{background:#24364d!important;box-shadow:inset 4px 0 0 var(--top)}.dark-codes-table .note-pill,.dark-codes-table .mac-pill,.dark-codes-table .id-pill,.dark-codes-table .flag-pill,.dark-codes-table .copy-code{background:#0f172a!important;color:#f8fafc!important;border-color:#334155!important}.dark-codes-table .date-stack{color:#cbd5e1}.dark-codes-table .date-stack b{color:#86efac}.backup-actions form{display:flex;flex-direction:column;gap:8px}.backup-table .row-actions{gap:8px;flex-wrap:wrap}.brand{cursor:pointer}

/* v4.2 refinements */
.dark-codes-wrap{background:transparent!important;border-color:var(--border)!important;box-shadow:none!important}.dark-codes-table thead th,.dark-codes-table tbody tr,.dark-codes-table tbody td{background:inherit!important;color:inherit!important;border-color:var(--border)!important}.active-table tbody tr:hover{background:rgba(47,147,216,.10)!important;box-shadow:inset 4px 0 0 var(--top)}
.excel-btn{height:38px;border:0;border-radius:12px;background:#e8fff1;color:#15803d;font-weight:900;padding:0 13px;cursor:pointer;border:1px solid rgba(34,197,94,.25)}.excel-btn:hover{filter:brightness(.96)}
.forum-panel{overflow:hidden}.forum-content{background:transparent;border:0;border-radius:0;padding:0;line-height:1.9;min-height:0;display:inline-block;max-width:100%}.forum-content img{max-width:100%;height:auto;border-radius:0;display:block}.forum-empty{color:#64748b;text-align:center;padding:30px}.html-editor{min-height:220px;background:#fff;border:1px solid var(--border);border-radius:18px;padding:16px;line-height:1.8;outline:none}.html-editor:focus{box-shadow:0 0 0 4px rgba(47,147,216,.12);border-color:var(--top)}.hidden-html{display:none}.editor-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.editor-toolbar button{border:1px solid var(--border);background:#fff;border-radius:10px;padding:7px 12px;font-weight:800;cursor:pointer}
.pv-dialog{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:9999;display:none;align-items:center;justify-content:center;padding:18px}.pv-dialog.show{display:flex}.pv-dialog-card{width:min(420px,94vw);background:#fff;border-radius:24px;padding:24px;text-align:center;box-shadow:0 24px 70px rgba(15,23,42,.25);animation:pvPop .18s ease}.pv-dialog-card h3{margin:0 0 8px;font-size:21px}.pv-dialog-card p{margin:0 0 18px;color:#334155;line-height:1.7}@keyframes pvPop{from{transform:scale(.94);opacity:.5}to{transform:scale(1);opacity:1}}
body[data-theme="dark"] .forum-content,body[data-theme="dark"] .html-editor,body[data-theme="dark"] .editor-toolbar button,body[data-theme="dark"] .pv-dialog-card{background:#111827;color:#f8fafc;border-color:#334155}body[data-theme="dark"] .pv-dialog-card p{color:#dbeafe}

.remember-row{display:flex;align-items:center;gap:8px;margin:8px 0 4px;font-size:13px;color:var(--muted,#64748b);font-weight:700}.remember-row input{width:16px;height:16px;accent-color:var(--top,#3498db)}
/* v4.4 refinements */
.dashboard-grid.compact{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.dashboard-grid.compact .stat-card{min-height:86px;padding:14px 16px;border-radius:18px}.dashboard-grid.compact .stat-card b{font-size:24px}.dashboard-grid.compact .stat-icon{font-size:24px}.feature-help{background:linear-gradient(135deg,#eef7ff,#f8fafc);border:1px solid #dbeafe;border-radius:14px;padding:10px 12px;color:#334155;font-size:12px;font-weight:800;margin:6px 0 14px}.pv-dialog{position:fixed;inset:0;background:rgba(15,23,42,.42);display:none;align-items:center;justify-content:center;z-index:200000;backdrop-filter:blur(3px)}.pv-dialog.show{display:flex}.pv-dialog-card{width:min(420px,92vw);background:#fff;border-radius:22px;padding:24px;box-shadow:0 22px 70px rgba(15,23,42,.32);text-align:center}.pv-dialog-card h3{margin:0 0 10px;font-size:22px}.pv-dialog-card p{font-weight:800;color:#334155;line-height:1.8}.pv-dialog-card .btn{min-width:120px}.active-table tbody tr:hover{background:rgba(15,23,42,.075)!important;transform:translateY(-1px)}.login-card .pv-dialog{font-family:Cairo}.form-hint,.feature-help{line-height:1.8}.search-card.pro .row{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px dashed #e2e8f0}.search-card.pro .row:last-child{border-bottom:0}.captcha-row .input{text-align:center}.created-card .created-title{font-size:15px}.created-card small{font-size:13px}.users-panel .small-muted:before,.support-compose h2:after,#mac h2:after{content:'  · ';color:#94a3b8}body[data-theme="dark"] .feature-help,body[data-theme="dark"] .pv-dialog-card{background:#111827;color:#f8fafc;border-color:#334155}body[data-theme="dark"] .pv-dialog-card p{color:#e5e7eb}body[data-theme="dark"] .search-card.pro .row{border-color:#334155}
@media(max-width:760px){.dashboard-grid.compact{grid-template-columns:1fr 1fr}.dashboard-grid.compact .stat-card{min-height:78px}.dashboard-grid.compact .stat-card b{font-size:20px}.pv-dialog-card{padding:20px}}


.brand-mark img,.avatar img{width:100%;height:100%;object-fit:contain;border-radius:8px;display:block}.login-logo img{max-width:82px;max-height:82px;object-fit:contain;display:block}.logo-preview{height:72px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;display:flex;align-items:center;justify-content:center;padding:10px}.logo-preview img{max-height:56px;max-width:180px;object-fit:contain}.created-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.created-actions .btn{flex:1}.codes-result{min-height:140px;direction:ltr;text-align:left}

.login-logo-text{font-size:34px;font-weight:900;letter-spacing:.5px;text-align:center;color:var(--top,#2f93d8);margin-bottom:4px}
[data-theme="dark"] .login-logo-text{color:#fff}
/* invoices v4.7 */
.invoices-panel .invoice-table td,.invoices-panel .invoice-table th{font-size:13px}
.invoice-modal-card{max-width:760px}.codes-invoice-field{min-height:120px;font-family:monospace;direction:ltr;text-align:left}.invoice-view-card{max-width:860px}.invoice-paper{background:var(--card);border:1px solid var(--border);border-radius:22px;padding:24px;box-shadow:0 18px 45px rgba(15,23,42,.12)}.invoice-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--border);padding-bottom:16px;margin-bottom:16px}.invoice-head h2{margin:0;font-size:30px;font-weight:900;color:var(--text)}.invoice-number{text-align:left;display:flex;flex-direction:column;gap:6px}.invoice-number b{font-size:20px;color:var(--top)}.invoice-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.invoice-meta p{margin:0;background:var(--soft);border:1px solid var(--border);border-radius:14px;padding:10px 12px;display:flex;justify-content:space-between;gap:12px}.invoice-codes{width:100%;border-collapse:separate;border-spacing:0;margin:18px 0;border:1px solid var(--border);border-radius:16px;overflow:hidden}.invoice-codes th,.invoice-codes td{padding:11px;border-bottom:1px solid var(--border);text-align:center}.invoice-codes tr:last-child td{border-bottom:0}.invoice-total{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,rgba(47,147,216,.12),rgba(34,197,94,.12));padding:14px 16px;border-radius:16px;font-size:18px}.invoice-notes{margin-top:16px}.invoice-notes p{background:var(--soft);border-radius:14px;padding:12px}.invoice-footer{text-align:center;margin-top:22px;font-weight:800;color:var(--muted)}
@media(max-width:720px){.invoice-meta{grid-template-columns:1fr}.invoice-head{flex-direction:column;gap:10px}.invoice-number{text-align:right}}

/* v4.9 improvements */
.create-code-card{max-width:920px}.create-code-card form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}.create-code-card h2,.create-code-card .feature-help,.create-code-card .ajax-result,.create-code-card button[type="submit"],.create-code-card .form-hint{grid-column:1/-1}.create-code-card label{font-size:12px;font-weight:900;color:var(--muted);margin-bottom:-5px}.create-code-card .form-grid-small{display:contents}.create-code-card .input{min-height:44px}.create-code-card button[type="submit"]{height:50px}.invoice-page-panel{max-width:1200px}.invoice-page-panel .toolbar{margin:10px 0 14px}.invoice-page-panel #invoiceSearch{max-width:520px}.invoice-table a.act{text-decoration:none;display:inline-block;color:#0f172a}.invoice-table tbody tr:hover{background:rgba(47,147,216,.08)}
@media(max-width:760px){.create-code-card form{grid-template-columns:1fr}.create-code-card .form-grid-small{display:grid;grid-template-columns:1fr}.invoice-page-panel #invoiceSearch{max-width:none;width:100%}}
/* v6 business refinements */
body, input, select, textarea, button { font-family: 'Cairo','Open Sans',Arial,sans-serif; }
body:lang(en), [dir="ltr"] { font-family: 'Open Sans','Cairo',Arial,sans-serif; }
.modal-card.ultra-wide{width:min(1180px,94vw);max-height:92vh;overflow:auto;border-radius:28px;padding:34px;}
.create-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start;}
.create-grid.two-col{grid-template-columns:1fr 1fr;}
.form-section{background:rgba(248,250,252,.88);border:1px solid #e5eaf2;border-radius:20px;padding:18px;display:grid;gap:10px;}
body[data-theme="dark"] .form-section{background:rgba(15,23,42,.72);border-color:rgba(148,163,184,.24);}
.form-section h3{margin:0 0 6px;font-size:18px;color:#0f172a}.form-section label{font-weight:800;color:#64748b;font-size:13px}
body[data-theme="dark"] .form-section h3{color:#fff}.create-main-btn{min-height:58px;font-size:20px;border-radius:16px;margin-top:18px}.invoice-customer-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.customers-panel .table td{vertical-align:middle}.customer-modal-card{width:min(820px,94vw)}.track-form{display:flex;gap:10px;margin:18px 0}.track-form .input{max-width:360px}.track-timeline{margin-top:18px;display:grid;gap:14px}.track-item{display:flex;gap:14px;background:#fff;border:1px solid #e5eaf2;border-radius:18px;padding:16px}.track-dot{width:14px;height:14px;border-radius:50%;background:var(--top);box-shadow:0 0 0 6px rgba(47,147,216,.12);margin-top:7px;flex:none}.track-item b{font-size:16px}.track-item p{margin:5px 0;color:#334155}.track-item small{color:#64748b}.created-card{max-width:620px;margin-inline:auto}.help-tip{display:block;color:#64748b;font-size:12px;margin-top:3px}.invoice-notes p{white-space:pre-wrap}.report-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:15px 0}.report-summary span{background:#f8fafc;border:1px solid #e5eaf2;border-radius:14px;padding:12px;text-align:center;font-weight:800}.report-list{width:100%;border-collapse:collapse}.report-list th,.report-list td{border-bottom:1px solid #e5eaf2;padding:10px;text-align:center}
@media(max-width:800px){.modal-card.ultra-wide{width:96vw;padding:20px}.create-grid,.create-grid.two-col{grid-template-columns:1fr}.invoice-customer-row{grid-template-columns:1fr}.track-form{display:grid}.report-summary{grid-template-columns:1fr}.modal-card{max-height:90vh;overflow:auto}}

/* v7 sub resellers */
.grid-form{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.grid-form .wide{grid-column:1/-1}.package-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:8px 0 14px}.package-check{display:flex;align-items:center;gap:8px;background:#f8fafc;border:1px solid #e5edf6;border-radius:14px;padding:10px 12px;font-weight:900}.package-check input{width:16px;height:16px;accent-color:var(--top)}.package-check small{margin-inline-start:auto;color:#64748b;font-size:12px}.sub-actions{display:flex;gap:6px;align-items:center;justify-content:center;flex-wrap:wrap}.inline-form{display:inline-flex;margin:0}.modal-wide{width:min(900px,94vw)}.sub-table .act{text-decoration:none}.side-action{width:100%;border:0;background:transparent;text-align:inherit;display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:12px;color:var(--text);font-family:inherit;font-weight:800;cursor:pointer}.side-action:hover{background:rgba(47,147,216,.10)}
body[data-theme="dark"] .package-check{background:#111827;border-color:#334155;color:#f8fafc}body[data-theme="dark"] .package-check small{color:#cbd5e1}
@media(max-width:800px){.grid-form{grid-template-columns:1fr}.package-checks{grid-template-columns:1fr}.sub-actions{justify-content:flex-start}}


/* v7.1 refinements: balanced add-code modal, local sub-resellers, cleaner reports */
.create-code-card.modal-card.ultra-wide{width:min(1100px,92vw)!important;max-height:86vh!important;padding:26px!important;border-radius:26px!important;}
.create-code-card h2{font-size:26px;margin-bottom:8px!important;}
.create-code-card .feature-help{background:linear-gradient(135deg,#eef7ff,#f8fbff);border:1px solid #dbeafe;border-radius:18px;padding:12px 16px;margin:0 0 14px!important;font-size:14px;line-height:1.7;}
.create-code-card .create-grid{display:grid!important;grid-template-columns:1.05fr .95fr!important;gap:16px!important;align-items:start!important;}
.create-code-card .form-section{background:#f8fafc;border:1px solid #e5edf5;border-radius:20px;padding:16px;box-shadow:0 10px 26px rgba(15,23,42,.04);}
.create-code-card .form-section h3{margin:0 0 12px;color:#172033;font-size:16px;}
.create-code-card label{display:block;margin:10px 0 6px!important;font-size:12px!important;color:#64748b!important;}
.create-code-card .input{height:44px!important;border-radius:12px!important;font-size:14px!important;}
.create-code-card textarea.input{height:auto!important;min-height:85px;}
.create-code-card .form-grid-small{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:0!important;}
.create-code-card .form-hint{background:#ecfdf5;color:#166534;border:1px dashed #86efac;border-radius:16px;padding:11px 14px!important;margin:2px 0 0!important;}
.create-code-card .create-main-btn{width:min(360px,100%);justify-self:center;min-height:52px!important;font-size:17px!important;border-radius:15px!important;}
.created-card{border-radius:22px!important;background:linear-gradient(135deg,#f8fbff,#eef7ff)!important;box-shadow:0 14px 38px rgba(37,99,235,.10);}
.btn-report{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:14px;background:linear-gradient(135deg,#2563eb,#0ea5e9);color:white;font-weight:900;padding:9px 13px;cursor:pointer;box-shadow:0 8px 20px rgba(37,99,235,.20)}
.btn-report:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(37,99,235,.26)}
.reseller-chip{display:inline-flex;align-items:center;gap:6px;background:#eef7ff;color:#155e9f;border:1px solid #bfdbfe;border-radius:999px;padding:6px 10px;font-weight:900;}
.sub-create-panel .grid-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sub-create-panel .form-section{background:#f8fafc;border:1px solid #e5edf5;border-radius:20px;padding:16px}.sub-create-panel .wide{grid-column:1/-1}.sub-actions{align-items:center}.tiny-note{font-size:11px;background:#f1f5f9;border-radius:999px;padding:5px 8px;white-space:nowrap}.db-config-backup-panel{border-top:4px solid #0ea5e9}
body[data-theme="dark"] .create-code-card .form-section,body[data-theme="dark"] .sub-create-panel .form-section{background:#0f172a;border-color:#334155}body[data-theme="dark"] .create-code-card .feature-help{background:#111827;border-color:#334155;color:#e5e7eb}body[data-theme="dark"] .create-code-card .form-section h3{color:#fff}body[data-theme="dark"] .reseller-chip{background:#0f172a;color:#bfdbfe;border-color:#334155}
@media(max-width:850px){.create-code-card.modal-card.ultra-wide{width:95vw!important;padding:18px!important}.create-code-card .create-grid,.create-code-card .create-grid.two-col,.sub-create-panel .grid-form{grid-template-columns:1fr!important}.create-code-card .form-grid-small{grid-template-columns:1fr!important}.create-code-card .create-main-btn{width:100%}.sub-create-panel .wide{grid-column:auto}}

/* v7.2 refinements */
.create-code-card.modal-card.ultra-wide{
  width:min(980px,94vw)!important;
  max-height:88vh!important;
  padding:24px!important;
  border-radius:24px!important;
  border-top:5px solid #2e96d5;
}
.create-code-card form.code-create-form{display:block!important;}
.create-code-card .create-grid,
.create-code-card .create-grid.two-col{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(260px,1fr))!important;
  gap:18px!important;
  width:100%!important;
  margin:0!important;
}
.create-code-card .form-section{min-width:0!important;}
.create-code-card .feature-help{text-align:center!important;margin-bottom:18px!important;}
.create-code-card .form-hint{text-align:center!important;margin-top:14px!important;}
.create-code-card .create-main-btn{display:block!important;margin:18px auto 0!important;width:min(320px,100%)!important;}
.create-code-card .ajax-result{margin-top:16px!important;}
.create-code-card .created-card{max-width:560px!important;margin:14px auto 0!important;}
.created-actions{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:12px}.created-actions .btn,.created-actions button{min-width:130px}.activity-pages{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.activity-pages.bottom{margin-top:12px}.page-link{min-width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #dbe4ee;background:#fff;border-radius:8px;font-weight:900;text-decoration:none;color:#0f172a}.page-link.active{background:#2e96d5;color:#fff;border-color:#2e96d5}.activity-table{min-width:860px}.activity-table td{font-size:13px}.code-create-form.is-finished .input:not([readonly]):not([disabled]){background:#fbfdff}
body[data-theme="dark"] .page-link{background:#111827;color:#fff;border-color:#334155}body[data-theme="dark"] .page-link.active{background:#2e96d5;border-color:#2e96d5}
@media(max-width:780px){.create-code-card.modal-card.ultra-wide{width:96vw!important;padding:16px!important}.create-code-card .create-grid,.create-code-card .create-grid.two-col{grid-template-columns:1fr!important}.created-actions .btn,.created-actions button{width:100%}.activity-pages{justify-content:flex-start}}


.server-packages-note{background:linear-gradient(135deg,#eef7ff,#f8fbff)!important;border-color:#cfe6ff!important}.subreseller-form .btn-primary.wide{min-height:52px;border-radius:16px}.sub-actions .act{transition:.18s transform,.18s box-shadow}.sub-actions .act:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,23,42,.14)}

/* v7.4 final refinements */
.create-code-card.modal-card.ultra-wide{
  width:min(1040px,92vw)!important;
  max-height:84vh!important;
  padding:28px 32px!important;
  overflow:auto!important;
}
.create-code-card .create-grid,
.create-code-card .create-grid.two-col{
  grid-template-columns:repeat(2,minmax(280px,1fr))!important;
  gap:18px!important;
  align-items:stretch!important;
}
.create-code-card .form-section{
  min-height:auto!important;
  padding:18px!important;
}
.create-code-card .form-section:empty{display:none!important}
.create-code-card .input{width:100%!important}
.create-code-card .ajax-result{display:none!important}
.created-popup-card{text-align:center;display:grid;gap:12px;max-width:620px;margin:auto}
.created-popup-card .copy-code.big{font-size:26px;font-weight:900;border:0;border-radius:18px;padding:14px 24px;background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;box-shadow:0 14px 30px rgba(37,99,235,.24);cursor:pointer}
.created-popup-card small{font-weight:900;color:#166534;font-size:15px}.created-popup-card .codes-result{min-height:160px}.tiny-center{text-align:center;font-size:12px}.pv-dialog-card{width:min(720px,92vw)}
.invoice-no{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e0f2fe,#f0f9ff);border:1px solid #bae6fd;color:#075985;border-radius:14px;padding:8px 12px;font-weight:900}.price-chip{display:inline-grid;gap:2px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:8px 12px}.price-chip small{color:#64748b}.invoice-view-btn{border-radius:14px!important;padding:9px 13px!important;text-decoration:none!important;background:#2563eb!important;color:#fff!important}.invoice-table tbody tr{transition:.18s background,.18s transform}.invoice-table tbody tr:hover{background:#f1f8ff!important}.invoices-panel{border-top:4px solid #2f93d8}.invoices-panel .toolbar{display:flex;align-items:center;gap:12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:12px}.invoices-panel .toolbar:before{content:'🔎';font-size:20px}.btn-report{white-space:nowrap}.customers-panel .reseller-chip{font-size:12px}
@media(max-width:820px){.create-code-card.modal-card.ultra-wide{width:96vw!important;padding:18px!important}.create-code-card .create-grid,.create-code-card .create-grid.two-col{grid-template-columns:1fr!important}.pv-dialog-card{width:94vw}.created-popup-card .copy-code.big{font-size:20px}}
/* v7.5 permissions */
.permissions-hero .perm-default-card{margin-top:14px;padding:16px;border-radius:18px;background:rgba(47,147,216,.08);border:1px solid rgba(47,147,216,.18)}
.perm-row-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0}.switch-line{display:inline-flex;align-items:center;gap:6px;font-weight:800}.small-number{max-width:90px;padding:8px 10px}.btn-sm{padding:8px 13px!important}.table-mini-search{max-width:260px}.compact-table td{vertical-align:middle}

/* v7.6 admin analytics */
.side-badge{margin-inline-start:auto;min-width:20px;height:20px;border-radius:999px;background:#ef4444;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;padding:0 6px}.premium-page-card{border-top:5px solid var(--top);border-radius:20px!important;overflow:hidden}.hero-title h2{font-size:27px!important;margin-bottom:4px!important}.live-status-line{display:inline-flex;align-items:center;gap:8px;background:#ecfdf5;color:#166534;border:1px solid #bbf7d0;border-radius:999px;padding:9px 13px;font-weight:900;margin-bottom:16px}.pulse-dot{width:10px;height:10px;background:#22c55e;border-radius:50%;box-shadow:0 0 0 0 rgba(34,197,94,.55);animation:pulse 1.4s infinite}@keyframes pulse{70%{box-shadow:0 0 0 9px rgba(34,197,94,0)}}.live-timeline{display:grid;gap:12px}.live-item{display:grid;grid-template-columns:22px 1fr;gap:10px;align-items:start;background:linear-gradient(135deg,#f8fbff,#fff);border:1px solid #e2e8f0;border-radius:18px;padding:14px;box-shadow:0 10px 26px rgba(15,23,42,.04)}.live-dot{width:13px;height:13px;border-radius:50%;background:var(--top);margin-top:5px}.live-item b{font-size:15px}.live-item p{margin:4px 0;color:#334155;font-weight:800}.live-item small{color:#64748b;font-weight:800}.analytics-hero{min-height:150px;border-radius:24px;padding:26px;margin-bottom:18px;background:radial-gradient(circle at top left,rgba(255,255,255,.35),transparent 34%),linear-gradient(135deg,#1d4ed8,#0ea5e9 55%,#22c55e);color:#fff;display:flex;align-items:center;justify-content:space-between;box-shadow:0 16px 44px rgba(37,99,235,.22)}.analytics-hero h2{margin:0 0 6px;font-size:30px}.analytics-hero p{margin:0;font-weight:800;color:#e0f2fe}.analytics-hero span{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:10px 16px;font-weight:900}.analytics-grid{display:grid;grid-template-columns:1.25fr .9fr;gap:18px}.chart-panel{border-radius:22px!important}.bar-chart{display:grid;gap:12px}.bar-row{display:grid;grid-template-columns:92px 1fr 50px;gap:10px;align-items:center;font-weight:900}.bar-track{height:15px;background:#e0f2fe;border-radius:999px;overflow:hidden}.bar-track i{height:100%;display:block;border-radius:999px;background:linear-gradient(90deg,#2563eb,#0ea5e9);min-width:4px}.bar-track.green i{background:linear-gradient(90deg,#16a34a,#22c55e)}.smart-alerts-page .alerts-grid{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:14px}.smart-alert{display:grid;grid-template-columns:52px 1fr;gap:12px;padding:18px;border-radius:20px;border:1px solid #e2e8f0;background:#f8fafc;align-items:start}.smart-alert>span{width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:26px;background:#fff}.smart-alert b{font-size:17px}.smart-alert p{margin:6px 0 0;color:#475569;font-weight:800}.smart-alert.danger{background:#fff1f2;border-color:#fecdd3}.smart-alert.warning{background:#fffbeb;border-color:#fde68a}.smart-alert.info{background:#eff6ff;border-color:#bfdbfe}.alert-count-bubble{min-width:54px;height:54px;border-radius:18px;background:linear-gradient(135deg,#ef4444,#f97316);color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:900}.customers-hero{background:radial-gradient(circle at bottom right,rgba(255,255,255,.35),transparent 30%),linear-gradient(135deg,#0f766e,#10b981 55%,#0ea5e9)}.invoice-page-panel{min-height:calc(100vh - 120px);border-radius:24px!important;padding:26px!important;background:linear-gradient(180deg,#fff,#f8fbff)!important}.invoice-page-panel .section-title-row{background:linear-gradient(135deg,#eef7ff,#fff);border:1px solid #dbeafe;border-radius:22px;padding:18px;margin-bottom:16px}.invoice-page-panel h2{font-size:28px!important}.invoice-page-panel .toolbar{max-width:100%;margin-bottom:16px}.invoice-page-panel #invoiceSearch{height:50px;border-radius:16px;font-size:15px}.invoice-table{min-width:1050px}.invoice-table th{background:#eef7ff!important;color:#0f3b68!important}.invoice-table td{padding:15px 12px!important}.note-pill{display:inline-block;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.invoice-view-btn{box-shadow:0 8px 18px rgba(37,99,235,.18)}body[data-theme="dark"] .live-item,body[data-theme="dark"] .invoice-page-panel,body[data-theme="dark"] .invoice-page-panel .section-title-row,body[data-theme="dark"] .chart-panel{background:#162238!important;border-color:#334155!important}body[data-theme="dark"] .live-item p,body[data-theme="dark"] .smart-alert p{color:#cbd5e1}body[data-theme="dark"] .smart-alert{background:#111827;border-color:#334155}body[data-theme="dark"] .bar-track{background:#26384f}body[data-theme="dark"] .invoice-table th{background:#10243a!important;color:#dbeafe!important}@media(max-width:950px){.analytics-grid{grid-template-columns:1fr}.analytics-hero{display:block}.analytics-hero span{display:inline-flex;margin-top:14px}.smart-alerts-page .alerts-grid{grid-template-columns:1fr}.bar-row{grid-template-columns:70px 1fr 38px}.invoice-page-panel{padding:16px!important}}

/* v7.7 UX / Security / Reports */
.animated-cards .stat-card{position:relative;overflow:hidden;transition:.22s transform,.22s box-shadow;animation:pvCardIn .45s ease both}.animated-cards .stat-card:nth-child(2){animation-delay:.06s}.animated-cards .stat-card:nth-child(3){animation-delay:.12s}.animated-cards .stat-card:nth-child(4){animation-delay:.18s}.animated-cards .stat-card:after{content:"";position:absolute;inset:auto -30px -40px auto;width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.18)}.animated-cards .stat-card:hover{transform:translateY(-5px);box-shadow:0 18px 42px rgba(15,23,42,.16)}@keyframes pvCardIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.profile-menu-wrap{position:relative}.profile-menu{position:absolute;top:calc(100% + 12px);inset-inline-end:0;width:270px;background:var(--card);border:1px solid var(--border);box-shadow:0 22px 60px rgba(15,23,42,.18);border-radius:22px;padding:14px;display:none;z-index:80}.profile-menu.show{display:grid;gap:10px}.profile-head{display:grid;gap:3px;padding:8px 4px 12px;border-bottom:1px solid var(--border)}.profile-head small{color:var(--muted);font-weight:800}.profile-menu label{font-size:12px;font-weight:900;color:var(--muted);margin-top:4px}.profile-logout{display:flex;align-items:center;justify-content:center;text-decoration:none;background:#fee2e2;color:#991b1b;border-radius:14px;padding:10px;font-weight:900}.theme-toggle{display:none!important}
body[data-theme-preset="ocean"]{--top:#2f93d8;--green:#22c55e}body[data-theme-preset="emerald"]{--top:#059669;--green:#10b981}body[data-theme-preset="violet"]{--top:#7c3aed;--green:#22c55e}body[data-theme-preset="gold"]{--top:#d97706;--green:#f59e0b}body[data-theme-preset="midnight"]{--top:#2563eb;--green:#14b8a6}
.announcement-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.announcement-card{border:0;text-align:inherit;border-radius:20px;padding:16px;display:grid;gap:7px;box-shadow:0 12px 30px rgba(15,23,42,.08);cursor:pointer;font-family:inherit}.announcement-card.info{background:linear-gradient(135deg,#eff6ff,#fff)}.announcement-card.warning{background:linear-gradient(135deg,#fffbeb,#fff)}.announcement-card.danger{background:linear-gradient(135deg,#fef2f2,#fff)}.announcement-card.success{background:linear-gradient(135deg,#ecfdf5,#fff)}.announcement-card span{color:#475569;font-weight:800;font-size:13px}
.reports-page .dashboard-grid,.health-center .dashboard-grid{margin:16px 0}.health-card{min-height:150px;border-radius:24px;padding:18px;background:linear-gradient(135deg,#fff,#f8fbff);border:1px solid #e2e8f0;display:grid;gap:8px;align-content:center;justify-items:start;box-shadow:0 14px 36px rgba(15,23,42,.07);transition:.2s transform}.health-card:hover{transform:translateY(-4px)}.health-card span{font-size:34px}.health-card b{font-size:20px}.health-card small{font-weight:900;color:#64748b}.health-card.ok{border-top:5px solid #22c55e}.health-card.down{border-top:5px solid #ef4444}.float-card{animation:pvFloat 4s ease-in-out infinite}.float-card:nth-child(2){animation-delay:.4s}.float-card:nth-child(3){animation-delay:.8s}.float-card:nth-child(4){animation-delay:1.2s}@keyframes pvFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.lazy-placeholder{min-height:160px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f8fbff,#fff);border:1px dashed #cbd5e1;border-radius:20px;color:#64748b;font-weight:900}.quick-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.quick-actions .btn{border-radius:16px!important}
body[data-theme="dark"] .profile-menu,body[data-theme="dark"] .announcement-card,body[data-theme="dark"] .health-card{background:#111827!important;border-color:#334155!important;color:#fff}body[data-theme="dark"] .announcement-card span,body[data-theme="dark"] .health-card small{color:#cbd5e1}.device-note{display:inline-flex;gap:8px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:999px;padding:8px 12px;font-weight:900}

/* v7.8 Premium UX refresh */
body{background:radial-gradient(circle at top right,rgba(47,147,216,.10),transparent 32%),linear-gradient(180deg,#f5f8fc 0%,#eef3f8 100%)}
body[data-theme="dark"]{background:radial-gradient(circle at top right,rgba(56,189,248,.15),transparent 28%),linear-gradient(180deg,#07111f 0%,#0f172a 100%)}
.main{max-width:1560px;margin-right:auto}
.dashboard-grid.compact.animated-cards{grid-template-columns:repeat(4,minmax(170px,1fr));gap:16px}
.animated-cards .stat-card{border-radius:22px;min-height:135px;padding:20px 20px 18px;border:1px solid rgba(255,255,255,.65);box-shadow:0 18px 45px rgba(15,23,42,.10);background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(248,250,252,.82));backdrop-filter:blur(12px);transition:.25s ease;isolation:isolate}
.animated-cards .stat-card:before{height:100%;width:6px;inset:0 auto 0 0;border-radius:22px 0 0 22px;background:linear-gradient(180deg,var(--top),#60a5fa)}
.animated-cards .stat-card:after{content:"";position:absolute;inset:auto -30px -42px auto;width:120px;height:120px;border-radius:50%;background:rgba(47,147,216,.10);z-index:-1}
.animated-cards .stat-card:hover{transform:translateY(-6px) scale(1.01);box-shadow:0 24px 60px rgba(15,23,42,.16)}
.animated-cards .stat-card.success:before{background:linear-gradient(180deg,#22c55e,#14b8a6)}
.animated-cards .stat-card.danger:before{background:linear-gradient(180deg,#f97316,#ef4444)}
.animated-cards .stat-card.dark:before{background:linear-gradient(180deg,#111827,#64748b)}
.animated-cards .stat-icon{position:absolute;top:18px;left:18px;width:48px;height:48px;border-radius:18px;background:linear-gradient(145deg,#eff6ff,#fff);box-shadow:0 10px 25px rgba(15,23,42,.08)}
.animated-cards .stat-card small{font-size:13px;color:#64748b;margin-top:4px}.animated-cards .stat-card b{font-size:34px;line-height:1.1;margin-top:12px}
body[data-theme="dark"] .animated-cards .stat-card{background:linear-gradient(145deg,rgba(15,23,42,.94),rgba(30,41,59,.82));border-color:rgba(148,163,184,.16)}
body[data-theme="dark"] .animated-cards .stat-card small{color:#cbd5e1}
body[data-theme="dark"] .animated-cards .stat-icon{background:linear-gradient(145deg,#0f172a,#1e293b)}
.quick-grid{grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px}.quick-card{border-radius:20px;border:1px solid rgba(226,232,240,.9);box-shadow:0 15px 35px rgba(15,23,42,.08);background:linear-gradient(145deg,#fff,#f8fbff)}
/* live activity premium timeline */
.live-page{border-radius:26px;padding:26px;background:linear-gradient(145deg,#ffffff,#f7fbff);box-shadow:0 25px 70px rgba(15,23,42,.12);overflow:hidden;position:relative}.live-page:before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:linear-gradient(90deg,#38bdf8,#22c55e,#8b5cf6)}
.live-dashboard-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px;border-radius:22px;background:linear-gradient(120deg,#0f172a,#1d4ed8);color:#fff;margin-bottom:18px;box-shadow:0 20px 45px rgba(30,64,175,.25)}
.live-dashboard-header h2{margin:0;font-size:28px}.live-dashboard-header p{margin:5px 0 0;color:#dbeafe;font-weight:700}.live-status-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.23);padding:10px 14px;border-radius:999px;font-weight:900}.pulse-dot{width:11px;height:11px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 0 rgba(34,197,94,.8);animation:pulseLive 1.3s infinite}@keyframes pulseLive{70%{box-shadow:0 0 0 12px rgba(34,197,94,0)}}
.live-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.live-filter{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 13px;font-weight:900;cursor:pointer}.live-filter.active,.live-filter:hover{background:#0f172a;color:#fff;border-color:#0f172a}
.live-timeline{display:grid;gap:12px;position:relative}.live-item{display:grid;grid-template-columns:54px 1fr;gap:12px;align-items:flex-start;background:rgba(255,255,255,.86);border:1px solid #e6eef7;border-radius:18px;padding:14px 15px;box-shadow:0 8px 25px rgba(15,23,42,.06);transition:.2s}.live-item:hover{transform:translateX(-4px);box-shadow:0 18px 35px rgba(15,23,42,.12);border-color:#bfdbfe}.live-dot{width:42px;height:42px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:#eff6ff;color:#2563eb;font-size:21px}.live-item.invoice .live-dot{background:#fff7ed;color:#f97316}.live-item.user .live-dot{background:#ecfdf5;color:#16a34a}.live-item.mac .live-dot{background:#fef2f2;color:#dc2626}.live-item.points .live-dot{background:#f5f3ff;color:#7c3aed}.live-item b{font-size:15px;color:#0f172a}.live-item p{margin:5px 0 6px;color:#475569;font-weight:700}.live-item small{color:#64748b;font-weight:800}.live-meta{display:flex;gap:10px;flex-wrap:wrap}.live-time{background:#eef6ff;color:#155e9f;border-radius:999px;padding:3px 9px;font-weight:900;font-size:12px}
body[data-theme="dark"] .live-page{background:linear-gradient(145deg,#0f172a,#111827)}body[data-theme="dark"] .live-item{background:rgba(15,23,42,.84);border-color:#1f334d}body[data-theme="dark"] .live-item b{color:#f8fafc}body[data-theme="dark"] .live-item p{color:#cbd5e1}body[data-theme="dark"] .live-filter{background:#0f172a;color:#e2e8f0;border-color:#334155}
/* floating quick action */
.floating-actions{position:fixed;right:24px;bottom:24px;z-index:60}.fab-main{width:58px;height:58px;border:0;border-radius:22px;background:linear-gradient(145deg,var(--top),#1d4ed8);color:#fff;font-size:28px;box-shadow:0 18px 45px rgba(37,99,235,.35);cursor:pointer}.fab-menu{position:absolute;right:0;bottom:70px;background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:0 20px 55px rgba(15,23,42,.22);padding:8px;display:none;min-width:190px}.floating-actions.open .fab-menu{display:grid;gap:6px}.fab-menu button{border:0;background:transparent;color:var(--text);text-align:right;font-family:Cairo;padding:11px 12px;border-radius:12px;font-weight:900;cursor:pointer}.fab-menu button:hover{background:var(--soft)}
/* invoices full premium */
.invoices-panel.invoice-page-panel{border-radius:24px;padding:24px;background:linear-gradient(145deg,#fff,#f8fbff);box-shadow:0 18px 55px rgba(15,23,42,.10)}.invoice-table{min-width:1100px}.invoice-view-btn{border-radius:12px;padding:8px 14px;background:linear-gradient(145deg,#e0f2fe,#dbeafe)!important;color:#075985!important;font-weight:900}.invoice-table tbody tr:hover{background:#f0f9ff}.price-chip{display:inline-grid;gap:2px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:7px 10px;min-width:96px}.price-chip small{color:#64748b}.invoice-no{background:#111827;color:#fff;border-radius:12px;padding:6px 10px;font-weight:900}.note-pill{display:inline-block;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#475569;background:#f8fafc;border-radius:999px;padding:6px 10px}
@media(max-width:1050px){.dashboard-grid.compact.animated-cards,.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.live-dashboard-header{align-items:flex-start;flex-direction:column}.floating-actions{right:16px;bottom:16px}}@media(max-width:640px){.dashboard-grid.compact.animated-cards,.quick-grid{grid-template-columns:1fr}.animated-cards .stat-card{min-height:115px}.live-item{grid-template-columns:42px 1fr}.live-dot{width:36px;height:36px;border-radius:13px}.fab-main{width:52px;height:52px;border-radius:18px}}

/* v8.1 reverted to classic UI with light polish */
.shell{background:linear-gradient(135deg,#f5f8fc 0%,#eef5ff 45%,#f8fbff 100%)}
.topbar{box-shadow:0 12px 34px rgba(47,147,216,.18)}
.panel,.section-block.panel,.page-head{box-shadow:0 18px 50px rgba(15,23,42,.08)}
.search-card.pro.better{border:1px solid rgba(47,147,216,.16);box-shadow:0 18px 45px rgba(15,23,42,.12);border-radius:18px;background:linear-gradient(145deg,#fff,#f8fbff)}
.search-card.pro.better .search-head{display:flex;align-items:center;gap:8px;margin-bottom:10px;color:#0f172a}
.search-card.pro.better .code-big button{border:0;background:linear-gradient(135deg,var(--top),#2563eb);color:#fff;border-radius:14px;padding:10px 14px;font-weight:900;width:100%;cursor:pointer}
body[data-theme="dark"] .shell{background:linear-gradient(135deg,#0b1220,#111827)}
body[data-theme="dark"] .search-card.pro.better{background:linear-gradient(145deg,#111827,#172033);border-color:#334155}
body[data-theme="dark"] .search-card.pro.better .search-head{color:#f8fafc}

/* v8.3 real admin tools: MAC / Stars / Countries / Performance */
.admin-tool-page{display:grid;gap:18px}.tool-hero{min-height:170px;border-radius:28px;padding:26px;display:flex;align-items:center;justify-content:space-between;gap:18px;color:#fff;box-shadow:0 24px 70px rgba(15,23,42,.18);position:relative;overflow:hidden}.tool-hero:before{content:"";position:absolute;inset:-60px auto auto -60px;width:210px;height:210px;border-radius:50%;background:rgba(255,255,255,.16)}.tool-hero:after{content:"";position:absolute;inset:auto -70px -90px auto;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.10)}.tool-hero h2{font-size:34px;margin:5px 0 7px}.tool-hero p{font-weight:800;color:rgba(255,255,255,.86);margin:0}.tool-kicker{display:inline-flex;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:7px 12px;font-weight:900;font-size:12px}.tool-hero-icon{font-size:66px;filter:drop-shadow(0 14px 20px rgba(0,0,0,.20));z-index:1}.mac-hero{background:linear-gradient(135deg,#0f172a,#2563eb 60%,#06b6d4)}.stars-hero{background:linear-gradient(135deg,#111827,#d97706 58%,#facc15)}.map-hero{background:linear-gradient(135deg,#064e3b,#059669 58%,#0ea5e9)}.perf-hero{background:linear-gradient(135deg,#1e1b4b,#7c3aed 58%,#ec4899)}
.tool-cards{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px}.tool-card{min-height:132px;border-radius:24px;background:linear-gradient(145deg,#fff,#f8fbff);border:1px solid #e2e8f0;box-shadow:0 16px 42px rgba(15,23,42,.08);padding:18px;display:grid;align-content:center;gap:5px;position:relative;overflow:hidden}.tool-card:after{content:"";position:absolute;inset:auto -28px -35px auto;width:110px;height:110px;background:rgba(47,147,216,.08);border-radius:50%}.tool-card span{font-size:31px}.tool-card b{font-size:31px;color:#0f172a}.tool-card small{font-weight:900;color:#64748b}.tool-card.ok{border-top:5px solid #22c55e}.tool-card.info{border-top:5px solid #0ea5e9}.tool-card.warn{border-top:5px solid #f97316}.tool-card.diamond{border-top:5px solid #06b6d4}.tool-card.gold{border-top:5px solid #eab308}.tool-card.silver{border-top:5px solid #94a3b8}.tool-card.bronze{border-top:5px solid #b45309}.tool-grid.two{display:grid;grid-template-columns:1.2fr .9fr;gap:18px}.tool-panel{border-radius:24px!important;padding:20px!important;background:linear-gradient(145deg,#fff,#f8fbff)!important}.tool-panel.full{min-height:420px}.activity-list{display:grid;gap:10px;max-height:620px;overflow:auto}.activity-mini{display:grid;grid-template-columns:44px 1fr;gap:10px;align-items:start;padding:12px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0}.activity-mini>span{width:44px;height:44px;border-radius:14px;background:#eff6ff;display:flex;align-items:center;justify-content:center}.activity-mini b{font-size:14px}.activity-mini p{margin:3px 0;color:#475569;font-weight:800}.activity-mini small{color:#64748b;font-weight:800}.activity-mini.danger{background:#fff1f2;border-color:#fecdd3}.tier{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 10px;font-weight:900}.tier.diamond{background:#ecfeff;color:#0369a1}.tier.gold{background:#fef3c7;color:#92400e}.tier.silver{background:#f1f5f9;color:#334155}.tier.bronze{background:#ffedd5;color:#9a3412}.stars-table td b+small{display:block;color:#64748b;font-weight:900}.country-list{display:grid;gap:12px}.country-row{display:grid;grid-template-columns:52px 170px 1fr 70px 55px;gap:12px;align-items:center;padding:13px;border-radius:18px;border:1px solid #e2e8f0;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.04)}.country-flag{width:52px;height:52px;border-radius:18px;background:#f8fafc;display:flex;align-items:center;justify-content:center;font-size:29px}.country-row b{display:block}.country-row small{color:#64748b;font-weight:900}.country-bar{height:14px;background:#e0f2fe;border-radius:999px;overflow:hidden}.country-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#22c55e)}.country-row strong{text-align:center}.country-row em{font-style:normal;color:#64748b;font-weight:900}.perf-list{display:grid;gap:10px;margin-bottom:16px}.perf-list>div{display:flex;align-items:center;justify-content:space-between;background:#f8fafc;border:1px solid #e2e8f0;border-radius:15px;padding:12px;font-weight:900}.perf-list span{color:#0f5fa8}.tool-bars .bar-row{grid-template-columns:125px 1fr 54px}.tool-bars .bar-track{height:13px}
body[data-theme="dark"] .tool-card,body[data-theme="dark"] .tool-panel,body[data-theme="dark"] .country-row,body[data-theme="dark"] .activity-mini,body[data-theme="dark"] .perf-list>div{background:#111827!important;border-color:#334155!important;color:#fff}body[data-theme="dark"] .tool-card b{color:#f8fafc}body[data-theme="dark"] .tool-card small,body[data-theme="dark"] .country-row small,body[data-theme="dark"] .activity-mini p,body[data-theme="dark"] .activity-mini small{color:#cbd5e1}body[data-theme="dark"] .country-flag{background:#0f172a}body[data-theme="dark"] .country-bar{background:#1e293b}
@media(max-width:1050px){.tool-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-grid.two{grid-template-columns:1fr}.country-row{grid-template-columns:48px 1fr;}.country-bar,.country-row strong,.country-row em{grid-column:1/-1}.tool-hero{align-items:flex-start;flex-direction:column}.tool-hero-icon{font-size:52px}}@media(max-width:640px){.tool-cards{grid-template-columns:1fr}.tool-hero h2{font-size:27px}.tool-panel{padding:14px!important}}
/* v8.6 additions */
.cart-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:18px;margin-bottom:18px}.cart-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border:1px solid var(--line,#e5e7eb);border-radius:16px;background:rgba(255,255,255,.72);margin-bottom:10px}.cart-item b{display:block}.cart-item small,.cart-item em{display:block;color:var(--muted,#64748b);font-size:12px}.cart-empty{padding:22px;text-align:center;border:1px dashed var(--line,#e5e7eb);border-radius:18px;color:var(--muted,#64748b)}.perm-checkbox-grid,.perm-mini-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:12px 0}.perm-mini-grid{grid-template-columns:repeat(auto-fit,minmax(80px,1fr));font-size:12px}.perm-mini-grid label{background:rgba(15,23,42,.04);border-radius:10px;padding:6px 8px;white-space:nowrap}.role-admin .price-chip b{font-size:18px}.inline{display:inline}.table .small-muted{font-size:12px;max-width:320px;word-break:break-word}.mini-panel{border-radius:22px;padding:18px}.side-badge{min-width:20px;height:20px;border-radius:20px;background:var(--red,#ef4444);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:11px;padding:0 6px;margin-inline-start:auto}.profile-menu a{display:block;padding:9px 10px;border-radius:10px;color:inherit;text-decoration:none}.profile-menu a:hover{background:rgba(59,130,246,.08)}@media(max-width:850px){.cart-grid{grid-template-columns:1fr}.perm-row-form{display:block}.perm-mini-grid{grid-template-columns:repeat(2,1fr)}}
[data-theme="dark"] .cart-item,[data-theme="dark"] .perm-mini-grid label{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.1)}

/* v8.9 refinements */
.perm-search-wrap{position:relative;min-width:280px}.perm-suggestions{position:absolute;top:calc(100% + 8px);inset-inline:0;background:var(--card,#fff);border:1px solid var(--line,#e5e7eb);border-radius:16px;box-shadow:0 18px 45px rgba(15,23,42,.15);z-index:20;display:none;overflow:hidden}.perm-suggestions.show{display:block}.perm-suggestions button{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;background:transparent;padding:12px 14px;cursor:pointer;color:inherit}.perm-suggestions button:hover{background:rgba(59,130,246,.08)}.perm-suggestions .empty{padding:14px;color:var(--muted,#64748b)}.permission-table tbody tr{cursor:pointer}.permission-table tbody tr:hover{background:rgba(37,99,235,.07)}.perm-tags{display:flex;flex-wrap:wrap;gap:6px}.perm-tags span{font-size:11px;padding:5px 8px;border-radius:999px;background:rgba(37,99,235,.08);color:#2563eb;font-weight:800}.permission-modal-card{max-width:980px}.permission-main-switch{display:grid;grid-template-columns:1.5fr 1fr;gap:14px;align-items:end;margin-bottom:14px}.switch-line.big{font-size:16px;padding:16px;border:1px solid var(--line,#e5e7eb);border-radius:18px;background:rgba(37,99,235,.05)}.permission-grid-large{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:16px 0}.perm-toggle-card{display:block;border:1px solid var(--line,#e5e7eb);border-radius:18px;padding:14px;background:rgba(255,255,255,.72)}.perm-toggle-card input{margin-inline-end:6px}.perm-toggle-card b{display:inline-block;margin-bottom:5px}.perm-toggle-card small{display:block;color:var(--muted,#64748b);line-height:1.6}.profile-menu label{font-size:12px;font-weight:800;color:var(--muted,#64748b);margin-top:8px;display:block}.profile-effect{margin:8px 0}.profile-effect input{margin-inline-end:7px}body[data-font-size="large"]{font-size:17px}body[data-font-size="small"]{font-size:14px}body[data-font-family="opensans"]{font-family:'Open Sans','Cairo',sans-serif}body[data-font-family="system"]{font-family:system-ui,-apple-system,'Segoe UI','Cairo',sans-serif}body[data-density="compact"] .panel,body[data-density="compact"] .stat-card,body[data-density="compact"] .modal-card{padding:14px}body[data-density="compact"] .table td,body[data-density="compact"] .table th{padding:8px 10px}.reduce-motion *{animation:none!important;transition:none!important}[data-theme="dark"] .perm-suggestions,[data-theme="dark"] .perm-toggle-card{background:#111827;border-color:rgba(255,255,255,.1)}[data-theme="dark"] .permission-table tbody tr:hover{background:rgba(255,255,255,.06)}


/* v9.1 refinements */
.live-dashboard-header.refined{background:linear-gradient(135deg,rgba(47,147,216,.13),rgba(34,197,94,.10));border:1px solid rgba(47,147,216,.16);border-radius:22px;padding:18px 20px;margin-bottom:16px}.live-theme-switch{display:flex;gap:8px;flex-wrap:wrap}.live-theme-switch .active{background:var(--top);color:#fff}.live-timeline.pro{position:relative;padding:10px}.live-timeline.pro:before{content:'';position:absolute;right:28px;top:18px;bottom:18px;width:3px;border-radius:3px;background:linear-gradient(var(--top),var(--green))}.live-timeline.pro .live-item{position:relative;background:rgba(255,255,255,.86);border:1px solid rgba(148,163,184,.18);box-shadow:0 14px 35px rgba(15,23,42,.07);border-radius:18px;margin:12px 0 12px 34px;padding:16px 18px;transition:.2s}.live-timeline.pro .live-item:hover{transform:translateY(-2px);box-shadow:0 18px 45px rgba(15,23,42,.12)}.live-timeline.pro .live-dot{box-shadow:0 0 0 6px rgba(47,147,216,.12);background:#fff;border:2px solid rgba(47,147,216,.25)}.live-shell{background:#08111f;color:#dbeafe;border-radius:20px;box-shadow:0 24px 60px rgba(2,6,23,.28);overflow:hidden;border:1px solid rgba(96,165,250,.2);font-family:'Open Sans',monospace;direction:ltr;text-align:left}.shell-title{display:flex;gap:8px;align-items:center;background:#111827;padding:12px 16px;color:#93c5fd}.shell-title span{width:12px;height:12px;border-radius:50%;background:#ef4444}.shell-title span:nth-child(2){background:#f59e0b}.shell-title span:nth-child(3){background:#22c55e}.shell-title b{margin-left:auto;letter-spacing:.08em}.shell-line{display:grid;grid-template-columns:120px 190px 1fr 170px;gap:12px;padding:12px 16px;border-bottom:1px solid rgba(148,163,184,.12);align-items:center}.shell-line:hover{background:rgba(59,130,246,.09)}.shell-line .prompt{color:#22c55e}.shell-line .cmd{color:#fbbf24;font-weight:800}.shell-line .arg{color:#e5e7eb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shell-line small{color:#94a3b8;text-align:right}.code-create-form .form-section:nth-child(2){background:linear-gradient(135deg,#eef4ff,#f8fbff);border-color:#cbdafe}.cache-status-page .mini-stats{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:12px;margin:14px 0}.cache-status-page .mini-stats div{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:14px;text-align:center}.cache-status-page .mini-stats b{font-size:24px;color:var(--top);display:block}.ok-chip{background:#dcfce7;color:#166534;border-radius:999px;padding:4px 9px;font-weight:800}.profile-menu{border:1px solid rgba(148,163,184,.22);box-shadow:0 18px 55px rgba(15,23,42,.16)}body.login-smooth .login-card{animation:pvLoginIn .55s ease both}@keyframes pvLoginIn{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}

/* v9.2 refinements */
.profile-menu{width:310px!important;background:linear-gradient(180deg,var(--card),rgba(248,251,255,.98));padding:16px!important}
.profile-menu .profile-head{background:linear-gradient(135deg,rgba(47,147,216,.10),rgba(34,197,94,.08));border-radius:16px;padding:12px!important;border:1px solid rgba(47,147,216,.12)!important}
.profile-menu .input{height:40px!important;border-radius:12px!important}.profile-logout{background:linear-gradient(135deg,#fee2e2,#fff1f2)!important;border:1px solid #fecaca;color:#991b1b!important}.side-logout-link{background:rgba(239,68,68,.08)!important;color:#991b1b!important;border:1px solid rgba(239,68,68,.10)!important;border-radius:14px!important;margin-top:8px!important}
body[data-theme="dark"] .profile-menu{background:linear-gradient(180deg,#111827,#0f172a)!important}body[data-theme="dark"] .profile-menu .profile-head{background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.08)!important}.notice-reads{margin:12px 0;padding:12px;border-radius:14px;background:#f8fafc;border:1px solid #e5e7eb}.notice-reads ul{margin:8px 0 0;padding-inline-start:18px}.notice-reads li{font-size:13px;color:#475569;font-weight:800}.code-create-form .form-section:nth-child(2){background:linear-gradient(135deg,#e2e8f0,#eef4ff)!important;border:1px solid #cbd5e1!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}body[data-theme="dark"] .code-create-form .form-section:nth-child(2){background:linear-gradient(135deg,#1f2937,#172033)!important;border-color:#334155!important}.cache-status-page .table td:nth-child(4){font-weight:900;color:var(--top)}
.live-dashboard-header.refined{background:linear-gradient(135deg,#0f172a,#164e93 55%,#0f766e)!important;color:#fff!important}.live-dashboard-header.refined p{color:#dbeafe!important}.live-theme-switch .btn{border:1px solid rgba(255,255,255,.22)!important;background:rgba(255,255,255,.12)!important;color:#fff!important}.live-theme-switch .active{background:#fff!important;color:#0f172a!important}.live-shell{margin-top:12px}.shell-line{grid-template-columns:125px 180px 1fr 190px!important}.shell-line[data-live-type="invoice"] .cmd{color:#fb923c}.shell-line[data-live-type="mac"] .cmd{color:#f87171}.shell-line[data-live-type="points"] .cmd{color:#c084fc}
.login-smooth:before{content:"";position:fixed;inset:0;background:radial-gradient(circle at top right,rgba(47,147,216,.20),transparent 35%),radial-gradient(circle at bottom left,rgba(34,197,94,.16),transparent 30%);pointer-events:none}.login-card{box-shadow:0 28px 90px rgba(15,23,42,.20)!important;border:1px solid rgba(148,163,184,.22)!important}


/* v9.4 cleanup and premium profile/database/code open */
.profile-menu{
  width:260px!important;padding:12px!important;border-radius:20px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(239,247,255,.97))!important;
  border:1px solid rgba(59,130,246,.18)!important;box-shadow:0 22px 60px rgba(15,23,42,.18)!important;backdrop-filter:blur(18px)
}
.profile-menu .profile-head{padding:10px 11px!important;border-radius:15px!important;background:linear-gradient(135deg,#eef6ff,#ecfdf5)!important;border:1px solid rgba(59,130,246,.14)!important;margin-bottom:8px}.profile-menu label{font-size:11px;font-weight:900;color:#64748b;margin-top:6px}.profile-menu .input{height:34px!important;border-radius:11px!important;font-size:12px!important;padding:5px 9px!important}.profile-menu a{font-size:13px;font-weight:900;margin-top:5px}.profile-logout{background:#fee2e2!important;color:#991b1b!important;border:1px solid #fecaca!important}.profile-menu a:not(.profile-logout){background:#eef6ff!important;color:#075985!important;border:1px solid #dbeafe!important}.profile-menu a:not(.profile-logout):hover{background:#dbeafe!important}
body[data-theme="dark"] .profile-menu{background:linear-gradient(145deg,#0f172a,#111827)!important;border-color:rgba(148,163,184,.22)!important}body[data-theme="dark"] .profile-menu .profile-head{background:linear-gradient(135deg,#172033,#0f172a)!important}body[data-theme="dark"] .profile-menu a:not(.profile-logout){background:#172033!important;color:#dbeafe!important;border-color:#334155!important}
.open-code-btn{width:30px;height:30px;display:inline-flex!important;align-items:center;justify-content:center;border-radius:11px;background:linear-gradient(135deg,#dbeafe,#e0f2fe);border:1px solid #bfdbfe;color:#075985!important;text-decoration:none;font-weight:900;margin-inline-start:6px;box-shadow:0 7px 16px rgba(14,116,144,.12)}.open-code-btn:hover{transform:translateY(-1px);background:linear-gradient(135deg,#bfdbfe,#bae6fd)}
.live-shell{background:linear-gradient(145deg,#050914,#0b1220)!important;border:1px solid rgba(34,197,94,.22)!important;color:#d1fae5!important;box-shadow:0 28px 80px rgba(2,6,23,.35)!important}.shell-title{background:#020617!important;color:#67e8f9!important;border-bottom:1px solid rgba(34,197,94,.15)}.shell-line{grid-template-columns:130px 190px 1fr 170px!important;font-size:13px}.shell-line .prompt{color:#34d399!important}.shell-line .cmd{color:#93c5fd!important}.shell-line .arg{color:#e5e7eb!important}.shell-line small{color:#a7f3d0!important}.shell-line:before{content:'>';color:#22c55e;font-weight:900;margin-left:4px}.shell-line:hover{background:rgba(34,197,94,.08)!important}
.script-db-page .db-layout{display:grid;grid-template-columns:300px 1fr;gap:18px}.db-tree,.db-main{border-radius:24px;padding:18px}.db-path-card{background:linear-gradient(145deg,#eef6ff,#f8fafc);border:1px solid #dbeafe;border-radius:18px;padding:14px;margin-bottom:15px}.db-path-card span,.db-path-card small{display:block;color:#64748b;font-weight:900}.db-path-card b{display:block;color:#0f172a;word-break:break-all;font-size:12px;margin:6px 0}.db-tree-item{display:flex;justify-content:space-between;align-items:center;padding:11px 12px;border-radius:14px;text-decoration:none;color:#0f172a;font-weight:900;margin:6px 0;border:1px solid transparent}.db-tree-item:hover,.db-tree-item.active{background:#eef6ff;border-color:#bfdbfe;color:#075985}.db-tree-item b{background:#fff;border-radius:999px;padding:2px 8px;color:#2563eb}.db-main-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.db-count{background:#0f172a;color:#fff;border-radius:999px;padding:5px 12px;font-weight:900}.db-columns{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;margin:12px 0 20px}.db-columns div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:10px}.db-columns small{display:block;color:#64748b;font-weight:800}.db-table-wrap{max-height:520px;overflow:auto}@media(max-width:900px){.script-db-page .db-layout{grid-template-columns:1fr}}
body[data-theme="dark"] .db-path-card,body[data-theme="dark"] .db-columns div{background:#111827;border-color:#334155}body[data-theme="dark"] .db-path-card b,body[data-theme="dark"] .db-tree-item{color:#e5e7eb}body[data-theme="dark"] .db-tree-item:hover,body[data-theme="dark"] .db-tree-item.active{background:#172033;border-color:#334155;color:#bfdbfe}


/* v9.5 refinements */
.open-table-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:10px;margin-inline-start:8px;background:linear-gradient(135deg,#e0f2fe,#dbeafe);color:#075985;text-decoration:none;font-size:15px;box-shadow:0 8px 18px rgba(14,165,233,.16)}
.open-table-icon:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(14,165,233,.24)}
.users-full-page{min-height:calc(100vh - 130px)}.full-codes-wrap{max-height:none}.full-codes-wrap .table{font-size:12.5px}
.profile-menu{min-width:260px;background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(30,41,59,.96));color:#f8fafc;border:1px solid rgba(255,255,255,.12);box-shadow:0 22px 60px rgba(2,6,23,.35);backdrop-filter:blur(16px);padding:12px;border-radius:22px}.profile-menu .input{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);color:#fff;height:36px;font-size:12px}.profile-menu label{font-size:11px;color:#cbd5e1;margin:8px 4px 4px}.profile-head.pretty{display:flex;align-items:center;gap:10px;padding:10px;border-radius:16px;background:linear-gradient(135deg,rgba(59,130,246,.28),rgba(16,185,129,.18));margin-bottom:8px}.profile-avatar{width:42px;height:42px;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}.profile-avatar img{max-width:34px;max-height:34px}.profile-menu a{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:12px;color:#e2e8f0;text-decoration:none;background:rgba(255,255,255,.04);margin-top:6px}.profile-menu a:hover{background:rgba(59,130,246,.22);color:#fff}.profile-menu .profile-logout{background:linear-gradient(135deg,rgba(239,68,68,.25),rgba(248,113,113,.18));color:#fecaca}.profile-menu .profile-logout:hover{background:linear-gradient(135deg,#ef4444,#f97316);color:#fff}.profile-effect{background:rgba(255,255,255,.05);padding:8px;border-radius:12px}
.live-dashboard-header.refined{border-radius:24px;background:linear-gradient(135deg,#0f172a,#1e3a8a);color:#fff;padding:22px;box-shadow:0 20px 50px rgba(15,23,42,.22)}.live-dashboard-header.refined p{color:#dbeafe}.live-timeline.pro{position:relative;border-radius:24px;background:linear-gradient(180deg,#ffffff,#f8fafc);padding:18px;border:1px solid #e5e7eb}.live-timeline.pro:before{content:"";position:absolute;top:24px;bottom:24px;right:35px;width:2px;background:linear-gradient(#38bdf8,#22c55e,#f59e0b)}.live-item{position:relative;display:grid;grid-template-columns:46px 1fr;gap:12px;margin:10px 0;padding:14px;border-radius:18px;background:rgba(255,255,255,.88);box-shadow:0 8px 22px rgba(15,23,42,.06);border:1px solid #eef2f7}.live-dot{width:38px;height:38px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#e0f2fe;z-index:1}.live-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#64748b;font-size:12px}.live-time{background:#f1f5f9;border-radius:999px;padding:4px 9px}.live-shell.real-shell{background:#020617;color:#d1fae5;border-radius:22px;padding:0 0 14px;overflow:hidden;box-shadow:0 22px 60px rgba(2,6,23,.28);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.shell-title{height:42px;background:#111827;color:#e5e7eb;display:flex;align-items:center;gap:7px;padding:0 14px}.shell-title span{width:12px;height:12px;border-radius:50%;background:#ef4444}.shell-title span:nth-child(2){background:#f59e0b}.shell-title span:nth-child(3){background:#22c55e}.shell-line{display:grid;grid-template-columns:120px 170px 1fr 160px;gap:10px;padding:10px 16px;border-bottom:1px solid rgba(16,185,129,.12);font-size:12px}.shell-line .prompt{color:#60a5fa}.shell-line .cmd{color:#34d399}.shell-line .arg{color:#f8fafc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shell-line small{color:#94a3b8;text-align:left}
@media(max-width:760px){.shell-line{grid-template-columns:1fr}.profile-menu{left:10px;right:10px;min-width:auto}.users-full-page .table-wrap{overflow:auto}.live-meta{display:block}}

/* v9.6.1 cleanup: profile menu removed, terminal activity */
.top-user-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-weight:900;border:1px solid rgba(255,255,255,.16)}
.top-user-chip .avatar{width:26px;height:26px;border-radius:9px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}.top-user-chip .avatar img{max-width:22px;max-height:22px}
.terminal-page{background:#060a13!important;border:1px solid #0f2a1d!important;border-radius:22px!important;padding:0!important;overflow:hidden;box-shadow:0 24px 80px rgba(2,6,23,.35)!important}
.terminal-headbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;background:linear-gradient(135deg,#0b1220,#111827);border-bottom:1px solid rgba(34,197,94,.18);color:#e5e7eb}.terminal-headbar h2{margin:0;color:#fff}.terminal-headbar p{margin:4px 0 0;color:#93c5fd;font-weight:800}.terminal-status{font-family:Consolas,monospace;display:flex;align-items:center;gap:8px;color:#34d399;font-weight:900}.terminal-status span{width:9px;height:9px;border-radius:50%;background:#22c55e;box-shadow:0 0 14px #22c55e}
.terminal-window{height:70vh;min-height:480px;background:#020617;color:#22c55e;direction:ltr;text-align:left;overflow:auto;font-family:Consolas,'Courier New',monospace}.terminal-toolbar{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;gap:12px;background:#050914;color:#67e8f9;border-bottom:1px solid rgba(34,197,94,.16);padding:11px 14px}.terminal-toolbar small{color:#94a3b8}#liveTerminalLines{margin:0;padding:14px 16px 28px;white-space:pre-wrap;line-height:1.75;font-size:13px;color:#22c55e;text-shadow:0 0 2px rgba(34,197,94,.25)}
@media(max-width:760px){.terminal-headbar{display:block}.terminal-window{height:68vh}#liveTerminalLines{font-size:11px}.top-user-chip span:last-child{display:none}}

/* v9.7 modal stacking, login account switcher, personal area */
.modal{z-index:1000}.pv-dialog{z-index:9000!important}.pv-dialog.show{display:flex!important}.modal.show{display:flex!important}.modal-card{max-height:92vh;overflow:auto}.invoice-modal-card{z-index:inherit}.created-popup-card .created-actions{position:relative;z-index:2}
.account-switcher{margin:10px 0 12px;padding:10px;border:1px solid #dbeafe;border-radius:16px;background:linear-gradient(135deg,#f8fbff,#eef6ff)}.account-switcher-title{font-size:12px;font-weight:900;color:#2563eb;margin-bottom:8px}.saved-accounts-list{display:flex;gap:8px;flex-wrap:wrap}.saved-accounts-list button{border:1px solid #c7d2fe;background:#fff;color:#0f172a;border-radius:12px;padding:7px 10px;cursor:pointer;display:grid;text-align:right;min-width:110px}.saved-accounts-list button:hover{background:#eff6ff;transform:translateY(-1px)}.saved-accounts-list b{font-size:13px}.saved-accounts-list small{font-size:10px;color:#64748b}.login-footer-dev{text-align:center;margin-top:14px;color:#64748b;font-weight:800;font-size:12px;direction:ltr}.login-sub{line-height:1.7!important}
.personal-page{max-width:1180px;margin:auto}.personal-grid{display:grid;grid-template-columns:320px 1fr 1fr;gap:18px}.personal-card{background:linear-gradient(145deg,#fff,#f8fbff);border:1px solid #e2e8f0;border-radius:24px;padding:18px;box-shadow:0 14px 34px rgba(15,23,42,.06)}.personal-card h3{margin-top:0}.personal-card label{display:block;margin-top:12px;font-weight:900;color:#64748b}.profile-photo-preview{height:180px;border:1px dashed #bfdbfe;border-radius:22px;background:#eef6ff;display:flex;align-items:center;justify-content:center;overflow:hidden;margin:12px 0}.profile-photo-preview img{width:100%;height:100%;object-fit:cover}.profile-photo-preview span{font-size:56px}.personal-actions{grid-column:1/-1;display:flex;justify-content:flex-end}.top-user-chip{text-decoration:none!important}.top-user-chip:hover{transform:translateY(-1px)}
body[data-font-size="large"]{font-size:17px}body[data-font-size="small"]{font-size:14px}body[data-font-family="opensans"]{font-family:'Open Sans','Cairo',sans-serif!important}body[data-font-family="system"]{font-family:system-ui,-apple-system,'Segoe UI','Cairo',sans-serif!important}body[data-density="compact"] .panel,body[data-density="compact"] .stat-card,body[data-density="compact"] .modal-card{padding:14px!important}body[data-density="compact"] .active-table tbody td,body[data-density="compact"] .active-table thead th{padding:8px!important}
.sub-limit-card{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 16px}.sub-limit-card span{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px;text-align:center;font-weight:900}.sub-limit-card b{display:block;font-size:24px;color:var(--top)}.sub-min-note{background:#fff7ed!important;border-color:#fed7aa!important;color:#9a3412!important}
.create-code-card.modal-card.ultra-wide{width:min(1080px,96vw)!important}.create-code-card .create-grid{grid-template-columns:1fr 1fr!important;gap:22px!important}.code-create-form .form-section:nth-child(2){background:linear-gradient(135deg,#e9eef7,#f4f8ff)!important;border-color:#cbd5e1!important}.create-main-btn{min-height:54px;font-size:18px}.form-hint{font-weight:900}.invoice-customer-row{display:flex;gap:10px;align-items:center}.invoice-customer-row select{flex:1}
@media(max-width:900px){.personal-grid{grid-template-columns:1fr}.personal-actions{justify-content:stretch}.personal-actions .btn{width:100%}.create-code-card .create-grid{grid-template-columns:1fr!important}.sub-limit-card{grid-template-columns:1fr}.invoice-customer-row{display:grid}}
body[data-theme="dark"] .personal-card,body[data-theme="dark"] .account-switcher,body[data-theme="dark"] .sub-limit-card span{background:#111827;border-color:#334155;color:#fff}body[data-theme="dark"] .profile-photo-preview{background:#0f172a;border-color:#334155}body[data-theme="dark"] .saved-accounts-list button{background:#0f172a;color:#fff;border-color:#334155}


/* v9.8 modal stacking, login footer, settings tabs, create-code width */
.modal{z-index:100000!important}.modal.show{display:flex!important}.pv-dialog{z-index:200000!important}.pv-dialog.show{display:flex!important}.pv-dialog-card{position:relative;z-index:200001}.modal-card{position:relative;z-index:inherit}.create-code-card.modal-card.ultra-wide{width:min(1180px,97vw)!important;max-height:92vh}.create-code-card .create-grid{align-items:stretch}.created-popup-card .code-display{font-size:26px;font-weight:900;border-radius:18px;padding:14px 24px;background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;box-shadow:0 14px 30px rgba(37,99,235,.24);direction:ltr;letter-spacing:1px}.created-popup-card .created-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.login-card .login-footer-dev{margin:16px auto 0;text-align:center;color:#64748b;font-weight:900;font-size:12px;direction:ltr}.login-lang{display:flex!important;justify-content:center;gap:8px;margin-top:13px}.login-lang a{background:#f1f5f9;color:#334155;border-radius:999px;padding:6px 11px;font-weight:900;font-size:12px}.settings-tabbar{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;margin:16px 0 22px;background:#e5ebf2;border-radius:16px;padding:8px}.settings-tabbar button{border:0;background:transparent;border-radius:12px;padding:13px 12px;font-family:Cairo;font-weight:900;color:#64748b;cursor:pointer}.settings-tabbar button.active{background:linear-gradient(135deg,var(--top),#3b82f6);color:#fff;box-shadow:0 8px 18px rgba(47,147,216,.24)}.settings-pane{display:none}.settings-pane.active{display:block}.settings-pane h2{margin-top:0;background:#f8fafc;border-radius:14px;padding:14px 16px;border:1px solid #e2e8f0}.admin-access-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.admin-access-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:15px;box-shadow:0 8px 20px rgba(15,23,42,.06)}.admin-access-card b{display:block;font-size:17px;margin-bottom:8px}.admin-access-card small{display:block;color:#64748b;font-weight:800;margin-bottom:12px}.impersonation-banner{position:sticky;top:58px;z-index:30;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:14px;padding:10px 14px;margin:0 0 14px;font-weight:900;display:flex;align-items:center;justify-content:space-between;gap:10px}.impersonation-banner a{background:#ea580c;color:#fff;border-radius:10px;padding:8px 12px}.top-user-chip{height:36px;display:inline-flex;align-items:center;gap:8px;padding:0 9px;border-radius:8px;background:rgba(255,255,255,.13);font-weight:800;color:#fff;text-decoration:none!important}.top-user-chip .avatar img{max-width:24px;max-height:24px}
@media(max-width:900px){.settings-tabbar{grid-template-columns:1fr 1fr}.create-code-card.modal-card.ultra-wide{width:96vw!important}}


/* v9.9 Arabic-only, vertical settings tabs, backup center, profile password */
.login-lang{display:none!important}.login-footer-dev{display:block;margin-top:18px!important}.personal-grid{grid-template-columns:300px 1fr 1fr!important}.password-card{background:linear-gradient(145deg,#fff7ed,#fff)!important;border-color:#fed7aa!important}.backup-center-page{display:grid;gap:18px}.backup-password-card,.backup-box{border:1px solid #e2e8f0;border-radius:22px;background:linear-gradient(145deg,#fff,#f8fbff);padding:18px;box-shadow:0 16px 38px rgba(15,23,42,.06)}.inline-form{display:flex;gap:10px;align-items:center}.inline-form .input{flex:1}.backup-split{display:grid;grid-template-columns:1fr 1fr;gap:18px}.backup-actions{display:grid;grid-template-columns:1fr;gap:10px;margin:14px 0}.premium-settings{display:grid!important;grid-template-columns:260px minmax(0,1fr);gap:18px;align-items:start}.settings-tabbar{grid-column:1!important;display:flex!important;flex-direction:column!important;position:sticky;top:86px;background:linear-gradient(180deg,#eef3f9,#dbe4ef)!important;border-radius:22px!important;padding:10px!important;margin:0!important;box-shadow:0 14px 34px rgba(15,23,42,.08)}.settings-tabbar button{text-align:right!important;display:flex;justify-content:flex-start;align-items:center;gap:8px;min-height:48px;border-radius:16px!important}.settings-pane{grid-column:2!important;background:rgba(255,255,255,.72);border:1px solid #e2e8f0;border-radius:22px;padding:18px;box-shadow:0 12px 30px rgba(15,23,42,.05)}.premium-settings>button.btn-primary{grid-column:2;justify-self:start;min-width:190px}.server-title-icon{width:58px;height:58px;border-radius:20px;background:linear-gradient(135deg,#dbeafe,#bfdbfe);display:flex;align-items:center;justify-content:center;font-size:30px;box-shadow:0 10px 24px rgba(37,99,235,.16)}.admin-access-title{align-items:center}.admin-access-card .btn{width:100%;justify-content:center}.top-user-chip{background:linear-gradient(135deg,rgba(255,255,255,.18),rgba(255,255,255,.08))!important;border:1px solid rgba(255,255,255,.2)!important;color:#fff!important}
body[data-theme="dark"] .settings-pane,body[data-theme="dark"] .backup-password-card,body[data-theme="dark"] .backup-box{background:#111827!important;border-color:#334155!important}body[data-theme="dark"] .settings-tabbar{background:linear-gradient(180deg,#111827,#1e293b)!important}body[data-theme="dark"] .password-card{background:#171923!important;border-color:#7c2d12!important}
@media(max-width:960px){.premium-settings{display:block!important}.settings-tabbar{position:relative;top:auto;margin-bottom:14px!important}.backup-split{grid-template-columns:1fr}.personal-grid{grid-template-columns:1fr!important}.inline-form{display:grid}}

/* v10.0 admin theme system */
body[data-theme-preset="current"]{--top:#2f93d8;--green:#22c55e;--red:#ef4444;--bg:#eef2f6;--side:#fff;--text:#172033;--muted:#758195;--line:#dfe7ef;--radius:12px}
body[data-theme-preset="kreyon"]{--top:#347dde;--green:#11d58a;--red:#ef4444;--orange:#ff8a1d;--cyan:#17b7e8;--bg:#f4f7fb;--side:#3a7bd5;--text:#1c2a3d;--muted:#718096;--line:#dbe5f1;--shadow:0 12px 32px rgba(31,86,155,.13);--radius:10px}
body[data-theme-preset="windows_xp"]{--top:#245edc;--green:#36b53f;--red:#d43525;--orange:#f7a600;--cyan:#00a0c8;--bg:#dce8ff;--side:#ece9d8;--text:#111827;--muted:#4b5563;--line:#7aa7e8;--shadow:3px 3px 0 rgba(0,0,0,.22);--radius:3px}

/* Kreyon inspired admin theme */
body[data-theme-preset="kreyon"] .topbar{background:linear-gradient(90deg,#3b78d8,#2d8cf0);box-shadow:0 8px 28px rgba(45,140,240,.22)}
body[data-theme-preset="kreyon"] .sidebar{background:linear-gradient(180deg,#3c7cdb,#2c6cc5);color:#fff;border-right:0;box-shadow:8px 0 22px rgba(47,114,204,.18)}
body[data-theme-preset="kreyon"] .nav a,body[data-theme-preset="kreyon"] .nav button.side-action{color:#eef6ff;border-radius:0;margin:0 0;border-bottom:1px solid rgba(255,255,255,.12);background:transparent}
body[data-theme-preset="kreyon"] .nav a:hover,body[data-theme-preset="kreyon"] .nav a.active,body[data-theme-preset="kreyon"] .nav button.side-action:hover{background:rgba(255,255,255,.15);color:#fff}
body[data-theme-preset="kreyon"] .side-title{color:rgba(255,255,255,.65)}
body[data-theme-preset="kreyon"] .panel,body[data-theme-preset="kreyon"] .page-head,body[data-theme-preset="kreyon"] .stat-card,body[data-theme-preset="kreyon"] .quick-card{border:0;border-radius:10px;box-shadow:0 14px 34px rgba(31,86,155,.10)}
body[data-theme-preset="kreyon"] .dashboard-grid .stat-card:nth-child(1){background:linear-gradient(135deg,#20b8ff,#0b8de3);color:#fff}body[data-theme-preset="kreyon"] .dashboard-grid .stat-card:nth-child(2){background:linear-gradient(135deg,#ff8a1d,#ffbe2e);color:#fff}body[data-theme-preset="kreyon"] .dashboard-grid .stat-card:nth-child(3){background:linear-gradient(135deg,#00c6a7,#00df87);color:#fff}body[data-theme-preset="kreyon"] .dashboard-grid .stat-card:nth-child(4){background:linear-gradient(135deg,#6d5dfc,#37a2ff);color:#fff}
body[data-theme-preset="kreyon"] .stat-card:before{display:none}body[data-theme-preset="kreyon"] .stat-card small,body[data-theme-preset="kreyon"] .stat-card .muted{color:rgba(255,255,255,.82)!important}

/* Windows XP inspired admin theme */
body[data-theme-preset="windows_xp"]{font-family:Tahoma,Cairo,Arial,sans-serif;background:linear-gradient(180deg,#bbd6ff,#eaf2ff)}
body[data-theme-preset="windows_xp"] .topbar{background:linear-gradient(180deg,#2f7df5 0%,#1955cf 48%,#0e3b9d 100%);border-bottom:2px solid #083083;box-shadow:0 2px 0 rgba(255,255,255,.45) inset}
body[data-theme-preset="windows_xp"] .brand-mark,body[data-theme-preset="windows_xp"] .top-link{border-radius:3px;box-shadow:inset 1px 1px 0 rgba(255,255,255,.6)}
body[data-theme-preset="windows_xp"] .sidebar{background:#ece9d8;border-right:2px solid #7aa7e8;box-shadow:2px 0 0 #fff inset;color:#111}
body[data-theme-preset="windows_xp"] .nav a,body[data-theme-preset="windows_xp"] .nav button.side-action{border-radius:2px;margin:2px 7px;color:#17346b;border:1px solid transparent}
body[data-theme-preset="windows_xp"] .nav a:hover,body[data-theme-preset="windows_xp"] .nav a.active,body[data-theme-preset="windows_xp"] .nav button.side-action:hover{background:linear-gradient(180deg,#fff7cf,#ffd36d);border-color:#d89b00;color:#000}
body[data-theme-preset="windows_xp"] .panel,body[data-theme-preset="windows_xp"] .page-head,body[data-theme-preset="windows_xp"] .stat-card,body[data-theme-preset="windows_xp"] .quick-card{border:2px solid #7aa7e8;border-radius:3px;box-shadow:3px 3px 0 rgba(0,0,0,.15);background:#fff}
body[data-theme-preset="windows_xp"] .btn{border-radius:3px;border:1px solid #0e3b9d;box-shadow:inset 1px 1px 0 rgba(255,255,255,.65)}
body[data-theme-preset="windows_xp"] .btn-primary{background:linear-gradient(180deg,#5cda65,#1e9b2f)}
body[data-theme-preset="windows_xp"] .input{border:2px inset #d4d0c8;border-radius:2px;background:#fff;font-family:Tahoma,Cairo,Arial,sans-serif}

.theme-admin-banner{background:linear-gradient(135deg,#eef6ff,#ecfdf5);border:1px solid #bfdbfe;border-radius:18px;padding:14px 16px;margin:14px 0 18px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.theme-admin-banner b{font-weight:900;color:#075985}.theme-admin-banner span{color:#475569;font-weight:800}.theme-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:12px;margin:12px 0 16px}.theme-preview-card{display:block;border:2px solid #e2e8f0;border-radius:18px;padding:12px;background:#fff;cursor:pointer;transition:.18s}.theme-preview-card input{display:none}.theme-preview-card.active{border-color:var(--top);box-shadow:0 12px 28px rgba(47,147,216,.16);transform:translateY(-2px)}.theme-preview-card b{display:block;color:#172033;font-size:13px;margin-top:8px}.theme-preview-card small{display:block;color:#64748b;font-weight:800;font-size:11px;line-height:1.6}.theme-preview-card span{height:68px;border-radius:14px;display:grid;grid-template-columns:34% 1fr;grid-template-rows:1fr 1fr;gap:6px;padding:7px;overflow:hidden}.theme-preview-card span i{display:block;border-radius:8px}.preview-current{background:#eef2f6}.preview-current i:nth-child(1){background:#2f93d8;grid-row:1/3}.preview-current i:nth-child(2){background:#fff}.preview-current i:nth-child(3){background:#22c55e}.preview-kreyon{background:#f4f7fb}.preview-kreyon i:nth-child(1){background:#3a7bd5;grid-row:1/3}.preview-kreyon i:nth-child(2){background:linear-gradient(135deg,#20b8ff,#0b8de3)}.preview-kreyon i:nth-child(3){background:linear-gradient(135deg,#ff8a1d,#ffbe2e)}.preview-xp{background:#dce8ff}.preview-xp i:nth-child(1){background:#ece9d8;border:1px solid #7aa7e8;grid-row:1/3}.preview-xp i:nth-child(2){background:linear-gradient(180deg,#2f7df5,#0e3b9d)}.preview-xp i:nth-child(3){background:linear-gradient(180deg,#fff7cf,#ffd36d);border:1px solid #d89b00}@media(max-width:900px){.theme-preview-grid{grid-template-columns:1fr}}


/* v10.2 - Admin Excel-like table view */
.excel-view-toggle{height:38px;border:1px solid rgba(37,99,235,.22);border-radius:12px;background:linear-gradient(135deg,#eff6ff,#dbeafe);color:#1d4ed8;font-weight:900;padding:0 14px;cursor:pointer;box-shadow:0 8px 18px rgba(37,99,235,.08);transition:.18s ease}
.excel-view-toggle:hover{transform:translateY(-1px);filter:brightness(.98)}
.excel-view-toggle.active{background:linear-gradient(135deg,#16a34a,#22c55e);color:#fff;border-color:#16a34a;box-shadow:0 10px 24px rgba(22,163,74,.22)}
.excel-view-hint{align-items:center;gap:12px;margin:10px 0 12px;padding:10px 14px;border:1px solid #bbf7d0;border-radius:14px;background:#f0fdf4;color:#166534;font-size:13px}
.excel-view-hint b{background:#16a34a;color:#fff;border-radius:999px;padding:4px 10px;font-size:12px}.excel-view-hint span{line-height:1.7}
.users-full-page.excel-view-mode .full-codes-wrap{background:#f3f4f6;border:1px solid #cbd5e1;border-radius:12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.7);padding:0;overflow:auto;max-height:calc(100vh - 245px)}
.users-full-page.excel-view-mode table.table{border-collapse:collapse!important;width:100%;background:#fff;font-family:Arial,Tahoma,sans-serif;font-size:12px;table-layout:auto;margin:0}
.users-full-page.excel-view-mode table.table thead th{position:sticky;top:0;z-index:3;background:linear-gradient(#e2f0d9,#c6e0b4)!important;color:#174e1b!important;border:1px solid #9bbb59!important;text-align:center!important;font-weight:800;padding:7px 8px!important;white-space:nowrap;box-shadow:0 1px 0 #9bbb59}
.users-full-page.excel-view-mode table.table tbody td{border:1px solid #d9e2f3!important;background:#fff!important;color:#111827!important;padding:6px 8px!important;vertical-align:middle!important;white-space:nowrap;line-height:1.45}
.users-full-page.excel-view-mode table.table tbody tr:nth-child(even) td{background:#f8fbff!important}.users-full-page.excel-view-mode table.table tbody tr:hover td{background:#fff2cc!important}
.users-full-page.excel-view-mode .badge,.users-full-page.excel-view-mode .id-pill,.users-full-page.excel-view-mode .note-pill,.users-full-page.excel-view-mode .mac-pill,.users-full-page.excel-view-mode .reseller-chip{border-radius:3px!important;box-shadow:none!important;padding:3px 6px!important;font-size:11px!important}
.users-full-page.excel-view-mode .copy-code{background:#eaf2f8!important;color:#1f4e79!important;border:1px solid #9dc3e6!important;border-radius:3px!important;padding:4px 7px!important;box-shadow:none!important;font-family:Consolas,monospace;font-size:12px}
.users-full-page.excel-view-mode .open-code-btn,.users-full-page.excel-view-mode .act,.users-full-page.excel-view-mode .mini-reset{border-radius:3px!important;box-shadow:none!important;min-width:26px;height:26px;padding:0 6px!important}.users-full-page.excel-view-mode .row-actions{gap:4px}.users-full-page.excel-view-mode .date-stack span,.users-full-page.excel-view-mode .date-stack b{font-size:11px}.users-full-page.excel-view-mode .table-tools{background:#ecfdf5;border-color:#bbf7d0}
@media(max-width:760px){.excel-view-toggle{width:100%;margin-bottom:6px}.excel-view-hint{align-items:flex-start;flex-direction:column}}

/* v10.3 user themes + personal area polish */
body[data-theme-preset="windows_2000"]{--top:#000080;--green:#008000;--red:#b00000;--orange:#c08000;--cyan:#008080;--bg:#c0c0c0;--side:#d4d0c8;--text:#000;--muted:#404040;--line:#808080;--shadow:2px 2px 0 rgba(0,0,0,.35);--radius:0;font-family:Tahoma,Cairo,Arial,sans-serif}
body[data-theme-preset="windows_2000"] .topbar{background:#000080;border-bottom:2px solid #fff;box-shadow:0 2px 0 #808080;color:#fff}
body[data-theme-preset="windows_2000"] .sidebar{background:#d4d0c8;border-right:2px solid #808080;box-shadow:inset 2px 0 #fff;color:#000}
body[data-theme-preset="windows_2000"] .panel,body[data-theme-preset="windows_2000"] .page-head,body[data-theme-preset="windows_2000"] .stat-card,body[data-theme-preset="windows_2000"] .quick-card{background:#ece9d8;border:2px outset #d4d0c8;border-radius:0;box-shadow:none;color:#000}
body[data-theme-preset="windows_2000"] .nav a,body[data-theme-preset="windows_2000"] .nav button.side-action{border-radius:0;color:#000;border:1px solid transparent;margin:2px 6px}
body[data-theme-preset="windows_2000"] .nav a:hover,body[data-theme-preset="windows_2000"] .nav a.active,body[data-theme-preset="windows_2000"] .nav button.side-action:hover{background:#000080;color:#fff;border-color:#000}
body[data-theme-preset="windows_2000"] .btn{border:2px outset #d4d0c8;border-radius:0;background:#d4d0c8;color:#000;box-shadow:none}
body[data-theme-preset="windows_2000"] .btn-primary{background:#000080;color:#fff;border-color:#000080}
body[data-theme-preset="windows_2000"] .input{background:#fff;border:2px inset #d4d0c8;border-radius:0;font-family:Tahoma,Cairo,Arial,sans-serif}
body[data-theme-preset="windows_2000"] .brand-mark,body[data-theme-preset="windows_2000"] .top-link,body[data-theme-preset="windows_2000"] .top-user-chip{border-radius:0;border:1px solid #fff;background:#000080;color:#fff}

body[data-theme-preset="linux"]{--top:#111827;--green:#22c55e;--red:#ef4444;--orange:#f59e0b;--cyan:#06b6d4;--bg:#0b1220;--side:#101827;--card:#111c2f;--text:#e5f4ff;--muted:#8fb3c8;--line:#26364f;--shadow:0 15px 45px rgba(0,0,0,.35);--radius:12px;font-family:"Open Sans",Cairo,system-ui,sans-serif}
body[data-theme-preset="linux"] .topbar{background:linear-gradient(90deg,#020617,#1f2937);border-bottom:1px solid #334155;color:#d1fae5}
body[data-theme-preset="linux"] .sidebar{background:linear-gradient(180deg,#0f172a,#020617);border-right:1px solid #1e293b;color:#dbeafe}
body[data-theme-preset="linux"] .panel,body[data-theme-preset="linux"] .page-head,body[data-theme-preset="linux"] .stat-card,body[data-theme-preset="linux"] .quick-card{background:linear-gradient(145deg,#111827,#0f172a);border:1px solid #243244;color:#e5f4ff;box-shadow:0 15px 45px rgba(0,0,0,.22)}
body[data-theme-preset="linux"] .nav a,body[data-theme-preset="linux"] .nav button.side-action{color:#cbd5e1;border:1px solid transparent}
body[data-theme-preset="linux"] .nav a:hover,body[data-theme-preset="linux"] .nav a.active,body[data-theme-preset="linux"] .nav button.side-action:hover{background:rgba(34,197,94,.12);border-color:rgba(34,197,94,.35);color:#86efac}
body[data-theme-preset="linux"] .btn-primary{background:linear-gradient(135deg,#16a34a,#06b6d4);color:#fff}
body[data-theme-preset="linux"] .input{background:#020617;border-color:#334155;color:#e5f4ff}
body[data-theme-preset="linux"] .table th{background:#0b1220;color:#86efac}body[data-theme-preset="linux"] .table td{color:#e5f4ff;border-color:#243244}

.personal-premium-page{max-width:1260px;margin:auto;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}.personal-hero{background:linear-gradient(135deg,var(--top),#0ea5e9);border-radius:28px;padding:22px 24px;margin-bottom:18px;color:#fff;display:flex;align-items:center;justify-content:space-between;box-shadow:0 20px 50px rgba(47,147,216,.22)}.personal-hero-user{display:flex;align-items:center;gap:16px}.personal-hero-avatar{width:76px;height:76px;border-radius:24px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:34px}.personal-hero-avatar img{width:100%;height:100%;object-fit:cover}.personal-hero h2{margin:0;font-size:28px;font-weight:900}.personal-hero p{margin:6px 0 0;color:rgba(255,255,255,.86);font-weight:800}.personal-hero-badge{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:10px 15px;font-weight:900;letter-spacing:.5px}.personal-premium-grid{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px}.personal-premium-grid .premium-photo-card{grid-row:span 2}.premium-appearance-card{grid-column:2}.premium-password-card{grid-column:1/-1}.premium-personal-actions{grid-column:1/-1;justify-content:flex-start}.personal-premium-grid .personal-card{border-radius:24px;background:linear-gradient(145deg,#ffffff,#f8fbff);box-shadow:0 18px 45px rgba(15,23,42,.08);border:1px solid #e2e8f0}.personal-premium-grid .personal-card h3{margin:0 0 6px;font-size:19px;font-weight:900;color:#0f172a}.form-row-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.theme-preview-grid-wide{grid-template-columns:repeat(5,minmax(130px,1fr))!important}.preview-win2000{background:#c0c0c0}.preview-win2000 i:nth-child(1){background:#d4d0c8;border:1px solid #808080;grid-row:1/3;border-radius:0}.preview-win2000 i:nth-child(2){background:#000080;border-radius:0}.preview-win2000 i:nth-child(3){background:#ece9d8;border:2px outset #d4d0c8;border-radius:0}.preview-linux{background:#0b1220}.preview-linux i:nth-child(1){background:#020617;border:1px solid #334155;grid-row:1/3}.preview-linux i:nth-child(2){background:linear-gradient(135deg,#111827,#22c55e)}.preview-linux i:nth-child(3){background:linear-gradient(135deg,#0f172a,#06b6d4)}.fixed-language-note{margin-top:14px;border-radius:14px;background:#eef6ff;border:1px solid #bfdbfe;color:#075985;padding:12px;font-weight:900}.premium-photo-card .profile-photo-preview{height:220px}.premium-controls-card,.premium-contact-card{min-height:220px}body[data-theme="dark"] .personal-premium-grid .personal-card{background:linear-gradient(145deg,#111827,#0f172a);border-color:#334155}body[data-theme="dark"] .personal-premium-grid .personal-card h3{color:#fff}body[data-theme="dark"] .fixed-language-note{background:#0f172a;border-color:#334155;color:#bfdbfe}
@media(max-width:1100px){.personal-premium-grid{grid-template-columns:1fr}.premium-appearance-card,.premium-password-card{grid-column:auto}.theme-preview-grid-wide{grid-template-columns:repeat(2,minmax(140px,1fr))!important}.form-row-2{grid-template-columns:1fr}.personal-hero{display:grid;gap:14px}.personal-hero-badge{width:max-content}.premium-personal-actions .btn{width:100%}}


/* v10.4 - Excel view for all code tables + compact personal page */
.excel-capable.excel-view-mode .table-wrap,.excel-capable.excel-view-mode .full-codes-wrap{background:#f3f4f6;border:1px solid #cbd5e1;border-radius:12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.7);padding:0;overflow:auto;max-height:calc(100vh - 245px)}
.excel-capable.excel-view-mode table.table{border-collapse:collapse!important;width:100%;background:#fff;font-family:Arial,Tahoma,sans-serif;font-size:12px;table-layout:auto;margin:0}
.excel-capable.excel-view-mode table.table thead th{position:sticky;top:0;z-index:3;background:linear-gradient(#e2f0d9,#c6e0b4)!important;color:#174e1b!important;border:1px solid #9bbb59!important;text-align:center!important;font-weight:800;padding:7px 8px!important;white-space:nowrap;box-shadow:0 1px 0 #9bbb59}
.excel-capable.excel-view-mode table.table tbody td{border:1px solid #d9e2f3!important;background:#fff!important;color:#111827!important;padding:6px 8px!important;vertical-align:middle!important;white-space:nowrap;line-height:1.45}
.excel-capable.excel-view-mode table.table tbody tr:nth-child(even) td{background:#f8fbff!important}.excel-capable.excel-view-mode table.table tbody tr:hover td{background:#fff2cc!important}
.excel-capable.excel-view-mode .badge,.excel-capable.excel-view-mode .id-pill,.excel-capable.excel-view-mode .note-pill,.excel-capable.excel-view-mode .mac-pill,.excel-capable.excel-view-mode .reseller-chip{border-radius:3px!important;box-shadow:none!important;padding:3px 6px!important;font-size:11px!important}
.excel-capable.excel-view-mode .copy-code{background:#eaf2f8!important;color:#1f4e79!important;border:1px solid #9dc3e6!important;border-radius:3px!important;padding:4px 7px!important;box-shadow:none!important;font-family:Consolas,monospace;font-size:12px}
.excel-capable.excel-view-mode .open-code-btn,.excel-capable.excel-view-mode .act,.excel-capable.excel-view-mode .mini-reset{border-radius:3px!important;box-shadow:none!important;min-width:26px;height:26px;padding:0 6px!important}.excel-capable.excel-view-mode .row-actions{gap:4px}.excel-capable.excel-view-mode .date-stack span,.excel-capable.excel-view-mode .date-stack b{font-size:11px}.excel-capable.excel-view-mode .table-tools{background:#ecfdf5;border-color:#bbf7d0}
.personal-premium-page{padding:0!important}.personal-premium-grid{grid-template-columns:280px minmax(0,1fr) 360px!important;gap:14px!important;align-items:start}.personal-premium-grid .personal-card{padding:18px!important;min-height:0!important}.personal-premium-grid .premium-photo-card{grid-row:span 1!important}.premium-appearance-card{grid-column:auto!important}.premium-password-card{grid-column:2 / span 2!important}.premium-personal-actions{grid-column:1/-1!important;margin-top:-2px!important}.premium-photo-card .profile-photo-preview{height:150px!important}.theme-preview-grid-wide{grid-template-columns:repeat(5,minmax(105px,1fr))!important;gap:10px!important}.theme-preview-card{padding:10px!important}.theme-preview-card b{font-size:12px!important}.theme-preview-card small{font-size:10px!important}.personal-hero{padding:18px 20px!important;margin-bottom:14px!important;border-radius:22px!important}.personal-hero-avatar{width:58px!important;height:58px!important;border-radius:18px!important}.personal-hero h2{font-size:24px!important}.personal-hero p{font-size:13px!important}.form-row-2{gap:10px!important}.personal-card label{margin-top:8px!important}.personal-card .input{min-height:40px!important}
@media(max-width:1180px){.personal-premium-grid{grid-template-columns:1fr 1fr!important}.premium-password-card{grid-column:1/-1!important}.theme-preview-grid-wide{grid-template-columns:repeat(3,minmax(120px,1fr))!important}}
@media(max-width:760px){.personal-premium-grid{grid-template-columns:1fr!important}.theme-preview-grid-wide{grid-template-columns:repeat(2,minmax(120px,1fr))!important}.premium-password-card{grid-column:auto!important}}

/* v10.5 additions */
.cache-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.cache-pager{display:flex;gap:6px;justify-content:center;margin:14px 0}.page-link{border:1px solid #dbe4ee;background:#fff;border-radius:9px;padding:8px 13px;font-weight:900;text-decoration:none;color:#1f2937}.page-link.active{background:var(--top);color:#fff}.mini-danger{border:0;border-radius:8px;background:#fee2e2;color:#991b1b;font-weight:900;padding:7px 10px;cursor:pointer}.act.purple{background:#7c3aed;font-size:11px;width:auto;min-width:42px;padding:0 8px}.act.teal{background:#0891b2;font-size:11px;width:auto;min-width:38px;padding:0 8px}.link-popup{text-align:center}.link-text{height:110px;direction:ltr;text-align:left;font-family:Consolas,monospace;font-size:13px}.xtream-box{display:grid;gap:9px;text-align:right;margin:12px 0}.xtream-box p{display:flex;justify-content:space-between;gap:12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px;margin:0}.xtream-box span{direction:ltr;font-weight:900}.invoice-code-list{display:flex;flex-direction:column;gap:5px;align-items:center}.invoice-code-list span{display:inline-flex;gap:6px;align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:5px 8px;direction:ltr}.invoice-code-list small{font-family:Cairo;direction:rtl;color:#64748b}.report-shortcuts{margin-top:12px}.report-summary-list{display:grid;gap:10px}.report-summary-list p{margin:0;display:flex;justify-content:space-between;align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:12px}.report-summary-list span{font-weight:900;color:var(--top)}.reseller-settings-grid{display:grid;grid-template-columns:320px 1fr;gap:18px}.reseller-list-card,.reseller-edit-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:16px}.reseller-profile-list{display:flex;flex-direction:column;gap:8px;max-height:640px;overflow:auto;margin-top:12px}.reseller-profile-item{text-decoration:none;color:#0f172a;border:1px solid #e2e8f0;border-radius:14px;padding:11px;background:#f8fafc;display:flex;flex-direction:column;gap:5px}.reseller-profile-item.active,.reseller-profile-item:hover{background:#e0f2fe;border-color:#38bdf8}.reseller-profile-item span{color:#64748b;font-size:12px}.profile-edit-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}.reseller-profile-form{display:grid;gap:13px}.form-row-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media(max-width:900px){.reseller-settings-grid,.form-row-2{grid-template-columns:1fr}.row-actions{flex-wrap:wrap}}
body[data-theme="dark"] .xtream-box p,body[data-theme="dark"] .invoice-code-list span,body[data-theme="dark"] .reseller-list-card,body[data-theme="dark"] .reseller-edit-card,body[data-theme="dark"] .reseller-profile-item,body[data-theme="dark"] .report-summary-list p{background:#111827;color:#f8fafc;border-color:#334155}


/* v10.6 refinements */
.compact-dashboard-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.compact-dashboard-row .stat-card{min-height:86px;padding:14px 16px;border-radius:18px}.compact-dashboard-row .stat-card b{font-size:22px}.compact-dashboard-row .stat-icon{width:42px;height:42px;font-size:20px}.admin-resource-mini .dashboard-grid.compact,.security-dashboard .dashboard-grid.compact{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.admin-resource-mini .stat-card,.security-dashboard .stat-card{min-height:72px;padding:12px 14px;border-radius:16px}.security-list .review-ip-form{display:inline-flex;margin:0 6px 6px 0}.security-list .review-ip-btn{border:0;border-radius:10px;background:#e8fff3;color:#047857;font-weight:900;padding:6px 10px;cursor:pointer}.reseller-settings-single{display:grid;grid-template-columns:340px 1fr;gap:18px}.reseller-search-results{margin-top:10px;max-height:430px;overflow:auto;display:none;border:1px solid #e2e8f0;border-radius:16px;background:#fff}.reseller-search-results.show{display:block}.reseller-result-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid #edf2f7;text-decoration:none;color:#0f172a}.reseller-result-row:hover,.reseller-result-row.active{background:#eff6ff}.reseller-result-row small{color:#64748b}.reseller-empty-help{padding:18px;border:1px dashed #cbd5e1;border-radius:16px;color:#64748b;background:#f8fafc}.row-actions .act{font-size:12px;padding:7px 9px;border-radius:10px;white-space:nowrap}.row-actions{gap:5px}.link-popup textarea.link-text{min-height:90px;direction:ltr;text-align:left}.xtream-box p{display:flex;justify-content:space-between;gap:12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px}.xtream-box span{direction:ltr;text-align:left;font-weight:900}.forum-panel .section-title-row{margin-bottom:10px}@media(max-width:1000px){.compact-dashboard-row,.admin-resource-mini .dashboard-grid.compact,.security-dashboard .dashboard-grid.compact,.reseller-settings-single{grid-template-columns:1fr 1fr}}@media(max-width:640px){.compact-dashboard-row,.admin-resource-mini .dashboard-grid.compact,.security-dashboard .dashboard-grid.compact,.reseller-settings-single{grid-template-columns:1fr}.forum-content{display:block}}

/* v10.7 dashboard and tables refinement */
.forum-fit{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0 0 12px!important}
.forum-content-fit{display:inline-block;max-width:100%;padding:0!important;margin:0!important;border:0!important;background:transparent!important}
.forum-content-fit img{display:block;max-width:100%;height:auto;border-radius:14px;margin:0!important}
.forum-content-fit:has(img:only-child){line-height:0}
.dashboard-tight-grid{grid-template-columns:repeat(4,minmax(150px,1fr))!important;gap:10px!important;margin-bottom:10px!important}
.dashboard-tight-grid .stat-card{min-height:88px!important;border-radius:18px!important;padding:13px 15px!important;box-shadow:0 10px 25px rgba(15,23,42,.06)!important}
.dashboard-tight-grid .stat-card .stat-icon{width:34px!important;height:34px!important;font-size:18px!important;border-radius:12px!important}
.dashboard-tight-grid .stat-card small{font-size:12px!important}
.dashboard-tight-grid .stat-card b{font-size:23px!important}
.compact-status-line{padding:8px 12px!important;border-radius:12px!important;font-size:12px!important;margin-bottom:10px!important}
.admin-resource-strip{padding:14px!important}
.admin-resource-strip .section-title-row{margin-bottom:8px!important}
.admin-resource-strip .dashboard-grid{grid-template-columns:repeat(4,minmax(120px,1fr))!important;gap:9px!important}
.admin-resource-strip .stat-card{min-height:72px!important;border-radius:16px!important;padding:10px 12px!important}
.admin-resource-strip .stat-icon{display:none!important}
.admin-resource-strip .stat-card b{font-size:20px!important}
.security-dashboard .stat-card{min-height:78px!important}
.row-actions{display:flex!important;flex-wrap:wrap!important;gap:5px!important;align-items:center!important;min-width:310px!important}
.row-actions .act{height:28px!important;min-width:auto!important;width:auto!important;padding:0 10px!important;border-radius:8px!important;font-size:11px!important;line-height:28px!important;white-space:nowrap!important;text-decoration:none!important;color:#fff!important;font-weight:900!important}
.flag-pill{height:28px!important;min-width:34px!important;border-radius:8px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#eef2ff!important}
.code-cell{display:flex!important;gap:5px!important;align-items:center!important}
.copy-code{min-width:110px!important}.open-code-btn{font-size:11px!important;border-radius:8px!important;padding:6px 8px!important;text-decoration:none!important;background:#e0f2fe!important;color:#075985!important;font-weight:900!important}
.review-ip-btn{border:0;border-radius:9px;background:#fee2e2;color:#991b1b;font-weight:900;padding:8px 12px;cursor:pointer}
.reseller-settings-single{display:grid!important;grid-template-columns:360px 1fr!important;gap:16px!important;align-items:start!important}
.reseller-list-card,.reseller-edit-card{background:linear-gradient(145deg,#fff,#f8fbff);border:1px solid #e2e8f0;border-radius:22px;padding:18px;box-shadow:0 14px 35px rgba(15,23,42,.07)}
.reseller-search-results{display:none;max-height:430px;overflow:auto;margin-top:10px;gap:8px}.reseller-search-results.show{display:grid}
.reseller-result-row{display:none;flex-direction:column;gap:4px;padding:11px 12px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;text-decoration:none;color:#0f172a}.reseller-result-row:hover,.reseller-result-row.active{border-color:var(--top);background:#eff6ff}.reseller-result-row small{color:#64748b;font-weight:800}.profile-edit-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid #e5e7eb;padding-bottom:12px;margin-bottom:12px}.form-row-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.reseller-profile-form label{display:block;margin:10px 0 6px;font-weight:900;color:#334155}
@media(max-width:900px){.dashboard-tight-grid,.admin-resource-strip .dashboard-grid{grid-template-columns:repeat(2,minmax(130px,1fr))!important}.reseller-settings-single{grid-template-columns:1fr!important}.row-actions{min-width:240px!important}}

/* v10.8 final dashboard and tables refinement */
.forum-fit{padding:0!important;margin:0 0 10px!important;background:transparent!important;border:0!important;box-shadow:none!important}
.forum-content-fit{display:block!important;width:fit-content!important;max-width:100%!important;margin:0 auto!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;line-height:0!important}
.forum-content-fit img{display:block!important;max-width:100%!important;height:auto!important;margin:0!important;border:0!important;border-radius:0!important}
.forum-content-fit>*:first-child{margin-top:0!important}.forum-content-fit>*:last-child{margin-bottom:0!important}
.dashboard-summary-two{grid-template-columns:repeat(2,minmax(230px,1fr))!important;gap:10px!important;margin-bottom:10px!important}
.dashboard-summary-two .stat-card{min-height:72px!important;padding:11px 14px!important;border-radius:16px!important;display:grid!important;grid-template-columns:42px 1fr!important;align-items:center!important;gap:10px!important}
.dashboard-summary-two .stat-card .stat-icon{width:36px!important;height:36px!important;font-size:17px!important;grid-row:1/3!important}
.dashboard-summary-two .stat-card small{margin:0!important;font-size:12px!important}.dashboard-summary-two .stat-card b{margin:0!important;font-size:21px!important}
.admin-resource-strip,.security-dashboard{padding:14px!important}.admin-resource-strip .section-title-row,.security-dashboard .section-title-row{margin-bottom:8px!important}
.admin-resource-strip .dashboard-grid,.security-dashboard .dashboard-grid{grid-template-columns:repeat(4,minmax(100px,1fr))!important;gap:8px!important}.security-dashboard .dashboard-grid{grid-template-columns:repeat(3,minmax(120px,1fr))!important}
.admin-resource-strip .stat-card,.security-dashboard .stat-card{min-height:58px!important;padding:9px 11px!important;border-radius:13px!important;display:grid!important;grid-template-columns:30px 1fr!important;gap:8px!important;align-items:center!important}.admin-resource-strip .stat-icon,.security-dashboard .stat-icon{width:28px!important;height:28px!important;font-size:14px!important}.admin-resource-strip .stat-card b,.security-dashboard .stat-card b{font-size:18px!important}.admin-resource-strip .stat-card small,.security-dashboard .stat-card small{font-size:11px!important;margin:0!important}
.smart-code-search{flex:1;min-width:360px}.smart-code-search .search-line{display:grid;grid-template-columns:minmax(220px,1fr) 140px minmax(160px,.55fr);gap:8px;align-items:center}.smart-code-search select.input,.smart-code-search input.input{height:42px!important}.smart-code-search small{display:block;margin-top:5px;color:#64748b;font-weight:800}.row-actions{min-width:360px!important;justify-content:center!important}.row-actions .act{min-width:70px!important;height:30px!important;line-height:30px!important;padding:0 9px!important;font-size:11px!important;border-radius:8px!important;text-align:center!important}.flag-pill{display:none!important}
.security-list .btn-danger,.security-dashboard .btn-danger{background:#ef4444!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:8px 12px!important;font-weight:900!important}
.reseller-settings-single{grid-template-columns:330px minmax(0,1fr)!important}.reseller-list-card,.reseller-edit-card{border-radius:16px!important}.reseller-search-results{max-height:360px!important}.reseller-edit-card{min-height:250px!important}.reseller-profile-form .form-row-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.reseller-profile-form label{font-weight:900;color:#334155}.profile-edit-head{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px!important}
@media(max-width:900px){.dashboard-summary-two,.admin-resource-strip .dashboard-grid,.security-dashboard .dashboard-grid,.smart-code-search .search-line,.reseller-settings-single{grid-template-columns:1fr!important}.row-actions{min-width:230px!important}.smart-code-search{min-width:100%}}

/* v10.8.1 final dashboard cleanup */
.page-head:empty{display:none!important}
.main>.page-head{margin-bottom:8px!important}
.home-service-banner{background:#fff;border:1px solid rgba(148,163,184,.28);box-shadow:0 14px 38px rgba(15,23,42,.08);border-radius:18px;padding:18px 22px 16px;margin:0 0 14px;overflow:hidden}
.hs-title{display:flex;align-items:center;justify-content:center;gap:18px;margin:0 0 16px}.hs-title h2{margin:0;font-size:28px;font-weight:900;color:#0f172a}.hs-title .line{display:block;width:84px;height:3px;border-radius:20px;position:relative}.hs-title .line.blue{background:#1d4ed8}.hs-title .line.red{background:#ef4444}.hs-title .line:before,.hs-title .line:after{content:'';position:absolute;top:-2px;width:7px;height:7px;border-radius:50%;background:currentColor}.hs-title .blue{color:#1d4ed8}.hs-title .red{color:#ef4444}.hs-title .line:before{left:-14px}.hs-title .line:after{right:-14px}
.hs-features{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb}.hs-item{text-align:center;padding:12px 12px;min-height:188px;border-inline-start:1px solid #e5e7eb}.hs-item:first-child{border-inline-start:0}.hs-circle{width:72px;height:72px;border-radius:50%;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:24px;color:#fff;box-shadow:0 10px 24px rgba(15,23,42,.12)}.hs-item.green .hs-circle{background:linear-gradient(135deg,#16a34a,#22c55e)}.hs-item.blue .hs-circle{background:linear-gradient(135deg,#1d4ed8,#38bdf8)}.hs-item.orange .hs-circle{background:linear-gradient(135deg,#f97316,#fb923c)}.hs-item.purple .hs-circle{background:linear-gradient(135deg,#7e22ce,#a855f7)}.hs-item.teal .hs-circle{background:linear-gradient(135deg,#0f766e,#14b8a6)}.hs-item h3{font-size:16px;margin:0 0 8px;font-weight:900}.hs-item.green h3{color:#16a34a}.hs-item.blue h3{color:#1d4ed8}.hs-item.orange h3{color:#f97316}.hs-item.purple h3{color:#7e22ce}.hs-item.teal h3{color:#0f766e}.hs-item p{font-size:13px;line-height:1.75;margin:0;color:#111827}.sample-code{display:block;margin:10px auto 0;direction:ltr;background:#eaf2ff;border:1px solid #bfdbfe;color:#2563eb;border-radius:10px;padding:5px 8px;width:max-content;max-width:100%}.hs-thanks{display:flex;align-items:center;justify-content:center;gap:22px;margin:16px auto 12px;border:1px solid #bfdbfe;border-radius:14px;background:#f8fbff;padding:12px 16px;max-width:780px}.hs-thanks b{font-size:22px;color:#0f172a}.hs-thanks span{color:#334155;font-weight:700}.hs-download{display:flex;align-items:center;justify-content:center;gap:16px;border:1px solid #16a34a;border-radius:14px;padding:10px 14px;margin:0 auto;max-width:760px}.hs-download span{font-weight:900}.hs-download a{direction:ltr;text-decoration:none;background:#16a34a;color:#fff;border-radius:10px;padding:9px 18px;font-weight:900}
.dashboard-tight-grid.dashboard-summary-two{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:10px}.dashboard-tight-grid .stat-card{min-height:82px;padding:14px 16px;border-radius:18px}.dashboard-tight-grid .stat-card b{font-size:22px}.dashboard-tight-grid .stat-card small{font-size:13px}.dashboard-tight-grid .stat-icon{width:48px;height:34px;border-radius:12px;font-size:12px;letter-spacing:.3px;font-weight:900;background:rgba(255,255,255,.22);color:#fff;box-shadow:none}.dashboard-tight-grid .stat-card:not(.primary):not(.success):not(.danger):not(.dark):not(.blue) .stat-icon{color:#0f172a}
.admin-resource-mini,.security-dashboard{padding:16px!important;margin-bottom:12px!important}.admin-resource-mini .section-title-row,.security-dashboard .section-title-row{margin-bottom:10px}.admin-resource-mini .dashboard-grid.compact,.security-dashboard .dashboard-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.admin-resource-mini .stat-card,.security-dashboard .stat-card{min-height:68px;padding:10px 12px;border-radius:16px}.admin-resource-mini .stat-card b,.security-dashboard .stat-card b{font-size:20px}.admin-resource-mini .stat-icon,.security-dashboard .stat-icon{width:46px;height:30px;font-size:11px;border-radius:10px}
.forum-panel,.forum-fit,.home-forum-final{min-height:0!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}.forum-content-fit,.forum-content{min-height:0!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important}.forum-content-fit img,.forum-content img{display:block!important;margin:0!important;max-width:100%!important;height:auto!important}
@media(max-width:1200px){.hs-features{grid-template-columns:repeat(3,minmax(0,1fr))}.hs-item:nth-child(4){border-inline-start:0}.dashboard-tight-grid.dashboard-summary-two{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-resource-mini .dashboard-grid.compact,.security-dashboard .dashboard-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.home-service-banner{padding:14px}.hs-title h2{font-size:22px}.hs-title .line{width:38px}.hs-features{grid-template-columns:1fr}.hs-item{border-inline-start:0;border-top:1px solid #e5e7eb}.hs-item:first-child{border-top:0}.hs-thanks,.hs-download{flex-direction:column;text-align:center}.dashboard-tight-grid.dashboard-summary-two,.admin-resource-mini .dashboard-grid.compact,.security-dashboard .dashboard-grid.compact{grid-template-columns:1fr}}
.reseller-filter-box{position:relative;min-width:180px;flex:1}.reseller-suggest{display:none;position:absolute;z-index:1000;top:calc(100% + 6px);right:0;left:0;background:#fff;border:1px solid #dbeafe;border-radius:14px;box-shadow:0 18px 45px rgba(15,23,42,.16);overflow:hidden;max-height:260px;overflow-y:auto}.reseller-suggest.show{display:block}.reseller-suggest button{display:flex;width:100%;justify-content:space-between;gap:12px;border:0;background:#fff;padding:11px 13px;cursor:pointer;font-family:inherit;color:#0f172a;font-weight:800}.reseller-suggest button:hover{background:#eff6ff}.reseller-suggest small{color:#64748b;font-weight:700}

/* v10.14 Windows 95 theme + desktop app install prompt */
body[data-theme-preset="windows_95"]{
  --top:#000080;--green:#008000;--red:#800000;--orange:#808000;--cyan:#008080;
  --bg:#008080;--side:#c0c0c0;--card:#c0c0c0;--text:#000;--muted:#404040;--line:#808080;--shadow:none;--radius:0;
  font-family:Tahoma,Cairo,Arial,sans-serif;background:#008080;color:#000;
}
body[data-theme-preset="windows_95"] .topbar{background:#c0c0c0;color:#000;border-top:2px solid #fff;border-left:2px solid #fff;border-right:2px solid #404040;border-bottom:2px solid #404040;box-shadow:none}
body[data-theme-preset="windows_95"] .brand,body[data-theme-preset="windows_95"] .top-actions{color:#000}
body[data-theme-preset="windows_95"] .brand-mark,body[data-theme-preset="windows_95"] .top-link,body[data-theme-preset="windows_95"] .top-user-chip,body[data-theme-preset="windows_95"] .mini-top-info,body[data-theme-preset="windows_95"] .health-pill{border:2px outset #c0c0c0;border-radius:0;background:#c0c0c0;color:#000;box-shadow:none}
body[data-theme-preset="windows_95"] .sidebar{background:#c0c0c0;border-top:2px solid #fff;border-left:2px solid #fff;border-right:2px solid #404040;border-bottom:2px solid #404040;box-shadow:none;color:#000}
body[data-theme-preset="windows_95"] .side-title{color:#000;border-bottom:1px solid #808080}
body[data-theme-preset="windows_95"] .nav a,body[data-theme-preset="windows_95"] .nav button.side-action{border-radius:0;color:#000;border:1px solid transparent;margin:2px 6px;background:transparent;font-family:Tahoma,Cairo,Arial,sans-serif}
body[data-theme-preset="windows_95"] .nav a:hover,body[data-theme-preset="windows_95"] .nav a.active,body[data-theme-preset="windows_95"] .nav button.side-action:hover{background:#000080;color:#fff;border:1px dotted #fff}
body[data-theme-preset="windows_95"] .main{background:#008080}
body[data-theme-preset="windows_95"] .page-head{background:#000080;color:#fff;border:2px outset #c0c0c0;border-radius:0;box-shadow:none}
body[data-theme-preset="windows_95"] .page-head h1{color:#fff}
body[data-theme-preset="windows_95"] .panel,body[data-theme-preset="windows_95"] .stat-card,body[data-theme-preset="windows_95"] .quick-card,body[data-theme-preset="windows_95"] .notice,body[data-theme-preset="windows_95"] .table-wrap,body[data-theme-preset="windows_95"] .modal-card{background:#c0c0c0;color:#000;border:2px outset #c0c0c0;border-radius:0;box-shadow:none}
body[data-theme-preset="windows_95"] .panel h2,body[data-theme-preset="windows_95"] h2,body[data-theme-preset="windows_95"] h3{color:#000}
body[data-theme-preset="windows_95"] .btn,body[data-theme-preset="windows_95"] button{border:2px outset #c0c0c0;border-radius:0;background:#c0c0c0;color:#000;box-shadow:none;font-family:Tahoma,Cairo,Arial,sans-serif}
body[data-theme-preset="windows_95"] .btn:active,body[data-theme-preset="windows_95"] button:active{border-style:inset}
body[data-theme-preset="windows_95"] .btn-primary{background:#000080;color:#fff;border-color:#c0c0c0}
body[data-theme-preset="windows_95"] .input,body[data-theme-preset="windows_95"] input,body[data-theme-preset="windows_95"] select,body[data-theme-preset="windows_95"] textarea{background:#fff;color:#000;border:2px inset #c0c0c0;border-radius:0;font-family:Tahoma,Cairo,Arial,sans-serif;box-shadow:none}
body[data-theme-preset="windows_95"] .table th{background:#000080;color:#fff;border:1px solid #000}
body[data-theme-preset="windows_95"] .table td{background:#fff;color:#000;border:1px solid #808080}
body[data-theme-preset="windows_95"] .alert{border:2px outset #c0c0c0;border-radius:0;background:#ffffe1;color:#000}
.preview-win95{background:#008080!important}.preview-win95 i{border-radius:0!important}.preview-win95 i:nth-child(1){background:#c0c0c0;border:2px outset #c0c0c0;grid-row:1/3}.preview-win95 i:nth-child(2){background:#000080}.preview-win95 i:nth-child(3){background:#c0c0c0;border:2px outset #c0c0c0}
.pv-install-banner{position:fixed;left:22px;bottom:22px;z-index:99999;display:none;width:min(430px,calc(100vw - 32px));background:#fff;border:1px solid #dbe3ef;border-radius:22px;box-shadow:0 24px 70px rgba(15,23,42,.25);padding:18px;direction:rtl;text-align:right;font-family:Cairo,Tahoma,Arial,sans-serif;box-sizing:border-box}.pv-install-banner.show{display:grid;grid-template-columns:68px minmax(0,1fr);gap:15px;align-items:center;animation:pvInstallIn .22s ease-out}.pv-install-icon{width:68px;height:68px;border-radius:17px;background:#f5f8fc;border:1px solid #e3eaf3;display:flex;align-items:center;justify-content:center;overflow:hidden}.pv-install-banner img{width:56px;height:56px;object-fit:contain}.pv-install-content{min-width:0}.pv-install-banner b{display:block;color:#0f2742;font-size:16px;line-height:1.55;margin-left:24px}.pv-install-banner span{display:block;color:#5d6d80;font-size:12px;font-weight:700;line-height:1.75;margin-top:4px}.pv-install-close{position:absolute;left:10px;top:8px;width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:#718096;font-size:24px;line-height:28px;cursor:pointer}.pv-install-actions{display:flex;gap:9px;margin-top:13px;flex-wrap:wrap}.pv-install-actions button{border:0;border-radius:11px;padding:10px 15px;font-family:inherit;font-size:13px;font-weight:900;cursor:pointer;min-height:42px}.pv-install-actions .pv-install-ok{background:var(--top,#237adf);color:#fff;box-shadow:0 8px 18px rgba(35,122,223,.22)}.pv-install-actions .pv-install-ok:disabled{opacity:.6;cursor:not-allowed;box-shadow:none}.pv-install-actions .pv-install-no{background:#eef3f8;color:#334155}.pv-install-note{display:none;margin-top:9px;padding:9px 11px;border-radius:10px;background:#fff8e7;color:#785c12;font-size:12px;font-weight:800;line-height:1.7}.pv-install-note.show{display:block}@keyframes pvInstallIn{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}@media(max-width:800px){.pv-install-banner{left:50%;right:auto;bottom:14px;transform:translateX(-50%);width:calc(100vw - 24px);grid-template-columns:58px minmax(0,1fr);padding:15px;border-radius:18px}.pv-install-icon{width:58px;height:58px;border-radius:14px}.pv-install-banner img{width:48px;height:48px}.pv-install-banner b{font-size:14px}.pv-install-banner span{font-size:11px}.pv-install-actions{display:grid;grid-template-columns:1fr 1fr}.pv-install-actions button{width:100%;padding:9px 8px}}@media(max-width:430px){.pv-install-banner{grid-template-columns:1fr;text-align:center}.pv-install-icon{margin:auto}.pv-install-banner b{margin:0 22px}.pv-install-actions{grid-template-columns:1fr}.pv-install-close{left:8px;top:6px}}


/* v10.17 separated support tickets */
.support-top-button{position:relative;text-decoration:none;background:linear-gradient(135deg,#eef2ff,#e0f2fe)!important;color:#0f172a!important;border:1px solid #dbeafe!important}
.support-top-button .support-badge{background:#0ea5e9!important;color:#fff!important}
.support-center{display:grid;gap:16px}.support-hero{display:flex;justify-content:space-between;gap:18px;align-items:center;background:linear-gradient(135deg,#eff6ff,#f8fafc)!important;border:1px solid #dbeafe!important}.support-kicker{display:inline-flex;background:#dbeafe;color:#1d4ed8;border-radius:999px;padding:6px 12px;font-weight:900;font-size:12px}.support-hero h2{margin:10px 0 6px;font-size:24px}.support-hero p{margin:0;color:#475569;font-weight:700;line-height:1.8}.support-stats{display:flex;gap:10px}.support-stats div{min-width:120px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:13px;text-align:center;box-shadow:0 10px 28px rgba(15,23,42,.06)}.support-stats b{display:block;font-size:25px;color:#0f172a}.support-stats span{font-size:12px;color:#64748b;font-weight:900}.support-compose-card{display:grid;gap:10px}.support-compose-card textarea{min-height:110px}.support-tickets-grid{display:grid;gap:14px}.support-ticket-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 16px 42px rgba(15,23,42,.08);overflow:hidden}.support-ticket-card.open{border-color:#bfdbfe}.support-ticket-card.answered{border-color:#bbf7d0}.support-ticket-card.closed{opacity:.78;background:#f8fafc}.support-ticket-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:15px 16px;background:linear-gradient(135deg,#f8fafc,#fff);border-bottom:1px solid #e5e7eb}.support-ticket-head b{display:block;color:#0f172a;font-size:16px}.support-ticket-head small{display:block;margin-top:5px;color:#64748b;font-weight:800;direction:ltr;text-align:right}.support-ticket-head span{white-space:nowrap;border-radius:999px;padding:6px 12px;font-weight:900;font-size:12px;background:#eff6ff;color:#1d4ed8}.support-ticket-card.answered .support-ticket-head span{background:#dcfce7;color:#15803d}.support-ticket-card.closed .support-ticket-head span{background:#e5e7eb;color:#475569}.support-thread{padding:14px 16px;display:grid;gap:10px;background:#fbfdff}.support-msg{max-width:78%;border-radius:16px;padding:10px 12px}.support-msg strong{display:block;font-size:12px;margin-bottom:4px}.support-msg p{margin:0;line-height:1.75;font-weight:700}.support-msg small{display:block;margin-top:5px;color:#64748b;font-size:11px}.support-msg.from-user{justify-self:start;background:#eef2ff;border:1px solid #c7d2fe}.support-msg.from-admin{justify-self:end;background:#ecfdf5;border:1px solid #bbf7d0}.support-ticket-actions{display:flex;gap:10px;align-items:center;padding:14px 16px;border-top:1px solid #e5e7eb;background:#fff;flex-wrap:wrap}.support-reply-form{display:flex;gap:8px;align-items:center;flex:1;min-width:280px}.support-reply-form .input{min-width:180px}.support-ticket-actions .btn-danger{background:#ef4444;color:#fff;border:0}.support-closed-note{width:100%;background:#f1f5f9;color:#475569;border-radius:14px;padding:12px 14px;font-weight:900;text-align:center}.empty-support{text-align:center;color:#64748b;font-weight:900}
body[data-theme-preset="windows_95"] .support-ticket-card,body[data-theme-preset="windows_95"] .support-hero,body[data-theme-preset="windows_95"] .support-stats div{background:#c0c0c0!important;border:2px outset #c0c0c0!important;border-radius:0!important;box-shadow:none!important;color:#000!important}body[data-theme-preset="windows_95"] .support-ticket-head,body[data-theme-preset="windows_95"] .support-thread,body[data-theme-preset="windows_95"] .support-ticket-actions{background:#c0c0c0!important;border-color:#808080!important}body[data-theme-preset="windows_95"] .support-msg{border:2px inset #c0c0c0!important;border-radius:0!important;background:#fff!important;color:#000!important}
@media(max-width:800px){.support-hero,.support-stats,.support-ticket-actions,.support-reply-form{flex-direction:column;align-items:stretch}.support-stats div{min-width:0}.support-msg{max-width:100%}}
/* PALVISION core bridge pages */
.two-col-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.cards-grid.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.stat-card{background:var(--card,#fff);border:1px solid rgba(0,0,0,.08);border-radius:18px;padding:16px;box-shadow:0 10px 25px rgba(0,0,0,.05)}.stat-card span{display:block;color:var(--muted,#667085);font-size:13px}.stat-card b{display:block;font-size:28px;margin-top:6px}.card-form label{display:block;margin-top:12px;font-weight:700}.card-form input[type=text],.card-form input[type=number],.card-form input:not([type]){width:100%;padding:11px 12px;border:1px solid rgba(0,0,0,.12);border-radius:12px;background:var(--input,#fff)}.check-line{display:flex!important;gap:8px;align-items:center}.progress-bar{height:12px;background:rgba(0,0,0,.08);border-radius:999px;overflow:hidden;margin:14px 0}.progress-bar span{display:block;height:100%;background:var(--top,#2f93d8);transition:.25s}.job-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid rgba(0,0,0,.07);border-radius:12px;padding:10px;margin-top:8px}.job-row small{color:var(--muted,#667085)}@media(max-width:900px){.two-col-grid,.cards-grid.stats-grid{grid-template-columns:1fr}}


/* v10.30 polished UI: smaller dashboard cards, Excel-like grids, cleaner modals */
.dashboard-grid{gap:10px!important;margin-bottom:14px!important}.stat-card{min-height:92px!important;padding:13px 15px!important;border-radius:10px!important;box-shadow:0 1px 8px rgba(15,23,42,.08)!important}.stat-card b{font-size:24px!important;margin-top:2px!important}.stat-card small{margin-top:4px!important;font-size:12px!important}.stat-icon{width:38px!important;height:38px!important;font-size:19px!important;border-radius:9px!important}.quick-grid{gap:10px!important}.quick-card{padding:14px!important;border-radius:10px!important}.quick-card span{font-size:23px!important}.quick-card b{font-size:14px!important;margin:5px 0 2px!important}.panel{border-radius:12px!important}.excel-table,.excel-grid{box-shadow:inset 0 0 0 1px #cbd5e1!important}.excel-table th,.excel-grid th{background:#eaf3ff!important;border-left:1px solid #cbd5e1!important}.excel-table td,.excel-grid td{background:#fff;border-left:1px solid #e2e8f0!important}.excel-table tbody tr:nth-child(even) td,.excel-grid tbody tr:nth-child(even) td{background:#fbfdff}.modal-lite-card,.modal-card{border-radius:18px!important}.reseller-suite .modal-lite-card{max-width:430px!important;padding:16px!important}.reseller-suite .modal-lite .form-grid{gap:10px!important}.reseller-suite .modal-lite .input{min-height:40px!important}.reseller-suite .modal-lite-head{margin-bottom:8px!important}.reseller-suite .modal-lite-head h3{font-size:18px!important}.side-title{margin-top:5px;border-top:1px solid rgba(148,163,184,.18)}.side-title:first-of-type{border-top:0}

/* PALVISION refined UI patch */
.dashboard-grid .stat-card{min-height:74px!important;padding:11px 13px!important;border-radius:14px!important;box-shadow:0 8px 20px rgba(15,23,42,.055)!important}
.dashboard-grid .stat-card b{font-size:20px!important;margin-top:0!important}.dashboard-grid .stat-card small{font-size:11.5px!important;margin-top:2px!important}.dashboard-grid .stat-icon{width:32px!important;height:32px!important;font-size:15px!important;border-radius:10px!important}.dashboard-grid{gap:9px!important;margin-bottom:12px!important}.quick-card{padding:13px!important;border-radius:14px!important}.quick-card span{font-size:22px!important}.quick-card b{font-size:14px!important}.modal-card,.modal-lite-card{max-width:560px!important;border-radius:18px!important;padding:16px!important}.modal-card .form-grid,.modal-lite .form-grid{gap:10px!important}.excel-sheet,.excel-table{box-shadow:0 8px 20px rgba(15,23,42,.035)}.excel-sheet td:focus-within,.excel-table td:focus-within{outline:2px solid #93c5fd;outline-offset:-2px;background:#eff6ff!important}.side-title{margin-top:7px;border-top:1px solid rgba(148,163,184,.18);padding-top:13px;color:#7b8798!important}.nav-grouped a,.nav-grouped .side-action{border-radius:11px!important}

/* PalVision compact UI refinements */
.pv-compact-ui .dashboard-tight-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px!important}
.pv-compact-ui .stat-card{min-height:82px!important;padding:13px 14px!important;border-radius:16px!important;box-shadow:0 8px 22px rgba(15,23,42,.06)!important}
.pv-compact-ui .stat-card .stat-icon{font-size:12px!important;padding:3px 7px!important;border-radius:999px!important}
.pv-compact-ui .stat-card small{font-size:12px!important;margin-top:4px!important}
.pv-compact-ui .stat-card b{font-size:22px!important;line-height:1.1!important}
.pv-compact-ui .home-service-banner{padding:14px 16px!important;border-radius:18px!important;min-height:auto!important}
.pv-compact-ui .home-service-banner h1,.pv-compact-ui .home-service-banner h2{font-size:22px!important;margin:0 0 6px!important}
.pv-compact-ui .home-service-banner p{font-size:13px!important;margin:0!important}
.pv-compact-ui .panel{border-radius:16px!important}
.pv-compact-ui .main{scroll-behavior:smooth}
.pv-compact-ui .modal-card{max-height:88vh;overflow:auto}
/* Phase 2 Pro lightweight additions */
.clean-card{border-radius:18px;padding:18px;background:var(--card,#fff);box-shadow:0 8px 24px rgba(15,23,42,.06)}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.card-head h2{margin:0;font-size:18px}.card-head p{margin:0;color:#64748b;font-size:13px}
.excel-wrap{overflow:auto;border:1px solid rgba(148,163,184,.35);border-radius:14px;background:#fff}.excel-table{width:100%;border-collapse:collapse;font-size:13px}.excel-table th{position:sticky;top:0;background:#f8fafc;color:#334155;font-weight:800}.excel-table th,.excel-table td{border:1px solid #e2e8f0;padding:8px 10px;white-space:nowrap}.excel-table tr:hover td{background:#f8fbff}
.inline-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.pv-health-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.health-card pre{white-space:pre-wrap;direction:ltr;text-align:left;font-size:12px;max-height:260px;overflow:auto}.search-result{display:none}.search-item{display:block;padding:9px 10px;text-decoration:none;color:inherit;border-bottom:1px solid rgba(148,163,184,.25)}.search-item b{display:block;font-size:13px}.search-item small{display:block;color:#64748b;font-size:12px}.search-empty{padding:10px;color:#64748b}

/* Phase UI Refresh - PalVision dashboard inspired by modern SaaS dashboards */
.pv-home-modern{display:grid;gap:18px;direction:rtl}.pv-home-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;padding:22px;border-radius:24px;background:linear-gradient(135deg,#0f172a 0%,#1e1b4b 50%,#312e81 100%);color:#fff;box-shadow:0 24px 60px rgba(15,23,42,.22);position:relative;overflow:hidden}.pv-home-head:before{content:"";position:absolute;inset:-80px auto auto -80px;width:260px;height:260px;border-radius:999px;background:radial-gradient(circle,rgba(56,189,248,.45),transparent 65%)}.pv-home-head:after{content:"";position:absolute;inset:auto -90px -100px auto;width:320px;height:320px;border-radius:999px;background:radial-gradient(circle,rgba(168,85,247,.42),transparent 65%)}.pv-home-head>*{position:relative;z-index:1}.pv-eyebrow{display:inline-flex;margin-bottom:8px;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.12);font-size:11px;font-weight:900;letter-spacing:.08em}.pv-home-head h1{margin:0 0 8px;font-size:34px;line-height:1.1}.pv-home-head p{margin:0;color:#cbd5e1}.pv-home-actions{display:flex;gap:10px;flex-wrap:wrap}.pv-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px}.pv-kpi-card{background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid #e5e7eb;border-radius:22px;padding:16px;box-shadow:0 16px 40px rgba(15,23,42,.07);min-height:135px;position:relative;overflow:hidden}.pv-kpi-card:before{content:"";position:absolute;inset:auto -35px -45px auto;width:130px;height:130px;border-radius:999px;background:rgba(99,102,241,.12)}.pv-kpi-icon{width:44px;height:44px;border-radius:15px;display:flex;align-items:center;justify-content:center;background:#eef2ff;margin-bottom:12px;font-size:21px}.pv-kpi-card small{display:block;color:#64748b;font-weight:900}.pv-kpi-card b{display:block;font-size:28px;color:#0f172a;margin:4px 0}.pv-kpi-card span{color:#94a3b8;font-size:12px;font-weight:800}.glow-green .pv-kpi-icon{background:#dcfce7}.glow-red .pv-kpi-icon{background:#fee2e2}.glow-purple .pv-kpi-icon{background:#f3e8ff}.glow-blue .pv-kpi-icon{background:#dbeafe}.pv-dashboard-split{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,.9fr);gap:16px}.pv-panel{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:18px;box-shadow:0 14px 35px rgba(15,23,42,.06)}.pv-panel-title{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:18px}.pv-panel-title h3{margin:0;font-size:17px}.pv-panel-title p{margin:4px 0 0;color:#64748b;font-size:12px}.pv-pill{display:inline-flex;padding:5px 10px;border-radius:999px;background:#eef2ff;color:#3730a3;font-weight:900;font-size:11px}.pv-pill.green{background:#dcfce7;color:#166534}.pv-bar-row{display:grid;grid-template-columns:130px 1fr 55px;align-items:center;gap:10px;margin:14px 0}.pv-bar-row span{font-weight:900;color:#334155}.pv-bar-row i{height:12px;border-radius:999px;background:linear-gradient(90deg,#22d3ee,#8b5cf6);display:block;min-width:6px;box-shadow:0 7px 16px rgba(99,102,241,.2)}.pv-bar-row b{text-align:left;color:#0f172a}.pv-health-mini{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.pv-health-mini div{background:#f8fafc;border:1px solid #eef2f7;border-radius:18px;padding:14px;text-align:center}.pv-health-mini b{display:block;font-size:22px;color:#0f172a}.pv-health-mini span{display:block;color:#64748b;font-weight:900;font-size:11px;margin-top:4px}.dashboard-grid.compact.animated-cards{gap:10px}.stat-card{border-radius:18px!important;box-shadow:0 12px 32px rgba(15,23,42,.06)!important}.stat-card b{font-size:23px!important}@media(max-width:1100px){.pv-kpi-grid{grid-template-columns:repeat(2,1fr)}.pv-dashboard-split{grid-template-columns:1fr}}@media(max-width:650px){.pv-kpi-grid{grid-template-columns:1fr}.pv-home-head{align-items:flex-start}.pv-bar-row{grid-template-columns:100px 1fr 42px}.pv-home-head h1{font-size:28px}}

/* Packages page refinement */
.pkg-suite .panel{border-radius:22px}.pkg-actions .btn{border-radius:13px}.package-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}.package-card-v2{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:14px;box-shadow:0 12px 30px rgba(15,23,42,.05);display:grid;gap:10px}.package-card-v2.trial{border-color:#fbbf24;background:linear-gradient(180deg,#fffbeb,#fff)}.pkg-topline{display:flex;justify-content:space-between;align-items:center;gap:8px}.pkg-topline input.name{font-weight:900;font-size:15px}.pkg-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pkg-mini-grid label{font-size:11px;color:#64748b;font-weight:900}.pkg-mini-grid input{width:100%}.pkg-flags{display:flex;gap:8px;flex-wrap:wrap}.pkg-flags label{padding:7px 10px;border-radius:999px;background:#f8fafc;border:1px solid #e5e7eb;font-size:12px;font-weight:900}.pkg-remote{font-size:11px;color:#64748b;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;padding:8px}.pkg-table-wrap .excel-sheet{box-shadow:none}


/* PalVision requested light refinements: keep original dashboard, only make cards calmer/smaller */
.dashboard-summary-two .stat-card,.dashboard-grid.compact .stat-card{min-height:72px!important;padding:10px 12px!important;border-radius:12px!important}
.dashboard-summary-two .stat-card b,.dashboard-grid.compact .stat-card b{font-size:20px!important;line-height:1.15!important}
.dashboard-summary-two .stat-card small,.dashboard-grid.compact .stat-card small{font-size:11px!important;margin-top:2px!important}
.dashboard-summary-two .stat-icon,.dashboard-grid.compact .stat-icon{width:31px!important;height:31px!important;font-size:13px!important;border-radius:8px!important}

/* PV professional maintenance 2026-07-08 */
.page-help{margin:8px 0 0;color:#475569;background:#f8fafc;border:1px solid #e5edf5;border-radius:14px;padding:10px 14px;font-weight:800;line-height:1.7}.maintenance-flash{animation:pvMaintBlink 1.2s infinite alternate;border:2px solid #ef4444!important;font-weight:900;text-align:center}@keyframes pvMaintBlink{0%{background:#fee2e2;color:#991b1b;box-shadow:0 0 0 rgba(239,68,68,0)}50%{background:#dbeafe;color:#1d4ed8;box-shadow:0 0 18px rgba(37,99,235,.35)}100%{background:#fee2e2;color:#991b1b;box-shadow:0 0 18px rgba(239,68,68,.35)}}
.settings-hero,.host-page-card .settings-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#eff6ff,#f8fafc);border:1px solid #dbeafe}.settings-hero h2{margin:4px 0;font-size:26px}.big-ico{font-size:48px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.setting-box{background:#fff;border:1px solid #e5edf5;border-radius:16px;padding:14px;box-shadow:0 5px 18px rgba(15,23,42,.05)}.setting-box.full,.setting-actions.full{grid-column:1/-1}.setting-box label{display:block;font-weight:900;margin-bottom:7px;color:#172033}.setting-box small{display:block;margin-top:6px;color:#64748b;font-weight:700}.host-callout{background:linear-gradient(135deg,#ecfdf5,#eff6ff)}.nice-form textarea{min-height:110px}.setting-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.support-center{max-width:1180px;margin:auto}.support-tickets-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:16px}.support-ticket-card{border-radius:22px!important;box-shadow:0 14px 35px rgba(15,23,42,.08)!important}.support-thread{background:#f8fafc;border-radius:18px;padding:14px;max-height:430px;overflow:auto}.support-msg{max-width:84%;border-radius:18px;padding:11px 14px;margin:9px 0;box-shadow:0 5px 14px rgba(15,23,42,.06)}.support-msg.from-user{margin-left:auto;background:#eff6ff;color:#1e3a8a;border-bottom-left-radius:6px}.support-msg.from-admin{margin-right:auto;background:#ecfdf5;color:#065f46;border-bottom-right-radius:6px}.support-reply-form{display:grid;grid-template-columns:1fr auto;gap:8px;width:100%}
.invoice-page-panel,.customers-panel{border-radius:22px}.invoice-table tbody tr,.customers-panel tbody tr{box-shadow:0 6px 18px rgba(15,23,42,.05);border-radius:14px}.invoice-table th,.invoice-table td{vertical-align:middle}.customers-panel .table-tools,.invoice-page-panel .toolbar{background:#f8fafc;border:1px solid #e5edf5;border-radius:16px;padding:12px;margin:12px 0}.import-link-panel{background:linear-gradient(135deg,#fff7ed,#eff6ff);border:1px solid #fed7aa}.report-actions{display:flex;gap:8px;align-items:center}
.create-code-card,.modal-card:has(#addCodeForm),#modalAdd .modal-card{width:min(920px,96vw)!important;max-width:920px!important}.form-hint{border-radius:14px;padding:10px 12px;background:#f8fafc;border:1px dashed #cbd5e1;color:#475569;font-weight:800}.btn[title]:hover:after{content:attr(title);position:absolute;background:#111827;color:#fff;border-radius:8px;padding:6px 9px;font-size:12px;z-index:9999;white-space:nowrap;transform:translate(-50%,-34px)}
@media(max-width:800px){.settings-grid{grid-template-columns:1fr}.support-reply-form{grid-template-columns:1fr}.settings-hero{align-items:flex-start;flex-direction:column}}

/* Professional UI patch 2026-07-08 */
.pv-clean-page{background:linear-gradient(180deg,#ffffff,#f8fbff);border-radius:24px}.single-host-form{max-width:760px;margin:22px auto;display:grid;gap:12px;background:#fff;border:1px solid #dbeafe;border-radius:22px;padding:22px;box-shadow:0 18px 45px rgba(15,23,42,.08)}.single-host-form label{font-size:18px;font-weight:900}.big-host-input{height:58px;font-size:22px;font-weight:900;text-align:left}.settings-page .panel,.invoices-page .panel,.customers-page .panel,.support-page .panel{border-radius:24px;box-shadow:0 18px 50px rgba(15,23,42,.08)}.support-thread,.chat-box{background:#f8fafc;border-radius:24px;padding:16px}.support-message,.chat-message{max-width:78%;border-radius:22px;padding:12px 14px;margin:8px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.07)}.support-message.me,.chat-message.me{margin-right:auto;background:#dcfce7}.invoice-no,.price-chip,.reseller-chip{border-radius:999px;padding:6px 10px;background:#eef6ff;font-weight:900}.dashboard-compact .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.dashboard-compact .stat-card{padding:14px;min-height:auto}.modal .pv-window-card{resize:both;overflow:auto;min-width:640px;max-width:94vw;max-height:90vh}.pv-window-head{cursor:move}.pv-window-tools{display:flex;gap:6px;justify-content:flex-end;position:sticky;top:0;z-index:5}.pv-window-tools button{border:1px solid #cbd5e1;background:#fff;border-radius:8px;font-weight:900;width:30px;height:28px;cursor:pointer}.pv-window-card.pv-window-max{width:92vw!important;height:86vh!important;max-width:92vw!important}.pv-window-card.pv-window-max input,.pv-window-card.pv-window-max select,.pv-window-card.pv-window-max textarea{font-size:17px;min-height:46px}.maintenance-flash{animation:pvFlashMaintenance 1s infinite alternate;font-weight:900}@keyframes pvFlashMaintenance{0%{background:#fee2e2!important;color:#991b1b!important;border-color:#ef4444!important}100%{background:#dbeafe!important;color:#1d4ed8!important;border-color:#2563eb!important}}.code-view-page .code-hero{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#eff6ff,#f8fafc);border-radius:24px;padding:22px;margin-bottom:16px}.status-pill{border-radius:999px;padding:12px 18px;font-weight:900}.status-pill.ok{background:#dcfce7;color:#166534}.status-pill.bad{background:#fee2e2;color:#991b1b}.details-grid.wide{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.details-grid.wide p,.link-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:14px;box-shadow:0 8px 24px rgba(15,23,42,.05)}.details-grid.wide b{display:block;color:#64748b}.details-grid.wide span{font-weight:900;word-break:break-all}.link-boxes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.link-text{min-height:110px;direction:ltr;text-align:left;font-family:Consolas,monospace}@media(max-width:900px){.details-grid.wide,.link-boxes{grid-template-columns:1fr}.modal .pv-window-card{min-width:92vw}}


/* PalVision UI final polish 2026-07-08 */
.pv-browser-controls{position:sticky;top:74px;z-index:25;display:flex;align-items:center;gap:8px;margin:-4px 0 14px;padding:8px 10px;background:rgba(255,255,255,.86);backdrop-filter:blur(12px);border:1px solid rgba(148,163,184,.25);border-radius:18px;box-shadow:0 10px 28px rgba(15,23,42,.07)}
[data-theme="dark"] .pv-browser-controls{background:rgba(15,23,42,.82);border-color:rgba(148,163,184,.18)}
.pv-browser-btn,.pv-browser-home{height:34px;min-width:38px;border:1px solid rgba(148,163,184,.35);border-radius:12px;background:linear-gradient(180deg,#fff,#f8fafc);font-weight:900;color:#0f172a;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;transition:.15s ease}
.pv-browser-btn:hover,.pv-browser-home:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(37,99,235,.14)}
.pv-browser-home{padding:0 13px;color:#2563eb}
[data-theme="dark"] .pv-browser-btn,[data-theme="dark"] .pv-browser-home{background:linear-gradient(180deg,#1e293b,#0f172a);color:#e5e7eb}
.win95-computer-icon,.win95-computer-mini,.win95-computer-big{font-family:monospace;display:inline-flex;align-items:center;justify-content:center;background:#c0c0c0;color:#000;border:2px solid #fff;border-right-color:#404040;border-bottom-color:#404040;box-shadow:inset -1px -1px #808080,inset 1px 1px #dfdfdf;font-weight:900}
.win95-computer-icon{width:24px;height:20px;font-size:13px}.win95-computer-mini{width:22px;height:18px;font-size:12px}.win95-computer-big{width:54px;height:46px;font-size:24px;border-width:3px;border-radius:2px;flex:0 0 auto}
.win95-server-top{background:#e5e7eb!important;border:2px solid #fff!important;border-right-color:#404040!important;border-bottom-color:#404040!important;color:#000!important;border-radius:2px!important}
.code-view-page{background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(34,197,94,.08)),var(--card,#fff);border-radius:28px;overflow:hidden}
.code-hero{padding:22px;border-radius:24px;background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff;margin-bottom:18px;box-shadow:0 18px 50px rgba(37,99,235,.22)}
.code-hero h2{font-size:34px;letter-spacing:2px;margin:6px 0}.code-hero p{opacity:.86;margin:0}.support-kicker{font-weight:900;color:#bfdbfe}.status-pill{padding:8px 14px;border-radius:999px;font-weight:900}.status-pill.ok{background:#dcfce7;color:#166534}.status-pill.bad{background:#fee2e2;color:#991b1b}
.link-boxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:18px}.link-card{position:relative;padding:18px;border-radius:24px;background:#fff;border:1px solid rgba(148,163,184,.25);box-shadow:0 14px 36px rgba(15,23,42,.08);overflow:hidden}.link-card:before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:linear-gradient(90deg,#2563eb,#22c55e)}
[data-theme="dark"] .link-card{background:#0f172a}.link-card h3{margin:0 0 12px;font-size:18px}.link-text{min-height:92px;direction:ltr;text-align:left;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;resize:vertical}.xtream-lines{display:grid;gap:10px;margin-bottom:12px}.xtream-lines p{margin:0;padding:11px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0;direction:ltr;text-align:left}.xtream-lines b{display:block;color:#64748b;font-size:12px;text-transform:uppercase}.xtream-lines span{display:block;font-weight:900;color:#0f172a;word-break:break-all}[data-theme="dark"] .xtream-lines p{background:#111827;border-color:#334155}[data-theme="dark"] .xtream-lines span{color:#e5e7eb}.tv-pretty:before{background:linear-gradient(90deg,#22c55e,#06b6d4)}.app-pretty:before{background:linear-gradient(90deg,#f97316,#ef4444)}.m3u-pretty:before{background:linear-gradient(90deg,#8b5cf6,#2563eb)}.embed-note{margin-top:10px}
body{scroll-behavior:smooth}.main{animation:pvPageIn .18s ease both}@keyframes pvPageIn{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:900px){.pv-browser-controls{top:62px}.code-hero h2{font-size:26px}}


/* === PalVision deep UI hotfix 2026-07-08 === */
.pv-top-browser-controls{display:flex;gap:6px;align-items:center;margin-inline-start:8px}.pv-mini-nav{width:34px;height:34px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--text);font-weight:900;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;box-shadow:0 6px 18px rgba(15,23,42,.06);cursor:pointer}.pv-mini-nav:hover{transform:translateY(-1px);background:var(--soft)}.pv-mini-nav.home{font-size:18px}.pv-browser-controls{display:none!important}.server-rack-icon,.server-rack-mini{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#475569,#0f172a);color:#e2e8f0;border:1px solid #94a3b8;border-radius:5px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.08),0 6px 16px rgba(15,23,42,.18);font-weight:900}.server-rack-icon{width:28px;height:28px;font-size:18px}.server-rack-mini{width:26px;height:22px;font-size:16px}.server-top-icon{background:#f8fafc!important;border:1px solid #dbe4ef!important}.pv-sidebar-shrink{width:34px;height:34px;border:0;border-radius:12px;background:var(--top);color:#fff;font-weight:900;cursor:pointer}.sidebar-mini .sidebar{width:76px!important}.sidebar-mini .sidebar .nav a span:not(.ico),.sidebar-mini .sidebar .nav button span:not(.ico),.sidebar-mini .side-title,.sidebar-mini .side-badge{display:none!important}.sidebar-mini .main{margin-inline-start:76px!important}
.code-detail-modern{max-width:1180px;margin:auto}.code-detail-header{display:flex;justify-content:space-between;gap:18px;align-items:center;background:linear-gradient(135deg,rgba(47,147,216,.12),rgba(34,197,94,.10));border:1px solid rgba(47,147,216,.18);border-radius:26px;padding:20px 24px;margin-bottom:16px}.code-detail-header h2{margin:4px 0;font-size:34px;letter-spacing:1px}.tiny-label{font-size:12px;font-weight:900;color:var(--top);background:rgba(47,147,216,.10);padding:5px 9px;border-radius:999px}.code-status-card{min-width:120px;text-align:center;border-radius:20px;padding:14px 16px}.code-status-card.ok{background:#dcfce7;color:#166534}.code-status-card.bad{background:#fee2e2;color:#991b1b}.code-status-card b{display:block;font-size:18px}.code-status-card small{font-size:12px}.code-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.code-mini-grid>div{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:12px 14px}.code-mini-grid b{display:block;color:var(--muted);font-size:12px}.code-mini-grid span{display:block;font-weight:900;margin:5px 0}.code-mini-grid small{font-size:11px;color:var(--muted)}.code-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.code-link-card{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:16px;box-shadow:0 12px 30px rgba(15,23,42,.06)}.card-title{display:flex;align-items:center;gap:10px}.card-title h3{margin:0}.code-link-card p{color:var(--muted);font-size:13px}.stack-lines{display:grid;grid-template-columns:95px 1fr;gap:8px;align-items:center;margin:10px 0}.stack-lines label{font-size:12px;color:var(--muted);font-weight:900}.stack-lines code{background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:8px;direction:ltr;text-align:left;white-space:nowrap;overflow:auto}.code-link-card textarea.link-text{min-height:86px;direction:ltr;text-align:left;font-size:12px}.code-detail-actions{display:flex;gap:10px;margin-top:14px}.act.blue{color:#000!important}.open-code-btn{color:#000!important}.modal{align-items:center!important;justify-content:center!important}.modal-card.ultra-wide.create-code-card{position:relative!important;margin:auto!important;max-width:880px!important;width:min(92vw,880px)!important;transform:none!important}.create-code-card .create-grid{gap:14px}.modal-card .modal-maximize,.modal-card [data-maximize-modal]{display:none!important}.dashboard-grid .stat-card{padding:14px!important;min-height:92px!important}.dashboard-grid .stat-card .stat-icon{font-size:13px!important}.home-service-banner{padding:16px!important;border-radius:22px!important}.hs-features{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}.hs-item{padding:12px!important;min-height:auto!important}.hs-item p{font-size:12px!important}.hs-circle{width:40px!important;height:40px!important;font-size:14px!important}.dashboard-tight-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}.section-title-row{align-items:center}.settings-redesigned{background:linear-gradient(180deg,var(--card),rgba(248,250,252,.72));border-radius:26px!important;padding:18px!important}.settings-hero{display:flex;align-items:center;justify-content:space-between;gap:14px;background:linear-gradient(135deg,rgba(47,147,216,.14),rgba(99,102,241,.10));border:1px solid rgba(47,147,216,.18);border-radius:24px;padding:18px;margin-bottom:14px}.settings-hero h2{margin:0!important;border:0!important;padding:0!important}.settings-hero span{font-size:30px}.settings-tabs{position:sticky;top:78px;z-index:20;display:flex;gap:8px;flex-wrap:wrap;background:rgba(255,255,255,.82);backdrop-filter:blur(14px);border:1px solid var(--line);border-radius:18px;padding:8px;margin-bottom:16px}.settings-tabs a{padding:8px 12px;border-radius:12px;background:var(--soft);color:var(--text);text-decoration:none;font-weight:900;font-size:13px}.settings-redesigned h2{margin:18px 0 10px!important;padding:10px 14px!important;border-radius:16px!important;background:var(--soft)!important;border:1px solid var(--line)!important;font-size:18px!important}.settings-redesigned .two{background:rgba(255,255,255,.45);border:1px solid rgba(148,163,184,.20);border-radius:18px;padding:12px;margin-bottom:10px}.settings-redesigned label{font-weight:900}.settings-redesigned .input{border-radius:13px!important}.support-chat-app{display:grid;grid-template-columns:320px 1fr;gap:14px;height:calc(100vh - 180px);min-height:560px}.support-chat-list,.support-chat-pane{padding:0!important;overflow:hidden}.chat-list-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line)}.chat-list-head span{background:var(--soft);border-radius:999px;padding:4px 9px;font-size:12px;font-weight:900}.new-ticket-mini{padding:10px;border-bottom:1px solid var(--line);display:grid;gap:8px}.new-ticket-mini textarea{min-height:72px}.ticket-list-scroll{overflow:auto;height:calc(100% - 60px)}.ticket-list-item{display:block;padding:12px 14px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--text)}.ticket-list-item.active,.ticket-list-item:hover{background:linear-gradient(90deg,rgba(47,147,216,.12),transparent)}.ticket-list-item b,.ticket-list-item small,.ticket-list-item span{display:block}.ticket-list-item small{color:var(--muted);font-size:11px}.ticket-list-item span{font-size:11px;color:var(--top);font-weight:900;margin-top:4px}.chat-thread-card{display:none;height:100%;grid-template-rows:auto 1fr auto}.chat-thread-card.active,.chat-thread-card:target{display:grid}.support-chat-pane:has(.chat-thread-card:target) .chat-thread-card.active:not(:target){display:none}.chat-thread-header{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line);background:var(--soft)}.chat-thread-header small{display:block;color:var(--muted)}.chat-status{padding:5px 10px;border-radius:999px;font-size:12px;font-weight:900;background:#dbeafe;color:#1e40af}.chat-bubbles{overflow:auto;padding:16px;display:flex;flex-direction:column;gap:10px}.chat-bubble{max-width:72%;border-radius:18px;padding:10px 12px;box-shadow:0 8px 18px rgba(15,23,42,.05)}.chat-bubble.admin{align-self:flex-start;background:#e0f2fe}.chat-bubble.user{align-self:flex-end;background:#dcfce7}.chat-bubble p{margin:5px 0}.chat-bubble small{font-size:10px;color:var(--muted)}.chat-reply-bar{display:flex;gap:8px;align-items:center;padding:12px;border-top:1px solid var(--line);background:var(--card)}.chat-reply-bar form:first-child{display:flex;gap:8px;flex:1}.chat-reply-bar .input{flex:1}.chat-empty-state{display:flex;height:100%;align-items:center;justify-content:center;color:var(--muted);font-weight:900}.customers-panel,.invoice-page-panel{border-radius:24px!important;box-shadow:0 15px 42px rgba(15,23,42,.07)!important}.customers-panel .table-wrap,.invoice-page-panel .table-wrap{border-radius:18px;border:1px solid var(--line);overflow:hidden}.customers-panel table thead th,.invoice-page-panel table thead th{background:linear-gradient(180deg,var(--soft),rgba(255,255,255,.5));font-size:12px}.suspicious-ip-list,.security-ip-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.suspicious-ip-list>*{border-radius:14px!important;background:var(--soft)!important;border:1px solid var(--line)!important;padding:10px!important}
@media(max-width:980px){.code-mini-grid,.code-link-grid,.dashboard-tight-grid{grid-template-columns:1fr 1fr!important}.support-chat-app{grid-template-columns:1fr;height:auto}.support-chat-list{max-height:360px}.support-chat-pane{min-height:520px}.hs-features{grid-template-columns:1fr 1fr!important}.sidebar-mini .main{margin-inline-start:0!important}}@media(max-width:640px){.code-mini-grid,.code-link-grid,.dashboard-tight-grid,.hs-features{grid-template-columns:1fr!important}.code-detail-header{flex-direction:column;align-items:stretch}.settings-tabs{top:62px}.chat-bubble{max-width:92%}}

/* === PalVision deep UI polish 2026-07-08 === */
.page-head{display:flex;align-items:center;gap:14px;padding:12px 16px;border-radius:16px;background:linear-gradient(135deg,#ffffff,#f8fafc);border:1px solid #e5e7eb;margin-bottom:14px}
.page-head h1{font-size:20px;margin:0;white-space:nowrap}.page-help{font-size:13px;line-height:1.7;margin:0;color:#64748b}.pv-mini-nav{border:1px solid #dbe3ee;background:#fff;color:#111827;border-radius:9px;width:34px;height:30px;font-weight:900}.pv-mini-nav.home{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:#111827}
.server-top-icon .server-rack-icon,.server-rack-mini{display:inline-flex;align-items:center;justify-content:center;width:24px;height:20px;border-radius:4px;background:linear-gradient(#eef2f7,#cbd5e1);border:1px solid #64748b;color:#0f172a;font-size:15px;box-shadow:inset 0 -3px 0 rgba(15,23,42,.12)}
.page-dashboard .dashboard-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.page-dashboard .stat-card{min-height:88px;padding:14px;border-radius:18px}.page-dashboard .stat-card b{font-size:23px}.page-dashboard .stat-icon{font-size:22px}.page-dashboard .panel{border-radius:18px}.page-dashboard .analytics-hero,.page-dashboard .hero-card{padding:14px 16px;border-radius:18px}.page-dashboard .hero-card h2,.page-dashboard .analytics-hero h2{font-size:20px;margin:0 0 4px}.page-dashboard .hero-card p,.page-dashboard .analytics-hero p{font-size:13px;line-height:1.6}
.code-view-pro{max-width:1080px;margin:auto}.code-view-top{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px;border-radius:22px;background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff;margin-bottom:14px}.code-view-top h2{margin:4px 0;font-size:28px;letter-spacing:1px}.code-view-top p{margin:0;color:#dbeafe}.tiny-label{font-size:12px;font-weight:800;color:#93c5fd}.code-status-card{min-width:120px;text-align:center;padding:12px;border-radius:16px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24)}.code-status-card b{display:block;font-size:18px}.code-status-card small{display:block;color:#e5e7eb}.code-status-card.ok{box-shadow:inset 0 0 0 2px rgba(34,197,94,.4)}.code-status-card.bad{box-shadow:inset 0 0 0 2px rgba(239,68,68,.4)}
.code-info-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:14px}.code-info-cards article{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:13px;box-shadow:0 10px 30px rgba(15,23,42,.06)}.code-info-cards span{font-size:22px}.code-info-cards b{display:block;color:#334155;margin-top:4px}.code-info-cards strong{display:block;color:#0f172a;margin-top:3px;overflow-wrap:anywhere}.code-info-cards small{display:block;color:#64748b;margin-top:4px;line-height:1.5}.code-table-card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:16px;box-shadow:0 12px 35px rgba(15,23,42,.07)}.code-table-card h3{margin:0 0 12px;font-size:18px}.code-beauty-table{width:100%;border-collapse:separate;border-spacing:0 9px}.code-beauty-table th{width:190px;text-align:right;background:#f1f5f9;color:#0f172a;padding:14px;border-radius:14px;font-size:14px}.code-beauty-table td{background:#f8fafc;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;padding:10px;vertical-align:middle}.code-beauty-table td:last-child{width:96px;border-radius:14px 0 0 14px;text-align:center}.code-beauty-table textarea.link-text{height:56px;min-height:56px;font-size:12px;direction:ltr}.xtream-lines{display:grid;gap:6px}.xtream-lines p{display:grid;grid-template-columns:100px 1fr;gap:10px;margin:0;align-items:center}.xtream-lines code{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:7px;direction:ltr;overflow-wrap:anywhere}.code-detail-actions{display:flex;gap:10px;margin-top:14px}
.pv-dialog{background:rgba(248,250,252,.62)!important;backdrop-filter:blur(2px);transition:none!important}.pv-dialog-card{border-radius:18px!important;box-shadow:0 20px 60px rgba(15,23,42,.22)!important;animation:none!important}.modal{background:rgba(248,250,252,.56)!important;backdrop-filter:blur(2px);transition:none!important}.modal .modal-card,.modal-card{animation:none!important;transition:none!important;border-radius:18px!important;box-shadow:0 20px 60px rgba(15,23,42,.22)!important}.modal.maximized .modal-card{transform:none!important}.modal .modal-resize,.modal [data-modal-maximize]{display:none!important}.modal .modal-card{position:relative;margin:auto}.page-dashboard .modal .modal-card{max-width:720px;width:min(720px,94vw)}
.page-settings .main{background:#f8fafc}.page-settings .settings-form{display:grid;grid-template-columns:230px 1fr;gap:14px;align-items:start}.page-settings .settings-form:before{content:'الإعدادات العامة\A الربط والسيرفر\A المظهر والواجهة\A الأداء والكاش\A الحماية والمراقبة\A النسخ والصيانة';white-space:pre-line;position:sticky;top:82px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px;line-height:2.7;font-weight:800;color:#334155;box-shadow:0 10px 30px rgba(15,23,42,.05)}.page-settings .settings-form>h2,.page-settings .settings-form>.two,.page-settings .settings-form>.settings-hero,.page-settings .settings-form>.setting-box,.page-settings .settings-form>.check-line,.page-settings .settings-form>.btn,.page-settings .settings-form>.form-grid,.page-settings .settings-form>.redis-check-row{grid-column:2}.page-settings .settings-form h2{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px 16px;margin:12px 0 0;font-size:18px}.page-settings .settings-form .two,.page-settings .settings-form .form-grid{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px;box-shadow:0 10px 30px rgba(15,23,42,.04)}.page-settings .input,.page-settings select,.page-settings textarea{border-radius:10px!important}.page-settings label{font-weight:800;color:#334155}.page-settings .btn-primary{border-radius:12px;padding:11px 18px}
@media(max-width:900px){.page-settings .settings-form{grid-template-columns:1fr}.page-settings .settings-form:before{display:none}.page-settings .settings-form>*{grid-column:1!important}.code-view-top{align-items:flex-start;flex-direction:column}.code-beauty-table th,.code-beauty-table td{display:block;width:auto!important;border-radius:12px!important}.xtream-lines p{grid-template-columns:1fr}}


/* PalVision 2026-07-08 final requested UI polish */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700;800&display=swap');
:root{--pv-font:'IBM Plex Sans Arabic','Cairo','Tahoma',Arial,sans-serif;--pv-side:#0f172a;--pv-side2:#16233a;--pv-accent:#2f93d8;--pv-soft:#f6f9fd;--pv-border:#e2e8f0}
html,body,button,input,select,textarea,.btn,.input,.nav,.active-table{font-family:var(--pv-font)!important}
body{letter-spacing:0!important;background:#f5f7fb!important;color:#0f172a!important}
.sidebar{background:linear-gradient(180deg,var(--pv-side),var(--pv-side2))!important;border-inline-end:0!important;box-shadow:10px 0 30px rgba(15,23,42,.08);padding:12px 10px!important}
.nav-grouped{gap:5px!important}.side-title{margin:15px 8px 7px!important;padding:0 8px!important;color:#93a4bd!important;font-size:11px!important;font-weight:800!important;letter-spacing:.2px;display:flex;align-items:center;gap:8px}.side-title:after{content:"";height:1px;background:rgba(148,163,184,.22);flex:1}.nav a,.side-action{min-height:39px!important;border-radius:12px!important;color:#e7edf6!important;background:transparent!important;border:1px solid transparent!important;font-weight:700!important;padding:9px 11px!important;display:flex!important;align-items:center!important;gap:10px!important}.nav a:hover,.nav a.active,.side-action:hover{background:rgba(255,255,255,.10)!important;border-color:rgba(255,255,255,.12)!important;color:#fff!important}.nav .ico{width:28px!important;height:28px!important;border-radius:10px!important;background:rgba(255,255,255,.09)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:15px!important;flex:0 0 28px}.server-main-link .ico,.server-rack-mini{background:linear-gradient(135deg,#e0f2fe,#93c5fd)!important;color:#0f172a!important}.side-badge{margin-inline-start:auto!important}
.topbar{background:#fff!important;color:#0f172a!important;border-bottom:1px solid #e5e7eb!important;box-shadow:0 2px 18px rgba(15,23,42,.05)!important}.brand span:last-child{color:#0f172a!important}.top-link,.pv-mini-nav,.top-user-chip{color:#0f172a!important;background:#f8fafc!important;border:1px solid #e2e8f0!important}.health-pill.ok{background:#ecfdf5!important;color:#047857!important;border:1px solid #bbf7d0!important}
/* centered modals only */
.modal,.pv-dialog{display:none!important;position:fixed!important;inset:0!important;align-items:center!important;justify-content:center!important;padding:20px!important;background:rgba(248,250,252,.68)!important;backdrop-filter:blur(3px)!important;z-index:9999!important;transition:none!important}.modal.show,.pv-dialog.show{display:flex!important}.modal-card,.pv-dialog-card,.modal-box,.modal-content{position:relative!important;inset:auto!important;margin:auto!important;transform:none!important;translate:none!important;width:min(680px,94vw)!important;max-height:88vh!important;overflow:auto!important;border-radius:18px!important;background:#fff!important;border:1px solid #e2e8f0!important;box-shadow:0 24px 80px rgba(15,23,42,.18)!important;animation:none!important;transition:none!important}.modal-card h2,.pv-dialog-card h2{font-size:20px!important;margin:0 0 14px!important}.modal-close,[data-close-modal]{display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#f1f5f9!important;color:#0f172a!important;border:1px solid #e2e8f0!important}.pv-window-tools,[data-pv-max],[data-modal-maximize],.modal-resize{display:none!important}.pv-window-card,.pv-window-head{cursor:auto!important}.page-dashboard #modalAdd .modal-card,.page-dashboard #modalTrial .modal-card,.page-dashboard #modalMulti .modal-card{width:min(740px,94vw)!important;max-width:740px!important}.modal input,.modal select,.modal textarea{border-radius:12px!important}.modal .btn{border-radius:12px!important}
/* Settings page real redesign */
.page-settings .main{background:#f6f8fb!important}.page-settings .page-head{background:#fff!important;border:1px solid var(--pv-border)!important;border-radius:20px!important;padding:18px 20px!important;box-shadow:0 8px 28px rgba(15,23,42,.04)!important}.page-settings form.premium-settings,.page-settings .settings-form{display:grid!important;grid-template-columns:260px minmax(0,1fr)!important;gap:18px!important;background:transparent!important}.page-settings form.premium-settings:before,.page-settings .settings-form:before{content:'عام\A السيرفر والربط\A الهوست والروابط\A الجداول والعرض\A الأداء والكاش\A الموزعون الفرعيون\A الحماية\A الرسائل';white-space:pre-line;position:sticky;top:82px;align-self:start;background:#fff;border:1px solid #dbe3ee;border-radius:18px;padding:12px 0;line-height:1.25;font-weight:700;color:#334155;box-shadow:0 10px 32px rgba(15,23,42,.06)}.page-settings form.premium-settings:before{font-size:0}.page-settings .settings-form:before{font-size:0}.page-settings form.premium-settings:before,.page-settings .settings-form:before{font-size:14px;line-height:2.7;padding-inline:16px}.page-settings .settings-tabbar{grid-column:1!important;position:sticky!important;top:82px!important;align-self:start!important;background:#fff!important;border:1px solid #dbe3ee!important;border-radius:18px!important;padding:8px!important;display:grid!important;gap:6px!important;box-shadow:0 10px 32px rgba(15,23,42,.06)!important}.page-settings .settings-tabbar button{border:0!important;background:transparent!important;text-align:start!important;border-radius:12px!important;padding:10px 12px!important;font-weight:700!important;color:#334155!important;font-family:var(--pv-font)!important}.page-settings .settings-tabbar button.active,.page-settings .settings-tabbar button:hover{background:#eaf4ff!important;color:#075985!important}.page-settings .settings-pane{grid-column:2!important;display:none!important;background:#fff!important;border:1px solid #dbe3ee!important;border-radius:20px!important;padding:18px!important;box-shadow:0 10px 32px rgba(15,23,42,.05)!important}.page-settings .settings-pane.active{display:block!important}.page-settings .settings-pane h2{background:transparent!important;border:0!important;border-bottom:1px solid #edf2f7!important;border-radius:0!important;padding:0 0 12px!important;margin:0 0 16px!important;font-size:21px!important;color:#0f172a!important}.page-settings .two,.page-settings .form-grid{background:#f8fafc!important;border:1px solid #e2e8f0!important;border-radius:16px!important;padding:14px!important;box-shadow:none!important}.page-settings label{font-size:13px!important;color:#334155!important;margin-bottom:6px!important}.page-settings .input,.page-settings select,.page-settings textarea{height:42px!important;border-radius:11px!important;border:1px solid #d7e0eb!important;background:#fff!important}.page-settings textarea.input{height:auto!important}.page-settings .check-line{background:#f8fafc!important;border:1px solid #e2e8f0!important;border-radius:14px!important;padding:10px 12px!important;margin:8px 0!important}.page-settings .btn-primary{background:#2f93d8!important;border-radius:13px!important;padding:11px 22px!important}.page-settings form.panel.mini-panel{margin-top:14px!important}
/* code details */
.code-view-pro{max-width:1120px;margin:auto}.code-view-top{background:linear-gradient(135deg,#ffffff,#eef7ff)!important;border:1px solid #dbeafe!important;border-radius:22px!important;padding:18px!important;box-shadow:0 12px 34px rgba(15,23,42,.06)!important}.code-view-top h2{font-size:24px!important}.code-view-top p,.code-view-top small,.code-status-card small{color:#111827!important}.code-status-card{min-width:132px!important;border-radius:18px!important;padding:13px 16px!important;text-align:center!important}.code-status-card b,.code-status-card small{color:#111827!important}.code-info-cards{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:12px!important;margin:14px 0!important}.code-info-cards article{background:#fff!important;border:1px solid #e2e8f0!important;border-radius:18px!important;padding:15px!important;box-shadow:0 8px 24px rgba(15,23,42,.04)!important}.code-info-cards article span{width:42px!important;height:42px!important;border-radius:14px!important;background:#eef7ff!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:22px!important}.code-info-cards article strong{font-size:16px!important;color:#0f172a!important}.code-info-cards article small{font-size:12px!important;color:#475569!important}.code-table-card{background:#fff!important;border:1px solid #e2e8f0!important;border-radius:20px!important;padding:16px!important;box-shadow:0 12px 34px rgba(15,23,42,.05)!important}.code-beauty-table{width:100%!important;border-collapse:separate!important;border-spacing:0 10px!important}.code-beauty-table th{width:170px!important;background:#f1f7ff!important;color:#0f172a!important;border-radius:14px 0 0 14px!important;padding:14px!important}.code-beauty-table td{background:#f8fafc!important;border-top:1px solid #e2e8f0!important;border-bottom:1px solid #e2e8f0!important;padding:12px!important}.code-beauty-table td:last-child{border-inline-end:1px solid #e2e8f0!important;border-radius:0 14px 14px 0!important;width:110px!important}.xtream-lines p{display:grid!important;grid-template-columns:100px 1fr!important;gap:8px!important;margin:6px 0!important}.xtream-lines code,.link-text{direction:ltr!important;background:#fff!important;border:1px solid #dbe3ee!important;color:#111827!important}.copy-ok{background:#16a34a!important;color:#fff!important}.copy-fail{background:#f97316!important;color:#fff!important}
/* dashboard smaller cards */
.page-dashboard .stat-card{min-height:86px!important;padding:13px 15px!important;border-radius:18px!important}.page-dashboard .stat-card b{font-size:24px!important}.page-dashboard .dashboard-grid{gap:11px!important}.page-dashboard .panel{border-radius:20px!important}.server-note,.notice.server-note{font-size:13px!important;padding:12px 14px!important;border-radius:16px!important}.page-dashboard .hero-title h2{font-size:22px!important}.page-dashboard .section-title-row h2{font-size:20px!important}.page-dashboard .page-help,.help-box{font-size:13px!important;line-height:1.7!important}
@media(max-width:900px){.page-settings form.premium-settings,.page-settings .settings-form{grid-template-columns:1fr!important}.page-settings .settings-tabbar,.page-settings form.premium-settings:before,.page-settings .settings-form:before{position:static!important;grid-column:1!important}.page-settings .settings-pane{grid-column:1!important}.modal-card,.pv-dialog-card{width:94vw!important}.code-beauty-table th,.code-beauty-table td{display:block!important;width:auto!important;border-radius:12px!important}.code-beauty-table td:last-child{width:auto!important}.xtream-lines p{grid-template-columns:1fr!important}}

/* === UI rollback hotfix 2026-07-08: Cairo + original sidebar + original modals === */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');
:root{--pv-font:Cairo,Arial,sans-serif!important;}
html,body,*{font-family:Cairo,Arial,sans-serif!important;}
body{font-family:Cairo,Arial,sans-serif!important;}
.sidebar{position:fixed!important;top:58px!important;bottom:0!important;left:0!important;width:245px!important;background:var(--side)!important;box-shadow:3px 0 11px rgba(15,23,42,.08)!important;overflow:auto!important;padding:12px 0!important;z-index:10!important;direction:ltr!important;border:0!important;}
.side-title{padding:14px 18px 6px!important;margin:0!important;color:#a7b1bf!important;font-size:13px!important;font-weight:900!important;letter-spacing:.3px!important;border-top:0!important;background:transparent!important;text-transform:none!important;}
.nav a,.nav .side-action,.side-action{display:flex!important;align-items:center!important;gap:12px!important;padding:10px 18px!important;margin:1px 9px!important;border-radius:5px!important;color:#273346!important;font-weight:800!important;background:transparent!important;border:0!important;box-shadow:none!important;}
.nav a:hover,.nav a.active,.nav .side-action:hover,.side-action:hover{background:#eef7ff!important;color:#0f67ad!important;transform:none!important;}
.nav .ico{width:23px!important;text-align:center!important;font-size:17px!important;background:transparent!important;color:inherit!important;border:0!important;box-shadow:none!important;}
.main{margin-left:245px!important;}
.sidebar-mini .sidebar{width:76px!important}.sidebar-mini .main{margin-left:76px!important}
@media(max-width:1050px){.sidebar{transform:translateX(-105%);transition:.25s}.sidebar.open,body.menu-open .sidebar{transform:none}.main{margin-left:0!important}}

/* settings: clear vertical sections, no hidden tabs */
.page-settings form.premium-settings,.page-settings .settings-redesigned,.page-settings .settings-form{display:block!important;background:#fff!important;border:1px solid #dfe5eb!important;border-radius:12px!important;padding:20px!important;box-shadow:var(--shadow)!important;}
.page-settings form.premium-settings:before,.page-settings .settings-form:before,.page-settings .settings-tabbar{display:none!important;content:none!important;}
.page-settings .settings-pane{display:block!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;margin:0!important;}
.page-settings .settings-hero{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;background:#f8fafc!important;border:1px solid #e2e8f0!important;border-radius:12px!important;padding:16px!important;margin-bottom:15px!important;}
.page-settings .settings-hero h2{margin:0!important;font-size:22px!important;color:#172033!important;background:transparent!important;border:0!important;padding:0!important;}
.page-settings .settings-tabs{display:flex!important;position:static!important;background:#f1f5f9!important;border:1px solid #e2e8f0!important;border-radius:12px!important;padding:8px!important;margin:12px 0 18px!important;gap:8px!important;}
.page-settings .settings-tabs a{background:#fff!important;border:1px solid #e2e8f0!important;color:#334155!important;border-radius:8px!important;padding:7px 11px!important;font-weight:900!important;}
.page-settings h2,.page-settings .settings-redesigned h2,.page-settings .settings-pane h2{display:block!important;margin:18px 0 10px!important;background:#f8fafc!important;border:1px solid #e2e8f0!important;border-right:4px solid var(--top)!important;border-radius:10px!important;padding:12px 14px!important;font-size:18px!important;color:#172033!important;}
.page-settings .two,.page-settings .form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;background:#fff!important;border:1px solid #edf2f7!important;border-radius:10px!important;padding:14px!important;margin-bottom:10px!important;box-shadow:none!important;}
.page-settings label{font-weight:900!important;color:#334155!important;}
.page-settings .input,.page-settings select,.page-settings textarea{border-radius:4px!important;min-height:46px!important;border:1px solid #d9e2ec!important;background:#f8fafc!important;}
@media(max-width:900px){.page-settings .two,.page-settings .form-grid{grid-template-columns:1fr!important}.page-settings .settings-hero{align-items:flex-start!important;flex-direction:column!important}}

/* modals: original centered overlay, no maximize or dragging */
.modal{position:fixed!important;inset:0!important;background:rgba(15,23,42,.42)!important;z-index:100000!important;display:none!important;align-items:center!important;justify-content:center!important;padding:18px!important;backdrop-filter:none!important;transition:none!important;}
.modal.show{display:flex!important;}
.modal-card,.modal .modal-card,.pv-dialog-card,.modal-box,.modal-content{position:relative!important;inset:auto!important;margin:auto!important;transform:none!important;translate:none!important;background:#fff!important;width:520px!important;max-width:96vw!important;max-height:92vh!important;overflow:auto!important;border-radius:15px!important;padding:24px!important;box-shadow:0 24px 60px rgba(15,23,42,.28)!important;border-top:5px solid var(--top)!important;animation:none!important;transition:none!important;resize:none!important;}
.create-code-card.modal-card.ultra-wide,.modal-card.ultra-wide.create-code-card{width:min(880px,94vw)!important;max-width:880px!important;}
.modal-close{position:absolute!important;top:10px!important;left:12px!important;width:34px!important;height:34px!important;border:0!important;border-radius:8px!important;background:#f1f5f9!important;font-size:22px!important;cursor:pointer!important;color:#0f172a!important;}
.pv-window-tools,[data-pv-max],[data-modal-maximize],.modal-resize,.modal-card .modal-maximize,.modal-card [data-maximize-modal]{display:none!important;}
.pv-window-head,.pv-window-card{cursor:auto!important;resize:none!important;}

/* === PalVision final polish 2026-07-08: Cairo, clean blue sidebar, compact dashboard, original modal behavior === */
body,button,input,select,textarea,.btn{font-family:Cairo,Arial,sans-serif!important}
.topbar{background:linear-gradient(90deg,#0f75bc,#2f93d8 55%,#4bb3fd)!important;box-shadow:0 4px 18px rgba(15,23,42,.18)!important;border-bottom:1px solid rgba(255,255,255,.18)}
.brand{min-width:210px!important}.brand-mark{box-shadow:0 6px 16px rgba(15,23,42,.14)}
.sidebar{background:linear-gradient(180deg,#0b65a3,#0f75bc 50%,#0a4f86)!important;color:#fff!important;border-left:0!important;box-shadow:4px 0 18px rgba(15,23,42,.16)!important}
.side-title{color:#cfeaff!important;border-top:1px solid rgba(255,255,255,.14)!important;font-size:12px!important;padding-top:14px!important}.side-title:first-of-type{border-top:0!important}
.nav a,.nav button.side-action{color:#fff!important;background:transparent!important;border:1px solid transparent!important;border-radius:8px!important;margin:2px 8px!important;min-height:39px!important}
.nav a:hover,.nav a.active,.nav button.side-action:hover{background:rgba(255,255,255,.15)!important;border-color:rgba(255,255,255,.18)!important;color:#fff!important}
.nav .ico{background:rgba(255,255,255,.13);border-radius:8px;width:28px!important;height:28px;display:inline-flex;align-items:center;justify-content:center;color:#fff!important}.side-badge{background:#fff!important;color:#0b65a3!important}
.page-dashboard .dashboard-grid,.dashboard-tight-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}.page-dashboard .stat-card,.dashboard-grid .stat-card{min-height:78px!important;padding:12px 14px!important;border-radius:14px!important}.page-dashboard .stat-card b,.dashboard-grid .stat-card b{font-size:21px!important}.page-dashboard .stat-card small,.dashboard-grid .stat-card small{font-size:11px!important}.page-dashboard .stat-icon,.dashboard-grid .stat-icon{width:34px!important;height:34px!important;font-size:16px!important}.quick-card{padding:13px!important;border-radius:14px!important}.quick-card span{font-size:22px!important}.quick-card b{font-size:14px!important}.home-service-banner{padding:14px 16px!important;border-radius:18px!important}.hs-circle{width:38px!important;height:38px!important;font-size:14px!important}.hs-item{padding:10px!important}.hs-item p{font-size:12px!important;line-height:1.5!important}.panel{border-radius:14px!important}
/* Restore original centered modal behavior and remove resize/maximize/move controls */
.modal{position:fixed!important;inset:0!important;background:rgba(15,23,42,.42)!important;z-index:1000!important;display:none!important;align-items:center!important;justify-content:center!important;padding:18px!important;backdrop-filter:none!important;transition:none!important}.modal.show{display:flex!important}.modal-card,.modal-lite-card{position:relative!important;margin:auto!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;width:520px!important;max-width:96vw!important;max-height:88vh!important;overflow:auto!important;border-radius:15px!important;padding:24px!important;box-shadow:0 24px 60px rgba(15,23,42,.28)!important;border-top:5px solid var(--top)!important;animation:none!important;transition:none!important}.modal-card.ultra-wide,.modal-card.ultra-wide.create-code-card{width:min(720px,96vw)!important;max-width:720px!important}.modal-close{position:absolute!important;top:10px!important;left:12px!important;width:34px!important;height:34px!important;border:0!important;border-radius:8px!important;background:#f1f5f9!important;font-size:22px!important;cursor:pointer!important}.modal .modal-maximize,.modal .modal-resize,.modal [data-modal-maximize],.modal [data-maximize-modal],.pv-window-tools,.pv-window-card .pv-window-head{display:none!important}.modal-card[style],.modal-lite-card[style]{transform:none!important}.pv-dialog{background:rgba(15,23,42,.35)!important;backdrop-filter:none!important}.pv-dialog-card{animation:none!important}
/* Better settings page with side cards */
.page-settings .settings-redesigned{display:grid!important;grid-template-columns:270px minmax(0,1fr)!important;gap:16px!important;background:#f8fafc!important;border-radius:18px!important;padding:16px!important}.page-settings .settings-hero{grid-column:1/-1!important;background:linear-gradient(135deg,#eaf5ff,#fff)!important;border:1px solid #dbeafe!important;border-radius:16px!important;padding:16px 18px!important}.page-settings .settings-tabs{position:sticky!important;top:76px!important;align-self:start!important;display:flex!important;flex-direction:column!important;gap:8px!important;background:#fff!important;border:1px solid #dbe7f3!important;border-radius:16px!important;padding:12px!important;box-shadow:0 8px 24px rgba(15,23,42,.06)!important}.page-settings .settings-tabs a{display:flex!important;align-items:center!important;gap:8px!important;background:#f3f8ff!important;color:#155e9f!important;border:1px solid #dbeafe!important;border-radius:12px!important;padding:11px 12px!important;font-size:13px!important}.page-settings .settings-tabs a:hover{background:#e5f1ff!important}.page-settings .settings-redesigned>h2,.page-settings .settings-redesigned>.two,.page-settings .settings-redesigned>p,.page-settings .settings-redesigned>label,.page-settings .settings-redesigned>textarea,.page-settings .settings-redesigned>.setting-box,.page-settings .settings-redesigned>.editor-toolbar,.page-settings .settings-redesigned>.html-editor,.page-settings .settings-redesigned>small,.page-settings .settings-redesigned>button{grid-column:2!important}.page-settings .settings-redesigned>h2{margin:0!important;background:#fff!important;border:1px solid #dbe7f3!important;border-radius:16px 16px 0 0!important;padding:15px 16px!important;color:#0f172a!important;font-size:18px!important;box-shadow:0 8px 22px rgba(15,23,42,.04)!important}.page-settings .settings-redesigned>.two,.page-settings .settings-redesigned>.setting-box,.page-settings .settings-redesigned>.panel-soft,.page-settings .settings-redesigned>textarea.input,.page-settings .settings-redesigned>.html-editor{background:#fff!important;border:1px solid #dbe7f3!important;border-radius:0 0 16px 16px!important;padding:14px!important;margin:-16px 0 16px!important;box-shadow:0 8px 22px rgba(15,23,42,.04)!important}.page-settings .settings-redesigned .input{border-radius:10px!important;background:#fbfdff!important}.page-settings .mini-panel{border-radius:16px!important}.page-settings .btn-primary{background:linear-gradient(135deg,#0f75bc,#2f93d8)!important}.page-settings .settings-redesigned>button.btn-primary{grid-column:2!important;justify-self:start!important;min-width:170px!important}
@media(max-width:980px){.page-settings .settings-redesigned{grid-template-columns:1fr!important}.page-settings .settings-tabs,.page-settings .settings-redesigned>h2,.page-settings .settings-redesigned>.two,.page-settings .settings-redesigned>p,.page-settings .settings-redesigned>label,.page-settings .settings-redesigned>textarea,.page-settings .settings-redesigned>.setting-box,.page-settings .settings-redesigned>.editor-toolbar,.page-settings .settings-redesigned>.html-editor,.page-settings .settings-redesigned>small,.page-settings .settings-redesigned>button{grid-column:1!important}.page-dashboard .dashboard-grid,.dashboard-tight-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.page-dashboard .dashboard-grid,.dashboard-tight-grid{grid-template-columns:1fr!important}.modal-card,.modal-lite-card{width:96vw!important;padding:18px!important}}

/* ===== PV final settings/theme/table polish 2026-07-08 ===== */
/* Red numeric alerts in sidebar and topbar */
.side-badge,.notify-badge,.support-badge{background:#ef4444!important;color:#fff!important;border:2px solid #fff!important;box-shadow:0 4px 12px rgba(239,68,68,.32)!important;min-width:20px!important;height:20px!important;line-height:16px!important;font-weight:900!important}.nav a .side-badge,.nav button .side-badge{margin-inline-start:auto!important}
/* Expired codes: all code tables */
.expired-row td,tr.expired-row td,.users-table tr.expired-row td,.excel-db tr.expired-row td{background:#fff1f2!important;color:#7f1d1d!important;border-color:#fecdd3!important}.expired-row .badge,.expired-row .id-pill{filter:saturate(1.05)}.expired-row:hover td{background:#ffe4e6!important}.expired-row .code-cell:before{content:'منتهي';display:inline-flex;margin-inline-end:6px;padding:2px 7px;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;font-weight:900}
/* Settings page rebuilt to a clean dashboard-like card */
body.page-settings{background:linear-gradient(135deg,#eaf4fb,#f8fafc)!important}.page-settings .content>.panel:not(.mini-panel),.page-settings form.premium-settings.settings-redesigned{max-width:1280px;margin:0 auto 18px!important}.page-settings form.premium-settings.settings-redesigned{display:grid!important;grid-template-columns:1fr!important;gap:0!important;background:#fff!important;border:1px solid #d8e2ec!important;border-radius:18px!important;padding:0 0 20px!important;overflow:hidden!important;box-shadow:0 18px 55px rgba(15,23,42,.12)!important}.page-settings .settings-hero{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;background:#fff!important;border:0!important;border-bottom:1px solid #e7edf5!important;border-radius:0!important;padding:18px 26px!important;margin:0!important}.page-settings .settings-hero span{font-size:26px}.page-settings .settings-hero h2{margin:0!important;padding:0!important;background:transparent!important;border:0!important;color:#1f2937!important;font-size:22px!important}.page-settings .settings-hero p{margin:5px 0 0!important;color:#64748b!important;font-weight:700!important}.page-settings .settings-tabs{position:static!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important;gap:0!important;background:#eef3f7!important;border:0!important;border-bottom:1px solid #dbe3ee!important;border-radius:0!important;padding:0!important;margin:0 0 22px!important;box-shadow:none!important}.page-settings .settings-tabs a{height:58px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:transparent!important;border:0!important;border-left:1px solid #dbe3ee!important;border-radius:0!important;color:#64748b!important;font-size:14px!important;font-weight:900!important;text-decoration:none!important}.page-settings .settings-tabs a:first-child{background:#4f8be2!important;color:#fff!important}.page-settings .settings-tabs a:hover{background:#e5eef9!important;color:#0f172a!important}.page-settings .settings-tabs a:first-child:hover{background:#4f8be2!important;color:#fff!important}.page-settings .settings-redesigned>h2{margin:22px 30px 12px!important;padding:0 0 10px!important;background:transparent!important;border:0!important;border-bottom:1px solid #e5edf5!important;border-radius:0!important;color:#334155!important;font-size:19px!important}.page-settings .settings-redesigned>h2:before{display:none!important}.page-settings .settings-redesigned>p.muted{margin:0 30px 12px!important}.page-settings .settings-redesigned>.two,.page-settings .settings-redesigned>.setting-box,.page-settings .settings-redesigned>.panel-soft{display:grid!important;grid-template-columns:260px minmax(0,1fr)!important;gap:16px 22px!important;align-items:center!important;margin:0 30px 12px!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}.page-settings .settings-redesigned>.two>div{display:contents!important}.page-settings .settings-redesigned label{font-size:15px!important;color:#64748b!important;font-weight:800!important;margin:0!important}.page-settings .settings-redesigned .input,.page-settings .settings-redesigned select,.page-settings .settings-redesigned textarea{width:100%!important;min-height:46px!important;border-radius:6px!important;border:1px solid #cfd9e5!important;background:#fff!important;color:#334155!important;padding:10px 13px!important;font-weight:700!important;box-shadow:inset 0 1px 2px rgba(15,23,42,.04)!important}.page-settings .settings-redesigned textarea.input{min-height:86px!important}.page-settings .settings-redesigned .check-line{grid-column:1/-1!important;background:#f8fafc!important;border:1px solid #e5edf5!important;border-radius:8px!important;padding:10px 12px!important;margin:8px 30px!important;color:#334155!important}.page-settings .settings-redesigned .logo-preview,.page-settings .settings-redesigned .html-editor{border:1px solid #dbe3ee!important;border-radius:8px!important;background:#fff!important}.page-settings .editor-toolbar{margin:0 30px!important;background:#f1f5f9!important;border:1px solid #dbe3ee!important;border-radius:8px 8px 0 0!important}.page-settings .html-editor{margin:0 30px 12px!important;min-height:210px!important}.page-settings .hidden-html+small,.page-settings small.muted{color:#64748b!important;font-weight:700!important}.page-settings .btn-primary{background:#4f8be2!important;border-color:#4f8be2!important;color:#fff!important;border-radius:8px!important}.page-settings .mini-panel{max-width:1280px;margin:0 auto 16px!important;border-radius:14px!important}.page-settings .mini-panel h2{font-size:18px!important;margin:0 0 6px!important}
@media(max-width:900px){.page-settings .settings-redesigned>.two,.page-settings .settings-redesigned>.setting-box,.page-settings .settings-redesigned>.panel-soft{grid-template-columns:1fr!important}.page-settings .settings-tabs{grid-template-columns:1fr 1fr!important}.page-settings .settings-hero{align-items:flex-start!important;flex-direction:column!important}}
/* Make theme presets visibly change the whole script when selected */
body[data-theme-preset="ocean"]{--top:#2f93d8;--green:#22c55e;--red:#ef4444}body[data-theme-preset="emerald"]{--top:#059669;--green:#14b8a6;--red:#ef4444}body[data-theme-preset="royal"]{--top:#6d5dfc;--green:#8b5cf6;--red:#f43f5e}body[data-theme-preset="midnight"]{--top:#1e3a8a;--green:#06b6d4;--red:#fb7185}body[data-theme-preset="gold"]{--top:#b7791f;--green:#f59e0b;--red:#e11d48}body[data-theme-preset="graphite"]{--top:#334155;--green:#64748b;--red:#ef4444}body[data-theme-preset="premium"]{--top:#2f80ed;--green:#27ae60;--red:#ff4d5e}body[data-theme-preset="windows_95"]{--top:#008080;--green:#c0c0c0;--red:#800000}body[data-theme-preset="windows_xp"]{--top:#2f7df5;--green:#22c55e;--red:#ef4444}body[data-theme-preset="windows_2000"]{--top:#000080;--green:#008000;--red:#b00000}body[data-theme-preset="linux"]{--top:#111827;--green:#22c55e;--red:#ef4444}


/* v10.24 real theme matching + message-box style pages */
body[data-theme-preset="ocean"]{--top:#2f93d8;--green:#22c55e;--red:#ef4444;--side:#1f75b7;--bg:#eef7ff;--card:#ffffff;--line:#cfe3f5;--muted:#5f7185}
body[data-theme-preset="emerald"]{--top:#059669;--green:#10b981;--red:#ef4444;--side:#047857;--bg:#ecfdf5;--card:#ffffff;--line:#bbf7d0;--muted:#426354}
body[data-theme-preset="royal"]{--top:#6d5dfc;--green:#8b5cf6;--red:#f43f5e;--side:#4f46e5;--bg:#f5f3ff;--card:#ffffff;--line:#ddd6fe;--muted:#615b86}
body[data-theme-preset="midnight"]{--top:#1e3a8a;--green:#06b6d4;--red:#fb7185;--side:#0f172a;--bg:#101827;--card:#172033;--line:#283750;--muted:#b9c7db;color:#e5edf7}
body[data-theme-preset="gold"]{--top:#b7791f;--green:#f59e0b;--red:#e11d48;--side:#8a5a12;--bg:#fffbeb;--card:#ffffff;--line:#fde68a;--muted:#7a5a22}
body[data-theme-preset="graphite"]{--top:#334155;--green:#64748b;--red:#ef4444;--side:#1f2937;--bg:#f1f5f9;--card:#ffffff;--line:#cbd5e1;--muted:#475569}
body[data-theme-preset="premium"]{--top:#2f80ed;--green:#27ae60;--red:#ff4d5e;--side:#155eab;--bg:#f3f8ff;--card:#ffffff;--line:#d7e7fb;--muted:#5d728a}
body[data-theme-preset] .topbar{background:linear-gradient(90deg,var(--top),color-mix(in srgb,var(--top) 72%,#0f172a))!important}
body[data-theme-preset] .sidebar{background:linear-gradient(180deg,var(--side),color-mix(in srgb,var(--side) 70%,#0f172a))!important;color:#fff!important}
body[data-theme-preset] .sidebar .side-title{color:rgba(255,255,255,.72)!important;border-color:rgba(255,255,255,.16)!important}
body[data-theme-preset] .nav a,body[data-theme-preset] .side-action{color:#fff!important}
body[data-theme-preset] .nav a:hover,body[data-theme-preset] .nav a.active,body[data-theme-preset] .side-action:hover{background:rgba(255,255,255,.16)!important;color:#fff!important}
body[data-theme-preset] .nav .ico,body[data-theme-preset] .side-action .ico{filter:drop-shadow(0 1px 1px rgba(0,0,0,.2))}
body[data-theme-preset] .main,body[data-theme-preset] {background:var(--bg)!important}
body[data-theme-preset] .panel,body[data-theme-preset] .page-head,body[data-theme-preset] .stat-card,body[data-theme-preset] .quick-card,body[data-theme-preset] .settings-card,body[data-theme-preset] .table-wrap,body[data-theme-preset] .modal-card,body[data-theme-preset] .modal-lite-card{background:var(--card)!important;border-color:var(--line)!important}
body[data-theme-preset] .btn-primary,body[data-theme-preset] button.btn-primary{background:linear-gradient(135deg,var(--top),color-mix(in srgb,var(--top) 76%,#000))!important;border-color:transparent!important;color:#fff!important}
body[data-theme-preset] .badge.green{background:color-mix(in srgb,var(--green) 15%,#fff)!important;color:color-mix(in srgb,var(--green) 70%,#000)!important}
body[data-theme-preset] .badge.red,.notify-badge,.side-badge{background:var(--red)!important;color:#fff!important}
body[data-theme-preset] .table th,body[data-theme-preset] .active-table thead th{background:color-mix(in srgb,var(--top) 9%,#fff)!important;color:#111827!important}
body[data-theme-preset] .active-table tbody tr:hover,body[data-theme-preset] .table tbody tr:hover{background:color-mix(in srgb,var(--top) 7%,#fff)!important}
body[data-theme-preset="midnight"] .panel,body[data-theme-preset="midnight"] .page-head,body[data-theme-preset="midnight"] .stat-card,body[data-theme-preset="midnight"] .quick-card,body[data-theme-preset="midnight"] .settings-card,body[data-theme-preset="midnight"] .table-wrap,body[data-theme-preset="midnight"] .modal-card{color:#e5edf7!important}
body[data-theme-preset="midnight"] .table th,body[data-theme-preset="midnight"] .active-table thead th{background:#1f2b42!important;color:#e5edf7!important}
body[data-theme-preset="midnight"] .table td,body[data-theme-preset="midnight"] .active-table tbody td{color:#e5edf7!important;border-color:#283750!important}
body[data-theme-preset="windows_95"]{--top:#008080;--green:#008000;--red:#800000;--side:#008080;--bg:#008080;--card:#c0c0c0;--line:#808080;color:#000!important}
body[data-theme-preset="windows_xp"]{--top:#2f7df5;--green:#22c55e;--red:#ef4444;--side:#245edb;--bg:#ece9d8;--card:#fff;--line:#7aa7e8}
body[data-theme-preset="windows_2000"]{--top:#000080;--green:#008000;--red:#b00000;--side:#000080;--bg:#3a6ea5;--card:#ece9d8;--line:#808080;color:#000!important}
body[data-theme-preset="linux"]{--top:#111827;--green:#22c55e;--red:#ef4444;--side:#0b1220;--bg:#0f172a;--card:#111827;--line:#243244;--muted:#9ca3af;color:#e5f4ff!important}

/* Turn all popups into clean small page panels, no dark overlay, no animation/maximize */
.modal,.pv-dialog,.modal-lite{background:transparent!important;backdrop-filter:none!important;animation:none!important;transition:none!important;padding:18px!important;align-items:flex-start!important;justify-content:center!important;overflow:auto!important}
.modal.show,.pv-dialog.show,.modal-lite.show{display:flex!important}
.modal-card,.pv-dialog-card,.modal-lite-card{margin:64px auto 30px!important;transform:none!important;animation:none!important;transition:none!important;border-radius:14px!important;width:min(620px,94vw)!important;max-width:94vw!important;max-height:none!important;box-shadow:0 14px 40px rgba(15,23,42,.18)!important;border:1px solid var(--line,#dbe3ef)!important;border-top:4px solid var(--top)!important;overflow:visible!important;resize:none!important;position:relative!important}
.create-code-card.modal-card,.modal-card.ultra-wide{width:min(780px,94vw)!important}.create-code-card .create-grid{grid-template-columns:1fr 1fr!important;gap:14px!important}.modal-close,.modal-head .mini,[data-close],[data-close-modal],[data-close-wallet]{position:absolute!important;top:9px!important;left:10px!important;width:32px!important;height:32px!important;border-radius:8px!important;background:#f1f5f9!important;color:#0f172a!important;border:1px solid #dbe3ef!important;font-size:20px!important;line-height:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important}.modal-head{padding-inline-start:54px!important}.modal-card h2,.modal-card h3{padding-inline-start:36px}.modal [data-maximize],.modal .maximize,.pv-dialog [data-maximize],.modal-lite [data-maximize]{display:none!important}.modal-body{max-height:none!important}.modal:before,.pv-dialog:before,.modal-lite:before{content:"";position:fixed;inset:0;background:rgba(248,250,252,.64);z-index:-1;pointer-events:none}

/* === PalVision request polish 2026-07-08: calmer colors, compact settings, top popups === */
:root{--pv-blue:#216fa8;--pv-blue2:#2f8fd0;--pv-navy:#153e66;--pv-card:#ffffff;--pv-bg:#f3f7fb;--pv-line:#d9e4ef;--pv-text:#1f2d3d;--pv-muted:#64748b}
body{background:linear-gradient(135deg,#eef6ff,#f7fafc)!important;color:var(--pv-text)!important}
.topbar{background:linear-gradient(90deg,#1d6ea7,#2e92d2)!important;color:#fff!important;border-bottom:0!important;box-shadow:0 10px 24px rgba(29,110,167,.18)!important}
.topbar .brand span:last-child,.topbar .top-link,.topbar .pv-mini-nav,.topbar .top-user-chip,.topbar .mini-top-info{color:#fff!important}
.topbar .top-link,.topbar .pv-mini-nav,.topbar .top-user-chip{background:rgba(255,255,255,.13)!important;border-color:rgba(255,255,255,.22)!important}
.topbar .top-link:hover,.topbar .pv-mini-nav:hover,.topbar .top-user-chip:hover{background:rgba(255,255,255,.22)!important}
.topbar .health-pill.ok{background:rgba(255,255,255,.18)!important;color:#fff!important;border-color:rgba(255,255,255,.25)!important}.topbar .top-search input{background:rgba(255,255,255,.96)!important;color:#0f172a!important}
/* softer dashboard cards */
.page-dashboard .page-head,.page-dashboard .panel{border-radius:18px!important;border:1px solid var(--pv-line)!important;background:#fff!important;box-shadow:0 10px 28px rgba(15,23,42,.05)!important}.page-dashboard .dashboard-grid,.dashboard-tight-grid{gap:12px!important}.page-dashboard .stat-card,.page-dashboard .quick-card{min-height:86px!important;padding:14px 16px!important;border:1px solid #dbe8f4!important;border-radius:16px!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;box-shadow:0 8px 22px rgba(30,80,130,.06)!important;color:#16324f!important}.page-dashboard .stat-card b{font-size:24px!important;color:#1d6ea7!important}.page-dashboard .stat-card span,.page-dashboard .quick-card p{color:#64748b!important}.page-dashboard .quick-card .ico,.page-dashboard .stat-card .ico{background:#eaf5ff!important;color:#1d6ea7!important;border-radius:12px!important}.page-dashboard .server-note,.page-dashboard .server-packages-note{background:#f8fbff!important;border:1px solid #dbe8f4!important;border-right:4px solid #2e92d2!important;color:#334155!important;border-radius:14px!important;padding:12px 14px!important}
/* settings compact nice layout */
.page-settings .page-head{display:none!important}.settings-lite-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:14px;background:linear-gradient(135deg,#fff,#f5faff);border:1px solid #dbe8f4;border-radius:18px;padding:16px 18px;box-shadow:0 12px 30px rgba(15,23,42,.05)}.settings-lite-head h2{margin:0;color:#12385c}.settings-lite-head p{margin:4px 0 0;color:#64748b;font-weight:700}.settings-lite-icon{width:42px;height:42px;border-radius:14px;background:#eaf5ff;color:#1d6ea7;display:inline-flex;align-items:center;justify-content:center;font-size:22px;margin-inline-end:8px}.settings-lite-head>div:first-child{display:flex;align-items:center}.settings-lite-actions{display:flex;gap:8px;flex-wrap:wrap}.settings-lite-form{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}.settings-lite-grid{display:grid;grid-template-columns:230px minmax(0,1fr);gap:14px}.settings-lite-side{position:sticky;top:74px;align-self:start;background:#fff;border:1px solid #dbe8f4;border-radius:16px;padding:8px;box-shadow:0 10px 26px rgba(15,23,42,.04);display:grid;gap:5px}.settings-lite-side a{display:flex;text-decoration:none;color:#334155;font-weight:900;border-radius:11px;padding:10px 12px;border:1px solid transparent}.settings-lite-side a:hover{background:#eaf5ff;color:#1d6ea7;border-color:#d5eafa}.settings-lite-content{display:grid;gap:12px}.settings-card-lite{background:#fff;border:1px solid #dbe8f4;border-radius:18px;padding:16px;box-shadow:0 10px 26px rgba(15,23,42,.04)}.settings-card-lite h2{font-size:18px!important;margin:0 0 12px!important;color:#12385c!important;border-bottom:1px solid #edf3f9;padding-bottom:10px}.settings-fields.two{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:12px}.settings-fields{display:grid;gap:12px}.settings-card-lite label{display:block;color:#475569;font-weight:900;margin:0 0 5px}.settings-card-lite .input{height:43px!important;border-radius:10px!important;border:1px solid #cfddeb!important;background:#fff!important;color:#1f2937!important;font-weight:700!important}.settings-card-lite textarea.input{height:auto!important}.settings-card-lite .check-line{display:flex!important;align-items:center;gap:8px;background:#f8fbff;border:1px solid #e1edf7;border-radius:12px;padding:10px 12px;margin:0!important}.host-mini-links{display:flex;gap:8px;align-items:end}.settings-save-bar{position:sticky;bottom:8px;z-index:3;background:rgba(255,255,255,.95);border:1px solid #dbe8f4;border-radius:16px;padding:10px;display:flex;gap:10px;align-items:center;box-shadow:0 10px 30px rgba(15,23,42,.09)}.settings-maintenance-tools{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.settings-maintenance-tools .mini-panel{margin:0!important;border-radius:18px!important}
@media(max-width:900px){.settings-lite-grid{grid-template-columns:1fr}.settings-lite-side{position:static;grid-template-columns:repeat(2,1fr)}.settings-fields.two{grid-template-columns:1fr}.settings-maintenance-tools{grid-template-columns:1fr}.settings-lite-head{display:grid}.settings-lite-head>div:first-child{align-items:flex-start}.settings-save-bar{position:static;flex-wrap:wrap}}
/* popups must open near top of the current visible page */
.modal,.pv-dialog,.modal-lite{align-items:flex-start!important;justify-content:center!important;padding:14px 18px!important;overflow-y:auto!important;background:transparent!important;backdrop-filter:none!important}.modal.show,.pv-dialog.show,.modal-lite.show{display:flex!important}.modal-card,.pv-dialog-card,.modal-lite-card{margin:18px auto 24px!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;transform:none!important;animation:none!important;transition:none!important;max-height:calc(100vh - 38px)!important;overflow:auto!important;resize:none!important}.create-code-card.modal-card,.modal-card.ultra-wide{width:min(780px,94vw)!important}.modal:before,.pv-dialog:before,.modal-lite:before{background:rgba(248,250,252,.45)!important}.modal [data-maximize],.modal [data-modal-maximize],.modal [data-maximize-modal],.modal .maximize,.modal .modal-resize,.pv-window-tools{display:none!important}
/* full theme matching with readable colors */
body[data-theme-preset] .topbar{background:linear-gradient(90deg,var(--top),color-mix(in srgb,var(--top) 76%,#123))!important;color:#fff!important}body[data-theme-preset] .topbar .brand span:last-child,body[data-theme-preset] .topbar .top-link,body[data-theme-preset] .topbar .pv-mini-nav,body[data-theme-preset] .topbar .top-user-chip,body[data-theme-preset] .topbar .mini-top-info{color:#fff!important}body[data-theme-preset] .sidebar{background:linear-gradient(180deg,var(--side,var(--top)),color-mix(in srgb,var(--side,var(--top)) 70%,#102033))!important}body[data-theme-preset] .main,body[data-theme-preset]{background:var(--bg,#f3f7fb)!important}body[data-theme-preset] .panel,body[data-theme-preset] .settings-card-lite,body[data-theme-preset] .settings-lite-head,body[data-theme-preset] .settings-lite-side,body[data-theme-preset] .stat-card,body[data-theme-preset] .quick-card,body[data-theme-preset] .table-wrap{background:var(--card,#fff)!important;border-color:var(--line,#dbe8f4)!important}body[data-theme-preset="midnight"] .settings-card-lite h2,body[data-theme-preset="midnight"] .settings-lite-head h2,body[data-theme-preset="midnight"] .panel,body[data-theme-preset="midnight"] .stat-card,body[data-theme-preset="midnight"] .quick-card{color:#e5edf7!important}body[data-theme-preset="linux"] .settings-card-lite,body[data-theme-preset="linux"] .settings-lite-head,body[data-theme-preset="linux"] .settings-lite-side{color:#e5edf7!important}


/* === User request final polish: chat, reports, top modals, nicer dashboard colors === */
.top-search input::placeholder{color:#0f172a!important;font-weight:800}.top-search input{color:#0f172a!important}.admin-fast-tools{display:flex;gap:6px;align-items:center}.admin-fast-tools button{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.16);color:#fff;border-radius:10px;padding:8px 10px;font-family:inherit;font-weight:900;cursor:pointer}.admin-fast-tools button:hover{background:rgba(255,255,255,.26)}
.side-badge,.notify-badge{background:#ef4444!important;color:#fff!important;border:2px solid #fff!important;box-shadow:0 4px 14px rgba(239,68,68,.35)!important}.page-dashboard .dashboard-grid .stat-card:nth-child(1),.report-mini-cards .stat-card:nth-child(1){background:linear-gradient(135deg,#e0f2fe,#ffffff)!important;border-color:#bae6fd!important}.page-dashboard .dashboard-grid .stat-card:nth-child(2),.report-mini-cards .stat-card:nth-child(2){background:linear-gradient(135deg,#dcfce7,#ffffff)!important;border-color:#bbf7d0!important}.page-dashboard .dashboard-grid .stat-card:nth-child(3),.report-mini-cards .stat-card:nth-child(3){background:linear-gradient(135deg,#fef3c7,#ffffff)!important;border-color:#fde68a!important}.page-dashboard .dashboard-grid .stat-card:nth-child(4){background:linear-gradient(135deg,#fce7f3,#ffffff)!important;border-color:#fbcfe8!important}.page-dashboard .dashboard-grid .stat-card:nth-child(5){background:linear-gradient(135deg,#ede9fe,#ffffff)!important;border-color:#ddd6fe!important}.page-dashboard .dashboard-grid .stat-card:nth-child(6){background:linear-gradient(135deg,#fee2e2,#ffffff)!important;border-color:#fecaca!important}.page-dashboard .stat-card b{color:#0f3b63!important}.page-dashboard .stat-card small{color:#334155!important}
.modal,.pv-dialog,.modal-lite{align-items:flex-start!important;justify-content:center!important;padding-top:76px!important;background:transparent!important;backdrop-filter:none!important}.modal-card,.pv-dialog-card,.modal-lite-card{margin:0 auto 24px!important;transform:none!important;animation:none!important;max-height:calc(100vh - 95px)!important;overflow:auto!important}.modal.show,.pv-dialog.show,.modal-lite.show{display:flex!important}.modal [data-maximize],.modal .maximize,.modal .modal-resize,.pv-window-tools{display:none!important}.quick-admin-card{width:min(520px,92vw)!important;padding:22px!important;border-top:4px solid var(--top)!important}
.report-search-bar{background:#fff;border:1px solid var(--line,#dbe8f4);border-radius:16px;padding:14px;margin:14px 0;box-shadow:0 8px 24px rgba(15,23,42,.04)}.report-search-bar label{display:block;font-weight:900;margin-bottom:7px;color:#12385c}.charge-report-wrap{border-radius:16px;overflow:hidden}.amount-plus{font-weight:900;color:#16a34a}.pretty-table tbody tr:hover{background:#f0f9ff!important}
.group-chat-page{display:grid;gap:14px}.chat-hero{display:flex;justify-content:space-between;gap:12px;align-items:center;background:linear-gradient(135deg,#fff,#eef6ff);border:1px solid #dbe8f4;border-radius:18px;padding:16px 18px;box-shadow:0 10px 26px rgba(15,23,42,.05)}.chat-hero h2{margin:0;color:#12385c}.chat-hero p{margin:4px 0 0;color:#64748b;font-weight:700}.chat-alias-card,.group-chat-layout{background:#fff;border:1px solid #dbe8f4;border-radius:18px;box-shadow:0 10px 26px rgba(15,23,42,.05)}.chat-alias-card{padding:14px}.chat-alias-form{display:grid;grid-template-columns:140px 1fr auto;gap:10px;align-items:center}.chat-alias-form label{font-weight:900;color:#334155}.group-chat-layout{display:grid;grid-template-columns:270px minmax(0,1fr);overflow:hidden}.chat-users{background:#f8fbff;border-inline-end:1px solid #e3edf7;padding:12px;max-height:650px;overflow:auto}.chat-users h3{margin:0 0 10px;color:#12385c}.chat-user-row{background:#fff;border:1px solid #e2edf7;border-radius:14px;padding:10px;margin-bottom:8px;display:grid;gap:4px}.chat-user-row small{color:#64748b;font-weight:700}.chat-user-row form{margin:0}.chat-user-row button{border:0;background:#fee2e2;color:#991b1b;border-radius:8px;padding:4px 8px;font-weight:900;cursor:pointer}.chat-room{display:grid;grid-template-rows:1fr auto;min-height:560px}.chat-messages{padding:16px;overflow:auto;max-height:620px;background:linear-gradient(180deg,#ffffff,#f8fbff)}.chat-bubble{position:relative;max-width:72%;background:#fff;border:1px solid #dbe8f4;border-radius:16px 16px 16px 4px;padding:10px 12px;margin:0 0 10px;box-shadow:0 6px 18px rgba(15,23,42,.04)}.chat-bubble.mine{margin-inline-start:auto;background:#eaf5ff;border-color:#bfdbfe;border-radius:16px 16px 4px 16px}.chat-meta{display:flex;justify-content:space-between;gap:10px;color:#64748b;font-size:12px;font-weight:800}.chat-meta b{color:#1d4ed8}.chat-bubble p{margin:6px 0 0;white-space:normal;line-height:1.8}.chat-delete{position:absolute;top:6px;left:6px}.chat-delete button{width:24px;height:24px;border-radius:8px;border:0;background:#fee2e2;color:#991b1b;font-weight:900;cursor:pointer}.chat-send{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px;background:#fff;border-top:1px solid #e3edf7}.chat-send .input{height:46px;border-radius:12px}@media(max-width:900px){.group-chat-layout{grid-template-columns:1fr}.chat-users{max-height:220px;border-inline-end:0;border-bottom:1px solid #e3edf7}.chat-alias-form{grid-template-columns:1fr}.chat-bubble{max-width:92%}.admin-fast-tools{display:none}}


/* === Hotfix: reseller form, modal position, darker cards - 2026-07-08 === */
body.pv-modal-open{overflow:hidden!important;}
.modal.pv-fixed-modal,
.modal{position:fixed!important;inset:0!important;display:none;align-items:center!important;justify-content:center!important;padding:18px!important;background:rgba(248,250,252,.58)!important;backdrop-filter:blur(2px)!important;z-index:200000!important;}
.modal.show{display:flex!important;}
.modal-card{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;margin:0!important;max-height:calc(100vh - 52px)!important;overflow:auto!important;animation:none!important;}
.reseller-form-card{width:min(760px,94vw)!important;border-radius:18px!important;box-shadow:0 28px 75px rgba(15,23,42,.24)!important;border:1px solid #d9e6f7!important;border-top:5px solid #2563eb!important;}
.wallet-form-card{width:min(620px,94vw)!important;border-radius:18px!important;box-shadow:0 28px 75px rgba(15,23,42,.24)!important;border:1px solid #d9e6f7!important;border-top:5px solid #16a34a!important;}
.modal-head{background:linear-gradient(180deg,#ffffff,#f8fbff)!important;border-bottom:1px solid #e5edf8!important;position:sticky;top:0;z-index:2;}
.modal-head h3{font-size:18px!important;font-weight:1000!important;color:#0f172a!important;margin:0!important;}
.modal-x{background:#fff1f2!important;color:#991b1b!important;border:1px solid #fecdd3!important;font-size:24px!important;line-height:1!important;font-weight:1000!important;}
.modal-body{padding:18px!important;gap:14px!important;}
.modal-body label{font-weight:900!important;color:#334155!important;}
.modal-body .input{height:42px!important;border-radius:12px!important;border:1px solid #d8e6f7!important;background:#fbfdff!important;box-shadow:inset 0 1px 0 rgba(15,23,42,.02)!important;}
.modal-body textarea.input{height:auto!important;min-height:78px!important;}
.reseller-form-card .grid2,.wallet-form-card .grid2{gap:13px!important;}
.reseller-stat-cards .cardx{color:#fff!important;border:0!important;box-shadow:0 16px 32px rgba(15,23,42,.18)!important;min-height:104px!important;position:relative;overflow:hidden;}
.reseller-stat-cards .cardx:after{content:"";position:absolute;inset:auto -30px -50px auto;width:115px;height:115px;border-radius:50%;background:rgba(255,255,255,.16)}
.reseller-stat-cards .cardx span{font-size:24px;display:block;margin-bottom:4px;}
.reseller-stat-cards .cardx small{color:rgba(255,255,255,.84)!important;font-weight:900!important;}
.reseller-stat-cards .cardx b{color:#fff!important;font-size:24px!important;text-shadow:0 1px 0 rgba(0,0,0,.15)}
.cardx.dark-blue{background:linear-gradient(135deg,#1d4ed8,#0f76bd)!important}.cardx.dark-green{background:linear-gradient(135deg,#047857,#16a34a)!important}.cardx.dark-purple{background:linear-gradient(135deg,#6d28d9,#9333ea)!important}.cardx.dark-orange{background:linear-gradient(135deg,#c2410c,#f97316)!important}.cardx.dark-cyan{background:linear-gradient(135deg,#0e7490,#06b6d4)!important}.cardx.dark-slate{background:linear-gradient(135deg,#334155,#0f172a)!important}.cardx.dark-red{background:linear-gradient(135deg,#be123c,#ef4444)!important}
@media(max-width:760px){.modal{align-items:flex-start!important;padding-top:70px!important}.reseller-form-card,.wallet-form-card{width:96vw!important}.modal-body .grid2{grid-template-columns:1fr!important}}


/* === PalVision chat + dashboard color patch 2026-07-08 === */
.page-dashboard .dashboard-grid .stat-card,
.reseller-stat-cards .cardx{border:0!important;color:#fff!important;border-radius:22px!important;min-height:116px!important;box-shadow:0 18px 34px rgba(15,23,42,.18)!important;position:relative!important;overflow:hidden!important;padding:18px 20px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-end!important;text-align:right!important}
.page-dashboard .dashboard-grid .stat-card:before,.reseller-stat-cards .cardx:before{display:none!important}.page-dashboard .dashboard-grid .stat-card:after,.reseller-stat-cards .cardx:after{content:""!important;position:absolute!important;right:auto!important;left:-36px!important;bottom:-52px!important;width:130px!important;height:130px!important;border-radius:50%!important;background:rgba(255,255,255,.18)!important;display:block!important}.page-dashboard .dashboard-grid .stat-card b,.page-dashboard .dashboard-grid .stat-card small,.reseller-stat-cards .cardx b,.reseller-stat-cards .cardx small{color:#fff!important;text-shadow:0 1px 0 rgba(0,0,0,.18)!important;position:relative;z-index:1}.page-dashboard .dashboard-grid .stat-card b,.reseller-stat-cards .cardx b{font-size:30px!important}.page-dashboard .dashboard-grid .stat-card small,.reseller-stat-cards .cardx small{font-size:14px!important;opacity:.95!important}.page-dashboard .dashboard-grid .stat-card:nth-child(1),.reseller-stat-cards .cardx:nth-child(1){background:linear-gradient(135deg,#cf123f,#fb5a68)!important}.page-dashboard .dashboard-grid .stat-card:nth-child(2),.reseller-stat-cards .cardx:nth-child(2){background:linear-gradient(135deg,#25364d,#111827)!important}.page-dashboard .dashboard-grid .stat-card:nth-child(3),.reseller-stat-cards .cardx:nth-child(3){background:linear-gradient(135deg,#0f8296,#15b8d0)!important}.page-dashboard .dashboard-grid .stat-card:nth-child(4),.reseller-stat-cards .cardx:nth-child(4){background:linear-gradient(135deg,#d54706,#ff8a3d)!important}.page-dashboard .dashboard-grid .stat-card:nth-child(5),.reseller-stat-cards .cardx:nth-child(5){background:linear-gradient(135deg,#7326d9,#a855f7)!important}.page-dashboard .dashboard-grid .stat-card:nth-child(6),.reseller-stat-cards .cardx:nth-child(6){background:linear-gradient(135deg,#078447,#31b66a)!important}.page-dashboard .dashboard-grid .stat-card:nth-child(7),.reseller-stat-cards .cardx:nth-child(7){background:linear-gradient(135deg,#1d5fd2,#2b87e8)!important}.page-dashboard .stat-icon,.reseller-stat-cards .cardx span{position:absolute!important;top:18px!important;left:18px!important;z-index:2;font-size:26px!important;background:transparent!important;color:#fff!important;filter:drop-shadow(0 2px 1px rgba(0,0,0,.3))}.side-badge[data-chat-unread-badge]{display:inline-flex!important}
.pv-live-chat{height:calc(100vh - 112px);min-height:610px}.live-chat-layout{height:100%;grid-template-columns:300px minmax(0,1fr);border-radius:22px;box-shadow:0 16px 40px rgba(15,23,42,.08)}.chat-hero-pro{background:linear-gradient(135deg,#0f67ad,#36a3e8)!important;color:#fff!important}.chat-hero-pro h2,.chat-hero-pro p{color:#fff!important}.chat-admin-actions{display:flex;gap:8px;flex-wrap:wrap}.live-chat-users{max-height:none;height:100%;background:#f1f7ff}.chat-side-section{margin-bottom:14px}.chat-side-section h3{font-size:15px;color:#12385c;margin:0 0 10px}.chat-user-row{grid-template-columns:36px 1fr auto;display:grid!important;align-items:center;gap:8px}.chat-user-row.banned{background:#fff1f2!important;border-color:#fecdd3!important}.mini-avatar,.chat-avatar{width:34px;height:34px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:1000;box-shadow:0 4px 10px rgba(15,23,42,.14)}.chat-user-row button{font-family:inherit}.live-chat-room{min-height:0;height:100%;grid-template-rows:auto minmax(0,1fr) auto}.chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid #e3edf7;padding:12px}.chat-alias-inline{display:grid;grid-template-columns:auto minmax(180px,320px) auto;gap:8px;align-items:center}.chat-alias-inline label{font-weight:900;color:#475569}.chat-status{display:inline-flex;align-items:center;border-radius:20px;background:#dcfce7;color:#166534;padding:7px 12px;font-weight:900}.chat-status.bad{background:#fee2e2;color:#991b1b}.live-chat-messages{max-height:none!important;height:100%;padding:18px;background:linear-gradient(180deg,#ffffff,#f3f8ff)}.live-bubble{display:flex;gap:9px;align-items:flex-end;max-width:78%;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin-bottom:12px!important}.live-bubble.mine{margin-inline-start:auto!important;flex-direction:row-reverse}.chat-bubble-body{position:relative;background:#fff;border:1px solid #dce9f7;border-inline-start:4px solid var(--bubble-color);border-radius:16px 16px 16px 5px;padding:10px 12px;box-shadow:0 8px 20px rgba(15,23,42,.06);min-width:210px}.live-bubble.mine .chat-bubble-body{background:#eaf5ff;border-color:#bfdbfe;border-inline-start:0;border-inline-end:4px solid var(--bubble-color);border-radius:16px 16px 5px 16px}.chat-meta b{color:var(--bubble-color)!important}.chat-delete-btn{position:absolute;top:5px;left:5px;width:24px;height:24px;border:0;border-radius:8px;background:#fee2e2;color:#991b1b;font-weight:1000;cursor:pointer}.live-chat-send{grid-template-columns:1fr 110px;padding:14px;background:#fff}.live-chat-send .input{height:48px;border-radius:16px}.chat-loading,.chat-empty{color:#64748b;font-weight:900;text-align:center;padding:18px}.banned-box{border-top:1px solid #dbe8f4;padding-top:12px}
/* force all app modals/forms to appear correctly in current viewport */
body.pv-modal-open{overflow:hidden!important}.modal{position:fixed!important;inset:0!important;z-index:300000!important;display:none;align-items:center!important;justify-content:center!important;padding:18px!important;background:rgba(241,245,249,.52)!important;backdrop-filter:blur(2px)!important}.modal.show{display:flex!important}.modal-card,.modal-box,.modal-content{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;margin:0 auto!important;max-height:calc(100vh - 46px)!important;overflow:auto!important;animation:none!important;resize:none!important}.modal [data-modal-maximize],.modal [data-pv-max],.pv-window-tools,.modal-resize,.modal-maximize{display:none!important}
@media(max-width:900px){.pv-live-chat{height:auto}.live-chat-layout{grid-template-columns:1fr}.live-chat-users{height:auto;max-height:270px}.chat-alias-inline{grid-template-columns:1fr}.live-bubble{max-width:96%}.page-dashboard .dashboard-grid .stat-card,.reseller-stat-cards .cardx{min-height:104px!important}}

/* === Hotfix: chat stability, top dialogs, compact dashboard cards 2026-07-08 === */
.dashboard-grid.compact.dashboard-summary-two,
.dashboard-grid.compact.report-shortcuts{
  display:flex!important;
  gap:10px!important;
  padding:10px!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,#eef6ff,#f8fbff)!important;
  border:1px solid #d8e7f8!important;
  box-shadow:0 12px 35px rgba(23,82,130,.08)!important;
  overflow-x:auto!important;
  grid-template-columns:none!important;
}
.dashboard-grid.compact.dashboard-summary-two .stat-card,
.dashboard-grid.compact.report-shortcuts .stat-card{
  flex:1 0 155px!important;
  min-height:82px!important;
  padding:14px 16px!important;
  border-radius:20px!important;
  color:#fff!important;
  box-shadow:0 12px 26px rgba(15,23,42,.18)!important;
  overflow:hidden!important;
  border:0!important;
}
.dashboard-grid.compact.dashboard-summary-two .stat-card small,
.dashboard-grid.compact.dashboard-summary-two .stat-card b,
.dashboard-grid.compact.dashboard-summary-two .stat-card .stat-icon,
.dashboard-grid.compact.report-shortcuts .stat-card small,
.dashboard-grid.compact.report-shortcuts .stat-card b,
.dashboard-grid.compact.report-shortcuts .stat-card .stat-icon{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.22)!important;}
.dashboard-grid.compact.dashboard-summary-two .stat-card b,
.dashboard-grid.compact.report-shortcuts .stat-card b{font-size:25px!important;line-height:1.1!important;}
.dashboard-grid.compact.dashboard-summary-two .stat-card.primary{background:linear-gradient(135deg,#155bd6,#1d4ed8)!important;}
.dashboard-grid.compact.dashboard-summary-two .stat-card.success{background:linear-gradient(135deg,#058247,#16a34a)!important;}
.dashboard-grid.compact.dashboard-summary-two .stat-card.danger{background:linear-gradient(135deg,#c9184a,#e11d48)!important;}
.dashboard-grid.compact.dashboard-summary-two .stat-card.dark{background:linear-gradient(135deg,#1e293b,#334155)!important;}
.dashboard-grid.compact.report-shortcuts .stat-card.blue{background:linear-gradient(135deg,#0e7490,#06b6d4)!important;}
.dashboard-grid.compact.report-shortcuts .stat-card.primary{background:linear-gradient(135deg,#7e22ce,#9333ea)!important;}
.dashboard-grid.compact.report-shortcuts .stat-card.success{background:linear-gradient(135deg,#047857,#10b981)!important;}
.dashboard-grid.compact.report-shortcuts .stat-card.dark{background:linear-gradient(135deg,#c2410c,#f97316)!important;}
.admin-resource-strip .dashboard-grid.compact{display:flex!important;gap:9px!important;grid-template-columns:none!important;}
.admin-resource-strip .stat-card{flex:1 1 120px!important;min-height:70px!important;padding:12px!important;border-radius:16px!important;}
/* Open all popups near the top of current viewport, not bottom/hidden behind tables */
.modal,.pv-dialog{align-items:flex-start!important;justify-content:center!important;padding-top:72px!important;padding-bottom:24px!important;overflow:auto!important;}
.modal-card,.modal .modal-card,.pv-dialog-card,.modal-box,.modal-content{margin:0 auto!important;top:auto!important;transform:none!important;max-height:calc(100vh - 100px)!important;}
.modal.show,.pv-dialog.show{display:flex!important;}
body.modal-open{overflow:hidden!important;}
@media(max-width:700px){.modal,.pv-dialog{padding-top:54px!important}.dashboard-grid.compact.dashboard-summary-two .stat-card,.dashboard-grid.compact.report-shortcuts .stat-card{flex-basis:135px!important}}

/* === Final hard fix 2026-07-08: RTL cards + top popups === */
/* كل النصوص داخل البطاقات على اليمين */
.card,
.stat-card,
.quick-card,
.panel,
.mini-panel,
.settings-card-lite,
.cardx,
.code-detail-card,
.invoice-card,
.customer-card,
.ticket-card,
.dashboard-card,
.pv-card,
[class*="card"]{
  direction: rtl !important;
  text-align: right !important;
}
.card *,
.stat-card *,
.quick-card *,
.panel *,
.mini-panel *,
.settings-card-lite *,
.cardx *,
.code-detail-card *,
.invoice-card *,
.customer-card *,
.ticket-card *,
.dashboard-card *,
.pv-card *,
[class*="card"] *{
  text-align: right !important;
}
/* استثناء الأرقام والأزرار الصغيرة حتى تبقى مرتبة */
.stat-card b,
.cardx b,
.amount,
.number,
.badge,
.side-badge,
.btn,
button,
.copy-btn,
[data-copy],
input,
textarea,
select{
  text-align: center !important;
}
input[type="text"],input[type="search"],input[type="password"],input[type="email"],input[type="number"],textarea,select{
  direction: rtl !important;
}

/* النوافذ المنبثقة: أعلى الصفحة دائمًا، وليس الأسفل */
body.modal-open,
body.pv-modal-open{
  overflow: hidden !important;
}
.modal,
.pv-dialog,
.modal-lite,
.pv-modal,
.dialog,
.popup-overlay,
[id*="modal"],
[class*="modal-overlay"]{
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: none;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 56px 18px 24px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: rgba(241,245,249,.55) !important;
  backdrop-filter: none !important;
  animation: none !important;
  transition: none !important;
}
.modal.show,
.modal.open,
.pv-dialog.show,
.pv-dialog.open,
.modal-lite.show,
.pv-modal.show,
.dialog.show,
.popup-overlay.show,
[id*="modal"].show,
[class*="modal-overlay"].show{
  display: flex !important;
}
.modal-card,
.pv-dialog-card,
.modal-lite-card,
.modal-box,
.modal-content,
.pv-modal-card,
.dialog-card,
.popup-card,
[class*="modal-card"],
[class*="modal-box"],
[class*="modal-content"]{
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 auto 24px !important;
  max-height: calc(100vh - 88px) !important;
  overflow: auto !important;
  resize: none !important;
  animation: none !important;
  transition: none !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 55px rgba(15,23,42,.22) !important;
}
/* منع أي سكربت من إنزال النافذة لأسفل */
.modal[style],
.pv-dialog[style],
.modal-lite[style]{
  align-items: flex-start !important;
  justify-content: center !important;
}
.modal-card[style],
.pv-dialog-card[style],
.modal-lite-card[style],
.modal-box[style],
.modal-content[style]{
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin-top: 0 !important;
}
/* إخفاء التكبير والتحريك من كل النوافذ */
[data-maximize],
[data-modal-maximize],
[data-pv-max],
.modal-maximize,
.modal-resize,
.pv-window-tools,
.window-resize,
.window-maximize{
  display: none !important;
}
@media(max-width:700px){
  .modal,.pv-dialog,.modal-lite,.pv-modal,.dialog,.popup-overlay,[id*="modal"],[class*="modal-overlay"]{
    padding-top: 38px !important;
  }
  .modal-card,.pv-dialog-card,.modal-lite-card,.modal-box,.modal-content,.pv-modal-card,.dialog-card,.popup-card,[class*="modal-card"],[class*="modal-box"],[class*="modal-content"]{
    width: min(96vw, 720px) !important;
    max-height: calc(100vh - 62px) !important;
  }
}
/* Sub-reseller center */
.sidebar .side-support-center{position:relative;min-height:58px;border:1px solid rgba(38,153,115,.26);background:linear-gradient(100deg,rgba(28,162,118,.15),rgba(40,126,190,.08))}.sidebar .side-support-center>.ico{position:relative;display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,#159b6c,#1878b9);color:#fff}.sidebar .side-support-center>.ico i{position:absolute;top:-2px;right:-2px;width:9px;height:9px;border:2px solid var(--side);border-radius:50%;background:#37d67a}.sidebar .side-support-center>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column;line-height:1.35}.sidebar .side-support-center>span:nth-child(2) b{font-size:13px}.sidebar .side-support-center>span:nth-child(2) small{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.sidebar .side-support-center>em{margin-inline-start:auto;padding:3px 7px;border-radius:999px;background:rgba(21,155,108,.14);color:inherit;font-size:10px;font-style:normal}.sidebar .side-support-center .support-side-count{inset:auto 8px auto auto;position:relative;top:auto;right:auto;margin-inline-start:4px;flex:0 0 auto}
.sidebar .side-subreseller-link,.sidebar .side-subreseller-create{position:relative;border:1px solid color-mix(in srgb,var(--top) 22%,transparent);background:linear-gradient(90deg,color-mix(in srgb,var(--top) 9%,transparent),transparent)}
.sidebar .side-subreseller-create{background:linear-gradient(90deg,rgba(34,197,94,.14),transparent);border-color:rgba(34,197,94,.26)}
.sidebar .side-subreseller-link em,.sidebar .side-subreseller-create em{margin-inline-start:auto;padding:3px 7px;border-radius:999px;background:rgba(47,147,216,.14);color:inherit;font-size:10px;font-style:normal}
.sidebar .side-subreseller-create em{background:rgba(34,197,94,.17)}
.sidebar .side-developer-mode{position:relative;border:1px solid rgba(139,92,246,.34)!important;background:linear-gradient(90deg,rgba(139,92,246,.2),transparent)!important}.sidebar .side-developer-mode em{margin-inline-start:auto;padding:3px 7px;border-radius:99px;background:rgba(139,92,246,.24);color:#fff;font-size:10px;font-style:normal}
.developer-mode-page,.developer-requests-page{--dev:#6d28d9;--dev2:#2563eb}.dev-hero{display:flex;align-items:center;gap:16px;padding:20px;margin-bottom:18px;border-radius:18px;background:linear-gradient(125deg,#111827,#312e81 60%,#1d4ed8);color:#fff}.dev-hero-icon{display:grid;place-items:center;min-width:62px;height:62px;border-radius:17px;background:#ffffff17;border:1px solid #ffffff28;font-size:21px;font-weight:900}.dev-hero h2{margin:2px 0;font-size:25px}.dev-hero p{margin:4px 0;color:#dbeafe}.dev-hero small{color:#c4b5fd;font-weight:900}.dev-security-pill{margin-inline-start:auto;padding:8px 12px;border:1px solid #ffffff2b;border-radius:999px;background:#ffffff13;white-space:nowrap}.dev-access-card{max-width:720px;margin:30px auto;padding:28px;border:1px solid var(--line);border-radius:18px;background:var(--soft);text-align:center}.dev-access-card p{color:var(--muted);line-height:1.9}.dev-unlock-row{display:grid;grid-template-columns:1fr auto;gap:10px}.dev-unlock-row input{direction:ltr;text-align:center;font-weight:900;letter-spacing:2px}.dev-session-bar{display:flex;align-items:center;gap:14px;padding:12px 15px;margin-bottom:15px;border:1px solid #86efac;border-radius:13px;background:#f0fdf4;color:#166534}.dev-session-bar em{margin-inline-start:auto;font-style:normal}.dev-workspace{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px}.dev-code-form,.dev-safety-card,.dev-progress{padding:20px;border:1px solid var(--line);border-radius:17px;background:var(--card)}.dev-code-form h3{margin:4px 0 10px}.dev-codes-box{min-height:290px!important;direction:ltr;text-align:left;font-family:Consolas,monospace!important;line-height:1.7;resize:vertical}.dev-code-stats,.dev-progress-counts{display:flex;gap:8px;flex-wrap:wrap;margin:11px 0}.dev-code-stats span,.dev-progress-counts span{padding:7px 10px;border-radius:9px;background:var(--soft);color:var(--muted)}.dev-code-stats b,.dev-progress-counts b{color:var(--text)}.dev-create-button{width:100%;margin-top:8px}.dev-safety-card{align-self:start;background:linear-gradient(160deg,#f5f3ff,#eff6ff)}.dev-safety-card li{margin:10px 0;color:#475569}.dev-progress{margin-top:16px}.dev-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.dev-progress-head h3{margin:0}.dev-progress-head code{font-size:10px;color:var(--muted)}.dev-job-actions,.dev-review-actions{display:flex;gap:7px;flex-wrap:wrap}.dev-progress-track{height:12px;margin:15px 0;overflow:hidden;border-radius:999px;background:var(--soft)}.dev-progress-track i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--dev),var(--dev2));transition:width .3s}.dev-progress-counts .ok{background:#dcfce7;color:#166534}.dev-progress-counts .bad{background:#fee2e2;color:#991b1b}.dev-status{display:inline-flex;padding:4px 8px;border-radius:999px;background:#e2e8f0;font-size:11px;font-weight:900}.status-pending,.status-queued{background:#fef3c7;color:#92400e}.status-approved,.status-success,.status-completed{background:#dcfce7;color:#166534}.status-rejected,.status-failed,.status-cancelled,.status-expired{background:#fee2e2;color:#991b1b}.status-running{background:#dbeafe;color:#1d4ed8}.status-paused{background:#f3e8ff;color:#6b21a8}.dev-token-result{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px;margin-bottom:16px;border:2px solid #86efac;border-radius:16px;background:#f0fdf4}.dev-token-result code{display:block;margin:5px 0;font-size:24px;font-weight:900;letter-spacing:2px;color:#166534}.dev-token-result span,.dev-token-result small{display:block;color:#4b5563}
@media(max-width:760px){.dev-hero{align-items:flex-start;flex-wrap:wrap;padding:16px}.dev-security-pill{margin-inline-start:0}.dev-workspace{grid-template-columns:1fr}.dev-safety-card{order:-1}.dev-unlock-row{grid-template-columns:1fr}.dev-progress-head,.dev-token-result{align-items:stretch;flex-direction:column}.dev-session-bar{align-items:flex-start;flex-direction:column}.dev-session-bar em{margin:0}.dev-codes-box{min-height:220px!important}}

/* Developer workspace v2 */
html body .sidebar .side-developer-mode,html body .sidebar .side-developer-mode span,html body .sidebar .side-developer-mode em,html body .sidebar .side-developer-mode .ico{color:#fff!important}
html body :is(.developer-mode-page,.developer-requests-page,.developer-archives-page) .dev-hero,html body :is(.developer-mode-page,.developer-requests-page,.developer-archives-page) .dev-hero :is(h1,h2,h3,p,small,span,b){color:#fff!important}
.developer-mode-page{padding:0!important;overflow:hidden;background:linear-gradient(180deg,#f8fbff,#fff)!important}.developer-mode-page>.dev-hero{margin:0;border-radius:0;padding:28px 30px;background:radial-gradient(circle at 85% 0,#4f46e5 0,transparent 32%),linear-gradient(120deg,#081425,#172554 52%,#312e81)}.dev-access-shell{display:grid;grid-template-columns:190px minmax(0,720px);justify-content:center;align-items:center;gap:28px;padding:55px 20px}.dev-lock-visual{display:grid;place-items:center;width:170px;height:170px;border-radius:45px;background:linear-gradient(145deg,#ede9fe,#dbeafe);box-shadow:0 24px 60px #3730a32b;font-size:66px}.dev-access-shell .dev-access-card{max-width:none;margin:0;text-align:right;background:#fff;box-shadow:0 20px 55px #17255418}.dev-access-card>small{color:#6366f1;font-weight:900;letter-spacing:1px}.dev-mode-tabs{display:flex;gap:8px;padding:18px 24px 0;background:#f8fafc;border-bottom:1px solid #e2e8f0}.dev-mode-tabs button{padding:13px 18px;border:1px solid transparent;border-radius:13px 13px 0 0;background:transparent;color:#475569;font-family:Cairo;font-weight:900;cursor:pointer}.dev-mode-tabs button.active{border-color:#dbe4ef;border-bottom-color:#fff;background:#fff;color:#4338ca;box-shadow:0 -7px 22px #3730a30d}.dev-tab-panel{display:none;padding:24px}.dev-tab-panel.active{display:block}.dev-panel-heading{display:flex;align-items:center;gap:13px;margin-bottom:18px}.dev-panel-heading>span{display:grid;place-items:center;min-width:44px;height:44px;border-radius:13px;background:linear-gradient(135deg,#4f46e5,#2563eb);color:#fff;font-weight:900}.dev-panel-heading h3{margin:0;color:#172033;font-size:20px}.dev-panel-heading p{margin:3px 0;color:#64748b}.dev-builder-grid{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:18px}.dev-builder-main{display:grid;gap:10px;padding:22px;border:1px solid #dce5f0;border-radius:18px;background:#fff;box-shadow:0 12px 35px #1725540c}.dev-builder-main>label,.dev-random-options label{font-weight:900;color:#26354a}.dev-info-rail{align-self:start;padding:22px;border:1px solid #bfdbfe;border-radius:18px;background:linear-gradient(145deg,#eff6ff,#f8fafc);color:#334155}.dev-info-rail.purple{border-color:#ddd6fe;background:linear-gradient(145deg,#f5f3ff,#fafafa)}.dev-info-rail b,.dev-info-rail small{display:block}.dev-info-rail p{color:#64748b;line-height:1.8}.dev-info-rail strong{display:block;margin-top:20px;color:#4338ca;font-size:31px}.dev-random-options{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}.dev-random-options label{display:grid;gap:6px}.dev-form-actions{display:flex;justify-content:flex-end;gap:9px}.dev-mac-preview{margin-top:8px;padding:15px;border:1px solid #c4b5fd;border-radius:15px;background:#fafaff}.dev-preview-summary{margin-bottom:10px;padding:10px;border-radius:10px;background:#ede9fe;color:#5b21b6;font-weight:900}.dev-report-meta{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.dev-report-meta span{padding:8px 11px;border-radius:10px;background:#eef2ff;color:#64748b}.dev-report-meta b{color:#312e81}.dev-results-table code{direction:ltr;display:inline-block;color:#172033;font-weight:800}.developer-archives-page .dev-hero{background:linear-gradient(120deg,#081425,#172554 55%,#0f766e)}.developer-archives-page .dev-archive-detail{margin-bottom:20px;padding:18px;border:1px solid #bfdbfe;border-radius:17px;background:#f8fbff}.dev-archive-table td small{display:block;color:#94a3b8}.ok-text{color:#15803d;font-weight:900}.bad-text{color:#b91c1c;font-weight:900}
body[data-theme-preset="midnight"] .developer-mode-page{background:#0f172a!important}body[data-theme-preset="midnight"] :is(.dev-tab-panel,.dev-mode-tabs,.dev-builder-main,.dev-access-card,.dev-progress){background:#111827!important;color:#f8fafc!important}body[data-theme-preset="midnight"] :is(.dev-panel-heading h3,.dev-builder-main label,.dev-results-table code){color:#f8fafc!important}
@media(max-width:800px){.dev-access-shell{grid-template-columns:1fr;padding:24px}.dev-lock-visual{display:none}.dev-mode-tabs{overflow:auto;padding-inline:10px}.dev-mode-tabs button{white-space:nowrap}.dev-tab-panel{padding:14px}.dev-builder-grid{grid-template-columns:1fr}.dev-info-rail{order:-1}.dev-random-options{grid-template-columns:1fr}.dev-form-actions{flex-direction:column}.dev-form-actions .btn{width:100%}}
.dev-archive-pages{display:flex;align-items:center;justify-content:center;gap:9px;padding-top:15px}.dev-archive-pages span{color:#64748b;font-weight:900}
.dev-rate-control{display:grid;grid-template-columns:minmax(180px,1fr) 100px auto;align-items:center;gap:10px;padding:12px;border:1px solid #c7d2fe;border-radius:13px;background:#f5f7ff}.dev-rate-control input[type="range"]{padding:0;border:0;background:transparent}.dev-rate-control b{color:#3730a3;white-space:nowrap}.dev-rate-control.high-rate{border-color:#f59e0b;background:#fffbeb}.dev-rate-control.high-rate b{color:#b45309}.dev-rate-warning{color:#64748b}.dev-rate-control.high-rate+.dev-rate-warning{color:#b45309;font-weight:800}
@media(max-width:600px){.dev-rate-control{grid-template-columns:1fr 90px}.dev-rate-control b{grid-column:1/-1}}
.dev-cleanup-center{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;padding:18px;border:1px solid #fde68a;border-radius:16px;background:linear-gradient(120deg,#fffbeb,#fff)}.dev-cleanup-center small{color:#b45309;font-weight:900}.dev-cleanup-center h3{margin:3px 0}.dev-cleanup-center p{margin:0;color:#64748b}.dev-cleanup-actions,.dev-row-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.dev-cleanup-actions form,.dev-row-actions form{margin:0}.dev-row-actions .btn{white-space:nowrap}@media(max-width:800px){.dev-cleanup-center{align-items:stretch;flex-direction:column}.dev-cleanup-actions{display:grid;grid-template-columns:1fr 1fr}.dev-cleanup-actions .btn{width:100%}}@media(max-width:520px){.dev-cleanup-actions{grid-template-columns:1fr}}
.dev-replace-access{margin-top:12px}.dev-session-bar .btn{margin-inline-start:4px;padding:7px 10px;font-size:11px}@media(max-width:760px){.dev-session-bar .btn{width:100%}}
.sub-create-panel,.sub-list-panel{overflow:hidden;padding:0!important;border-radius:22px!important}
.sub-create-panel>.section-title-row,.sub-create-panel>.alert,.sub-create-panel>.sub-limit-card,.sub-create-panel>.subreseller-form,.sub-list-panel>.section-title-row,.sub-list-panel>.notice,.sub-list-panel>.alert,.sub-list-panel>.table-wrap{margin-inline:22px}
.subreseller-page-hero{display:flex;align-items:center;gap:18px;padding:24px 26px;margin-bottom:22px;background:linear-gradient(135deg,#0d4d86,#1679be 58%,#16a0a8);color:#fff}
.subreseller-page-hero .subreseller-hero-icon{display:grid;place-items:center;width:66px;height:66px;flex:0 0 66px;border:1px solid rgba(255,255,255,.28);border-radius:20px;background:rgba(255,255,255,.14);font-size:30px}
.subreseller-page-hero>div:nth-child(2){flex:1}.subreseller-page-hero small{display:block;color:#c8edff!important;font-weight:800;letter-spacing:.08em}.subreseller-page-hero h1{margin:3px 0 4px;font-size:25px;color:#fff!important}.subreseller-page-hero p{margin:0;color:#e8f7ff!important}
.subreseller-hero-state{display:flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:rgba(0,0,0,.12);white-space:nowrap}.subreseller-hero-state i{width:9px;height:9px;border-radius:50%;background:#5cff96;box-shadow:0 0 0 5px rgba(92,255,150,.13)}
.sub-limit-card{display:grid!important;grid-template-columns:repeat(3,1fr);gap:12px;margin-block:16px!important}.sub-limit-card>span{display:flex!important;flex-direction:column;gap:4px;padding:15px!important;border:1px solid var(--line);border-radius:16px;background:var(--soft);color:var(--muted)}.sub-limit-card b{font-size:22px;color:var(--text)}
.subreseller-form{margin-bottom:24px}.subreseller-submit{background:linear-gradient(135deg,#1679be,#16a085)!important;box-shadow:0 12px 26px rgba(22,121,190,.2)}
.sub-create-kicker{display:inline-flex;margin-bottom:5px;padding:4px 9px;border-radius:999px;background:#e7f5ff;color:#11699f;font-size:11px;font-weight:900}.sub-create-title h2{margin-block:3px!important}
.sub-create-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 22px 18px}.sub-create-steps>span{position:relative;display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto;column-gap:10px;padding:13px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(135deg,var(--card),var(--soft))}.sub-create-steps i{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#1679be,#16a085);color:#fff;font-style:normal;font-weight:900}.sub-create-steps b{font-size:13px}.sub-create-steps small{color:var(--muted);font-size:11px}
.subreseller-form .form-section{position:relative;transition:.18s transform,.18s box-shadow}.subreseller-form .form-section:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(15,62,94,.08)}.subreseller-form .form-section h3{display:flex;align-items:center;gap:7px}.subreseller-form .form-section h3:before{content:'✓';display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#e7f8f1;color:#16875a;font-size:12px}
.strict-credit-input{position:relative}.strict-credit-input .input{padding-inline-end:125px!important;border:2px solid #22a06b!important;background:linear-gradient(90deg,#fff,#f0fdf7)!important;font-size:20px!important;font-weight:900!important}.strict-credit-input>b{position:absolute;inset-inline-end:9px;top:50%;transform:translateY(-50%);padding:6px 9px;border-radius:9px;background:#16875a;color:#fff;font-size:11px}.sub-min-note{border:2px solid rgba(22,135,90,.26)!important;background:linear-gradient(135deg,#f0fdf7,#f8fffc)!important}.sub-min-note h3{color:#106b49!important}
body[data-theme="dark"] .strict-credit-input .input,body[data-theme="dark"] .sub-min-note{background:#10291f!important;border-color:#246c50!important}
.sub-list-panel>.table-wrap{margin-bottom:24px;border:1px solid var(--line);border-radius:16px}.sub-table .user-under{display:block;color:var(--muted)}
@media(max-width:700px){.subreseller-page-hero{align-items:flex-start;padding:18px;gap:12px}.subreseller-page-hero .subreseller-hero-icon{width:48px;height:48px;flex-basis:48px;border-radius:14px;font-size:22px}.subreseller-page-hero h1{font-size:19px}.subreseller-page-hero p{font-size:12px}.subreseller-hero-state{display:none}.sub-create-panel>.section-title-row,.sub-create-panel>.alert,.sub-create-panel>.sub-limit-card,.sub-create-panel>.subreseller-form,.sub-list-panel>.section-title-row,.sub-list-panel>.notice,.sub-list-panel>.alert,.sub-list-panel>.table-wrap{margin-inline:12px}.sub-create-steps{grid-template-columns:1fr;margin-inline:12px}.sub-limit-card{grid-template-columns:1fr 1fr}.sub-limit-card>span:last-child{grid-column:1/-1}.sub-create-panel .section-title-row,.sub-list-panel .section-title-row{align-items:stretch}.sub-create-panel .section-title-row .btn,.sub-list-panel .section-title-row .btn{width:100%}}


/* === PalVision foreground modal + chat label fix 2026-07-08 === */
.chat-real-user{display:inline-block;margin-inline-start:6px;font-size:11px;font-weight:900;color:#64748b;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:1px 7px;direction:ltr;vertical-align:middle}
body[data-theme="dark"] .chat-real-user{background:#111827;color:#cbd5e1;border-color:#334155}
body.pv-modal-open{overflow:hidden!important}
.modal,.pv-dialog,.modal-lite{position:fixed!important;inset:0!important;z-index:300000!important;display:none!important;align-items:flex-start!important;justify-content:center!important;padding:70px 18px 24px!important;background:rgba(248,250,252,.50)!important;backdrop-filter:blur(1px)!important;overflow:auto!important}
.modal.show,.pv-dialog.show,.modal-lite.show{display:flex!important}
.modal:not(.pv-active-modal).show,.pv-dialog:not(.pv-active-modal).show,.modal-lite:not(.pv-active-modal).show{display:none!important}
.modal.pv-active-modal,.pv-dialog.pv-active-modal,.modal-lite.pv-active-modal{z-index:500000!important}
.modal-card,.pv-dialog-card,.modal-lite-card{position:relative!important;z-index:500001!important;margin:0 auto 28px!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;animation:none!important;transition:none!important;max-height:calc(100vh - 98px)!important;overflow:auto!important;resize:none!important}
.modal [data-maximize],.modal [data-modal-maximize],.modal [data-maximize-modal],.modal .maximize,.modal .modal-resize,.pv-window-tools{display:none!important}


/* === PV hard fix 2026-07-08: centered card text + real foreground top modals === */
.page-dashboard .dashboard-grid .stat-card,
.dashboard-grid .stat-card,
.reseller-stat-cards .cardx{
  text-align:center!important;
  direction:rtl!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
}
.page-dashboard .dashboard-grid .stat-card small,
.page-dashboard .dashboard-grid .stat-card b,
.dashboard-grid .stat-card small,
.dashboard-grid .stat-card b,
.reseller-stat-cards .cardx small,
.reseller-stat-cards .cardx b{
  text-align:center!important;
  width:100%!important;
  margin-inline:auto!important;
  line-height:1.35!important;
  white-space:normal!important;
}
.page-dashboard .stat-icon,
.dashboard-grid .stat-icon,
.reseller-stat-cards .cardx span{
  position:absolute!important;
  top:16px!important;
  left:16px!important;
  right:auto!important;
  margin:0!important;
}
/* keep every visible popup at the top of the current viewport and above old windows */
body.pv-modal-open, body.modal-open{overflow:hidden!important;}
.modal,.pv-dialog,.modal-lite,.pv-modal,.dialog,.popup-overlay{
  position:fixed!important;
  inset:0!important;
  display:none!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:22px 18px 26px!important;
  background:rgba(248,250,252,.54)!important;
  backdrop-filter:blur(1px)!important;
  overflow:auto!important;
  z-index:2147483000!important;
  isolation:isolate!important;
}
.modal.show,.pv-dialog.show,.modal-lite.show,.pv-modal.show,.dialog.show,.popup-overlay.show{
  display:flex!important;
}
.modal.pv-active-modal,.pv-dialog.pv-active-modal,.modal-lite.pv-active-modal,.pv-modal.pv-active-modal,.dialog.pv-active-modal,.popup-overlay.pv-active-modal{
  z-index:2147483600!important;
}
.modal:not(.pv-active-modal).show,
.pv-dialog:not(.pv-active-modal).show,
.modal-lite:not(.pv-active-modal).show,
.pv-modal:not(.pv-active-modal).show,
.dialog:not(.pv-active-modal).show,
.popup-overlay:not(.pv-active-modal).show{
  display:none!important;
}
.modal-card,.pv-dialog-card,.modal-lite-card,.modal-box,.modal-content,.pv-modal-card,.dialog-card,.popup-card{
  position:relative!important;
  z-index:2147483601!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  transform:none!important;
  translate:none!important;
  margin:0 auto 28px!important;
  max-height:calc(100vh - 60px)!important;
  overflow:auto!important;
  animation:none!important;
  transition:none!important;
  resize:none!important;
}
.modal [data-maximize],.modal [data-modal-maximize],.modal [data-maximize-modal],.modal .maximize,.modal .modal-resize,.pv-window-tools,.modal-maximize{display:none!important;}
@media(max-width:700px){.modal,.pv-dialog,.modal-lite,.pv-modal,.dialog,.popup-overlay{padding-top:12px!important}.modal-card,.pv-dialog-card,.modal-lite-card,.modal-box,.modal-content{max-height:calc(100vh - 34px)!important;width:96vw!important}}

/* === PV code modal/detail hotfix 2026-07-08 === */
.modal.show,.pv-dialog.show,.modal-lite.show,.pv-modal.show,.dialog.show,.popup-overlay.show{display:flex!important;align-items:flex-start!important;justify-content:center!important;padding-top:22px!important;}
.modal.show.pv-active-modal .modal-card,.pv-dialog.show.pv-active-modal .pv-dialog-card,.modal-lite.show.pv-active-modal .modal-lite-card{display:block!important;visibility:visible!important;opacity:1!important;}
.create-code-card.modal-card,.modal-card.ultra-wide.create-code-card{width:min(900px,94vw)!important;max-width:900px!important;}
.pv-link-card .link-head,.code-link-head{display:flex;align-items:center;gap:10px;background:#eef6ff;border:1px solid #dbeafe;border-radius:14px;padding:10px 12px;margin:0 0 12px;direction:rtl;text-align:right}.pv-link-card .link-head span{font-size:24px}.pv-link-card .link-head b,.code-link-head b{display:block;color:#0f172a;font-weight:900}.pv-link-card .link-head small,.code-link-head small{display:block;color:#475569;font-weight:800;margin-top:2px}.code-customer-card{background:#fff;border:1px solid #dbe4ee;border-radius:18px;padding:18px;margin:18px 0;box-shadow:0 8px 24px rgba(15,23,42,.06)}.code-customer-card h3{margin:0 0 12px;font-size:18px;color:#0f172a}.customer-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.customer-mini-grid p{margin:0;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:11px;text-align:right}.customer-mini-grid b{display:block;color:#64748b;font-size:12px}.customer-mini-grid span{display:block;color:#111827;font-weight:900;margin-top:4px}@media(max-width:800px){.customer-mini-grid{grid-template-columns:1fr}.create-code-card.modal-card,.modal-card.ultra-wide.create-code-card{width:96vw!important}}

/* === PALVISION FINAL TOP MODALS + FAST UI OVERRIDE 2026-07-08 === */
body.pv-modal-open,body.modal-open{overflow:hidden!important;}
.modal,.pv-dialog,.modal-lite,.pv-modal,.dialog,.popup-overlay{position:fixed!important;inset:0!important;z-index:2147483000!important;display:none!important;align-items:flex-start!important;justify-content:center!important;padding:18px 18px 24px!important;background:rgba(248,250,252,.50)!important;backdrop-filter:none!important;overflow:auto!important;animation:none!important;transition:none!important;}
.modal.show,.pv-dialog.show,.modal-lite.show,.pv-modal.show,.dialog.show,.popup-overlay.show,.modal.pv-active-modal,.pv-dialog.pv-active-modal,.modal-lite.pv-active-modal{display:flex!important;}
.modal:not(.pv-active-modal).show,.pv-dialog:not(.pv-active-modal).show,.modal-lite:not(.pv-active-modal).show,.pv-modal:not(.pv-active-modal).show,.dialog:not(.pv-active-modal).show,.popup-overlay:not(.pv-active-modal).show{display:flex!important;}
.modal-card,.pv-dialog-card,.modal-lite-card,.modal-box,.modal-content,.pv-modal-card,.dialog-card,.popup-card{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;translate:none!important;margin:0 auto 24px!important;max-height:calc(100vh - 50px)!important;overflow:auto!important;resize:none!important;animation:none!important;transition:none!important;box-shadow:0 20px 55px rgba(15,23,42,.22)!important;}
.create-code-card.modal-card,.modal-card.ultra-wide.create-code-card{width:min(900px,94vw)!important;max-width:900px!important;}
.modal [data-maximize],.modal [data-modal-maximize],.modal [data-maximize-modal],.modal .maximize,.modal .modal-resize,.pv-window-tools,.modal-maximize{display:none!important;}
#pvDialogOk{min-width:120px;margin-top:12px;}
@media(max-width:700px){.modal,.pv-dialog,.modal-lite,.pv-modal,.dialog,.popup-overlay{padding:10px!important}.modal-card,.pv-dialog-card,.modal-lite-card,.modal-box,.modal-content{width:96vw!important;max-height:calc(100vh - 24px)!important}}


/* === PV final dashboard/modal/link positioning fix 2026-07-08 === */
.code-view-top h2,
.code-info-cards strong,
.code-display,
.code-cell .copy-code{color:#0f172a!important;}
.pv-dialog.pv-center-link-dialog,
.pv-dialog.show.pv-center-link-dialog{
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
}
.pv-dialog.pv-center-link-dialog .pv-dialog-card{
  width:min(560px,92vw)!important;
  margin:0 auto!important;
  max-height:calc(100vh - 60px)!important;
}
.pv-link-card{text-align:right!important;direction:rtl!important;}
.pv-link-card textarea.link-text{direction:ltr!important;text-align:left!important;}
/* ensure create-code modals on dashboard are always visible when opened */
.page-dashboard #modalAdd.show .modal-card,
.page-dashboard #modalTrial.show .modal-card,
.page-dashboard #modalMulti.show .modal-card{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
}

/* PALVISION dashboard code modal final fix */
.quick-create-home{padding:10px 0 2px!important;background:transparent!important;border:0!important;box-shadow:none!important}
.quick-create-row{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-start;align-items:center}
.quick-create-row .btn{min-width:135px;border-radius:14px;font-weight:900}
.modal.pv-code-modal-force{position:fixed!important;inset:0!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;padding-top:18px!important;background:rgba(241,245,249,.76)!important;z-index:2147483500!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
.modal.pv-code-modal-force>.modal-card{display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;margin:0 auto 24px!important;z-index:2147483501!important;max-height:calc(100vh - 38px)!important;overflow:auto!important}
.code-value,.details-grid .code-value,.details-grid p:first-child span{color:#111827!important;background:#fff!important}

/* === Dashboard create-code modals TOP FIX 2026-07-08 === */
body.page-dashboard #modalAdd,
body.page-dashboard #modalTrial,
body.page-dashboard #modalMulti{
  position:fixed!important;
  inset:0!important;
  display:none!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:10px 18px 24px!important;
  margin:0!important;
  background:rgba(248,250,252,.58)!important;
  z-index:2147483600!important;
  overflow:auto!important;
}
body.page-dashboard #modalAdd.show,
body.page-dashboard #modalTrial.show,
body.page-dashboard #modalMulti.show{
  display:flex!important;
}
body.page-dashboard #modalAdd .modal-card,
body.page-dashboard #modalTrial .modal-card,
body.page-dashboard #modalMulti .modal-card{
  position:relative!important;
  top:0!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  transform:none!important;
  margin:0 auto 18px!important;
  max-height:calc(100vh - 28px)!important;
  overflow:auto!important;
  z-index:2147483601!important;
}

/* Connected data center widget */
.pv-dc-widget{direction:ltr;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px 0;padding:12px 16px;border-radius:18px;background:linear-gradient(135deg,#071e3d 0%,#0d47a1 45%,#062b56 100%);color:#fff;box-shadow:0 12px 30px rgba(5,35,85,.18);border:1px solid rgba(255,255,255,.18);overflow:hidden;position:relative}
.pv-dc-widget:before{content:"";position:absolute;inset:auto -60px -80px auto;width:210px;height:210px;background:radial-gradient(circle,rgba(34,197,94,.28),transparent 64%);pointer-events:none}.pv-dc-left,.pv-dc-right{display:flex;align-items:center;gap:12px;position:relative;z-index:1}.pv-dc-right{justify-content:flex-end;flex-wrap:wrap}.pv-dc-company-icon{width:46px;height:46px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;font-weight:900;letter-spacing:.5px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.28);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}.pv-dc-mada{background:linear-gradient(135deg,#7c3aed,#312e81)}.pv-dc-paltel{background:linear-gradient(135deg,#0ea5e9,#1d4ed8)}.pv-dc-hadara{background:linear-gradient(135deg,#f97316,#b45309)}.pv-dc-jawwal{background:linear-gradient(135deg,#16a34a,#065f46)}.pv-dc-label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.3px;color:#dbeafe;display:flex;align-items:center;gap:7px}.pv-dc-location{font-size:17px;font-weight:900;margin-top:2px;color:#fff}.pv-dc-dot{width:9px;height:9px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 5px rgba(34,197,94,.18),0 0 15px rgba(34,197,94,.9);display:inline-block}.pv-dc-company,.pv-dc-speed,.pv-dc-status{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);font-weight:800;font-size:12px;white-space:nowrap}.pv-dc-speed{background:rgba(34,197,94,.18);color:#dcfce7}.pv-dc-status{background:rgba(14,165,233,.18);color:#e0f2fe}@media(max-width:760px){.pv-dc-widget{align-items:flex-start;flex-direction:column}.pv-dc-right{justify-content:flex-start}.pv-dc-location{font-size:15px}}


/* ================= Pal Vision Enterprise 2.0 visual base ================= */
.topbar{background:linear-gradient(135deg,#073b73 0%,#0b5fb8 45%,#0b7dd8 100%)!important;color:#fff!important;box-shadow:0 10px 30px rgba(2,32,71,.18)}
.topbar .brand,.topbar .top-link,.topbar .top-user-chip,.topbar .mini-top-info,.topbar .health-pill,.topbar .pv-mini-nav{color:#fff!important}
.topbar .top-search input{background:rgba(255,255,255,.96)!important;color:#0f172a!important;border:0!important;box-shadow:0 8px 22px rgba(0,0,0,.10)}
.topbar .top-search input::placeholder{color:#111827!important}
.pv-top-dc{display:flex;align-items:center;gap:8px;min-width:280px;max-width:520px;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.12);direction:ltr;white-space:nowrap;color:#fff}
.pv-top-dc-led{width:9px;height:9px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.18),0 0 14px rgba(34,197,94,.8);display:inline-block;animation:pvPulse 1.7s infinite}
.pv-top-dc-icon{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:24px;border-radius:8px;background:rgba(255,255,255,.94);color:#064b8f;font-weight:900;font-size:11px;padding:0 6px}
.pv-top-dc-main{overflow:hidden;text-overflow:ellipsis;font-size:12px;color:#fff}.pv-top-dc-main b{font-size:13px}.pv-top-dc-latency{font-weight:900;color:#bbf7d0;font-size:12px;margin-inline-start:auto}
@keyframes pvPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(.82)}}
@media(max-width:1200px){.pv-top-dc{max-width:330px;min-width:230px}.pv-top-dc-main{max-width:180px}}@media(max-width:900px){.pv-top-dc{display:none}}
body.login-smooth{background:radial-gradient(circle at top right,#0ea5e9 0,#075985 34%,#0f172a 100%)!important;min-height:100vh}.pv-login-v2-wrap{min-height:100vh;display:grid!important;grid-template-columns:minmax(320px,430px) minmax(360px,480px);align-items:center;justify-content:center;gap:28px;padding:28px!important}.pv-login-side{color:#fff;direction:ltr;text-align:left;padding:26px}.pv-login-side-logo{display:inline-flex;padding:10px 16px;border-radius:18px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);font-weight:900;letter-spacing:.08em;margin-bottom:20px}.pv-login-side h2{font-size:36px;line-height:1.15;margin:0 0 12px;font-weight:900}.pv-login-side p{font-size:15px;line-height:1.9;color:rgba(255,255,255,.82);direction:rtl;text-align:right}.pv-login-dc-pill{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:18px;padding:12px;margin-top:20px;flex-wrap:wrap}.pv-login-dc-pill em{font-style:normal;color:#bbf7d0;font-weight:900}.pv-login-shield{margin-top:12px;color:#dbeafe;font-weight:800}.pv-login-v2-card{backdrop-filter:blur(18px);background:rgba(255,255,255,.94)!important;border:1px solid rgba(255,255,255,.55)!important;box-shadow:0 30px 70px rgba(2,6,23,.35)!important;border-radius:28px!important}.login-logo-text{color:#075985!important}.login-footer-dev{margin-top:16px;text-align:center;color:#475569;font-weight:800}.auth-page .input{border-radius:14px!important}.auth-page .btn-primary{border-radius:16px!important;background:linear-gradient(135deg,#0369a1,#0284c7)!important;box-shadow:0 12px 26px rgba(2,132,199,.25)!important}@media(max-width:880px){.pv-login-v2-wrap{grid-template-columns:1fr}.pv-login-side{display:none}.pv-login-v2-card{width:min(94vw,460px)}}
/* Dashboard compact professional cards */
.dashboard-card,.stat-card,.home-card,.metric-card{border-radius:22px!important;box-shadow:0 14px 34px rgba(15,23,42,.08)!important;border:1px solid rgba(15,23,42,.06)!important}.dashboard-card:nth-of-type(6n+1),.stat-card:nth-of-type(6n+1){background:linear-gradient(135deg,#0f172a,#1d4ed8)!important;color:#fff!important}.dashboard-card:nth-of-type(6n+2),.stat-card:nth-of-type(6n+2){background:linear-gradient(135deg,#312e81,#7c3aed)!important;color:#fff!important}.dashboard-card:nth-of-type(6n+3),.stat-card:nth-of-type(6n+3){background:linear-gradient(135deg,#064e3b,#059669)!important;color:#fff!important}.dashboard-card:nth-of-type(6n+4),.stat-card:nth-of-type(6n+4){background:linear-gradient(135deg,#7c2d12,#ea580c)!important;color:#fff!important}.dashboard-card:nth-of-type(6n+5),.stat-card:nth-of-type(6n+5){background:linear-gradient(135deg,#164e63,#0891b2)!important;color:#fff!important}.dashboard-card:nth-of-type(6n+6),.stat-card:nth-of-type(6n+6){background:linear-gradient(135deg,#881337,#e11d48)!important;color:#fff!important}.dashboard-card *, .stat-card *{text-align:center!important}.dashboard-card a,.stat-card a{color:inherit!important}

/* v2 stable login final polish */
.auth-page{
  background:radial-gradient(circle at 15% 18%,rgba(255,255,255,.22) 0 90px,transparent 91px),
             radial-gradient(circle at 85% 78%,rgba(125,211,252,.26) 0 130px,transparent 131px),
             linear-gradient(135deg,#0b5fa5 0%,#0ea5e9 43%,#0f2f66 100%)!important;
}
.auth-page:before{
  background:linear-gradient(135deg,rgba(255,255,255,.16),rgba(255,255,255,.04)),
             repeating-linear-gradient(135deg,rgba(255,255,255,.055) 0 2px,transparent 2px 30px)!important;
}
.login-card{text-align:center!important;border-top:0!important;border-radius:18px!important;box-shadow:0 26px 70px rgba(2,6,23,.32)!important;background:rgba(255,255,255,.96)!important}
.login-card .field,.login-card .remember-row,.login-card .captcha-row{text-align:right!important}
.login-logo-text,.login-version,.login-card h1,.login-sub{text-align:center!important}
.login-version{background:#e0f2fe!important;color:#075985!important}
.login-footer-dev{margin-top:16px;text-align:center;color:#475569;font-weight:900;font-size:12px}


/* === Login classic final fix 2026-07-09 === */
body .pv-login-classic-page{
  min-height:100vh!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:28px!important;
  background:
    radial-gradient(circle at 18% 16%,rgba(255,255,255,.26) 0 92px,transparent 93px),
    radial-gradient(circle at 82% 80%,rgba(125,211,252,.28) 0 140px,transparent 141px),
    linear-gradient(135deg,#064b8f 0%,#0ea5e9 48%,#0f2f66 100%)!important;
  overflow:auto!important;
}
body .pv-login-classic-page:before{
  content:""!important;
  position:fixed!important;
  inset:0!important;
  background:
    linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,.02)),
    repeating-linear-gradient(135deg,rgba(255,255,255,.055) 0 2px,transparent 2px 32px)!important;
  pointer-events:none!important;
}
body .pv-login-classic-card{
  width:min(430px,94vw)!important;
  max-width:94vw!important;
  background:rgba(255,255,255,.97)!important;
  border:1px solid rgba(255,255,255,.72)!important;
  border-top:0!important;
  border-radius:22px!important;
  box-shadow:0 28px 85px rgba(2,6,23,.34)!important;
  padding:34px 34px 28px!important;
  text-align:center!important;
  backdrop-filter:blur(10px)!important;
}
body .pv-login-classic-card .login-logo-text,
body .pv-login-classic-card .login-version,
body .pv-login-classic-card h1,
body .pv-login-classic-card .login-sub{
  text-align:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body .pv-login-classic-card .login-logo-text{
  font-size:34px!important;
  font-weight:900!important;
  color:#075985!important;
  letter-spacing:.5px!important;
  margin:0 auto 4px!important;
}
body .pv-login-classic-card .login-version{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:26px!important;
  padding:3px 12px!important;
  border-radius:999px!important;
  background:#e0f2fe!important;
  color:#075985!important;
  font-weight:900!important;
  font-size:12px!important;
  direction:ltr!important;
  margin:0 auto 12px!important;
}
body .pv-login-classic-card h1{
  font-size:25px!important;
  line-height:1.35!important;
  color:#0f172a!important;
  margin:0 auto 6px!important;
}
body .pv-login-classic-card .login-sub{
  color:#64748b!important;
  font-weight:800!important;
  font-size:13px!important;
  line-height:1.85!important;
  max-width:340px!important;
  margin:0 auto 18px!important;
}
body .pv-login-classic-card .field,
body .pv-login-classic-card .remember-row,
body .pv-login-classic-card .captcha-row{
  text-align:right!important;
}
body .pv-login-classic-card .input{
  border-radius:14px!important;
  min-height:48px!important;
  background:#f8fafc!important;
}
body .pv-login-classic-card .btn-primary{
  border-radius:15px!important;
  background:linear-gradient(135deg,#0369a1,#0284c7)!important;
  color:#fff!important;
  box-shadow:0 12px 26px rgba(2,132,199,.25)!important;
}
body .pv-login-classic-card .login-footer-dev{
  display:block!important;
  margin:18px auto 0!important;
  text-align:center!important;
  color:#475569!important;
  font-weight:900!important;
  font-size:12px!important;
  direction:ltr!important;
}
body .pv-login-classic-card .account-switcher{
  text-align:right!important;
}

/* Pal Vision v2.0 final requested refinements */
.topbar .admin-fast-tools{display:none!important}
.charge-report-cards .stat-card,
.charge-report-cards .stat-card *{color:#111827!important;text-shadow:none!important}
.charge-report-cards .stat-card{background:#fff!important;border:1px solid #dbe4f0!important;box-shadow:0 12px 32px rgba(15,23,42,.08)!important}
.charge-report-table{border-collapse:separate!important;border-spacing:0!important;border:1px solid #dbe4f0!important;border-radius:18px!important;overflow:hidden!important;background:#fff!important}
.charge-report-table th{background:#eef6ff!important;color:#0f172a!important;font-weight:900!important;padding:14px!important;border-bottom:1px solid #dbe4f0!important}
.charge-report-table td{padding:13px!important;border-bottom:1px solid #eef2f7!important;color:#111827!important;background:#fff!important}
.charge-report-table tbody tr:hover td{background:#f8fbff!important}
.charge-report-table .amount-plus{font-weight:900!important;color:#047857!important;background:#ecfdf5!important;border-radius:10px!important;display:inline-block!important;padding:6px 12px!important}
.reports-page .analytics-hero{background:linear-gradient(135deg,#e0f2fe,#f8fafc)!important;border:1px solid #dbeafe!important;color:#0f172a!important}
.reports-page .analytics-hero *{color:#0f172a!important}
body .low-credit-warning, body .low-credit-box, body [href="low_credit_alerts.php"]{display:none!important}
body.role-admin .quick-create-home{display:block!important}
body.role-admin #modalAdd,body.role-admin #modalTrial,body.role-admin #modalMulti{visibility:visible}

/* PalVision hotfix: created codes are always white */
.created-code button,.created-popup-card .code-display,.code-big,.code-big button{color:#fff!important;}

/* PALVISION hotfix 2026-07-09: force created code text white and visible */
.created-popup-card .code-display,.created-popup-card .code-display *{color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.25)!important;}
.created-popup-card textarea.codes-result,.created-popup-card .codes-result{background:#0f172a!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-weight:900!important;border-color:#334155!important;}
.created-code button,.code-big,.code-big button{color:#fff!important;-webkit-text-fill-color:#fff!important;}



.sidebar{width:270px!important;padding:14px 12px!important;background:linear-gradient(180deg,#083e69 0%,#0b6fb0 52%,#07365d 100%)!important;box-shadow:8px 0 28px rgba(15,23,42,.20)!important}
.main{margin-left:270px!important}.nav.nav-grouped{display:flex!important;flex-direction:column!important;gap:4px!important}.side-title{margin:12px 6px 7px!important;padding:8px 10px!important;border-radius:999px!important;background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.13)!important;color:#dff3ff!important;font-size:12px!important;font-weight:900!important;text-align:center!important;justify-content:center!important;letter-spacing:0!important}.side-title:after{display:none!important}.nav a,.nav button.side-action{min-height:42px!important;margin:2px 0!important;padding:10px 12px!important;border-radius:14px!important;color:#fff!important;background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.07)!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;text-align:center!important;font-weight:900!important;gap:10px!important}.nav a span:not(.ico),.nav button.side-action span:not(.ico){flex:1!important;text-align:center!important}.nav a:hover,.nav a.active,.nav button.side-action:hover{background:rgba(255,255,255,.17)!important;border-color:rgba(255,255,255,.25)!important;transform:translateY(-1px)!important}.nav .ico,.side-action .ico{width:30px!important;height:30px!important;border-radius:12px!important;background:rgba(255,255,255,.12)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 30px!important}.side-badge{margin-inline-start:0!important;margin-left:auto!important;background:#ef4444!important;color:#fff!important}.side-logout-link{background:rgba(239,68,68,.16)!important;border-color:rgba(239,68,68,.30)!important}.server-main-link{background:rgba(14,165,233,.18)!important;border-color:rgba(186,230,253,.30)!important}
@media(max-width:1050px){.main{margin-left:0!important}.sidebar{width:270px!important}}

/* === PALVISION simplified settings page 2026-07-09 === */
.pv-settings-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 20px;padding:24px;border-radius:28px;background:linear-gradient(135deg,#e0f2fe 0%,#ffffff 52%,#ecfdf5 100%);border:1px solid #bfdbfe;box-shadow:0 20px 55px rgba(15,23,42,.10);position:relative;overflow:hidden}
.pv-settings-hero:before{content:'';position:absolute;inset:auto -80px -90px auto;width:230px;height:230px;border-radius:999px;background:rgba(14,165,233,.13)}
.pv-settings-hero-main,.pv-settings-hero-actions{position:relative;z-index:1}.pv-settings-hero h2{margin:8px 0 5px;font-size:26px;color:#0f172a;font-weight:900}.pv-settings-hero p{margin:0;color:#475569;font-weight:800;line-height:1.85}.pv-settings-badge{display:inline-flex;align-items:center;gap:7px;padding:8px 15px;border-radius:999px;background:#dbeafe;color:#075985;font-weight:900;font-size:12px;box-shadow:inset 0 0 0 1px rgba(14,165,233,.18)}.pv-settings-hero-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.pv-settings-form{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}.pv-settings-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px;align-items:start}.pv-settings-menu{position:sticky;top:84px;display:flex;flex-direction:column;gap:11px;padding:16px;border-radius:26px;background:linear-gradient(180deg,#ffffff,#f8fafc);border:1px solid #e2e8f0;box-shadow:0 18px 45px rgba(15,23,42,.09)}.pv-settings-menu:before{content:'الأقسام';display:block;text-align:center;font-weight:900;color:#0f172a;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:16px;padding:10px;margin-bottom:2px}.pv-settings-menu a{display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:12px 13px;border-radius:18px;border:1px solid transparent;color:#0f172a;text-decoration:none;font-weight:900;transition:.18s ease;box-shadow:0 8px 18px rgba(15,23,42,.04)}.pv-settings-menu a:hover{transform:translateY(-2px);filter:saturate(1.05);box-shadow:0 12px 24px rgba(15,23,42,.08)}.pv-settings-menu a:nth-child(1){background:linear-gradient(135deg,#eff6ff,#dbeafe);border-color:#bfdbfe}.pv-settings-menu a:nth-child(2){background:linear-gradient(135deg,#ecfdf5,#d1fae5);border-color:#a7f3d0}.pv-settings-menu a:nth-child(3){background:linear-gradient(135deg,#fff7ed,#ffedd5);border-color:#fed7aa}.pv-settings-menu a:nth-child(4){background:linear-gradient(135deg,#f5f3ff,#ede9fe);border-color:#ddd6fe}.pv-settings-menu a:nth-child(5){background:linear-gradient(135deg,#f8fafc,#e2e8f0);border-color:#cbd5e1}.pv-settings-menu b{width:36px;height:36px;border-radius:14px;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;direction:ltr;box-shadow:0 9px 18px rgba(15,23,42,.13)}.pv-settings-menu a:nth-child(1) b{background:#2563eb}.pv-settings-menu a:nth-child(2) b{background:#059669}.pv-settings-menu a:nth-child(3) b{background:#f97316}.pv-settings-menu a:nth-child(4) b{background:#7c3aed}.pv-settings-menu a:nth-child(5) b{background:#475569}.pv-settings-menu span{flex:1;text-align:center}.pv-settings-content{display:flex;flex-direction:column;gap:18px}.pv-settings-card{background:#fff;border:1px solid #e2e8f0;border-radius:28px;padding:21px;box-shadow:0 15px 42px rgba(15,23,42,.07);position:relative;overflow:hidden}.pv-settings-card:before{content:'';position:absolute;top:0;right:0;left:0;height:7px;background:#94a3b8}.pv-settings-card.important:before{background:linear-gradient(90deg,#2563eb,#0ea5e9)}.pv-settings-card#set-general:before{background:linear-gradient(90deg,#059669,#22c55e)}.pv-settings-card#set-security:before{background:linear-gradient(90deg,#f97316,#f59e0b)}.pv-settings-card#set-db:before{background:linear-gradient(90deg,#7c3aed,#a855f7)}.pv-settings-card#set-advanced:before{background:linear-gradient(90deg,#475569,#94a3b8)}.pv-settings-card.important{border-color:#bfdbfe;background:linear-gradient(180deg,#ffffff,#f8fcff)}.pv-card-title{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px;padding:14px;border-radius:20px;border:1px solid #eef2f7;background:#f8fafc}.pv-card-title>span{width:48px;height:48px;border-radius:18px;display:inline-flex;align-items:center;justify-content:center;font-size:23px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}#set-general .pv-card-title{background:#ecfdf5;border-color:#a7f3d0}#set-general .pv-card-title>span{background:#d1fae5}#set-security .pv-card-title{background:#fff7ed;border-color:#fed7aa}#set-security .pv-card-title>span{background:#ffedd5}#set-db .pv-card-title{background:#f5f3ff;border-color:#ddd6fe}#set-db .pv-card-title>span{background:#ede9fe}#set-advanced .pv-card-title{background:#f8fafc;border-color:#cbd5e1}#set-advanced .pv-card-title>span{background:#e2e8f0}.pv-card-title h2{margin:0 0 4px;color:#0f172a;font-size:21px;font-weight:900}.pv-card-title p{margin:0;color:#64748b;font-weight:800;line-height:1.7}.pv-field-grid{display:grid;grid-template-columns:1fr;gap:14px}.pv-field-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.pv-field{display:flex;flex-direction:column;gap:8px;background:#ffffff;border:1px solid #eef2f7;border-radius:18px;padding:12px}.pv-field.full{grid-column:1/-1}.pv-field label{font-weight:900;color:#334155;font-size:13px}.pv-field small{color:#64748b;font-weight:800;line-height:1.6}.pv-field .input,.pv-accounts-grid .input{min-height:46px;border-radius:14px;background:#f8fafc;border:1px solid #dbe4f0}.pv-field .input:focus,.pv-accounts-grid .input:focus{background:#fff;border-color:#38bdf8;box-shadow:0 0 0 4px rgba(14,165,233,.13);outline:none}.pv-switch{display:flex;align-items:center;gap:10px;min-height:46px;border-radius:18px;background:#ffffff;border:1px solid #eef2f7;padding:12px 13px;font-weight:900;color:#334155}.pv-switch input{width:18px;height:18px}.pv-link-box{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:18px;padding:13px}.pv-inline-actions{display:flex;gap:8px;flex-wrap:wrap}.pv-advanced-box{margin-top:14px;border:1px solid #e2e8f0;border-radius:20px;background:#fff;padding:0;overflow:hidden;box-shadow:0 8px 18px rgba(15,23,42,.04)}.pv-advanced-box summary{cursor:pointer;list-style:none;padding:15px 17px;font-weight:900;color:#0f172a;background:linear-gradient(135deg,#f8fafc,#f1f5f9)}.pv-advanced-box summary::-webkit-details-marker{display:none}.pv-advanced-box summary:before{content:'+';display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;margin-left:8px;border-radius:10px;background:#0ea5e9;color:#fff;direction:ltr}.pv-advanced-box[open] summary:before{content:'−'}.pv-advanced-box>.pv-field-grid,.pv-advanced-box>.pv-accounts-grid,.pv-advanced-box>p{padding:15px}.pv-accounts-grid{display:grid;gap:10px}.pv-account-row{display:grid;grid-template-columns:42px 1fr 1fr;gap:10px;align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:10px}.pv-account-row strong{width:34px;height:34px;border-radius:12px;background:#dbeafe;color:#075985;display:flex;align-items:center;justify-content:center;font-weight:900}.pv-settings-save{position:sticky;bottom:14px;z-index:20;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;padding:14px;border-radius:22px;background:rgba(255,255,255,.94);border:1px solid #dbe4f0;box-shadow:0 20px 50px rgba(15,23,42,.15);backdrop-filter:blur(10px)}
@media(max-width:1050px){.pv-settings-layout{grid-template-columns:1fr}.pv-settings-menu{position:relative;top:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.pv-settings-hero{flex-direction:column;text-align:center}.pv-settings-hero-actions{width:100%}.pv-settings-hero-actions .btn{flex:1}.pv-field-grid.two{grid-template-columns:1fr}.pv-account-row{grid-template-columns:36px 1fr}.pv-account-row input:last-child{grid-column:2}.pv-settings-save{position:relative;bottom:auto}.pv-settings-menu a span{text-align:right}}
@media(max-width:560px){.pv-settings-menu{grid-template-columns:1fr}.pv-settings-card{padding:15px}.pv-settings-hero{padding:17px}.pv-inline-actions .btn{width:100%}}


/* PALVISION invoice + customers polish 2026-07-09 */
.invoice-no{color:#000!important;background:linear-gradient(135deg,#ffffff,#f1f5f9)!important;border:1px solid #cbd5e1!important;box-shadow:0 6px 16px rgba(15,23,42,.08)!important;direction:ltr}.invoice-number b{color:#000!important;background:#fff!important;border:1px solid rgba(255,255,255,.55);border-radius:12px;padding:7px 12px;display:inline-block;box-shadow:0 8px 18px rgba(15,23,42,.12)}.invoice-view-btn{border:0!important;cursor:pointer!important;color:#fff!important;min-width:70px}.invoice-view-btn:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(37,99,235,.28)}
.customers-modern-panel{background:linear-gradient(180deg,#ffffff,#f8fbff)!important;border-radius:26px!important;padding:24px!important;overflow:hidden}.customers-hero-box{display:flex;align-items:center;justify-content:space-between;gap:16px;background:radial-gradient(circle at left top,rgba(255,255,255,.42),transparent 34%),linear-gradient(135deg,#0f766e,#10b981 54%,#0ea5e9);color:#fff;border-radius:24px;padding:22px 24px;margin-bottom:14px;box-shadow:0 18px 42px rgba(16,185,129,.20)}.customers-hero-box h2{margin:3px 0 5px!important;font-size:30px!important;color:#fff!important}.customers-hero-box p{margin:0;color:#e8fff7;font-weight:800}.mini-kicker{display:inline-flex;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:5px 10px;font-weight:900;font-size:12px}.customer-add-main{background:#fff!important;color:#065f46!important;border:0!important;box-shadow:0 12px 26px rgba(15,23,42,.15)!important;white-space:nowrap}.customers-stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.customers-stat-row>div{border:1px solid #dbeafe;border-radius:20px;padding:16px;background:linear-gradient(135deg,#f8fafc,#eef7ff);box-shadow:0 10px 26px rgba(15,23,42,.05)}.customers-stat-row small{display:block;color:#64748b;font-weight:900}.customers-stat-row b{display:block;color:#0f172a;font-size:26px;margin-top:4px}.customer-tools{background:#fff!important;border:1px solid #e2e8f0!important;border-radius:20px!important;padding:12px!important;margin-bottom:14px!important}.customers-modern-panel .table-wrap{border-radius:22px!important;border:1px solid #dbe4ee!important;box-shadow:0 14px 34px rgba(15,23,42,.06)!important}.customers-modern-panel table{min-width:960px}.customers-modern-panel thead th{background:linear-gradient(180deg,#ecfdf5,#f8fafc)!important;color:#064e3b!important;font-weight:900!important;padding:14px!important}.customers-modern-panel tbody td{padding:14px 12px!important}.customers-modern-panel tbody tr:hover{background:#f0fdfa!important}.customer-name-cell{display:flex;align-items:center;gap:10px}.customer-name-cell b{display:block;color:#0f172a;font-size:15px}.customer-name-cell small{display:block;color:#64748b;font-size:11px;font-weight:900;margin-top:2px}.customer-avatar{width:38px;height:38px;border-radius:14px;background:linear-gradient(135deg,#d1fae5,#e0f2fe);display:inline-flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px rgba(15,23,42,.06)}.customer-info-pill,.customer-address,.customer-note{display:inline-flex;align-items:center;max-width:230px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:8px 11px;color:#0f172a;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-note{border-radius:14px;white-space:normal;line-height:1.5}.customer-type-pill{background:#ecfeff!important;color:#155e75!important;border-color:#a5f3fc!important}.customer-modal-modern{max-width:780px!important;border-radius:26px!important;padding:24px!important;background:linear-gradient(180deg,#fff,#f8fbff)!important}.modal-pretty-head{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#ecfdf5,#eff6ff);border:1px solid #dbeafe;border-radius:20px;padding:14px;margin-bottom:14px}.modal-pretty-head>span{width:48px;height:48px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:#fff;font-size:24px}.modal-pretty-head h2{margin:0!important}.modal-pretty-head p{margin:3px 0 0!important}.customer-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.customer-form-grid label,.customer-notes-label{display:grid;gap:6px;font-size:12px;font-weight:900;color:#475569}.customer-notes-label{margin-top:12px}.customer-save-btn{width:100%;height:50px;margin-top:14px;border-radius:16px!important}@media(max-width:760px){.customers-hero-box{display:grid;text-align:center}.customers-stat-row,.customer-form-grid{grid-template-columns:1fr}.customer-add-main{width:100%}.customers-modern-panel{padding:16px!important}}


/* PALVISION clean invoices page + reliable view button 2026-07-09 */
.clean-invoices-page{background:linear-gradient(180deg,#ffffff,#f8fbff)!important;border-radius:24px!important;border:1px solid #dbe7f5!important;box-shadow:0 18px 45px rgba(15,23,42,.08)!important;padding:20px!important}
.invoice-page-hero{display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;gap:14px!important;margin-bottom:16px!important;padding:16px!important;border-radius:20px!important;background:linear-gradient(135deg,#eef7ff,#ffffff)!important;border:1px solid #dbeafe!important}
.invoice-page-hero h2{margin:0!important;color:#0f172a!important;font-size:25px!important;font-weight:900!important;text-align:right!important}
.invoice-page-icon{width:48px!important;height:48px!important;border-radius:16px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#2563eb!important;color:#fff!important;font-size:24px!important;box-shadow:0 10px 24px rgba(37,99,235,.25)!important}
.invoice-search-box{margin-bottom:16px!important}.invoice-search-box .input{height:46px!important;border-radius:16px!important;border:1px solid #cbd5e1!important;background:#fff!important;box-shadow:0 8px 20px rgba(15,23,42,.04)!important}
.invoice-page-panel .section-title-row,.invoice-page-panel .toolbar{display:none!important}
.invoice-table{border-collapse:separate!important;border-spacing:0 10px!important}.invoice-table thead th{background:#0f172a!important;color:#fff!important;border:0!important;padding:13px!important}.invoice-table tbody tr{background:#fff!important;box-shadow:0 8px 22px rgba(15,23,42,.06)!important}.invoice-table tbody td{background:#fff!important;border-top:1px solid #e2e8f0!important;border-bottom:1px solid #e2e8f0!important;padding:13px!important}.invoice-table tbody td:first-child{border-right:1px solid #e2e8f0!important;border-radius:0 16px 16px 0!important}.invoice-table tbody td:last-child{border-left:1px solid #e2e8f0!important;border-radius:16px 0 0 16px!important}
.invoice-no{color:#000!important;background:#fff!important;border:1px solid #cbd5e1!important;border-radius:12px!important;padding:7px 11px!important;font-weight:900!important;display:inline-block!important;direction:ltr!important}.invoice-open-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;min-width:78px!important;border-radius:12px!important;padding:9px 14px!important;background:#2563eb!important;color:#fff!important;font-weight:900!important;border:0!important;cursor:pointer!important}.invoice-open-link:hover{background:#1d4ed8!important;color:#fff!important;transform:translateY(-1px)!important;box-shadow:0 10px 22px rgba(37,99,235,.28)!important}
@media(max-width:760px){.invoice-page-hero{grid-template-columns:1fr!important;text-align:center!important}.invoice-page-hero h2{text-align:center!important}.invoice-page-icon{margin:auto!important}}


/* Invoice modal display fix 2026-07-09 */
.invoice-view-modal .invoice-view-card{max-width:980px!important;width:min(96vw,980px)!important;max-height:92vh!important;overflow:auto!important;border-radius:26px!important;padding:18px!important;background:#f8fbff!important}
.invoice-view-content .invoice-paper{background:#fff;border:1px solid #dbe4f0;border-radius:22px;overflow:hidden;box-shadow:0 18px 50px rgba(15,23,42,.10)}
.invoice-view-content .invoice-head{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;padding:24px 28px;background:linear-gradient(135deg,#0f172a,#2563eb);color:#fff}
.invoice-view-content .invoice-head h2{margin:0!important;font-size:32px!important;color:#fff!important}.invoice-view-content .invoice-head small{color:#dbeafe;font-weight:900}.invoice-view-content .invoice-number{text-align:left}.invoice-view-content .invoice-number b{display:inline-block;background:#fff;color:#000!important;border-radius:12px;padding:7px 12px;font-size:24px;margin:4px 0;direction:ltr}.invoice-view-content .invoice-number span{display:block;color:#dbeafe;font-weight:900}
.invoice-view-content .invoice-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:22px 24px 8px}.invoice-view-content .invoice-meta p{margin:0;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px}.invoice-view-content .invoice-meta b,.invoice-view-content .invoice-meta span{display:block}.invoice-view-content .invoice-meta b{font-size:12px;color:#64748b}.invoice-view-content .invoice-meta span{font-weight:900;color:#0f172a;margin-top:4px}
.invoice-view-content .invoice-codes{width:calc(100% - 48px);margin:16px 24px;border-collapse:collapse;border:1px solid #cbd5e1}.invoice-view-content .invoice-codes th{background:#eef7ff;color:#0f172a;font-weight:900}.invoice-view-content .invoice-codes th,.invoice-view-content .invoice-codes td{border:1px solid #cbd5e1;padding:12px;text-align:center}.invoice-view-content .code-cell{direction:ltr;font-weight:900;color:#111827}
.invoice-view-content .invoice-summary{display:grid;grid-template-columns:1fr 280px;gap:14px;padding:0 24px 18px}.invoice-view-content .invoice-notes{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:14px}.invoice-view-content .invoice-notes p{margin:6px 0 0}.invoice-view-content .invoice-total{border:2px solid #0f172a;border-radius:14px;overflow:hidden}.invoice-view-content .invoice-total div{display:flex;justify-content:space-between;padding:12px;border-bottom:1px solid #cbd5e1;font-weight:900}.invoice-view-content .invoice-total div:last-child{border-bottom:0;background:#0f172a;color:#fff}.invoice-view-content .invoice-footer{text-align:center;font-weight:900;color:#334155;padding:0 24px 22px}.invoice-view-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}.invoice-open-link{border:0!important;cursor:pointer!important}.invoice-no{color:#000!important;background:#fff!important;border:1px solid #cbd5e1!important}
.clean-invoices-page .invoice-page-hero p,.clean-invoices-page .section-title-row,.clean-invoices-page .toolbar{display:none!important}.clean-invoices-page{background:linear-gradient(180deg,#fff,#f8fbff)!important;border-radius:26px!important}.invoice-search-box{margin:0 0 16px}.invoice-search-box .input{height:50px;border-radius:16px!important;max-width:560px;width:100%;background:#fff!important}
@media(max-width:760px){.invoice-view-content .invoice-head,.invoice-view-content .invoice-meta,.invoice-view-content .invoice-summary{grid-template-columns:1fr}.invoice-view-content .invoice-number{text-align:right}.invoice-view-content .invoice-codes{width:calc(100% - 24px);margin:12px}.invoice-view-content .invoice-meta,.invoice-view-content .invoice-summary{padding-left:12px;padding-right:12px}}


/* === Invoice guaranteed open hotfix 2026-07-09 === */
.invoice-open-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;min-width:74px!important;height:36px!important;border-radius:12px!important;background:#2563eb!important;color:#fff!important;font-weight:900!important;border:0!important;box-shadow:0 8px 18px rgba(37,99,235,.20)!important}
.invoice-no{color:#000!important;background:#fff!important;border:1px solid #cbd5e1!important}
.clean-invoices-page .invoice-page-hero p,.clean-invoices-page .section-title-row,.clean-invoices-page .toolbar,.clean-invoices-page .muted{display:none!important}
.invoice-page-panel.clean-invoices-page{padding:24px!important;border-radius:26px!important;background:linear-gradient(180deg,#ffffff,#f8fbff)!important}

/* PALVISION desktop-fast mode */
.loader{display:none!important;opacity:0!important;visibility:hidden!important}
.action-loader{background:rgba(15,23,42,.08)!important;backdrop-filter:none!important}
.action-loader-card{padding:14px 20px!important;border-radius:14px!important}
body.reduce-motion *,body.pv-fast *{animation-duration:.01ms!important;transition-duration:.01ms!important}
.table tbody tr,.quick-card,.stat-card,.panel{will-change:auto}
@media (prefers-reduced-motion: reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* PALVISION hotfix 2026-07-09: remove topbar blank gap */
html,body{margin:0!important;padding:0!important;}
body{min-height:100vh!important;overflow-x:hidden!important;}
.shell{padding-top:58px!important;margin-top:0!important;min-height:100vh!important;}
.topbar{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:auto!important;height:58px!important;margin:0!important;z-index:9999!important;}
.sidebar{top:58px!important;margin-top:0!important;}
.main{padding-top:0!important;margin-top:0!important;}
.page-head{margin-top:0!important;}
.pv-top-spacer,.top-spacer,.desktop-top-gap,.app-top-gap{display:none!important;height:0!important;margin:0!important;padding:0!important;}
@media(max-width:1050px){.main{padding-top:0!important;margin-top:0!important;}}
/* Personal area, MAC restore, and reseller phone directory */
.personal-premium-page{background:transparent!important;padding:0!important;border:0!important;box-shadow:none!important}.personal-hero{border-radius:20px;padding:28px;background:linear-gradient(135deg,#0f67ad,#2f93d8);color:#fff;box-shadow:0 18px 40px rgba(15,103,173,.18)}.personal-hero h2{font-size:30px;margin:0 0 8px}.personal-hero p{margin:0;color:#eaf6ff}.personal-premium-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}.personal-card{border-radius:18px!important;border:1px solid #e4eaf0!important;box-shadow:0 8px 24px rgba(15,23,42,.07)!important;padding:22px!important;background:#fff}.personal-card h3{display:flex;align-items:center;gap:9px}.premium-contact-card{border-top:5px solid #22c55e!important}.premium-appearance-card{border-top:5px solid #2f93d8!important}.premium-controls-card{border-top:5px solid #8b5cf6!important}.premium-photo-card{border-top:5px solid #f59e0b!important}.premium-password-card{border-top:5px solid #ef4444!important}.premium-personal-actions{grid-column:1/-1;display:flex;justify-content:center}.premium-personal-actions .btn{min-width:240px;border-radius:12px;padding:13px 28px}
.phone-required-modal{z-index:10050;background:rgba(2,6,23,.72);backdrop-filter:blur(7px)}.phone-required-card{max-width:430px;text-align:center;border-radius:22px;padding:30px}.phone-required-icon{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;background:#e9f8ef;font-size:34px}.phone-required-card h2{margin:0 0 8px}.phone-required-card p{color:#64748b;line-height:1.8}.phone-required-card form{display:grid;gap:12px}.phone-required-card .input{text-align:center;font-size:18px;direction:ltr}.phone-required-result{min-height:22px;font-weight:800}.phone-required-result.ok{color:#15803d}.phone-required-result.bad{color:#b91c1c}
.mac-restore-page,.reseller-phones-page{display:grid;gap:18px}.mac-restore-hero,.phones-hero{display:flex;align-items:center;justify-content:space-between;padding:28px;border-radius:20px;color:#fff;background:linear-gradient(135deg,#111827,#334155);box-shadow:0 16px 38px rgba(15,23,42,.2)}.mac-restore-hero h2,.phones-hero h2{font-size:30px;margin:4px 0}.mac-restore-hero p,.phones-hero p{margin:0;color:#e2e8f0}.mac-restore-icon,.phones-hero-icon{font-size:48px}.mac-restore-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px}.mac-search-row{display:grid;grid-template-columns:1fr auto;gap:10px}.mac-search-result{margin-top:18px}.empty-state{padding:28px;text-align:center;border:2px dashed #dbe3ea;border-radius:14px;color:#64748b}.mac-result-card{border:1px solid #dbe3ea;border-radius:16px;padding:20px;background:#f8fafc}.mac-result-code small{display:block;color:#64748b}.mac-result-code b{font-size:30px;color:#0f172a}.mac-result-details{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.mac-result-details p{margin:0;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:12px}.mac-result-details span{display:block;color:#64748b;font-size:12px}.mac-help-card{text-align:center}.mac-help-card>span{font-size:42px}.phone-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.phone-stats>div{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:20px;text-align:center;box-shadow:0 8px 22px rgba(15,23,42,.06)}.phone-stats b{display:block;font-size:30px}.phone-stats span{color:#64748b}.phone-link{display:inline-flex;padding:7px 12px;border-radius:999px;background:#e8f7ee;color:#15803d;font-weight:900;direction:ltr}.phone-missing{color:#b91c1c;font-weight:800}
@media(max-width:900px){.personal-premium-grid,.mac-restore-grid{grid-template-columns:1fr}.phone-stats{grid-template-columns:1fr}.mac-result-details{grid-template-columns:1fr}.mac-search-row{grid-template-columns:1fr}}


/* PALVISION profile/MAC/phones final refinement */
.personal-premium-page{max-width:1180px!important}.personal-hero{background:linear-gradient(135deg,#0f172a,#0f67ad 55%,#38bdf8)!important;border-radius:26px!important;padding:24px 28px!important}.personal-premium-grid{grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:16px!important}.personal-premium-grid .personal-card{grid-column:span 6!important;border-radius:22px!important;padding:22px!important;box-shadow:0 14px 35px rgba(15,23,42,.08)!important}.personal-premium-grid .premium-photo-card{grid-column:span 4!important}.personal-premium-grid .premium-appearance-card{grid-column:span 8!important}.personal-premium-grid .premium-password-card{grid-column:span 12!important}.premium-personal-actions{grid-column:span 12!important;position:sticky;bottom:12px;background:rgba(255,255,255,.88);backdrop-filter:blur(12px);padding:12px;border-radius:18px;z-index:10}.premium-personal-actions .btn{width:100%;max-width:360px}.mac-search-panels{display:grid;grid-template-columns:1fr 1fr;gap:18px}.mac-search-card{border-radius:22px!important;padding:22px!important}.code-search-card{border-top:5px solid #2563eb!important}.mac-address-search-card{border-top:5px solid #10b981!important}.search-card-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}.search-card-head>span{font-size:30px}.search-card-head h3{margin:0 0 4px}.search-card-head p{margin:0;color:#64748b}.reseller-phones-page .panel{border-radius:22px!important}.phone-stats-clean{grid-template-columns:1fr 1fr!important}.phones-table tbody tr{transition:.18s ease}.phones-table tbody tr:hover{transform:translateY(-1px);background:#f8fbff}.phone-link{display:inline-flex!important;align-items:center;gap:8px;background:#ecfdf5;color:#047857!important;border:1px solid #a7f3d0;padding:8px 12px;border-radius:999px;font-weight:900}.phone-link span{font-size:16px}@media(max-width:900px){.personal-premium-grid{grid-template-columns:1fr!important}.personal-premium-grid .personal-card,.personal-premium-grid .premium-photo-card,.personal-premium-grid .premium-appearance-card,.personal-premium-grid .premium-password-card{grid-column:auto!important}.mac-search-panels{grid-template-columns:1fr}.phone-stats-clean{grid-template-columns:1fr!important}}
/* Personal profile clean layout 2026-07-10 */
.profile-clean-page{max-width:1180px;margin:0 auto;padding:8px 0 34px}.profile-clean-header{display:flex;align-items:center;gap:18px;padding:24px 28px;margin-bottom:18px;border-radius:20px;background:linear-gradient(135deg,#0f4c81,#1769aa);color:#fff;box-shadow:0 12px 32px rgba(15,76,129,.2)}.profile-clean-header h1{margin:0 0 5px;font-size:25px}.profile-clean-header p{margin:0;opacity:.88}.profile-clean-avatar{width:74px;height:74px;border-radius:22px;background:rgba(255,255,255,.18);display:grid;place-items:center;overflow:hidden;font-size:34px;border:2px solid rgba(255,255,255,.35)}.profile-clean-avatar img{width:100%;height:100%;object-fit:cover}.profile-clean-form{display:grid;gap:18px}.profile-section{background:var(--card,#fff);border:1px solid var(--border,#e5e7eb);border-radius:20px;padding:22px;box-shadow:0 8px 25px rgba(15,23,42,.06);position:relative;overflow:hidden}.profile-section:before{content:"";position:absolute;right:0;top:0;bottom:0;width:6px;background:var(--section-color)}.profile-section-blue{--section-color:#1682d4}.profile-section-purple{--section-color:#7c3aed}.profile-section-green{--section-color:#16a36a}.profile-section-title{display:flex;align-items:center;gap:12px;margin-bottom:20px}.profile-section-title>span{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:color-mix(in srgb,var(--section-color) 12%,transparent);font-size:23px}.profile-section-title h2{margin:0;font-size:19px}.profile-section-title p{margin:4px 0 0;color:var(--muted,#64748b);font-size:13px}.profile-account-grid{display:grid;grid-template-columns:210px minmax(0,1fr);gap:26px;align-items:center}.profile-photo-box{text-align:center;padding:18px;border:1px dashed #cbd5e1;border-radius:17px;background:rgba(148,163,184,.06)}.profile-photo-preview{width:110px;height:110px;margin:0 auto 14px;border-radius:28px;display:grid;place-items:center;background:#edf4fa;overflow:hidden;font-size:45px}.profile-photo-preview img{width:100%;height:100%;object-fit:cover}.profile-upload-btn{display:inline-flex;align-items:center;justify-content:center;background:#1769aa;color:#fff;border-radius:10px;padding:9px 15px;cursor:pointer;font-weight:700}.profile-upload-btn input{display:none}.profile-photo-box small,.profile-fields-stack small{display:block;color:var(--muted,#64748b);margin-top:9px}.profile-fields-stack{display:grid;gap:15px}.profile-fields-stack label,.profile-field-grid label{display:grid;gap:7px;font-weight:700}.profile-field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.profile-save-bar{position:sticky;bottom:12px;z-index:15;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 18px;border-radius:16px;background:rgba(15,23,42,.94);color:#fff;box-shadow:0 14px 38px rgba(15,23,42,.25);backdrop-filter:blur(10px)}.profile-save-bar div{display:grid;gap:2px}.profile-save-bar small{color:#cbd5e1}.profile-save-bar .btn{min-width:150px}.role-admin .profile-clean-page,.role-reseller .profile-clean-page{direction:rtl}@media(max-width:850px){.profile-account-grid{grid-template-columns:1fr}.profile-field-grid{grid-template-columns:1fr 1fr}.profile-photo-box{max-width:300px;margin:auto;width:100%}}@media(max-width:560px){.profile-clean-header{padding:18px}.profile-field-grid{grid-template-columns:1fr}.profile-save-bar{position:static;align-items:stretch;flex-direction:column}.profile-save-bar .btn{width:100%}}

/* Profile v2 - organized desktop-like personal area */
.profile-v2-page{max-width:1320px;margin:0 auto;padding:4px 0 34px;direction:rtl}.profile-v2-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 28px;border-radius:24px;background:linear-gradient(135deg,#0b4f82 0%,#156ea8 55%,#14a3b8 100%);color:#fff;box-shadow:0 18px 46px rgba(15,76,129,.22);margin-bottom:18px;overflow:hidden;position:relative}.profile-v2-hero:after{content:"";position:absolute;width:250px;height:250px;border-radius:50%;left:-70px;top:-120px;background:rgba(255,255,255,.10)}.profile-v2-identity{display:flex;align-items:center;gap:17px;position:relative;z-index:1}.profile-v2-avatar{width:78px;height:78px;border-radius:24px;display:grid;place-items:center;background:rgba(255,255,255,.17);border:2px solid rgba(255,255,255,.36);font-size:36px;overflow:hidden}.profile-v2-avatar img{width:100%;height:100%;object-fit:cover}.profile-v2-kicker{display:inline-flex;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.15);font-size:11px;font-weight:900}.profile-v2-hero h1{margin:6px 0 3px;font-size:27px}.profile-v2-hero p{margin:0;color:#d8f2ff;font-size:13px}.profile-v2-account-badge{position:relative;z-index:1;min-width:180px;padding:12px 15px;border-radius:16px;background:rgba(4,36,62,.24);border:1px solid rgba(255,255,255,.2);display:grid;gap:2px}.profile-v2-account-badge span,.profile-v2-account-badge small{font-size:11px;color:#d8f2ff}.profile-v2-account-badge b{font-size:17px}.profile-v2-form{display:grid;gap:16px}.profile-v2-grid{display:grid;grid-template-columns:265px minmax(0,1fr);gap:18px;align-items:start}.profile-v2-side-card{background:var(--card,#fff);border:1px solid var(--line,#e2e8f0);border-radius:24px;padding:24px 18px;text-align:center;box-shadow:0 14px 38px rgba(15,23,42,.07);position:sticky;top:76px}.profile-v2-photo-ring{width:132px;height:132px;margin:0 auto 14px;border-radius:38px;padding:5px;background:linear-gradient(135deg,#38bdf8,#8b5cf6,#22c55e)}.profile-v2-photo{width:100%;height:100%;border-radius:33px;overflow:hidden;display:grid;place-items:center;background:#eef6fb;border:4px solid #fff;font-size:50px}.profile-v2-photo img{width:100%;height:100%;object-fit:cover}.profile-v2-side-card h2{margin:6px 0 2px;font-size:20px}.profile-v2-side-card>p{margin:0 0 15px;color:var(--muted,#64748b);font-weight:800}.profile-v2-upload{display:flex!important;align-items:center;justify-content:center;gap:7px;background:#1769aa;color:#fff!important;border-radius:12px;padding:10px 12px;cursor:pointer;margin:12px 0 6px!important}.profile-v2-upload input{display:none}.profile-v2-side-card>small{color:var(--muted,#64748b);font-size:11px}.profile-v2-mini-info{display:flex;align-items:center;gap:10px;text-align:right;margin-top:18px;padding:12px;border-radius:15px;background:#f8fafc;border:1px solid #e2e8f0}.profile-v2-mini-info>span{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:#dcfce7}.profile-v2-mini-info div{display:grid;gap:2px}.profile-v2-mini-info small{color:#64748b}.profile-v2-mini-info b{font-size:13px}.profile-v2-content{display:grid;gap:16px}.profile-v2-card{background:var(--card,#fff);border:1px solid var(--line,#e2e8f0);border-radius:24px;padding:22px;box-shadow:0 12px 34px rgba(15,23,42,.06);position:relative;overflow:hidden}.profile-v2-card:before{content:"";position:absolute;right:0;top:0;bottom:0;width:6px;background:var(--profile-accent)}.profile-v2-blue{--profile-accent:#1682d4}.profile-v2-purple{--profile-accent:#7c3aed}.profile-v2-green{--profile-accent:#16a36a}.profile-v2-title{display:flex;align-items:center;gap:12px;margin-bottom:18px}.profile-v2-title-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:color-mix(in srgb,var(--profile-accent) 13%,transparent);font-size:22px}.profile-v2-title h2{margin:0;font-size:19px}.profile-v2-title p{margin:4px 0 0;color:var(--muted,#64748b);font-size:12px}.profile-v2-fields{display:grid;gap:14px}.profile-v2-fields.two-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-v2-fields.three-cols{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-v2-fields.four-cols{grid-template-columns:repeat(4,minmax(0,1fr))}.profile-v2-fields label{display:grid;gap:7px;margin:0}.profile-v2-fields label>span{font-size:12px;color:#526174;font-weight:900}.profile-theme-cards{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:12px;margin-bottom:17px}.profile-theme-card{position:relative;display:grid!important;grid-template-columns:42px 1fr;grid-template-rows:auto auto;align-items:center;gap:6px 10px;padding:13px;border:2px solid #e2e8f0;border-radius:17px;background:#fff;cursor:pointer;margin:0!important;transition:.18s;min-height:92px}.profile-theme-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,23,42,.09)}.profile-theme-card.selected{border-color:var(--top);box-shadow:0 0 0 3px color-mix(in srgb,var(--top) 15%,transparent)}.profile-theme-card input{position:absolute;opacity:0;pointer-events:none}.profile-theme-check{position:absolute;left:8px;top:8px;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:var(--top);color:#fff;font-size:12px;opacity:0;transform:scale(.6);transition:.18s}.profile-theme-card.selected .profile-theme-check{opacity:1;transform:scale(1)}.profile-theme-icon{grid-row:1/3;width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#f1f5f9;font-size:21px}.profile-theme-name{font-size:12px;font-weight:900;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-theme-preview{display:flex;height:18px;border-radius:7px;overflow:hidden;border:1px solid rgba(15,23,42,.08)}.profile-theme-preview i{flex:1;background:var(--c1)}.profile-theme-preview i:nth-child(2){background:var(--c2)}.profile-theme-preview i:nth-child(3){background:var(--c3)}.profile-v2-save{position:sticky;bottom:10px;z-index:18;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 17px;border-radius:18px;background:rgba(15,23,42,.96);color:#fff;box-shadow:0 18px 45px rgba(15,23,42,.28);backdrop-filter:blur(12px)}.profile-v2-save>div{display:flex;align-items:center;gap:11px}.profile-v2-save>div>span{width:38px;height:38px;border-radius:12px;background:rgba(34,197,94,.16);display:grid;place-items:center}.profile-v2-save>div>div{display:grid;gap:2px}.profile-v2-save small{color:#cbd5e1}.profile-v2-save .btn{min-width:165px}body[data-theme="dark"] .profile-theme-card{background:#101827;border-color:#334155}body[data-theme="dark"] .profile-theme-name{color:#e5e7eb}body[data-theme="dark"] .profile-v2-mini-info{background:#111827;border-color:#334155}@media(max-width:1120px){.profile-theme-cards{grid-template-columns:repeat(3,1fr)}.profile-v2-fields.four-cols{grid-template-columns:repeat(2,1fr)}}@media(max-width:850px){.profile-v2-grid{grid-template-columns:1fr}.profile-v2-side-card{position:static}.profile-v2-fields.three-cols{grid-template-columns:1fr}.profile-theme-cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:590px){.profile-v2-hero{align-items:flex-start;flex-direction:column}.profile-v2-account-badge{width:100%}.profile-v2-fields.two-cols,.profile-v2-fields.four-cols{grid-template-columns:1fr}.profile-theme-cards{grid-template-columns:1fr}.profile-v2-save{position:static;align-items:stretch;flex-direction:column}.profile-v2-save .btn{width:100%}}

/* Data-center RJ45 / ethernet link activity light */
.pv-top-dc-led{width:28px!important;height:18px!important;border-radius:5px!important;background:linear-gradient(180deg,#1f2937,#020617)!important;border:1px solid rgba(255,255,255,.34)!important;box-shadow:inset 0 0 0 2px rgba(255,255,255,.05),0 3px 8px rgba(0,0,0,.24)!important;position:relative;display:inline-block!important;animation:none!important;flex:0 0 28px}.pv-top-dc-led:before,.pv-top-dc-led:after{content:"";position:absolute;bottom:3px;width:6px;height:6px;border-radius:2px;background:#22c55e;box-shadow:0 0 7px rgba(34,197,94,.95)}.pv-top-dc-led:before{left:4px;animation:pvEthernetRx .72s steps(2,end) infinite}.pv-top-dc-led:after{right:4px;background:#84cc16;box-shadow:0 0 7px rgba(132,204,22,.9);animation:pvEthernetTx 1.05s steps(2,end) infinite}.pv-top-dc-led{background-image:linear-gradient(90deg,transparent 0 20%,rgba(255,255,255,.1) 20% 24%,transparent 24% 40%,rgba(255,255,255,.1) 40% 44%,transparent 44% 60%,rgba(255,255,255,.1) 60% 64%,transparent 64%),linear-gradient(180deg,#1f2937,#020617)!important}@keyframes pvEthernetRx{0%,35%{opacity:.28}36%,72%{opacity:1}73%,100%{opacity:.45}}@keyframes pvEthernetTx{0%,48%{opacity:1}49%,74%{opacity:.25}75%,100%{opacity:.9}}


/* Profile v3 - visual theme cards and cleaner layout */
.profile-v2-page{max-width:1380px!important;padding:10px 12px 42px!important}
.profile-v2-hero{border-radius:30px!important;padding:28px 30px!important;margin-bottom:22px!important}
.profile-v2-grid{grid-template-columns:290px minmax(0,1fr)!important;gap:22px!important}
.profile-v2-side-card,.profile-v2-card{border-radius:27px!important}
.profile-v2-side-card{padding:26px 20px!important}
.profile-v2-content{gap:20px!important}
.profile-v2-card{padding:25px!important}
.profile-v2-title{padding-bottom:15px;border-bottom:1px solid color-mix(in srgb,var(--line,#e2e8f0) 80%,transparent);margin-bottom:20px!important}
.profile-theme-cards{grid-template-columns:repeat(3,minmax(190px,1fr))!important;gap:15px!important}
.profile-theme-card{grid-template-columns:58px 1fr!important;min-height:112px!important;padding:16px!important;border-radius:21px!important;background:linear-gradient(145deg,#fff,#f8fbff)!important}
.profile-theme-card:hover{transform:translateY(-4px)!important;box-shadow:0 16px 30px rgba(15,23,42,.12)!important}
.profile-theme-card.selected{border-color:var(--top)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--top) 14%,transparent),0 16px 34px rgba(15,23,42,.1)!important}
.profile-theme-icon{width:58px!important;height:58px!important;border-radius:18px!important;font-size:28px!important;position:relative;overflow:hidden;background:#eef4fb!important}
.profile-theme-name{font-size:14px!important}
.profile-theme-preview{height:24px!important;border-radius:9px!important}
.profile-v2-fields label>span{font-size:13px!important}
.profile-v2-save{padding:16px 20px!important;border-radius:21px!important}

.theme-logo:before,.theme-logo:after,.theme-logo i:before,.theme-logo i:after{content:"";position:absolute;display:block}
.theme-logo-windows95,.theme-logo-windowsxp,.theme-logo-windows2000{background:linear-gradient(145deg,#eff6ff,#dbeafe)!important}
.theme-logo-windows95:before,.theme-logo-windowsxp:before,.theme-logo-windows2000:before{width:15px;height:14px;left:13px;top:13px;background:#f25022;box-shadow:17px 0 #7fba00,0 16px #00a4ef,17px 16px #ffb900;transform:skewY(-7deg)}
.theme-logo-windows95:after{content:"95";right:6px;bottom:5px;color:#008080;font-size:10px;font-weight:900}
.theme-logo-windowsxp:after{content:"XP";right:5px;bottom:4px;color:#245edb;font-size:11px;font-weight:1000;font-family:Arial,sans-serif}
.theme-logo-windows2000:after{content:"2000";right:3px;bottom:4px;color:#3a6ea5;font-size:8px;font-weight:900;font-family:Arial,sans-serif}
.theme-logo-linux{background:linear-gradient(145deg,#111827,#020617)!important}
.theme-logo-linux:before{content:"🐧";position:static;font-size:34px;line-height:1;filter:drop-shadow(0 2px 2px rgba(0,0,0,.45))}
.theme-logo-ocean:before{content:"🌊";position:static;font-size:31px}.theme-logo-emerald:before{content:"◆";position:static;font-size:29px;color:#10b981}.theme-logo-crown:before{content:"♛";position:static;font-size:32px;color:#7c3aed}.theme-logo-moon:before{content:"☾";position:static;font-size:34px;color:#0ea5e9}.theme-logo-gold:before{content:"★";position:static;font-size:31px;color:#f59e0b}.theme-logo-graphite:before{content:"◼";position:static;font-size:27px;color:#475569}.theme-logo-sparkles:before{content:"✦";position:static;font-size:33px;color:#8b5cf6}.theme-logo-settings:before{content:"⚙";position:static;font-size:31px;color:#2563eb}.theme-logo-generic:before{content:"🎨";position:static;font-size:30px}

/* RJ45 activity LEDs: real green + amber/yellow */
.pv-top-dc-led:before{background:#22c55e!important;box-shadow:0 0 4px #22c55e,0 0 10px rgba(34,197,94,.95)!important}
.pv-top-dc-led:after{background:#facc15!important;box-shadow:0 0 4px #facc15,0 0 10px rgba(250,204,21,.95)!important}
@keyframes pvEthernetRx{0%,18%,72%,100%{opacity:.25}20%,45%,74%,86%{opacity:1}}
@keyframes pvEthernetTx{0%,35%,78%,100%{opacity:1}38%,67%{opacity:.22}}

body[data-theme="dark"] .profile-theme-card{background:linear-gradient(145deg,#111827,#0b1220)!important}
@media(max-width:1180px){.profile-theme-cards{grid-template-columns:repeat(2,minmax(180px,1fr))!important}}
@media(max-width:850px){.profile-v2-grid{grid-template-columns:1fr!important}.profile-theme-cards{grid-template-columns:repeat(2,minmax(150px,1fr))!important}}
@media(max-width:590px){.profile-v2-page{padding-inline:4px!important}.profile-v2-hero{padding:21px!important}.profile-v2-card{padding:18px!important}.profile-theme-cards{grid-template-columns:1fr!important}}


/* PalVision conventional page loading overlay */
.pv-page-loader{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,.30);backdrop-filter:blur(3px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .16s ease,visibility .16s ease}
.pv-page-loader.show{opacity:1;visibility:visible;pointer-events:auto}
.pv-page-loader-card{min-width:220px;padding:26px 30px;border-radius:18px;background:var(--card,#fff);color:var(--text,#172033);box-shadow:0 24px 70px rgba(15,23,42,.28);border:1px solid rgba(148,163,184,.32);display:flex;flex-direction:column;align-items:center;gap:13px;text-align:center}
.pv-page-loader-logo{width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,var(--top,#2f93d8),var(--green,#22c55e));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:18px;box-shadow:0 10px 24px rgba(47,147,216,.28)}
.pv-page-loader-spinner{width:36px;height:36px;border-radius:50%;border:4px solid rgba(148,163,184,.28);border-top-color:var(--top,#2f93d8);animation:pvPageSpin .72s linear infinite}
.pv-page-loader-card b{font-size:14px;font-weight:900}
@keyframes pvPageSpin{to{transform:rotate(360deg)}}
@media(max-width:600px){.pv-page-loader-card{min-width:190px;padding:22px 24px}}
/* Operations Center 2026-07-10 */
.operations-hero{display:flex;justify-content:space-between;align-items:center;padding:28px 30px;border-radius:22px;background:linear-gradient(135deg,#082f49,#0f6fa8 58%,#22c55e);color:#fff;margin-bottom:18px;box-shadow:0 20px 45px rgba(8,47,73,.22)}.operations-hero h1{margin:4px 0 6px;font-size:32px}.operations-hero p{margin:0;opacity:.88}.eyebrow{font-size:11px;font-weight:900;letter-spacing:1.4px;opacity:.72}.ops-live{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.22);padding:12px 16px;border-radius:999px}.ops-live i{width:11px;height:11px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 7px rgba(74,222,128,.15);animation:opsPulse 1.3s infinite}@keyframes opsPulse{50%{box-shadow:0 0 0 12px rgba(74,222,128,0)}}.ops-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.ops-kpi{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #e5edf5;border-radius:17px;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.06)}.ops-kpi>span{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:24px;background:#eff6ff}.ops-kpi small{display:block;color:#64748b;font-weight:800}.ops-kpi b{font-size:28px}.ops-kpi.green>span{background:#ecfdf5}.ops-kpi.amber>span{background:#fffbeb}.ops-kpi.red>span{background:#fef2f2}.ops-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.ops-card{border-radius:18px!important}.ops-card.span-2{grid-column:span 2}.ops-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:16px}.ops-title h2{margin:0 0 4px}.ops-title p{margin:0;color:#64748b;font-size:13px}.health-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.health-mini{padding:12px;border:1px solid #e7edf4;border-radius:12px;display:grid;gap:3px}.health-mini i{width:9px;height:9px;border-radius:50%;background:#ef4444}.health-mini.ok i{background:#22c55e}.health-mini small{color:#64748b}.metric-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.metric-row>div{background:#f8fafc;border-radius:12px;padding:12px;text-align:center}.metric-row small{display:block;color:#64748b}.metric-row b{font-size:22px}.engine-status{display:flex;gap:12px;align-items:center;background:#f8fafc;padding:14px;border-radius:14px;margin-bottom:12px}.engine-led{width:16px;height:16px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 6px rgba(34,197,94,.12)}.engine-status small{display:block;color:#64748b;word-break:break-all}.engine-info{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf2f7;margin-bottom:12px}.backup-auto-form{display:grid;gap:10px}.switch-line{display:flex;gap:8px;align-items:center;font-weight:800}.ops-table{overflow:auto}.ops-table table{width:100%;border-collapse:collapse}.ops-table th,.ops-table td{padding:11px;border-bottom:1px solid #edf2f7;text-align:right}.job-state{padding:4px 9px;border-radius:999px;background:#f1f5f9;font-size:12px;font-weight:900}.job-state.success{background:#dcfce7;color:#166534}.job-state.pending{background:#fef3c7;color:#92400e}.job-state.processing{background:#dbeafe;color:#1d4ed8}.job-state.failed{background:#fee2e2;color:#991b1b}.event-stream{display:grid;gap:9px;max-height:440px;overflow:auto}.event-item{display:flex;gap:10px;padding:11px;border-radius:12px;background:#f8fafc}.event-item>span{color:#0ea5e9;font-size:24px;line-height:1}.event-item small{display:block;color:#64748b;margin-top:3px}.empty-state{padding:24px;text-align:center;color:#64748b}.profile-app-shell{max-width:1180px;margin:auto}.profile-app-shell .panel{border-radius:20px!important}
@media(max-width:1050px){.ops-kpis{grid-template-columns:repeat(2,1fr)}.ops-grid{grid-template-columns:1fr}.ops-card.span-2{grid-column:auto}}@media(max-width:640px){.operations-hero{align-items:flex-start;flex-direction:column;gap:16px}.ops-kpis{grid-template-columns:1fr}.health-mini-grid,.metric-row{grid-template-columns:1fr}}


/* === Final stable loader 2026-07-10 === */
.pv-page-loader{background:rgba(2,8,23,.28)!important;backdrop-filter:blur(5px) saturate(115%)!important}
.pv-page-loader-card{min-width:230px!important;padding:24px 30px!important;border-radius:24px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 28px 85px rgba(2,8,23,.28)!important;border:1px solid rgba(255,255,255,.75)!important;gap:10px!important}
.pv-page-loader-logo{width:52px!important;height:52px!important;border-radius:17px!important;background:linear-gradient(145deg,#1788d4,#22c55e)!important;box-shadow:0 12px 30px rgba(23,136,212,.30)!important}
.pv-page-loader-spinner{position:relative;width:42px!important;height:42px!important;border:3px solid rgba(23,136,212,.14)!important;border-top-color:#1788d4!important;border-right-color:#22c55e!important;animation:pvPageSpin .68s linear infinite!important}
.pv-page-loader-card b{font-size:15px!important;color:#0f172a!important}.pv-page-loader-card small{font-size:12px;color:#64748b;font-weight:700}
.pv-loader-dots{display:flex;gap:5px;margin-top:2px}.pv-loader-dots span{width:6px;height:6px;border-radius:50%;background:#1788d4;animation:pvLoaderDot .9s infinite ease-in-out}.pv-loader-dots span:nth-child(2){animation-delay:.13s;background:#22c55e}.pv-loader-dots span:nth-child(3){animation-delay:.26s;background:#f5b700}
@keyframes pvLoaderDot{0%,100%{transform:translateY(0);opacity:.35}50%{transform:translateY(-4px);opacity:1}}
.group-chat-page ~ .pv-page-loader,.page-group_chat .pv-page-loader{display:none!important}
/* App categories manager 2026-07-11 */
.app-categories-page{display:grid;gap:18px}.appcat-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(135deg,#0f172a,#0f67ad 58%,#38bdf8);color:#fff;border-radius:26px;padding:26px 28px;box-shadow:0 20px 50px rgba(15,103,173,.2)}.appcat-hero h2{margin:4px 0 8px;font-size:30px}.appcat-hero p{margin:0;max-width:760px;color:#e0f2fe;line-height:1.9}.appcat-kicker{font-size:11px;letter-spacing:1.8px;font-weight:900;color:#7dd3fc}.appcat-hero-icon{width:84px;height:84px;border-radius:25px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);display:grid;place-items:center;font-size:44px}.appcat-source-card{border-top:5px solid #2563eb!important}.appcat-source-grid{display:grid;grid-template-columns:1.2fr 1.2fr 1fr 1fr;gap:12px;align-items:end}.appcat-source-grid label>span{display:block;font-weight:900;margin-bottom:6px;color:#334155}.appcat-check{min-height:78px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:16px;padding:12px;display:grid;grid-template-columns:auto 1fr;column-gap:9px;align-items:center}.appcat-check input{width:18px;height:18px}.appcat-check span{margin:0!important;color:#1e3a8a!important}.appcat-check small{grid-column:2;color:#64748b;direction:ltr;text-align:left;overflow:hidden;text-overflow:ellipsis}.disabled-field{opacity:.55}.appcat-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.appcat-tabs button{border:1px solid #dbe5f0;background:#fff;border-radius:16px;padding:14px;font:inherit;font-weight:900;color:#334155;cursor:pointer;box-shadow:0 7px 20px rgba(15,23,42,.05)}.appcat-tabs button.active{background:#0f67ad;color:#fff;border-color:#0f67ad;box-shadow:0 10px 28px rgba(15,103,173,.22)}.appcat-tabs b{display:inline-grid;place-items:center;min-width:25px;height:25px;margin-inline-start:6px;border-radius:999px;background:rgba(148,163,184,.18)}.appcat-pane{display:none}.appcat-pane.active{display:block}.appcat-table-wrap{overflow:auto}.appcat-table tbody tr{transition:transform .12s ease,box-shadow .12s ease}.appcat-table tbody tr.dragging{opacity:.45;background:#dbeafe;box-shadow:0 12px 30px rgba(37,99,235,.18)}.drag-handle{border:0;background:#eef2f7;color:#334155;border-radius:10px;padding:7px 10px;font-size:18px;cursor:grab}.drag-handle:active{cursor:grabbing}.order-cell{font-weight:900;color:#2563eb}.status-pill{border:0;border-radius:999px;padding:7px 12px;font-weight:900;cursor:pointer}.status-pill.on{background:#dcfce7;color:#166534}.status-pill.off{background:#fee2e2;color:#991b1b}.btn-small{padding:7px 11px!important;min-height:0!important}.appcat-api-card{border-top:5px solid #10b981!important}.appcat-api-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.appcat-api-grid>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px}.appcat-api-grid small{display:block;color:#64748b;margin-bottom:6px}.appcat-api-grid code{direction:ltr;display:block;word-break:break-all;color:#0f172a;font-weight:800}@media(max-width:980px){.appcat-source-grid{grid-template-columns:1fr 1fr}.appcat-api-grid{grid-template-columns:1fr}.appcat-hero-icon{display:none}}@media(max-width:650px){.appcat-source-grid,.appcat-tabs{grid-template-columns:1fr}.appcat-hero{padding:20px}.appcat-hero h2{font-size:24px}}


/* strict wallet + quick backup UI */
.pv-backup-top{cursor:pointer;border:0}.pv-quick-backup-card{max-width:620px}.backup-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.backup-choice{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;padding:22px 14px;border:2px solid #dbe7f3;border-radius:18px;background:#f8fbff;cursor:pointer;transition:.18s}.backup-choice:hover{transform:translateY(-2px);border-color:#60a5fa;box-shadow:0 12px 28px rgba(37,99,235,.12)}.backup-choice input{position:absolute;top:12px;right:12px}.backup-choice:has(input:checked){border-color:#2563eb;background:#eff6ff}.backup-choice-icon{font-size:34px}.backup-choice b{font-size:16px}.backup-choice small{color:#64748b}.pv-fixed-modal.show{display:flex!important}@media(max-width:650px){.backup-choice-grid{grid-template-columns:1fr}}

/* Pal Vision unified feature-page layout — 2026-07-12 */
.pv-page-section{display:grid;gap:16px;width:100%;max-width:1500px;margin:0 auto 28px}.pv-feature-panel{margin:0!important;padding:20px!important;border-radius:20px!important;overflow:visible}.pv-section-title{display:flex;align-items:center;gap:14px;margin-bottom:18px;min-height:54px}.pv-section-title>div:nth-child(2){flex:1}.pv-section-title h2{margin:0 0 4px;font-size:20px}.pv-section-title p{margin:0;color:var(--muted);font-weight:700}.pv-section-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;font-size:23px;background:linear-gradient(135deg,#eaf5ff,#f3fbff);border:1px solid #dbeafe;box-shadow:0 8px 20px rgba(47,147,216,.09)}
.page-file_manager .main,.page-panel_assistant .main,.page-unified_search .main,.page-trash .main,.page-database_health .main,.page-app_categories .main,.page-operations_center .main,.page-mac_restore .main,.page-reseller_phones .main{padding-top:18px!important}.page-file_manager .main>.page-head,.page-panel_assistant .main>.page-head,.page-unified_search .main>.page-head,.page-trash .main>.page-head,.page-database_health .main>.page-head{margin-top:0!important}
@media(max-width:760px){.pv-feature-panel{padding:14px!important}.pv-section-title{align-items:flex-start;flex-wrap:wrap}.pv-section-title form{width:100%}.pv-section-title form .btn{width:100%}.pv-upload-toolbar,.pv-search-toolbar{flex-direction:column}.pv-upload-toolbar .btn,.pv-search-toolbar .btn{width:100%}}

/* credit request pending summary */
.credit-pending-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:center;padding:16px;border:1px solid #fde68a;background:linear-gradient(135deg,#fffbeb,#fff);border-radius:16px}.credit-pending-summary>div{display:grid;gap:5px}.credit-pending-summary small{color:#64748b;font-weight:800}.credit-pending-summary b{color:#1f2937;word-break:break-word}@media(max-width:800px){.credit-pending-summary{grid-template-columns:1fr}.credit-pending-summary .badge{justify-self:start}}


/* ===== PALVISION WINDOWS XP COMPLETE SHELL ===== */
body[data-theme-preset="windows_xp"]{
  --top:#245edb;--green:#3c9b31;--red:#d83b28;
  font-family:Tahoma,"Segoe UI",Arial,sans-serif!important;
  background:linear-gradient(180deg,#5ba6ef 0,#87c7ff 44%,#46a334 44%,#2f8d2e 100%) fixed!important;
}
body[data-theme-preset="windows_xp"] .topbar{
  background:linear-gradient(180deg,#3d8cf3 0,#1c5fd4 48%,#0b3f9e 100%)!important;
  border-bottom:2px solid #08347e!important;box-shadow:0 2px 5px #0007!important;
}
body[data-theme-preset="windows_xp"] .sidebar{
  background:linear-gradient(180deg,#eef5ff,#d7e6ff)!important;
  border-inline-end:2px solid #1d4fa8!important;box-shadow:2px 0 7px #0004!important;
}
body[data-theme-preset="windows_xp"] .side-title{
  color:#fff!important;background:linear-gradient(90deg,#245edb,#7aa9f7)!important;
  border:1px solid #17469d!important;border-radius:4px!important;padding:6px 9px!important;
}
body[data-theme-preset="windows_xp"] .nav a,
body[data-theme-preset="windows_xp"] .side-action{
  color:#12336a!important;border:1px solid transparent!important;border-radius:3px!important;
}
body[data-theme-preset="windows_xp"] .nav a:hover,
body[data-theme-preset="windows_xp"] .side-action:hover{
  background:#fff7c9!important;border-color:#e3a426!important;color:#111!important;
}
body[data-theme-preset="windows_xp"] .panel,
body[data-theme-preset="windows_xp"] .card,
body[data-theme-preset="windows_xp"] .section-block,
body[data-theme-preset="windows_xp"] .modal-card,
body[data-theme-preset="windows_xp"] .pv-settings-card{
  background:#ece9d8!important;border:1px solid #245edb!important;border-radius:6px!important;
  box-shadow:2px 3px 8px #0005!important;
}
body[data-theme-preset="windows_xp"] .panel h2,
body[data-theme-preset="windows_xp"] .section-title-row h2,
body[data-theme-preset="windows_xp"] .modal-head{
  background:linear-gradient(90deg,#0a4fb8,#3b8cf0)!important;color:#fff!important;
  margin:-1px -1px 12px!important;padding:7px 10px!important;border-radius:5px 5px 0 0!important;
  text-shadow:1px 1px #174080!important;
}
body[data-theme-preset="windows_xp"] .btn{
  border-radius:3px!important;border:1px solid #174a9c!important;
  background:linear-gradient(#fff,#d9e7fb)!important;color:#111!important;
  box-shadow:inset 1px 1px #fff,inset -1px -1px #7f9db9!important;
}
body[data-theme-preset="windows_xp"] .btn-primary{
  background:linear-gradient(#6fba51,#2f8c2c)!important;color:#fff!important;border-color:#236d22!important;
}
body[data-theme-preset="windows_xp"] .btn-danger{background:linear-gradient(#f57f71,#c82c1e)!important;color:#fff!important;border-color:#8f1b12!important}
body[data-theme-preset="windows_xp"] .input,
body[data-theme-preset="windows_xp"] input,
body[data-theme-preset="windows_xp"] select,
body[data-theme-preset="windows_xp"] textarea{
  border:2px inset #fff!important;border-radius:1px!important;background:#fff!important;color:#111!important;
}
body[data-theme-preset="windows_xp"] table{background:#fff!important;border:1px solid #7f9db9!important;border-radius:0!important}
body[data-theme-preset="windows_xp"] th{background:linear-gradient(#f7f7f7,#d5d5d5)!important;color:#111!important;border-color:#aaa!important}
body[data-theme-preset="windows_xp"] td{border-color:#d5d5d5!important}
body[data-theme-preset="windows_xp"] .badge,
body[data-theme-preset="windows_xp"] .status{border-radius:3px!important}
body[data-theme-preset="windows_xp"] .main-content:after{
  content:"PALVISION XP";position:fixed;bottom:4px;left:8px;z-index:999;color:#fff;font-weight:700;
  text-shadow:1px 1px #164f17;pointer-events:none;font-size:12px;
}

[data-live-credits]{display:inline-block;transition:transform .25s ease,filter .25s ease}.pv-credit-flash{animation:pvCreditLive .7s ease}@keyframes pvCreditLive{0%{transform:scale(1)}35%{transform:scale(1.22);filter:brightness(1.35)}100%{transform:scale(1)}}


/* PALVISION topbar alignment hotfix 2026-07-12 */
@media (min-width:1051px){
  .topbar{direction:rtl!important;justify-content:flex-start!important;}
  .topbar .top-actions{order:1!important;margin:0!important;flex:0 0 auto!important;justify-content:flex-start!important;}
  .topbar .pv-top-dc{order:2!important;flex:0 0 auto!important;}
  .topbar .top-search{order:3!important;flex:1 1 auto!important;justify-content:center!important;}
  .topbar .pv-top-browser-controls{order:4!important;flex:0 0 auto!important;}
  .topbar .brand{order:5!important;margin-right:auto!important;margin-left:0!important;flex:0 0 auto!important;}
  .topbar .mobile-menu{order:6!important;}
}

/* Global loader reliability */
.action-loader:not(.show),.pv-page-loader:not(.show){pointer-events:none!important;}
.action-loader.show,.pv-page-loader.show{pointer-events:auto;}

/* PALVISION: توسيط محتوى جميع الجداول */
.table th,.table td,table th,table td{text-align:center!important;vertical-align:middle!important}
.table th *, .table td *, table th *, table td *{text-align:center}


/* ===== v12: centered professional "new code" state ===== */
.active-table td,.active-table th,.table td,.table th{ text-align:center!important;vertical-align:middle!important; }
.mac-cell{display:flex!important;align-items:center!important;justify-content:center!important;width:100%;gap:7px}
.mac-pill.new{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:108px!important;min-height:34px!important;padding:7px 16px!important;
  margin:auto!important;border:1px solid rgba(37,99,235,.22)!important;border-radius:999px!important;
  background:linear-gradient(135deg,#eff6ff,#eef2ff)!important;color:#1d4ed8!important;
  font-weight:900!important;font-size:12.5px!important;line-height:1!important;
  box-shadow:0 6px 16px rgba(37,99,235,.10)!important;white-space:nowrap!important;
}
.mac-pill.new:before{content:"+";display:inline-grid;place-items:center;width:19px;height:19px;margin-left:7px;border-radius:50%;background:#2563eb;color:#fff;font-size:15px;font-weight:900;line-height:1}
.mac-pill.new:hover{transform:translateY(-1px);box-shadow:0 9px 20px rgba(37,99,235,.16)!important}
body[data-theme="dark"] .mac-pill.new{background:linear-gradient(135deg,#172554,#1e293b)!important;color:#bfdbfe!important;border-color:#3b82f6!important}

/* ===== v13: strict codes table center alignment ===== */
#usersBody,
#usersBody tr,
#usersBody td,
.active-table thead th,
.full-codes-wrap table th,
.full-codes-wrap table td,
.users-panel table th,
.users-panel table td{
  text-align:center!important;
  vertical-align:middle!important;
}
#usersBody td > *,
.active-table thead th > *,
.full-codes-wrap table td > *,
.users-panel table td > *{
  margin-left:auto!important;
  margin-right:auto!important;
}
#usersBody .status-stack,
#usersBody .code-cell,
#usersBody .mac-cell,
#usersBody .date-stack,
#usersBody .row-actions,
#usersBody .reseller-cell,
#usersBody .actions,
.full-codes-wrap .status-stack,
.full-codes-wrap .code-cell,
.full-codes-wrap .mac-cell,
.full-codes-wrap .date-stack,
.full-codes-wrap .row-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  width:100%!important;
}
#usersBody .status-stack,
#usersBody .date-stack{
  flex-direction:column!important;
}
#usersBody .copy-code,
#usersBody .badge,
#usersBody .id-pill,
#usersBody .mac-pill,
#usersBody .note-pill,
#usersBody .reseller-chip,
#usersBody button,
#usersBody a{
  text-align:center!important;
  justify-content:center!important;
}
#usersBody .note-pill{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
#usersBody .row-actions{
  flex-wrap:wrap!important;
  gap:6px!important;
}
#usersBody .mac-pill.new{
  margin-inline:auto!important;
}

/* مؤشر اتصال بسيط وثابت بدون نص متحرك */
.health-indicator{width:18px;height:18px;border-radius:50%;display:inline-grid;place-items:center;flex:0 0 18px;border:2px solid rgba(255,255,255,.78);box-shadow:0 0 0 4px rgba(255,255,255,.12);vertical-align:middle}
.health-indicator i{width:8px;height:8px;border-radius:50%;display:block;background:currentColor}
.health-indicator.ok{color:#22c55e;background:rgba(34,197,94,.18);box-shadow:0 0 0 4px rgba(34,197,94,.16),0 0 12px rgba(34,197,94,.65)}
.health-indicator.down{color:#ef4444;background:rgba(239,68,68,.18);box-shadow:0 0 0 4px rgba(239,68,68,.16),0 0 12px rgba(239,68,68,.58)}
@media(max-width:640px){.health-indicator{display:inline-grid}}

/* النسخة 16: توسيط خلية كود جديد بالكامل وتقليل إعادة الرسم */
.active-table tbody td{position:relative;text-align:center!important;vertical-align:middle!important}
.mac-cell{width:100%;min-height:38px;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px;margin:0 auto;text-align:center}
.mac-cell-new{direction:rtl}
.mac-pill.new{display:inline-flex!important;align-items:center;justify-content:center;margin:0 auto;min-width:92px;padding:7px 14px;border-radius:9px;font-weight:900;line-height:1.2;text-align:center;white-space:nowrap;box-shadow:0 2px 7px rgba(67,56,202,.10)}
.active-table{contain:layout style}
.active-table tbody tr{content-visibility:auto;contain-intrinsic-size:52px}


/* === Final universal responsive pass: desktop + mobile === */
html,body{max-width:100%;overflow-x:hidden}
img,svg,video,canvas{max-width:100%;height:auto}
button,.btn,input,select,textarea{max-width:100%}
.toolbar,.form-actions,.modal-actions,.page-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.modal-card,.modal-box,.modal-content,.pv-dialog-card{width:min(760px,calc(100vw - 28px))!important;box-sizing:border-box!important}
.modal-body,.modal-head{box-sizing:border-box!important}
.table-responsive,.table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table{min-width:680px}
.grid2,.two{min-width:0}
.grid2>* , .two>*{min-width:0}
@media(max-width:760px){
  .main{padding:12px!important}
  .page-head{align-items:flex-start!important;gap:10px!important;flex-wrap:wrap!important}
  .page-head h1{font-size:20px!important}
  .toolbar,.form-actions,.modal-actions,.page-actions{width:100%}
  .toolbar .btn,.form-actions .btn,.modal-actions .btn,.page-actions .btn{flex:1 1 145px;min-height:44px}
  .modal,.pv-dialog,.modal-lite{padding:54px 10px 18px!important;align-items:flex-start!important}
  .modal-card,.modal-box,.modal-content,.pv-dialog-card{width:100%!important;max-height:calc(100dvh - 72px)!important;border-radius:14px!important}
  .modal-body{padding:14px!important}
  .input,select.input,textarea.input{width:100%!important;font-size:16px!important}
  .dashboard-grid,.quick-grid,.two,.grid2{grid-template-columns:1fr!important}
  .topbar{padding:0 8px!important;gap:6px!important}
  .brand{font-size:17px!important;gap:6px!important}
  .top-actions{margin-inline-start:auto!important}
}
@media(min-width:761px) and (max-width:1100px){
  .dashboard-grid,.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
body[data-theme-preset]{--top:#1565a8;--side:#17324d;--bg:#f3f7fb;--card:#fff;--line:#dbe8f4}
/* Support workspace: side ticket window + conversation window */
.support-workspace{max-width:1280px;margin:0 auto;display:grid;gap:16px}.support-topbar{display:flex;justify-content:space-between;align-items:center;gap:18px;background:linear-gradient(135deg,#eff6ff,#fff)!important;border:1px solid #dbeafe!important}.support-topbar h2{margin:10px 0 6px}.support-topbar p{margin:0;color:#64748b;font-weight:700}.support-layout{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:16px;min-height:620px}.support-side,.support-main{padding:0!important;overflow:hidden}.support-side{display:flex;flex-direction:column}.support-side-head{padding:16px;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center;gap:10px}.support-side-head h3{margin:0}.support-side-head small{color:#64748b;font-weight:800}.support-new-toggle{white-space:nowrap}.support-new-form{padding:15px;border-bottom:1px solid #e2e8f0;background:#f8fafc;display:grid;gap:9px}.support-new-form[hidden]{display:none}.support-new-form label{font-weight:900;font-size:13px}.support-ticket-list{padding:10px;display:grid;gap:8px;overflow:auto;max-height:690px}.support-ticket-link{display:block;text-decoration:none;color:inherit;padding:12px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;transition:.18s}.support-ticket-link:hover{transform:translateY(-1px);border-color:#93c5fd;background:#f8fbff}.support-ticket-link.active{border-color:#2563eb;background:#eff6ff;box-shadow:inset 4px 0 0 #2563eb}.support-ticket-link-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.support-ticket-link-top b{font-size:13px;line-height:1.5}.support-ticket-link-top span,.support-status{border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;white-space:nowrap;background:#dbeafe;color:#1d4ed8}.support-ticket-link.answered span,.support-status.answered{background:#dcfce7;color:#15803d}.support-ticket-link.closed span,.support-status.closed{background:#e2e8f0;color:#475569}.support-ticket-link p{margin:8px 0 5px;color:#64748b;font-size:12px;line-height:1.6}.support-ticket-link small{color:#94a3b8;font-size:11px}.support-empty-side{text-align:center;padding:30px 12px;color:#64748b;font-weight:800;line-height:1.8}.support-main{display:flex;flex-direction:column;background:#fff}.support-conversation-head{padding:18px 20px;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:flex-start;gap:14px;background:linear-gradient(180deg,#fff,#f8fafc)}.support-conversation-head h3{margin:5px 0;font-size:20px}.support-conversation-head small{color:#64748b;font-weight:800}.support-ticket-number{color:#2563eb;font-weight:900;font-size:12px}.support-thread-window{flex:1;min-height:390px;max-height:560px;overflow:auto;padding:20px!important;border-radius:0!important;background:#f8fafc!important}.support-conversation-actions{border-top:1px solid #e2e8f0;padding:14px;background:#fff;display:flex;align-items:flex-end;gap:10px}.support-conversation-actions .support-reply-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;flex:1;min-width:0}.support-conversation-actions textarea{resize:vertical;min-height:50px;max-height:150px}.support-close-form{margin:0}.support-welcome{margin:auto;text-align:center;padding:35px;max-width:480px}.support-welcome-icon{font-size:54px}.support-welcome h3{font-size:23px;margin:12px 0 7px}.support-welcome p{color:#64748b;line-height:1.8;font-weight:700}.support-welcome .btn{margin-top:10px}.support-msg.from-user{justify-self:end;margin-left:0!important;margin-right:auto!important}.support-msg.from-admin{justify-self:start;margin-right:0!important;margin-left:auto!important}
@media(max-width:900px){.support-layout{grid-template-columns:1fr;min-height:0}.support-side{max-height:none}.support-ticket-list{max-height:340px}.support-main{min-height:520px}.support-topbar{align-items:stretch}.support-stats{flex-direction:row!important}.support-stats div{flex:1}.support-conversation-actions{align-items:stretch;flex-direction:column}.support-conversation-actions .support-reply-form{grid-template-columns:1fr}.support-close-form,.support-close-form .btn{width:100%}}
@media(max-width:560px){.support-topbar{padding:15px!important}.support-topbar h2{font-size:20px}.support-stats{display:grid;grid-template-columns:1fr 1fr}.support-side-head{align-items:stretch;flex-direction:column}.support-new-toggle{width:100%}.support-conversation-head{padding:14px;flex-direction:column}.support-thread-window{padding:12px!important;min-height:330px}.support-msg{max-width:92%!important}.support-conversation-actions{padding:10px}.support-ticket-link-top{flex-direction:column}.support-ticket-link-top span{align-self:flex-start}}


/* ===== PALVISION final global-services responsive + MAC restore ===== */
body[data-theme-preset="kreyon"]{--top:#1565a8;--side:#17324d;--bg:#f3f7fb;--card:#fff;--line:#dbe8f4}
.pv-fixed-theme{display:flex;align-items:center;background:#eef7ff!important;color:#0f5f9f!important;font-weight:900;border-color:#b8daf4!important}
.mac-restore-page{max-width:1180px;margin-inline:auto}
.mac-page-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.mac-reset-top{margin:18px 0;padding:18px;border:1px solid #b9dcf6;border-radius:16px;background:linear-gradient(135deg,#eef8ff,#fff);box-shadow:0 10px 28px rgba(21,101,168,.09)}
.mac-reset-title{display:flex;align-items:center;gap:12px;margin-bottom:13px}.mac-reset-title>span{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#1565a8;color:#fff;font-size:25px;font-weight:900}.mac-reset-title b{display:block;font-size:17px}.mac-reset-title small{display:block;color:#64748b;margin-top:3px;font-weight:700}
.mac-reset-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.mac-reset-main-btn{min-height:46px;min-width:170px}
.mac-operation-message{display:flex;align-items:flex-start;gap:12px;padding:16px 18px;border-radius:14px;margin:16px 0;border:1px solid}.mac-operation-message.success{background:#ecfdf3;border-color:#86efac;color:#166534}.mac-operation-message.error{background:#fff1f2;border-color:#fda4af;color:#9f1239}.mac-message-icon{width:34px;height:34px;flex:0 0 34px;border-radius:50%;display:grid;place-items:center;background:currentColor;color:#fff;font-size:20px;font-weight:900}.mac-operation-message.success .mac-message-icon{background:#16a34a}.mac-operation-message.error .mac-message-icon{background:#e11d48}.mac-operation-message b{font-size:16px}.mac-operation-message p{margin:4px 0 0;font-weight:700;line-height:1.7}
.mac-result-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px}.mac-result-grid span{background:#fff;border:1px solid rgba(22,101,52,.18);padding:10px;border-radius:10px}.mac-result-grid small,.mac-result-grid strong{display:block}.mac-result-grid small{color:#64748b;font-weight:700}.mac-result-grid strong{margin-top:4px;overflow-wrap:anywhere}
.mac-tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.mac-tool-card,.mac-help-card{margin:0!important}.mac-tool-icon{width:45px;height:45px;border-radius:13px;display:grid;place-items:center;background:#e8f4fd;color:#1565a8;font-size:24px;font-weight:900}.mac-tool-card h3,.mac-help-card h3{margin:12px 0 6px}.mac-tool-card .btn{margin-top:10px}.mac-help-card ul{margin:12px 0 0;padding-inline-start:20px;line-height:2;font-weight:700;color:#475569}
@media(max-width:900px){.mac-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mac-tools-grid{grid-template-columns:1fr}}
@media(max-width:640px){
 .shell{padding-top:56px}.main{margin:0!important;width:100%!important;padding:10px!important}.sidebar{width:min(88vw,310px)!important;transform:translateX(-105%)}.sidebar.open,.sidebar.show{transform:translateX(0)}
 .panel{padding:14px!important;border-radius:12px!important}.section-head{align-items:flex-start!important}.mac-page-head .id-pill{align-self:flex-start}
 .mac-reset-top{padding:13px;margin:12px 0}.mac-reset-title{align-items:flex-start}.mac-reset-title>span{width:38px;height:38px;flex-basis:38px}.mac-reset-title b{font-size:15px}.mac-reset-controls{grid-template-columns:1fr}.mac-reset-main-btn{width:100%;min-width:0;order:-1}.mac-result-grid{grid-template-columns:1fr}.mac-operation-message{padding:13px}.mac-tools-grid{gap:11px}
 .topbar{height:56px}.topbar .pv-top-dc,.topbar .mini-top-info,.topbar .top-user-chip span:not(.avatar),.topbar .pv-top-browser-controls{display:none!important}.topbar .brand{min-width:0!important;margin:0!important}.top-actions{gap:5px!important}.top-link,.icon-btn{width:34px!important;height:34px!important}
 table{font-size:12px}.table-responsive,.table-wrap,.full-codes-wrap{overflow-x:auto!important}.modal-card{margin:auto!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important}.modal-actions .btn{width:100%!important}
}

/* === PALVISION GLOBAL SERVICES FINAL COLOR LOCK 2026-07-26 ===
   Keep the application shell readable on desktop and mobile regardless of old theme rules. */
html body[data-theme-preset="kreyon"]{
  --top:#0b67ad!important;
  --side:#073f6d!important;
  --side2:#0b69aa!important;
  --bg:#f3f7fb!important;
  --card:#ffffff!important;
  --line:#dbe8f4!important;
}
html body[data-theme-preset="kreyon"] .topbar{
  background:linear-gradient(135deg,#073b73 0%,#0b63b5 48%,#0b82dc 100%)!important;
  color:#fff!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.18)!important;
  box-shadow:0 8px 24px rgba(2,32,71,.24)!important;
}
html body[data-theme-preset="kreyon"] .topbar .brand,
html body[data-theme-preset="kreyon"] .topbar .brand span,
html body[data-theme-preset="kreyon"] .topbar .top-link,
html body[data-theme-preset="kreyon"] .topbar .icon-btn,
html body[data-theme-preset="kreyon"] .topbar .pv-mini-nav,
html body[data-theme-preset="kreyon"] .topbar .top-user-chip,
html body[data-theme-preset="kreyon"] .topbar .user-chip,
html body[data-theme-preset="kreyon"] .topbar .mini-top-info,
html body[data-theme-preset="kreyon"] .topbar .health-pill{
  color:#fff!important;
}
html body[data-theme-preset="kreyon"] .topbar .top-link,
html body[data-theme-preset="kreyon"] .topbar .icon-btn,
html body[data-theme-preset="kreyon"] .topbar .pv-mini-nav,
html body[data-theme-preset="kreyon"] .topbar .top-user-chip,
html body[data-theme-preset="kreyon"] .topbar .user-chip{
  background:rgba(255,255,255,.14)!important;
  border-color:rgba(255,255,255,.24)!important;
}
html body[data-theme-preset="kreyon"] .topbar .top-link:hover,
html body[data-theme-preset="kreyon"] .topbar .icon-btn:hover,
html body[data-theme-preset="kreyon"] .topbar .pv-mini-nav:hover{
  background:rgba(255,255,255,.25)!important;
}
html body[data-theme-preset="kreyon"] .topbar .avatar,
html body[data-theme-preset="kreyon"] .topbar .brand-mark{
  background:#fff!important;
  color:#0b67ad!important;
}
html body[data-theme-preset="kreyon"] .topbar .top-search input{
  background:rgba(255,255,255,.96)!important;
  color:#0f172a!important;
  border-color:rgba(255,255,255,.35)!important;
}
html body[data-theme-preset="kreyon"] .topbar .top-search input::placeholder{color:#64748b!important}
html body[data-theme-preset="kreyon"] .sidebar{
  background:linear-gradient(180deg,#073f6d 0%,#0a659f 54%,#063456 100%)!important;
  color:#fff!important;
  border:0!important;
  box-shadow:8px 0 28px rgba(15,23,42,.22)!important;
}
html body[data-theme-preset="kreyon"] .sidebar .side-title{
  color:rgba(255,255,255,.68)!important;
  background:transparent!important;
  border-color:rgba(255,255,255,.12)!important;
}
html body[data-theme-preset="kreyon"] .sidebar .nav a,
html body[data-theme-preset="kreyon"] .sidebar .nav .side-action,
html body[data-theme-preset="kreyon"] .sidebar .side-action{
  color:rgba(255,255,255,.92)!important;
  background:transparent!important;
  border-color:transparent!important;
}
html body[data-theme-preset="kreyon"] .sidebar .nav a .ico,
html body[data-theme-preset="kreyon"] .sidebar .nav .side-action .ico,
html body[data-theme-preset="kreyon"] .sidebar .side-action .ico{
  color:#fff!important;
}
html body[data-theme-preset="kreyon"] .sidebar .nav a:hover,
html body[data-theme-preset="kreyon"] .sidebar .nav a.active,
html body[data-theme-preset="kreyon"] .sidebar .nav .side-action:hover,
html body[data-theme-preset="kreyon"] .sidebar .side-action:hover{
  background:rgba(255,255,255,.16)!important;
  color:#fff!important;
  box-shadow:inset 3px 0 0 rgba(255,255,255,.9)!important;
}
html body[data-theme-preset="kreyon"] .sidebar .side-badge{
  background:#fff!important;
  color:#075a98!important;
}
html body[data-theme-preset="kreyon"] .pv-sidebar-shrink{
  background:rgba(255,255,255,.16)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.22)!important;
}
@media(max-width:1050px){
html body[data-theme-preset="kreyon"] .sidebar{
    box-shadow:12px 0 38px rgba(2,32,71,.34)!important;
  }
}
.mobile-nav-expand{display:none}
.mobile-lite-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;padding:10px 12px;border-radius:12px;background:#e8f5ff;color:#075985;font-weight:800}.mobile-lite-banner a{padding:6px 10px;border-radius:8px;background:#fff;color:#075985}
@media(max-width:700px){
 .mobile-nav-expand{display:flex!important;align-items:center;gap:10px;width:calc(100% - 18px);margin:4px 9px 9px;padding:10px 14px;border:1px solid rgba(255,255,255,.22);border-radius:10px;background:rgba(255,255,255,.12);color:inherit;font:800 13px Cairo;cursor:pointer}
 body:not(.mobile-menu-full) .sidebar a[href*="#forum"],
 body:not(.mobile-menu-full) .sidebar a[href="group_chat.php"],
 body:not(.mobile-menu-full) .sidebar a[href="games.php"],
 body:not(.mobile-menu-full) .sidebar a[href*="#activity"],
 body:not(.mobile-menu-full) .sidebar a[href="reports.php"],
 body:not(.mobile-menu-full) .sidebar a[href="store_licenses.php"],
 body:not(.mobile-menu-full) .sidebar a[href="live_activity.php"],
 body:not(.mobile-menu-full) .sidebar a[href="mac_center.php"],
 body:not(.mobile-menu-full) .sidebar a[href="code_track.php"],
 body:not(.mobile-menu-full) .sidebar a[href="smart_alerts.php"],
 body:not(.mobile-menu-full) .sidebar a[href="low_credit_alerts.php"],
 body:not(.mobile-menu-full) .sidebar a[href="desktop.php"],
 body:not(.mobile-menu-full) .sidebar a[href="script_database.php"],
 body:not(.mobile-menu-full) .sidebar a[href="performance_center.php"],
 body:not(.mobile-menu-full) .sidebar a[href="admin_access.php"],
 body:not(.mobile-menu-full) .sidebar a[href="admin_password_resets.php"],
 body:not(.mobile-menu-full) .sidebar a[href="permissions.php"],
 body:not(.mobile-menu-full) .sidebar a[href="reseller_profiles.php"],
 body:not(.mobile-menu-full) .sidebar a[href="reseller_phones.php"],
 body:not(.mobile-menu-full) .sidebar a[href="sessions.php"],
 body:not(.mobile-menu-full) .sidebar [data-open-modal="modalTrial"],
 body:not(.mobile-menu-full) .sidebar [data-open-modal="modalMulti"],
 body:not(.mobile-menu-full) .sidebar .side-title,
 body:not(.mobile-menu-full) .sidebar .pv-brand-rights{display:none!important}
 .page-dashboard #forum,.page-dashboard #security,.page-dashboard .admin-resource-mini,.page-dashboard .report-shortcuts,.page-dashboard #notifications,.page-dashboard #support,.page-dashboard #activity{display:none!important}
 .page-dashboard .global-dc-hero{padding:12px!important}.page-dashboard .dc-live,.page-dashboard .cache-status{display:none!important}.page-dashboard .dc-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.page-dashboard #home{display:none!important}
 .page-dashboard .users-panel .excel-view-toggle,.page-dashboard .users-panel .excel-btn,.page-dashboard .users-panel .small-muted,.page-dashboard .users-panel #statusFilter,.page-dashboard .users-panel #resellerFilter{display:none!important}
}

/* PALVISION typography policy: Cairo is the single font across every panel and auth surface. */
html body,html body *,html body *::before,html body *::after{
  font-family:"Cairo",Tahoma,Arial,sans-serif!important;
}
/* v10.31: visible role-aware MAC reset shortcut and dark-surface contrast */
.topbar .pv-mac-top{width:auto!important;min-width:132px!important;height:38px!important;padding:0 13px!important;margin:0 8px 0 0!important;flex:0 0 auto!important;gap:7px!important;border-radius:12px!important;background:linear-gradient(135deg,#f97316,#ea580c)!important;border:1px solid rgba(255,255,255,.42)!important;color:#fff!important;box-shadow:0 7px 18px rgba(154,52,18,.28)!important;text-decoration:none!important;white-space:nowrap!important}
.topbar .pv-mac-top.role-admin{background:linear-gradient(135deg,#7c3aed,#5b21b6)!important;box-shadow:0 7px 18px rgba(91,33,182,.3)!important}
.topbar .pv-mac-top-icon{font-size:20px!important;line-height:1!important}.topbar .pv-mac-top-label{display:inline!important;color:#fff!important;font-size:12px!important;font-weight:900!important}
.topbar .pv-mac-top:hover{filter:brightness(1.08);transform:translateY(-1px)}
@media(max-width:760px){.topbar .pv-mac-top{min-width:42px!important;width:42px!important;padding:0!important;margin:0 3px 0 0!important}.topbar .pv-mac-top-label{display:none!important}}

/* Text placed on intentionally dark or saturated store/dashboard surfaces stays readable. */
.store-hero,.store-command-hero,.commerce-hero,.commerce-operations>header,.operations-hero,.appcat-hero,.profile-v2-hero{color:#fff!important}
.store-hero h1,.store-hero h2,.store-hero h3,.store-hero p,.store-hero span,.store-hero small,.store-command-hero h1,.store-command-hero h2,.store-command-hero h3,.store-command-hero p,.store-command-hero span,.store-command-hero small,.commerce-hero h1,.commerce-hero h2,.commerce-hero h3,.commerce-hero p,.commerce-hero span,.commerce-hero small,.commerce-operations>header h1,.commerce-operations>header h2,.commerce-operations>header h3,.commerce-operations>header p,.commerce-operations>header span,.commerce-operations>header small,.operations-hero h1,.operations-hero h2,.operations-hero h3,.operations-hero p,.operations-hero span,.operations-hero small,.appcat-hero h1,.appcat-hero h2,.appcat-hero h3,.appcat-hero p,.appcat-hero span,.appcat-hero small,.profile-v2-hero h1,.profile-v2-hero h2,.profile-v2-hero h3,.profile-v2-hero p,.profile-v2-hero span,.profile-v2-hero small{color:#fff!important}
body[data-theme="dark"] .store-panel h1,body[data-theme="dark"] .store-panel h2,body[data-theme="dark"] .store-panel h3,body[data-theme="dark"] .store-panel h4,body[data-theme="dark"] .store-panel h5,body[data-theme="dark"] .store-panel b,body[data-theme="dark"] .store-panel strong,body[data-theme="dark"] .store-panel label{color:#f8fafc}
.dc-quick-links .dashboard-mac-reset{background:linear-gradient(135deg,#f97316,#ea580c)!important;color:#fff!important;border-color:rgba(255,255,255,.32)!important;box-shadow:0 8px 20px rgba(154,52,18,.22)!important}
.sidebar .side-mac-reset{background:linear-gradient(135deg,rgba(249,115,22,.22),rgba(234,88,12,.13))!important;border:1px solid rgba(251,146,60,.34)!important;color:#fff!important}
.sidebar .side-mac-reset:hover,.sidebar .side-mac-reset.active{background:linear-gradient(135deg,#f97316,#ea580c)!important;color:#fff!important}
.sidebar .side-badge-orders{background:#f97316!important}.sidebar .side-badge-warning{background:#f59e0b!important;color:#111827!important}
/* PALVISION feature pack: global search, customizable shortcuts and fast mode */
.pv-global-search{position:relative;display:flex;align-items:center;gap:8px;min-width:260px;max-width:430px;flex:1;margin-inline:12px}
.pv-global-search>input{width:100%;height:42px;border:1px solid var(--line);border-radius:13px;background:color-mix(in srgb,var(--card) 92%,transparent);color:var(--text);padding:0 38px 0 58px;font-family:inherit;outline:0}
.pv-global-search>input:focus{border-color:var(--top);box-shadow:0 0 0 3px color-mix(in srgb,var(--top) 18%,transparent)}
.pv-search-icon{position:absolute;inset-inline-start:13px;z-index:1;color:var(--muted);font-size:20px}
.pv-global-search>kbd{position:absolute;inset-inline-end:9px;border:1px solid var(--line);border-radius:7px;padding:2px 6px;background:var(--soft);color:var(--muted);font:11px inherit}
.pv-global-search .search-result{position:absolute;z-index:1200;inset-inline:0;top:calc(100% + 9px);display:none;max-height:min(480px,70vh);overflow:auto;padding:8px;border:1px solid var(--line);border-radius:16px;background:var(--card);box-shadow:0 24px 60px rgba(0,0,0,.22)}
.pv-global-search .search-result.show{display:block}
.global-search-item{display:flex;align-items:center;gap:11px;padding:11px;border-radius:11px;color:var(--text);text-decoration:none}
.global-search-item:hover,.global-search-item:focus{background:var(--soft)}
.global-search-item>i{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:color-mix(in srgb,var(--top) 12%,var(--card));font-style:normal}
.global-search-item>span{display:flex;flex:1;min-width:0;flex-direction:column}.global-search-item small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-search-item em{color:var(--top);font-size:12px;font-style:normal}
.search-empty{padding:18px;text-align:center;color:var(--muted)}
.profile-shortcut-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.profile-shortcut-choices label{display:flex;align-items:center;gap:8px;padding:11px;border:1px solid var(--line);border-radius:11px;background:var(--soft)}
.pv-fast-mode *{scroll-behavior:auto!important}.pv-fast-mode .panel,.pv-fast-mode .card{animation-duration:.16s!important}.pv-bfcache-restored{opacity:.999}
.db-performance-panel{margin-block:18px}.db-perf-list{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px}.db-perf-list>div{border:1px solid var(--line);border-radius:12px;background:var(--soft);padding:12px}
.order-head-actions button{border:0;border-radius:9px;padding:9px 12px;background:var(--soft);color:var(--text);font:inherit;cursor:pointer}.order-head-actions .whatsapp-order-action{background:#138a4b;color:#fff}
@media(max-width:980px){.pv-global-search{min-width:180px}.pv-top-dc{display:none}.db-perf-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.pv-global-search{order:4;max-width:none;min-width:100%;margin:7px 0 0}.pv-global-search>kbd{display:none}.topbar{flex-wrap:wrap}.db-perf-list{grid-template-columns:1fr}.pv-global-search .search-result{position:fixed;top:112px;right:10px;left:10px}}
@media(max-width:1050px){
 body:not(.menu-open) .sidebar{transform:translateX(-105%)!important;pointer-events:none}
 body.menu-open .sidebar{transform:translateX(0)!important;pointer-events:auto}
 body:not(.menu-open) .pv-menu-backdrop{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
}
