/* awlami-ui.css v1.0 - additive design layer. Everything is scoped under html.aw-ui.
   Rollback: remove the <script src=awlami-ui.js> and the <link> (or set window.AWLAMI_UI_OFF=true before it). Nothing else changes. */
html.aw-ui{--aw-bg:#0b0b0d;--aw-card:#141416;--aw-line:rgba(212,175,55,.22);--aw-gold:#d4af37;--aw-gold2:#f1d77a;--aw-text:#f4f1e8;--aw-mut:#a9a596;--aw-r:16px;--aw-ease:cubic-bezier(.22,.8,.24,1);--aw-nav:62px;scroll-behavior:smooth;-webkit-tap-highlight-color:transparent}
html.aw-ui body{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
@media(max-width:820px){html.aw-ui body{padding-bottom:calc(var(--aw-nav) + env(safe-area-inset-bottom,0px))!important}}
/* soft interactions on common blocks (opacity/transform only, no layout shift) */
html.aw-ui :where(a,button,.aw-tap){transition:transform .22s var(--aw-ease),box-shadow .22s var(--aw-ease),background-color .22s,color .22s,border-color .22s,opacity .22s}
html.aw-ui :where(button,.button,[role=button],input[type=submit]):active{transform:scale(.97)}
html.aw-ui :where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--aw-gold);outline-offset:3px;border-radius:8px}
@media(hover:hover){html.aw-ui .aw-lift:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(0,0,0,.45),0 0 0 1px var(--aw-line)}}
html.aw-ui .aw-lift{border-radius:var(--aw-r)}
html.aw-ui img.aw-img{border-radius:var(--aw-r)}
/* scroll reveal: only applied by JS, auto-released by a timeout so content is never stuck hidden */
html.aw-ui .aw-pre{opacity:0;transform:translateY(14px)}
html.aw-ui .aw-pre.aw-in{opacity:1;transform:none;transition:opacity .6s var(--aw-ease),transform .6s var(--aw-ease)}
/* gold progress line */
.aw-progress{position:fixed;top:0;right:0;left:0;height:3px;z-index:2147483000;pointer-events:none;background:transparent}
.aw-progress i{display:block;height:100%;width:100%;transform-origin:right center;transform:scaleX(0);background:linear-gradient(270deg,var(--aw-gold),var(--aw-gold2));box-shadow:0 0 10px rgba(212,175,55,.6)}
/* bottom bar (mobile only) */
.aw-nav{display:none}
@media(max-width:820px){
.aw-nav{display:flex;position:fixed;right:0;left:0;bottom:0;z-index:2147482000;height:calc(var(--aw-nav) + env(safe-area-inset-bottom,0px));padding:0 6px env(safe-area-inset-bottom,0px);direction:rtl;background:rgba(11,11,13,.86);-webkit-backdrop-filter:saturate(1.4) blur(16px);backdrop-filter:saturate(1.4) blur(16px);border-top:1px solid var(--aw-line);box-shadow:0 -10px 30px rgba(0,0,0,.4);font-family:inherit}
.aw-nav a{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--aw-mut);text-decoration:none;font-size:11px;line-height:1.1;font-weight:600;position:relative}
.aw-nav a svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.aw-nav a span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aw-nav a[aria-current=page]{color:var(--aw-gold)}
.aw-nav a[aria-current=page]::before{content:"";position:absolute;top:0;width:28px;height:3px;border-radius:0 0 4px 4px;background:var(--aw-gold)}
.aw-nav a:active{transform:scale(.92)}}
/* Google Play style download section */
.aw-store{direction:rtl;margin:24px auto;width:calc(100% - 24px);max-width:960px;padding:20px;border-radius:24px;background:linear-gradient(160deg,#17171a,#0d0d0f);border:1px solid var(--aw-line);color:var(--aw-text);font-family:inherit;box-shadow:0 20px 50px rgba(0,0,0,.4)}
.aw-store,.aw-store *{box-sizing:border-box}
.aw-store-head{display:flex;gap:16px;align-items:center}
.aw-store-icon{width:84px;height:84px;border-radius:22px;flex:none;object-fit:cover;background:#000;border:1px solid var(--aw-line);box-shadow:0 8px 22px rgba(0,0,0,.5)}
.aw-store-title{margin:0 0 4px;font-size:22px;font-weight:800;line-height:1.25;color:var(--aw-text)}
.aw-store-dev{color:var(--aw-gold);font-size:13px;font-weight:700;margin:0}
.aw-store-stats{display:flex;margin:18px 0;padding:12px 0;border-block:1px solid rgba(255,255,255,.07);text-align:center}
.aw-store-stats div{flex:1;min-width:0;padding:0 6px;border-inline-start:1px solid rgba(255,255,255,.07)}
.aw-store-stats div:first-child{border-inline-start:0}
.aw-store-stats b{display:block;font-size:16px;color:var(--aw-text)}
.aw-store-stats small{color:var(--aw-mut);font-size:11px}
.aw-store-btn{display:block;width:100%;padding:14px 18px;border-radius:14px;text-align:center;font-weight:800;font-size:16px;text-decoration:none;color:#111;background:linear-gradient(135deg,var(--aw-gold2),var(--aw-gold));box-shadow:0 10px 26px rgba(212,175,55,.28)}
.aw-store-btn:active{transform:scale(.98)}
.aw-store-note{margin:10px 0 0;text-align:center;color:var(--aw-mut);font-size:12px}
.aw-store-shots{display:flex;gap:10px;overflow-x:auto;margin:18px -4px 0;padding:4px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.aw-store-shots img{height:260px;width:auto;border-radius:14px;flex:none;scroll-snap-align:start;border:1px solid var(--aw-line)}
.aw-store-about{margin:16px 0 0;color:var(--aw-mut);font-size:14px;line-height:1.8}
@media(prefers-reduced-motion:reduce){html.aw-ui{scroll-behavior:auto}html.aw-ui *{transition:none!important;animation:none!important}html.aw-ui .aw-pre{opacity:1;transform:none}}
html.aw-ui body{overflow-x:clip}
/* v1.1 - six bottom slots stay comfortable at 390 */
@media(max-width:820px){
.aw-nav[data-n="6"]{padding:0 3px env(safe-area-inset-bottom,0px)}
.aw-nav[data-n="6"] a{font-size:10px;gap:2px}
.aw-nav[data-n="6"] a svg{width:19px;height:19px}
.aw-nav[data-n="6"] a span{letter-spacing:-.2px}
}
/* v1.1 - top bar: messages + notifications */
.aw-topbar{display:none}
@media(max-width:820px){
.aw-topbar{display:flex;gap:8px;position:fixed;top:calc(env(safe-area-inset-top,0px) + 10px);z-index:2147482500;direction:rtl}
.aw-topbar[data-pos=tl]{left:8px}
.aw-topbar[data-pos=tr]{right:8px}
.aw-topbar[data-pos=fab]{top:auto;right:10px;bottom:calc(var(--aw-nav,58px) + env(safe-area-inset-bottom,0px) + 12px)}
.aw-tb{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:50%;text-decoration:none;color:var(--aw-text,#ede6d6);background:rgba(11,11,13,.82);border:1px solid var(--aw-line,rgba(255,255,255,.14));-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);box-shadow:0 8px 22px rgba(0,0,0,.35);position:relative}
.aw-tb svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.aw-tb:active{transform:scale(.93)}
.aw-tb b{display:none;position:absolute;top:-3px;left:-3px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#e5484d;color:#fff;font-size:10px;font-weight:800;line-height:17px;text-align:center;font-family:inherit}
/* v1.4 - keep every bottom slot clear of the ID pill (bottom-left) */
@media(max-width:820px){
.aw-nav{padding-inline-end:96px}
.aw-nav[data-n="6"]{padding-inline-end:96px}
}
