:root{font-family:Tahoma,Arial,sans-serif;color:#172c32;background:#f3f6f7;font-size:16px;line-height:1.7}*{box-sizing:border-box}body{margin:0}header{background:#102f39;color:white;padding:18px max(20px,calc((100vw - 1120px)/2));display:flex;justify-content:space-between;align-items:center;gap:15px}header span{font-size:12px;color:#b6d8dd}.brand{display:flex;align-items:center;gap:12px;color:white;font-weight:bold;text-decoration:none}.brand img{width:42px;height:42px;border-radius:12px}main{max-width:1120px;margin:auto;padding:30px 18px}h1{font-size:28px;line-height:1.4}h2{font-size:21px}h3{margin-top:0}p{color:#506971}.card{background:white;border:1px solid #dae4e6;border-radius:18px;padding:24px;margin-bottom:20px;box-shadow:0 7px 25px #183a4406}.hero{background:linear-gradient(120deg,#103d49,#176f72);color:white;padding:36px;border-radius:22px;margin-bottom:24px}.hero p{color:#d3e9e9}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.price{font-size:36px;font-weight:bold;color:#0c7972}button,.button{display:inline-block;border:0;background:#087b73;color:white;border-radius:10px;padding:12px 18px;text-align:center;font:inherit;cursor:pointer;text-decoration:none}button:hover,.button:hover{background:#065e58}button:disabled{opacity:.5;cursor:wait}.secondary{background:#eaf1f2;color:#24434c}.danger{background:#a53442}label{display:block;color:#435e67;font-size:14px;margin:12px 0 5px}input,select,textarea{width:100%;padding:12px;border:1px solid #c9d7db;border-radius:9px;font:inherit;background:white;color:#17323a}input:focus,textarea:focus,select:focus{outline:2px solid #4eb4ac}textarea{min-height:100px}form button{margin-top:18px}.auth{max-width:480px;margin:30px auto}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.row.spread{justify-content:space-between}.tabs{display:flex;gap:8px;overflow:auto;margin-bottom:20px;padding-bottom:5px}.tabs button{white-space:nowrap}.tabs .selected{background:#123946}.small{font-size:13px;color:#617780}.badge{display:inline-block;padding:4px 12px;border-radius:20px;font-size:13px;background:#eef2f3}.approved,.active{background:#d9f6e6;color:#166d44}.review,.pending{background:#fff2d5;color:#885f14}.blocked,.rejected,.expired{background:#ffe4e7;color:#9c3043}.code{direction:ltr;overflow-wrap:anywhere;background:#f2f6f7;border-radius:8px;padding:14px;user-select:all}.qr{max-width:260px;width:100%;border-radius:16px;display:block;margin:20px auto}.icon{width:48px;height:48px;border-radius:10px;object-fit:contain}.notice,#message{background:#def3f0;padding:14px 20px;border-radius:10px;border:1px solid #9ed6cd}#message{position:sticky;top:8px;z-index:2}.error{background:#ffe7e7!important;color:#912f38}details{margin:16px 0}summary{cursor:pointer;font-weight:bold}table{width:100%;border-collapse:collapse}td,th{text-align:right;border-bottom:1px solid #e2e9eb;padding:12px}.table{overflow:auto}.metric{font-size:30px;color:#087b73}footer{text-align:center;color:#768b93;padding:30px}.empty{text-align:center;padding:32px;color:#74868d}a{color:#087b73}hr{border:0;border-top:1px solid #e1e9eb;margin:24px 0}[hidden]{display:none!important}@media(max-width:600px){header{padding:14px}header span{display:none}.hero{padding:24px}main{padding:18px 12px}.card{padding:18px}.grid{grid-template-columns:1fr}h1{font-size:24px}button,.button{font-size:14px}}



/* shamcash-customer-design-v2 */
body[data-mode="customer"]{--ink:#123b40;--muted:#657f82;--green:#087e70;--line:#dde9e7;background:#f4f8f7;color:var(--ink);font-family:Tahoma,Arial,sans-serif;line-height:1.8}
body[data-mode="customer"] *{box-sizing:border-box}
body[data-mode="customer"] header{min-height:84px;background:#fff;color:var(--ink);border-bottom:1px solid var(--line);padding:16px max(24px,calc((100vw - 1180px)/2));box-shadow:none}
body[data-mode="customer"] header .brand{color:var(--ink);font-size:20px;letter-spacing:-.5px}
body[data-mode="customer"] header .brand img{width:48px;height:48px;border-radius:15px;box-shadow:0 4px 14px #123b4014}
body[data-mode="customer"] header>span{font-size:12px;background:#ecf5f2;color:#3e6965;border:1px solid #d6e8e1;border-radius:30px;padding:7px 14px}
body[data-mode="customer"] main{max-width:1228px;padding:36px 24px 60px}
body[data-mode="customer"] h1,body[data-mode="customer"] h2,body[data-mode="customer"] h3{letter-spacing:-.5px;color:var(--ink)}
body[data-mode="customer"] h2{font-size:22px;margin:0 0 16px}
body[data-mode="customer"] p{color:var(--muted)}
body[data-mode="customer"] .card{border:1px solid var(--line);border-radius:22px;box-shadow:0 5px 24px #143c4004;background:white;padding:28px;margin-bottom:24px}
body[data-mode="customer"] .grid{gap:20px;grid-template-columns:repeat(auto-fit,minmax(235px,1fr))}
body[data-mode="customer"] button,body[data-mode="customer"] .button{font-weight:700;border-radius:12px;padding:13px 20px;transition:background .18s,box-shadow .18s,transform .18s;background:var(--green);box-shadow:0 5px 13px #087e7014}
body[data-mode="customer"] button:hover,body[data-mode="customer"] .button:hover{background:#06675e;transform:translateY(-1px);box-shadow:0 7px 16px #087e7020}
body[data-mode="customer"] button:focus-visible,body[data-mode="customer"] a:focus-visible{outline:3px solid #e0ae49;outline-offset:3px}
body[data-mode="customer"] .secondary{background:#eff6f3;color:#32645c;box-shadow:none;border:1px solid #dbeae3}
body[data-mode="customer"] .secondary:hover{background:#deeee7;color:#204c45}
body[data-mode="customer"] label{font-size:13px;color:#426762;margin:16px 0 7px;font-weight:700}
body[data-mode="customer"] input,body[data-mode="customer"] select,body[data-mode="customer"] textarea{border:1px solid #cfdfda;background:#fbfdfc;min-height:50px;border-radius:11px;padding:12px 14px;font-size:15px;transition:border .18s,box-shadow .18s}
body[data-mode="customer"] input:focus,body[data-mode="customer"] select:focus,body[data-mode="customer"] textarea:focus{outline:none;border-color:#2b9b86;box-shadow:0 0 0 4px #159b7410;background:white}
body[data-mode="customer"] .customer-welcome{display:grid;grid-template-columns:1.12fr 1fr;gap:28px;margin-bottom:42px;align-items:stretch}
body[data-mode="customer"] .customer-welcome .hero{position:relative;isolation:isolate;overflow:hidden;margin:0;padding:45px 40px;border-radius:26px;background:linear-gradient(145deg,#123c43,#0b625b);min-height:530px;display:flex;flex-direction:column;justify-content:center;color:white}
body[data-mode="customer"] .customer-welcome .hero:before{content:"";width:380px;height:380px;position:absolute;border:1px solid #ffffff10;border-radius:50%;left:-130px;top:-90px;box-shadow:0 0 0 55px #ffffff03,0 0 0 110px #ffffff03;z-index:-1}
body[data-mode="customer"] .customer-welcome .hero h1{color:white;font-size:46px;line-height:1.45;margin:22px 0 16px;letter-spacing:-1.5px}
body[data-mode="customer"] .customer-welcome .hero p{color:#bcdad5;font-size:16px;max-width:390px;margin:0 0 24px}
body[data-mode="customer"] .hero-kicker{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:bold;color:#d0e8dc;letter-spacing:2.4px;direction:ltr;justify-content:flex-end}
body[data-mode="customer"] .hero-kicker:before{content:"";height:7px;width:7px;border-radius:50%;background:#e8bf72}
body[data-mode="customer"] .hero-mark{height:86px;width:86px;border:1px solid #ffffff24;background:#ffffff0c;border-radius:24px;padding:15px;margin-bottom:30px;color:#e9c37f}
body[data-mode="customer"] .hero-mark svg{width:100%;height:100%}
body[data-mode="customer"] .hero-points{display:grid;gap:11px;border-top:1px solid #ffffff1a;padding-top:24px;margin-top:10px}
body[data-mode="customer"] .hero-points span{color:#e1f0eb;font-size:13px;display:flex;align-items:center;gap:10px}
body[data-mode="customer"] .hero-points span:before{content:"✓";color:#e9c37f;font-size:14px}
body[data-mode="customer"] .customer-welcome .auth{margin:0;max-width:none;padding:35px 36px;border-radius:26px;align-self:stretch;display:flex;flex-direction:column;justify-content:center}
body[data-mode="customer"] .auth h2{font-size:27px;margin-bottom:6px}
body[data-mode="customer"] .auth-intro{font-size:13px;margin:0 0 12px}
body[data-mode="customer"] .auth form>button{width:100%;margin-top:18px}
body[data-mode="customer"] .auth>#switch{width:100%}
body[data-mode="customer"] .auth hr{margin:21px 0}
body[data-mode="customer"] .auth .small{font-size:12px;line-height:1.9}
body[data-mode="customer"] .plans-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:0 0 20px}
body[data-mode="customer"] .plans-heading h2{font-size:27px;margin:0}
body[data-mode="customer"] .plans-heading p{font-size:13px;margin:0}
body[data-mode="customer"] .plan-card{position:relative;padding:26px!important;overflow:hidden;box-shadow:none;transition:border-color .2s,transform .2s}
body[data-mode="customer"] .plan-card:hover{transform:translateY(-3px);border-color:#7fb1a6}
body[data-mode="customer"] .plan-card h3{font-size:16px;margin-bottom:22px;font-weight:700}
body[data-mode="customer"] .plan-card .price{font-size:42px;letter-spacing:-1px;line-height:1.3;color:#174b48;margin-bottom:10px}
body[data-mode="customer"] .plan-card p{margin:10px 0 0;font-size:13px}
body[data-mode="customer"] .plan-card.featured{border:2px solid #2e8b77;background:linear-gradient(160deg,#fff,#edf7f1)}
body[data-mode="customer"] .plan-card.featured:after{content:"الاشتراك الشهري";position:absolute;left:18px;top:18px;font-size:10px;padding:4px 9px;border-radius:8px;background:#deeee6;color:#33735e}
body[data-mode="customer"] .plan-card.featured h3{padding-top:24px}
body[data-mode="customer"] .plans-caption{font-size:12px;margin:-7px 0 30px;text-align:center}
body[data-mode="customer"] .download-card{align-items:center;background:#fff;padding:22px!important;border-radius:18px}
body[data-mode="customer"] .download-card .icon{width:62px;height:62px;padding:5px;border:1px solid #e5eeea;border-radius:17px;margin-left:6px}
body[data-mode="customer"] .download-card h3{font-size:16px;margin:0 0 9px}
body[data-mode="customer"] .download-card .button{font-size:12px;padding:8px 14px;background:#eef6f1;color:#296351;box-shadow:none}
body[data-mode="customer"] .account-banner{margin-bottom:25px;padding:28px 32px;border-radius:23px;background:linear-gradient(120deg,#133f45,#17675e)}
body[data-mode="customer"] .account-banner h1{color:#fff;margin:0 0 6px;font-size:29px}
body[data-mode="customer"] .account-banner p{color:#c2ded5;margin:0;font-size:13px}
body[data-mode="customer"] .account-banner .secondary{background:#ffffff14;border-color:#ffffff30;color:#fff}
body[data-mode="customer"] .badge{padding:6px 13px;font-weight:700;font-size:11px;border-radius:8px}
body[data-mode="customer"] .code{border:1px dashed #a8c8bb;background:#f3f8f4;color:#28594d;font-family:monospace;padding:18px;font-size:14px;letter-spacing:.3px}
body[data-mode="customer"] .qr{padding:12px;background:white;box-shadow:0 8px 30px #163d4014;border:1px solid #e3ece8;border-radius:20px}
body[data-mode="customer"] details{padding:17px 20px;border:1px solid #e1eae6;border-radius:13px;background:#fafcfb}
body[data-mode="customer"] #message{box-shadow:0 7px 20px #123b4010;border-radius:13px}
body[data-mode="customer"] footer{background:#ecf3ef;border-top:1px solid #dce8e1;font-size:12px;color:#5c7f74;padding:25px}
@media(min-width:1000px){body[data-mode="customer"] .plan-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:800px){body[data-mode="customer"] main{padding:22px 16px 40px}body[data-mode="customer"] .customer-welcome{grid-template-columns:1fr;gap:18px;margin-bottom:30px}body[data-mode="customer"] .customer-welcome .hero{min-height:auto;padding:28px}body[data-mode="customer"] .customer-welcome .hero h1{font-size:32px;margin:14px 0 10px}body[data-mode="customer"] .hero-mark{width:60px;height:60px;padding:10px;margin-bottom:18px}body[data-mode="customer"] .customer-welcome .hero p{font-size:14px;margin-bottom:12px;max-width:none}body[data-mode="customer"] .hero-points{grid-template-columns:1fr;gap:7px;padding-top:16px}body[data-mode="customer"] .customer-welcome .auth{padding:25px}body[data-mode="customer"] .plans-heading{display:block}body[data-mode="customer"] .plans-heading h2{font-size:23px;margin-bottom:5px}body[data-mode="customer"] .plan-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body[data-mode="customer"] .plan-card{padding:20px!important;border-radius:16px}body[data-mode="customer"] .plan-card .price{font-size:32px}body[data-mode="customer"] .plan-card.featured:after{font-size:9px;top:10px;left:10px}body[data-mode="customer"] .card{padding:22px;border-radius:18px}body[data-mode="customer"] header{min-height:74px;padding:14px 18px}body[data-mode="customer"] .account-banner{padding:24px}body[data-mode="customer"] .account-banner h1{font-size:24px}}
@media(max-width:380px){body[data-mode="customer"] .plan-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){body[data-mode="customer"] *{transition:none!important;scroll-behavior:auto!important}}


/* Midnight / violet customer theme */
body[data-mode="customer"]{--ink:#f0f3ff;--muted:#a7b1cb;--green:#7961ed;--line:#2a3550;background:radial-gradient(ellipse at 85% 0,#282247 0,transparent 38%),#0c1222;color:#edf1ff}
body[data-mode="customer"] header{background:#101729;border-color:#29334c;box-shadow:0 4px 30px #00000020}
body[data-mode="customer"] header .brand{color:#f4f5ff}
body[data-mode="customer"] header>span{background:#242343;border-color:#454069;color:#c8c0ff}
body[data-mode="customer"] .card{background:linear-gradient(145deg,#1b243b,#151d30);border-color:#303b56;box-shadow:0 12px 30px #00000012}
body[data-mode="customer"] p,body[data-mode="customer"] .small{color:#aeb9d2}
body[data-mode="customer"] h1,body[data-mode="customer"] h2,body[data-mode="customer"] h3{color:#f4f6ff}
body[data-mode="customer"] button,body[data-mode="customer"] .button{background:linear-gradient(110deg,#7458e8,#556fe9);color:white;border:1px solid #9585ff40;box-shadow:0 6px 20px #684dd526}
body[data-mode="customer"] button:hover,body[data-mode="customer"] .button:hover{background:linear-gradient(110deg,#8769fb,#6685fb);box-shadow:0 8px 22px #7759eb40}
body[data-mode="customer"] .secondary{background:#27334e;color:#d9e3ff;border-color:#3d4a69;box-shadow:none}
body[data-mode="customer"] .secondary:hover{background:#344260;color:white}
body[data-mode="customer"] label{color:#c4cee4}
body[data-mode="customer"] input,body[data-mode="customer"] select,body[data-mode="customer"] textarea{background:#10192c;color:#edf2ff;border-color:#384560;color-scheme:dark}
body[data-mode="customer"] input:focus,body[data-mode="customer"] select:focus,body[data-mode="customer"] textarea:focus{border-color:#a28bff;background:#151e33;box-shadow:0 0 0 4px #9273ff18}
body[data-mode="customer"] input::placeholder{color:#7f8daa}
body[data-mode="customer"] .customer-welcome .hero{background:radial-gradient(circle at 10% 10%,#5d3ea56b,transparent 55%),linear-gradient(145deg,#252440,#132d4c);border:1px solid #4b456e}
body[data-mode="customer"] .hero-mark{background:#9d81ff14;border-color:#9d81ff40;color:#b4a0ff}
body[data-mode="customer"] .hero-kicker{color:#c4b6fb}
body[data-mode="customer"] .hero-kicker:before{background:#97b9ff}
body[data-mode="customer"] .hero-points span:before{color:#9faeff}
body[data-mode="customer"] .customer-welcome .hero p{color:#bac7e1}
body[data-mode="customer"] .hero-points span{color:#dbe2f7}
body[data-mode="customer"] .auth{border-color:#3e4663}
body[data-mode="customer"] .plan-card .price{color:#e6e5ff}
body[data-mode="customer"] .plan-card:hover{border-color:#8e79d6}
body[data-mode="customer"] .plan-card.featured{background:linear-gradient(140deg,#30244c,#1d2b49);border-color:#9174f6;box-shadow:0 8px 35px #7153cc1a}
body[data-mode="customer"] .plan-card.featured:after{background:#9274f62b;color:#d9caff;border:1px solid #9c7eff40}
body[data-mode="customer"] .apps-top{grid-template-columns:1fr 1fr!important;gap:20px;margin:0 0 30px}
body[data-mode="customer"] .apps-top .download-card{position:relative;overflow:hidden;display:flex;flex-direction:row;align-items:center;gap:19px;margin:0;padding:26px!important;min-height:154px;border-radius:22px;background:linear-gradient(120deg,#282147,#19253e);border:1px solid #62518a;box-shadow:0 12px 35px #00000020}
body[data-mode="customer"] .apps-top .download-card:nth-child(2){background:linear-gradient(120deg,#172f49,#1d2340);border-color:#355f87}
body[data-mode="customer"] .apps-top .download-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#7462d9,#bf94ff)}
body[data-mode="customer"] .apps-top .download-card:nth-child(2):before{background:linear-gradient(90deg,#366dad,#73baff)}
body[data-mode="customer"] .apps-top .download-card .icon{width:76px;height:76px;min-width:76px;border:1px solid #ffffff30;border-radius:20px;background:#fff;padding:7px;box-shadow:0 8px 20px #00000025;margin:0}
body[data-mode="customer"] .apps-top .download-card>div{flex:1;min-width:0}
body[data-mode="customer"] .apps-top .download-card h3{font-size:20px;margin:0 0 4px}
body[data-mode="customer"] .apps-top .app-note{font-size:12px;margin:0 0 13px;color:#b9c8e2}
body[data-mode="customer"] .apps-top .download-card .button{font-size:13px;padding:10px 22px;background:#8a6af0;color:#fff;border:1px solid #c2aaff50;box-shadow:0 4px 18px #00000020}
body[data-mode="customer"] .apps-top .download-card:nth-child(2) .button{background:#3e80c7;border-color:#8fc4ff40}
body[data-mode="customer"] .account-banner{background:linear-gradient(120deg,#302544,#172f4d);border:1px solid #4d4670}
body[data-mode="customer"] .account-banner p{color:#bfc8e1}
body[data-mode="customer"] .code{background:#111c32;border-color:#53658c;color:#d7e5ff}
body[data-mode="customer"] details{background:#111b2e;border-color:#34415e}
body[data-mode="customer"] summary{color:#dbe2f7}
body[data-mode="customer"] hr{border-color:#354059}
body[data-mode="customer"] .empty{color:#9baac9}
body[data-mode="customer"] a:not(.button):not(.brand){color:#bfaaff}
body[data-mode="customer"] footer{background:#0a101f;border-color:#27334d;color:#899ab9}
body[data-mode="customer"] #message{background:#243e4a;color:#dafff2;border-color:#4d7f81}
body[data-mode="customer"] .sham-password-toggle{background:#2e3554!important;color:#e3dfff!important;border-color:#575b86!important;box-shadow:none!important}
@media(max-width:650px){body[data-mode="customer"] .apps-top{grid-template-columns:1fr!important;gap:14px;margin-bottom:24px}body[data-mode="customer"] .apps-top .download-card{min-height:135px;padding:20px!important;gap:17px}body[data-mode="customer"] .apps-top .download-card h3{font-size:18px}body[data-mode="customer"] .apps-top .download-card .icon{width:67px;height:67px;min-width:67px}body[data-mode="customer"] .apps-top .download-card .button{padding:9px 19px}}
/* end-shamcash-customer-design-v2 */

/* shamcash-whatsapp-v1 */
body[data-mode="customer"]{padding-bottom:90px}
#sham-whatsapp{position:fixed;bottom:calc(20px + env(safe-area-inset-bottom,0px));left:20px;z-index:1000;display:flex;align-items:center;gap:9px;padding:14px 20px;border-radius:999px;background:#15803d;color:#fff;text-decoration:none;font:700 15px/1.4 system-ui,sans-serif;box-shadow:0 6px 24px #0005;border:1px solid #ffffff40;min-height:48px;box-sizing:border-box}
#sham-whatsapp:hover{background:#166534}#sham-whatsapp:focus-visible{outline:3px solid #86efac;outline-offset:4px}
/* end-shamcash-whatsapp-v1 */

/* shamcash-activity-v1 */
.activity-table{overflow:auto;max-width:100%;margin:16px 0}.activity-table td,.activity-table th{padding:12px;text-align:start;max-width:320px;overflow-wrap:anywhere;min-width:100px}
/* end-shamcash-activity-v1 */