:root{font-family:Tajawal,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;color:#171923;background:#f6f6fa;font-synthesis:none;--ink: #171923;--muted: #71717f;--line: #e7e7ee;--surface: #ffffff;--violet: #7c3aed;--violet-dark: #6023c6;--cyan: #0891b2;--green: #059669;--red: #dc2626;--orange: #ea580c}*{box-sizing:border-box}html{direction:rtl;min-height:100%}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 10% 0%,rgba(124,58,237,.06),transparent 24rem),#f6f6fa}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}.muted{color:var(--muted)}.eyebrow{color:var(--violet);font-size:.74rem;font-weight:800;letter-spacing:.04em;margin-bottom:.35rem;text-transform:uppercase}.eyebrow.light{color:#d8c8ff}.brand{align-items:center;display:flex;gap:.7rem;margin:.15rem 0 2.5rem}.brand>span:last-child,.customer-brand{display:flex;flex-direction:column}.brand strong{font-size:1.45rem;line-height:1}.brand small{color:#8d8d9c;font-size:.67rem;margin-top:.35rem}.brand-mark{align-items:center;background:linear-gradient(135deg,#7c3aed,#06b6d4);border-radius:14px;color:#fff;display:inline-flex;flex:none;height:43px;justify-content:center;width:43px;box-shadow:0 8px 22px #7c3aed38}.brand-mark.large{border-radius:20px;height:64px;width:64px}.app-shell{display:grid;grid-template-columns:255px minmax(0,1fr);min-height:100vh}.sidebar{background:#ffffffe6;border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:100vh;padding:1.6rem 1.25rem;position:sticky;top:0;height:100vh;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);z-index:5}.sidebar nav{display:flex;flex-direction:column;gap:.35rem}.sidebar nav a{align-items:center;border-radius:14px;color:#626271;display:flex;font-weight:600;gap:.75rem;padding:.8rem .9rem;transition:.18s ease}.sidebar nav a:hover{background:#f4f1fc;color:var(--violet)}.sidebar nav a.active{background:#ede7fb;color:var(--violet-dark);font-weight:800}.sidebar nav svg{height:20px;width:20px}.user-panel{align-items:center;border-top:1px solid var(--line);display:flex;gap:.65rem;margin-top:auto;padding-top:1.1rem}.avatar{align-items:center;background:#1f2937;border-radius:50%;color:#fff;display:flex;flex:none;font-weight:800;height:38px;justify-content:center;width:38px}.user-copy{display:flex;flex:1;flex-direction:column;min-width:0}.user-copy strong,.user-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-copy strong{font-size:.84rem}.user-copy small{color:var(--muted);font-size:.7rem}.icon-button{align-items:center;background:transparent;border:0;color:#9797a4;display:flex;justify-content:center;padding:.35rem}.main-area{min-width:0}.topbar{align-items:center;display:flex;justify-content:space-between;padding:1.65rem clamp(1rem,3vw,2.5rem) 1rem}.topbar h1{font-size:clamp(1.55rem,2.3vw,2rem);margin-bottom:0}.online-chip,.soft-chip,.timer{align-items:center;background:#e9f8f1;border-radius:999px;color:#047857;display:inline-flex;font-size:.75rem;font-weight:700;gap:.4rem;padding:.45rem .7rem}.online-chip i{animation:pulse-dot 2s infinite;background:#10b981;border-radius:50%;height:7px;width:7px}@keyframes pulse-dot{50%{box-shadow:0 0 0 5px #10b9811f}}.page-content{padding:.7rem clamp(1rem,3vw,2.5rem) 2.5rem}.card,.loading-card{background:#ffffffeb;border:1px solid rgba(231,231,238,.9);border-radius:22px;box-shadow:0 10px 35px #1d18320b;padding:1.35rem}.loading-card,.empty{color:var(--muted);padding:2.5rem;text-align:center}.section-heading{align-items:center;display:flex;gap:1rem;justify-content:space-between;margin-bottom:1.3rem}.section-heading h2{font-size:1.08rem;margin-bottom:0}.soft-chip{background:#f1edfb;color:var(--violet);white-space:nowrap}.stat-grid{display:grid;gap:.9rem;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:.9rem}.stat-card{align-items:center;background:#fff;border:1px solid var(--line);border-radius:20px;display:grid;grid-template-columns:auto 1fr auto;padding:1rem;box-shadow:0 8px 26px #1d183209}.stat-card .stat-icon{grid-row:1 / 3;margin-left:.75rem}.stat-card>span.muted{font-size:.73rem;font-weight:600}.stat-card>strong{font-size:clamp(1.3rem,2.3vw,1.8rem);line-height:1.2}.stat-card>small{align-self:end;color:var(--muted);font-size:.66rem;grid-column:3;grid-row:2}.stat-icon{align-items:center;border-radius:13px;display:inline-flex;height:44px;justify-content:center;width:44px}.stat-icon.violet{background:#f0eafb;color:#7c3aed}.stat-icon.cyan{background:#e6f7fa;color:#0891b2}.stat-icon.orange{background:#fff0e8;color:#ea580c}.stat-icon.green{background:#e8f8f1;color:#059669}.dashboard-grid{display:grid;gap:.9rem;grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr)}.attraction-bars{display:flex;flex-direction:column;gap:1rem}.bar-row{align-items:center;display:grid;gap:.75rem;grid-template-columns:minmax(110px,.8fr) minmax(110px,1.4fr) 75px}.bar-row>span{display:flex;flex-direction:column}.bar-row strong{font-size:.8rem}.bar-row small{color:var(--muted);font-size:.65rem}.bar-row i{background:#f0eef4;border-radius:99px;height:8px;overflow:hidden}.bar-row b{background:linear-gradient(90deg,#8b5cf6,#06b6d4);border-radius:inherit;display:block;height:100%}.bar-row em{font-size:.72rem;font-style:normal;font-weight:700;text-align:left}.transactions{display:flex;flex-direction:column}.transaction-row{align-items:center;border-bottom:1px solid #eeeeF3;display:flex;gap:.65rem;padding:.72rem 0}.transaction-row:last-child{border-bottom:0}.transaction-icon{align-items:center;background:#fff0e8;border-radius:11px;color:var(--orange);display:flex;flex:none;height:38px;justify-content:center;width:38px}.transaction-icon.top_up,.transaction-icon.reversal{background:#e9f8f1;color:var(--green)}.transaction-main{display:flex;flex:1;flex-direction:column;min-width:0}.transaction-main strong{font-size:.79rem}.transaction-main small{color:var(--muted);direction:rtl;font-size:.62rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.positive,.negative{direction:ltr;font-size:.75rem;font-weight:800;white-space:nowrap}.positive{color:var(--green)}.negative{color:var(--ink)}.form-layout{display:grid;gap:1rem;grid-template-columns:minmax(0,1.25fr) minmax(290px,.75fr)}.form-card{padding:clamp(1.3rem,3vw,2rem)}.stack-form,.otp-form{display:flex;flex-direction:column;gap:1rem}.form-row{display:grid;gap:.85rem;grid-template-columns:1fr 1fr}label{color:#484854;display:flex;flex-direction:column;font-size:.76rem;font-weight:700;gap:.42rem}label small{color:var(--muted);font-weight:400}input,select{background:#fff;border:1px solid #dedee7;border-radius:12px;color:var(--ink);min-height:47px;outline:0;padding:.7rem .85rem;transition:border .15s,box-shadow .15s}input:focus,select:focus{border-color:#9a74e8;box-shadow:0 0 0 4px #7c3aed17}input::placeholder{color:#b2b2be}.primary-button,.secondary-button{align-items:center;border:0;border-radius:13px;display:inline-flex;font-weight:800;gap:.55rem;justify-content:center;min-height:49px;padding:.75rem 1.15rem;transition:transform .15s,box-shadow .15s,opacity .15s}.primary-button{background:linear-gradient(135deg,#7c3aed,#6930cc);box-shadow:0 9px 22px #7c3aed33;color:#fff}.primary-button:hover:not(:disabled){box-shadow:0 12px 26px #7c3aed47;transform:translateY(-1px)}.primary-button:disabled{cursor:not-allowed;opacity:.55}.secondary-button{background:#f1edfb;color:var(--violet-dark)}.wide{width:100%}.result-card{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:420px;text-align:center}.success-mark{color:var(--green);margin-bottom:1rem}.result-card h2{font-size:2.25rem;margin-bottom:.35rem}.link-box{background:#f6f6fa;border:1px dashed #d4d4df;border-radius:10px;color:#626271;font-size:.68rem;margin:.7rem 0;max-width:100%;overflow:hidden;padding:.65rem;text-overflow:ellipsis;white-space:nowrap}.whatsapp-status{align-items:center;background:#eaf9f2;border-radius:13px;color:#047857;display:flex;gap:.65rem;margin-top:1rem;padding:.75rem;text-align:right;width:100%}.whatsapp-status span{display:flex;flex-direction:column}.whatsapp-status strong{font-size:.72rem}.whatsapp-status small{font-size:.62rem}.result-placeholder{color:#9494a1;max-width:250px}.result-placeholder svg{color:#b9a5e8}.result-placeholder h3{color:var(--ink);margin:1rem 0 .4rem}.result-placeholder p{font-size:.78rem;line-height:1.8}.operator-layout{display:grid;gap:1rem;grid-template-columns:minmax(300px,.9fr) minmax(350px,1.1fr)}.operator-controls{display:flex;flex-direction:column;gap:1rem}.ride-grid{display:grid;gap:.65rem;grid-template-columns:repeat(2,minmax(0,1fr))}.ride-button{align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;color:var(--ink);display:flex;gap:.65rem;min-height:70px;padding:.7rem;text-align:right;transition:.16s ease}.ride-button:hover{border-color:color-mix(in srgb,var(--ride-color),white 35%);transform:translateY(-1px)}.ride-button.selected{background:color-mix(in srgb,var(--ride-color),white 92%);border-color:var(--ride-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--ride-color),transparent 88%)}.ride-button i{align-items:center;background:color-mix(in srgb,var(--ride-color),white 86%);border-radius:11px;color:var(--ride-color);display:flex;flex:none;height:42px;justify-content:center;width:42px}.ride-button span{display:flex;flex-direction:column;min-width:0}.ride-button strong{font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ride-button small{color:var(--muted);direction:ltr;font-size:.68rem;text-align:right}.scanner-card{padding:1.1rem}.scanner-heading{align-items:center;display:flex;gap:.75rem;margin-bottom:.9rem}.scanner-heading h2{font-size:1.15rem;margin:0}.scan-pulse{align-items:center;background:#ede7fb;border-radius:14px;color:var(--violet);display:flex;height:48px;justify-content:center;width:48px}.camera-frame{align-items:center;background:radial-gradient(circle at center,rgba(124,58,237,.08),transparent 65%),#191925;border-radius:18px;color:#fff;display:flex;justify-content:center;min-height:350px;overflow:hidden;position:relative}.camera-frame video{height:100%;inset:0;object-fit:cover;position:absolute;width:100%}.scan-corners{border:3px solid white;border-radius:18px;box-shadow:0 0 0 999px #0a0a126b;height:190px;position:relative;width:190px;z-index:2}.scan-corners:after{animation:scan-line 2s ease-in-out infinite;background:linear-gradient(90deg,transparent,#8b5cf6 20%,#22d3ee 80%,transparent);box-shadow:0 0 13px #22d3ee;content:"";height:2px;left:8px;position:absolute;right:8px;top:10px}@keyframes scan-line{50%{transform:translateY(164px)}}.camera-close{background:#0000008c;border:1px solid rgba(255,255,255,.35);border-radius:99px;bottom:1rem;color:#fff;padding:.45rem .85rem;position:absolute;z-index:3}.camera-placeholder,.scan-feedback{align-items:center;display:flex;flex-direction:column;max-width:310px;padding:2rem;text-align:center}.camera-placeholder svg{color:#a78bfa;margin-bottom:1rem}.camera-placeholder h3,.scan-feedback h3{margin-bottom:.35rem}.camera-placeholder p,.scan-feedback p{color:#aab;font-size:.75rem;margin-bottom:0}.scan-feedback.success svg,.scan-feedback.success>strong{color:#34d399}.scan-feedback.failure svg{color:#fb7185}.scan-feedback>strong{font-size:2rem;margin:.4rem 0}.scanner-button{margin-top:.85rem}.manual-scan{align-items:center;background:#f6f6fa;border-radius:12px;display:flex;gap:.4rem;margin-top:.6rem;padding:.35rem .6rem}.manual-scan svg{color:#9393a1}.manual-scan input{background:transparent;border:0;box-shadow:none;flex:1;font-size:.68rem;min-height:39px;min-width:0;padding:.35rem}.manual-scan button{background:#e8e2f8;border:0;border-radius:9px;color:var(--violet-dark);font-size:.69rem;font-weight:800;padding:.55rem .75rem}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.alert{border-radius:11px;font-size:.76rem;padding:.75rem .9rem}.alert.error{background:#fff0f1;border:1px solid #fecdd3;color:#be123c}.login-page{display:grid;grid-template-columns:minmax(380px,1fr) minmax(400px,.9fr);min-height:100vh}.login-visual{background:linear-gradient(145deg,#0f1220e0,#1e1438f0),#171923;color:#fff;display:flex;flex-direction:column;justify-content:center;overflow:hidden;padding:clamp(3rem,8vw,7rem);position:relative}.login-visual>*:not(.visual-orb){position:relative;z-index:1}.visual-orb{border-radius:50%;filter:blur(6px);position:absolute}.orb-one{background:#7c3aed5c;height:440px;left:-180px;top:-120px;width:440px}.orb-two{background:#06b6d42e;bottom:-140px;height:380px;right:-120px;width:380px}.login-visual .brand-mark{margin-bottom:2.2rem}.login-visual h1{font-size:clamp(3rem,6vw,5.8rem);line-height:1.05;margin:.35rem 0 1.2rem}.login-visual>p:not(.eyebrow){color:#c3c3d0;font-size:1rem;line-height:1.9;max-width:520px}.mini-stat{align-items:center;border-top:1px solid rgba(255,255,255,.15);display:flex;gap:.8rem;margin-top:2rem;padding-top:1.4rem;width:fit-content}.mini-stat strong{font-size:2.4rem}.mini-stat span{color:#a9a9bb;font-size:.75rem;line-height:1.5}.login-form-wrap{align-items:center;background:#fff;display:flex;justify-content:center;padding:2rem}.login-form{display:flex;flex-direction:column;gap:1rem;max-width:390px;width:100%}.login-form h2{font-size:2rem;margin:0}.login-form>p.muted{font-size:.82rem;margin:-.5rem 0 .5rem}.input-wrap{align-items:center;display:flex;position:relative}.input-wrap svg{color:#9494a1;pointer-events:none;position:absolute;right:.85rem}.input-wrap input{padding-right:2.7rem;width:100%}.demo-note{background:#f6f4fb;border-radius:12px;color:#707080;display:grid;font-size:.68rem;gap:.2rem;grid-template-columns:auto 1fr;padding:.75rem}.demo-note strong{color:var(--violet-dark);grid-row:1 / 3;margin-left:.8rem}.mobile-brand{align-items:center;display:none;font-size:1.3rem;gap:.55rem;margin-bottom:1rem}.customer-page{background:radial-gradient(circle at 50% 0%,rgba(124,58,237,.12),transparent 25rem),#f6f6fa;min-height:100vh;padding:1.2rem}.customer-page:not(.wallet-bg){align-items:center;display:flex;justify-content:center}.otp-card{background:#fff;border:1px solid var(--line);border-radius:26px;box-shadow:0 25px 70px #1f14371a;max-width:430px;padding:clamp(1.6rem,5vw,2.5rem);text-align:center;width:100%}.otp-card .brand-mark{margin-bottom:1.2rem}.otp-card h1{font-size:1.75rem;margin-bottom:.65rem}.otp-card>p.muted{font-size:.8rem;line-height:1.8}.otp-form input{font-size:1.7rem;font-weight:800;letter-spacing:.5rem;text-align:center}.debug-code{background:#fff8e8;border-radius:8px;color:#a16207;padding:.45rem}.security-note{align-items:center;color:#858593;display:flex;font-size:.68rem;gap:.4rem;justify-content:center;margin:1.3rem 0 0}.wallet-bg{background:radial-gradient(circle at top,rgba(103,48,204,.22),transparent 24rem),#f3f2f8;margin:0 auto;max-width:700px}.wallet-header{align-items:center;display:flex;justify-content:space-between;margin:0 auto 1rem;max-width:560px}.customer-brand{align-items:center;flex-direction:row;font-size:1.2rem;gap:.5rem}.online-chip.light{background:#ffffffbf;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.wallet-card,.qr-card,.customer-transactions{margin:0 auto 1rem;max-width:560px}.wallet-card{background:linear-gradient(135deg,rgba(255,255,255,.08),transparent),linear-gradient(135deg,#1c152b,#382164 70%,#1d6172);border-radius:25px;box-shadow:0 20px 45px #2b194e38;color:#fff;min-height:225px;overflow:hidden;padding:1.5rem;position:relative}.wallet-card:after{border:1px solid rgba(255,255,255,.12);border-radius:50%;content:"";height:230px;left:-60px;position:absolute;top:-95px;width:230px}.wallet-card>p{color:#d8d1e6;font-size:.78rem}.wallet-card>span{color:#bfb7ce;display:block;font-size:.72rem;margin-top:1.6rem}.wallet-card h1{direction:ltr;font-size:clamp(2.4rem,9vw,3.6rem);margin:0;text-align:right}.wallet-card h1 small{font-size:.9rem}.wallet-meta{align-items:center;color:#cbc5d7;display:flex;font-size:.7rem;justify-content:space-between;margin-top:1rem}.wallet-meta span:first-child{align-items:center;display:flex;gap:.3rem}.qr-card{background:#fff;border:1px solid var(--line);border-radius:25px;box-shadow:0 12px 35px #1f14370f;padding:1.3rem}.timer{background:#edf9f5;color:var(--green);direction:ltr}.timer.warning{background:#fff1e9;color:var(--orange)}.qr-wrap{align-items:center;background:#fff;border:1px solid #eeeeF3;border-radius:18px;display:flex;justify-content:center;margin:0 auto;min-height:250px;padding:.9rem;width:min(100%,270px)}.qr-loading{color:var(--muted);font-size:.75rem}.qr-hint{color:var(--muted);font-size:.68rem;line-height:1.7;margin:1rem auto 0;max-width:330px;text-align:center}.qr-refresh{background:transparent;border:0;color:var(--violet);display:block;font-size:.7rem;font-weight:800;margin:.4rem auto 0;padding:.35rem .7rem}.route-loading{align-items:center;color:var(--muted);display:flex;justify-content:center;min-height:100vh}.customer-transactions{padding-bottom:.7rem}.floating-error{background:#be123c;border-radius:12px;bottom:1rem;box-shadow:0 8px 24px #be123c40;color:#fff;font-size:.75rem;left:1rem;padding:.75rem 1rem;position:fixed;right:1rem;z-index:10}@media(max-width:1050px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid,.form-layout{grid-template-columns:1fr}.result-card{min-height:330px}}@media(max-width:820px){.app-shell{display:block;padding-bottom:76px}.sidebar{align-items:center;border-left:0;border-top:1px solid var(--line);bottom:0;flex-direction:row;height:72px;min-height:0;padding:.45rem .8rem calc(.45rem + env(safe-area-inset-bottom));position:fixed;top:auto;width:100%}.sidebar .brand,.user-panel{display:none}.sidebar nav{flex-direction:row;justify-content:space-around;width:100%}.sidebar nav a{flex-direction:column;font-size:.62rem;gap:.2rem;min-width:80px;padding:.4rem}.sidebar nav a.active{background:transparent}.topbar{padding-top:1rem}.operator-layout{grid-template-columns:1fr}.login-page{display:block}.login-visual{display:none}.login-form-wrap{min-height:100vh}.mobile-brand{display:flex}}@media(max-width:560px){.topbar .online-chip{display:none}.page-content{padding-bottom:1rem}.stat-grid{gap:.6rem}.stat-card{display:flex;flex-wrap:wrap;padding:.85rem}.stat-card .stat-icon{height:37px;margin-left:.55rem;width:37px}.stat-card>span.muted{flex:1}.stat-card>strong{flex-basis:calc(100% - 46px);margin-right:46px}.stat-card>small{display:none}.bar-row{grid-template-columns:100px 1fr}.bar-row em{display:none}.form-row,.ride-grid{grid-template-columns:1fr}.camera-frame{min-height:310px}.form-card,.scanner-card,.card{border-radius:18px}.customer-page{padding:.8rem}}
