
*{box-sizing:border-box;font-family:Inter,system-ui}body{margin:0;background:#f8f8f9;color:#111}
.header{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#fff;border-bottom:1px solid #eee;position:sticky;top:0;z-index:10}
.h-logo{width:48px;height:48px;background:#111;color:#fff;border-radius:14px;display:grid;place-items:center;font-weight:800;font-size:22px}
.live{border:1px solid #dcfce7;background:#f0fdf4;color:#16a34a;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600}
.wallet-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px 16px}
.wallet{border-radius:20px;padding:16px;color:#fff}
.wallet.cash{background:linear-gradient(135deg,#00c853,#16a34a)} .wallet.coin{background:linear-gradient(135deg,#fb923c,#f97316)}
.wallet h3{font-size:11px;opacity:.9;margin:0} .wallet .amt{font-size:26px;font-weight:800;margin:6px 0}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:16px 16px 120px}
.card{background:#fff;border-radius:18px;padding:12px 10px 14px;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,.06);border:1px solid #f4f4f5;cursor:pointer;min-height:116px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.card .ic{width:56px;height:56px;border-radius:14px;display:grid;place-items:center;font-weight:800;margin:0 auto 8px}
.card .app-title-box{width:100%;min-height:58px;padding:8px 6px;border-radius:14px;background:var(--app-accent,#f3f4f6);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;line-height:1.2;text-align:center}
.badge{font-size:11px;font-weight:600;padding:4px 8px;border-radius:999px;display:inline-block;margin-top:6px}
.badge.free{background:#dcfce7;color:#15803d} .badge.coin{background:#ffedd5;color:#c2410c} .badge.cash{background:#111;color:#fff}
.bottom{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);background:#111;color:#fff;border-radius:28px;display:flex;gap:8px;padding:8px;z-index:20}
.bottom button{border:0;background:transparent;color:#aaa;padding:10px 18px;border-radius:999px;font-weight:600} .bottom button.active{background:#fff;color:#111}
.login-wall{position:fixed;inset:0;background:#f8f8f9;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px}
.login-card{background:#fff;border-radius:20px;padding:20px;width:100%;max-width:360px;box-shadow:0 10px 30px rgba(0,0,0,.08)}
.input{width:100%;padding:12px;border:1px solid #e4e4e7;border-radius:12px;margin:8px 0}
.btn{width:100%;padding:12px;border-radius:12px;border:0;font-weight:700;margin-top:8px}
.btn.google{background:#fff;border:1px solid #e4e4e7} .btn.primary{background:#0f5bff;color:#fff}
.divider{display:flex;align-items:center;gap:12px;margin:16px 0;color:#999;font-size:12px} .divider:before,.divider:after{content:'';flex:1;height:1px;background:#eee}

/* Compact wallet earning actions */
.earn-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 16px 6px}
.compact-box{margin:0!important;padding:12px 10px!important;border-radius:16px!important;box-shadow:0 2px 8px rgba(15,23,42,.04)}
.compact-box h3{font-size:13px!important;line-height:1.2;margin:0 0 9px!important;text-align:center}
.compact-box .pkg-row{gap:6px}
.compact-box .pkg-btn{min-width:0;width:100%;padding:9px 6px!important;border-radius:11px;font-size:12px}
.compact-box .pkg-btn b{font-size:13px}
.compact-box .pkg-btn span{font-size:11px}
.compact-box .ad-btn{font-size:12px!important;white-space:nowrap}
.compact-box .mini-msg{font-size:10px;margin-top:5px;min-height:0;color:#059669;text-align:center}

/* Location + My Account interface */
.brand-block{flex:1;min-width:0}
.brand-title{font-weight:800;line-height:1.1}
.brand-subtitle{font-size:10px;color:#777;margin-top:2px}
.top-action{border:1px solid #e7e7eb;background:#fff;border-radius:14px;min-height:42px;padding:7px 9px;display:flex;align-items:center;gap:5px;font-weight:700;color:#111;cursor:pointer;max-width:132px}
.top-action-icon{font-size:16px}
.location-action{max-width:118px;font-size:11px}
.location-action span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-action{max-width:118px}
.account-avatar{width:26px;height:26px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#f1f5f9;flex:0 0 26px;font-size:15px}
.account-avatar img{width:100%;height:100%;object-fit:cover}
.account-name{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.modal-layer{position:fixed;inset:0;background:rgba(15,23,42,.48);z-index:80;display:none;align-items:flex-end;justify-content:center;padding:12px}
.modal-layer.open{display:flex}
.modal-card{width:100%;max-width:520px;max-height:92vh;overflow:auto;background:#fff;border-radius:24px 24px 16px 16px;padding:18px;box-shadow:0 20px 60px rgba(0,0,0,.2)}
.modal-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.modal-head h2{margin:0;font-size:20px}
.modal-head p{margin:4px 0 0;color:#6b7280;font-size:12px;line-height:1.4}
.modal-close{border:0;background:#f3f4f6;width:34px;height:34px;border-radius:50%;font-size:22px;line-height:1;cursor:pointer}
.location-current{background:#eef6ff!important;color:#0f5bff!important;border:1px solid #dbeafe!important}
.modal-msg{min-height:18px;font-size:12px;margin:7px 0;color:#64748b}
.location-form label,.profile-form label{display:block;font-size:12px;font-weight:700;color:#374151;margin-top:8px}
.location-form .input,.profile-form .input{margin:6px 0 2px}
.location-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.service-area-msg{border-radius:12px;padding:10px;margin:10px 0;font-size:12px;font-weight:700;display:none}
.service-area-msg.available{display:block;background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}
.service-area-msg.unavailable{display:block;background:#fff1f2;color:#be123c;border:1px solid #fecdd3}
.profile-top{display:flex;align-items:center;gap:14px;padding:4px 0 12px}
.profile-photo{width:72px;height:72px;border-radius:50%;object-fit:cover;background:#f1f5f9;border:2px solid #e5e7eb}
.profile-name-preview{font-weight:800;font-size:16px}
.profile-email-preview{font-size:11px;color:#6b7280;margin-top:2px;word-break:break-all}
.photo-btn{display:inline-flex!important;margin-top:8px!important;background:#f3f4f6;color:#111;border-radius:10px;padding:8px 10px;font-size:11px!important;cursor:pointer}
.profile-textarea{min-height:88px;resize:vertical}
@media(max-width:430px){
  .header{gap:7px;padding:10px 10px}
  .h-logo{width:40px;height:40px;border-radius:12px;font-size:19px}
  .brand-title{font-size:14px}
  .brand-subtitle{font-size:8px}
  .top-action{padding:6px 7px;min-height:38px;border-radius:12px}
  .location-action{max-width:92px}
  .account-action{max-width:72px}
  .account-name{display:none}
}

/* v20261009 modal safety fallback */
html,body{max-width:100%;overflow-x:hidden}.modal-layer{z-index:9999}.modal-card{box-sizing:border-box;overflow-x:hidden;}

/* Reliable mobile tap targets */
.header{position:sticky;top:0;z-index:100!important}
.top-action{position:relative!important;z-index:101!important;pointer-events:auto!important;touch-action:manipulation!important;-webkit-tap-highlight-color:rgba(37,99,235,.15)!important}
.top-action *{pointer-events:none!important}

/* Recently Used horizontal app rail */
.recent-section{margin:10px 0 14px;padding:0 16px}
.recent-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px}
.recent-head h2{margin:0;font-size:15px;font-weight:800;letter-spacing:-.2px}
.recent-hint{font-size:10px;color:#94a3b8;font-weight:700}
.recent-scroller{display:flex;gap:9px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:none;padding:2px 18px 7px 0;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.recent-scroller::-webkit-scrollbar{display:none}
.recent-app-card{flex:0 0 calc((100% - 27px)/4);min-width:76px;max-width:120px;height:68px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;box-shadow:0 4px 12px rgba(15,23,42,.06);padding:8px 7px;text-align:center;scroll-snap-align:start;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.recent-app-card:active{transform:scale(.97)}
.recent-app-name{font-size:11px;font-weight:800;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.recent-app-cost{font-size:9px;color:#64748b;font-weight:700}
@media(max-width:360px){
 .recent-app-card{flex-basis:78px}
 .recent-section{padding:0 12px}
}
