/* =====================================================================
   ATHAR 2.0 — 113 UX FINAL
   1) Smooth + fast tap everywhere
   2) Select Plan / Price box: NO outlines, full width (match parent)
   3) Login & Sign Up: smaller text + buttons
   4) Edit Profile: cleaner, smoother bottom-sheet
   Loaded LAST — uses !important only where older patches already do.
   ===================================================================== */

:root{
  --ux-surface:#120708;
  --ux-surface-2:#1a0b0d;
  --ux-surface-sel:linear-gradient(135deg,rgba(225,29,46,.38),rgba(120,12,24,.34));
  --ux-text:#fff;
  --ux-muted:#a1a1aa;
  --ux-accent:#ff3b4e;
  --ux-field:#0d0506;
  --ux-sheet:#0b0507;
  --ux-ease:cubic-bezier(.22,.8,.3,1);
}
html[data-theme="light"]{
  --ux-surface:#ffffff;
  --ux-surface-2:#f3f4f6;
  --ux-surface-sel:linear-gradient(135deg,rgba(225,29,46,.16),rgba(225,29,46,.08));
  --ux-text:#111827;
  --ux-muted:#6b7280;
  --ux-field:#f3f4f6;
  --ux-sheet:#ffffff;
}

/* ───────────── 1) SMOOTH + FAST CLICK ───────────── */
html{scroll-behavior:auto!important}
a,button,input,select,textarea,label,summary,[role="button"],[onclick],
.nav-item,.section-tab,.logo-card,.panel-card,.grid-item,.flat-price-item,
.qty-btn,.method-btn,.pay-choice-btn,.af-chip,.drawer-menu-item{
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  -webkit-touch-callout:none;
}
button,[onclick],.nav-item,.section-tab,.logo-card,.panel-card,.grid-item,
.flat-price-item,.qty-btn,.method-btn,.pay-choice-btn,.af-chip,.drawer-menu-item{
  cursor:pointer;
  /* animate only cheap properties — never `all` */
  transition:transform .12s var(--ux-ease),opacity .12s linear,background-color .15s linear,color .15s linear!important;
  will-change:auto;
}
button:active,[onclick]:active,.nav-item:active,.section-tab:active,.logo-card:active,
.panel-card:active,.grid-item:active,.flat-price-item:active,.qty-btn:active,
.method-btn:active,.pay-choice-btn:active,.af-chip:active,.drawer-menu-item:active,
.ux-press{
  transform:scale(.97)!important;
  opacity:.92;
}
/* big blur layers are the #1 cause of tap lag on phones — drop them */
.edit-profile-overlay,.edit-profile-box,.notification-popup,.verifying-popup-overlay,
.info-modal-overlay,.drawer-overlay,.pf-forgot-overlay,.bottom-nav,.top-header,
[class*="overlay"]{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
/* keep heavy decorative animation off while the user is touching/typing */
body.ux-touching [class*="glow"],
body.ux-touching [class*="pulse"],
body.input-focus [class*="glow"],
body.input-focus [class*="pulse"]{animation-play-state:paused!important}
.panel,.edit-profile-box,#login-view,#signup-view{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
img{content-visibility:auto}

/* ───────────── 2) SELECT PLAN / PRICE BOX ─────────────
   no outlines anywhere + full width of the screen          */
#price-panel{--pp-side:12px}
#price-panel .purchase-box{
  box-sizing:border-box!important;
  width:calc(100% + (var(--pp-side) * 2))!important;
  max-width:none!important;
  margin:0 calc(var(--pp-side) * -1)!important;
  padding:14px var(--pp-side) 18px!important;
  border:0!important;
  outline:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:var(--ux-surface)!important;
}
#price-panel .purchase-box *{outline:0!important}

/* section pills ("Select Plan Validity", "Payment Method") */
#price-panel .step-label.price-section-btn{
  display:flex!important;
  width:100%!important;
  box-sizing:border-box!important;
  border:0!important;
  box-shadow:none!important;
  background:var(--ux-surface-2)!important;
  color:var(--ux-text)!important;
  border-radius:12px!important;
  padding:10px 12px!important;
  margin:0 0 8px!important;
  font-size:12px!important;
}
#price-panel .step-label.price-section-btn i{color:var(--ux-accent)!important}

/* plan tiles */
#price-panel .flat-price-list{
  width:100%!important;
  max-width:100%!important;
  margin:4px 0 12px!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
#price-panel .flat-price-item,
#price-panel .flat-price-item:hover,
#price-panel .flat-price-item:active,
#price-panel .flat-price-item.selected{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:12px!important;
  padding:12px!important;
}
#price-panel .flat-price-item{background:var(--ux-surface-2)!important}
#price-panel .flat-price-item.selected{background:var(--ux-surface-sel)!important}
#price-panel .flat-price-item.selected .flat-plan-name{color:var(--ux-text)!important}
#price-panel .flat-price-item .flat-plan-name{color:var(--ux-text)!important}

/* quantity, total, payment card */
#price-panel .quantity-selector,
#price-panel .quantity-selector.athar-qty-combined,
#price-panel .quantity-selector:hover{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  border:0!important;
  box-shadow:none!important;
  background:var(--ux-surface-2)!important;
  margin:0 0 10px!important;
}
#price-panel .quantity-selector .qty-number{border:0!important;background:transparent!important;color:var(--ux-text)!important}
#price-panel .price-display-box{
  width:100%!important;
  box-sizing:border-box!important;
  border:0!important;
  box-shadow:none!important;
  background:var(--ux-surface-2)!important;
  border-radius:12px!important;
}
#price-panel .athar-pay-card{
  width:100%!important;
  box-sizing:border-box!important;
  margin:12px 0 0!important;
  border:0!important;
  box-shadow:none!important;
  background:var(--ux-surface-2)!important;
  border-radius:14px!important;
}
#price-panel .athar-pay-card .panel-pay-balance-info{border:0!important;box-shadow:none!important}
#price-panel .method-selector,
#price-panel #panel-payment-method-selector{width:100%!important;box-sizing:border-box!important}
#price-panel .method-btn,
#price-panel .pay-choice-btn,
#price-panel .method-btn:hover,
#price-panel .method-btn.selected,
#price-panel .pay-choice-btn.selected,
body #price-panel #panel-payment-method-selector .pay-choice-btn,
body #price-panel #panel-payment-method-selector .pay-choice-btn.selected{
  border:0!important;
  box-shadow:none!important;
  background:var(--ux-surface)!important;
}
body #price-panel #panel-payment-method-selector .pay-choice-btn.selected,
#price-panel .method-btn.selected{background:var(--ux-surface-sel)!important}
#price-panel .payment-method-buy-btn{width:100%!important;border:0!important;box-shadow:none!important}

/* ───────────── 3) LOGIN + SIGN UP — smaller text & buttons ───────────── */
body #login-view .login-system-card,
body #signup-view .signup-card{padding:18px 16px!important;border-radius:18px!important}
body #login-view .login-system-card h2,
body #signup-view .signup-card h2{font-size:20px!important;line-height:1.2!important;margin:0 0 4px!important}
body #login-view .login-subtitle,
body #signup-view .signup-subtitle{font-size:11.5px!important;line-height:1.35!important;margin:0 0 12px!important}
body #login-view .input-group,
body #signup-view .input-group{margin-bottom:9px!important}
body #login-view .input-group label,
body #signup-view .input-group label{font-size:10px!important;letter-spacing:.4px!important;margin-bottom:3px!important}
/* inputs keep 16px text so iOS never zooms, but get a slimmer box */
body #login-view .input-group input,
body #signup-view .input-group input{
  min-height:42px!important;height:42px!important;padding:0 12px!important;
  font-size:16px!important;border-radius:11px!important;
}
body #login-view .google-login-btn,
body #signup-view .google-login-btn{
  min-height:42px!important;height:42px!important;padding:0 12px!important;
  font-size:12px!important;font-weight:800!important;letter-spacing:.3px!important;
  border-radius:11px!important;gap:8px!important;margin-bottom:10px!important;
}
body #login-view .google-login-btn span,
body #signup-view .google-login-btn span{font-size:12px!important}
body #login-view .google-login-btn img,
body #signup-view .google-login-btn img{width:16px!important;height:16px!important}
body #login-view .login-submit,
body #signup-view .signup-submit,
body #login-view .login-submit-btn{
  min-height:42px!important;height:42px!important;padding:0 14px!important;
  font-size:12.5px!important;font-weight:800!important;letter-spacing:.5px!important;
  border-radius:11px!important;margin-top:4px!important;
}
body #login-view .auth-divider,
body #signup-view .auth-divider{font-size:10px!important;margin:8px 0 12px!important}
body #login-view .login-signup-note,
body #signup-view .signup-login-note{font-size:11.5px!important;margin-top:12px!important}
body #login-view .login-back,
body #signup-view .signup-back{font-size:12px!important;padding:6px 10px!important}
body #login-view .toggle-pass,
body #signup-view .toggle-pass{font-size:13px!important}
/* the account tab login/register form (second copy of the form) */
body #account-view .login-submit-btn,
body #account-view .auth-tab-btn{min-height:40px!important;font-size:12.5px!important}

/* specificity boost for section 3 */

html body #login-view .login-shell .login-system-card,
html body #signup-view .signup-shell .signup-card{padding:18px 16px!important;border-radius:18px!important}
html body #login-view .login-shell .login-system-card h2,
html body #signup-view .signup-shell .signup-card h2{font-size:20px!important;line-height:1.2!important;margin:0 0 4px!important}
html body #login-view .login-shell .login-subtitle,
html body #signup-view .signup-shell .signup-subtitle{font-size:11.5px!important;line-height:1.35!important;margin:0 0 12px!important}
html body #login-view .login-shell .input-group,
html body #signup-view .signup-shell .input-group{margin-bottom:9px!important}
html body #login-view .login-shell .input-group label,
html body #signup-view .signup-shell .input-group label{font-size:10px!important;letter-spacing:.4px!important;margin-bottom:3px!important}
/* inputs keep 16px text so iOS never zooms, but get a slimmer box */
html body #login-view .login-shell .input-group input,
html body #signup-view .signup-shell .input-group input{
  min-height:42px!important;height:42px!important;padding:0 12px!important;
  font-size:16px!important;border-radius:11px!important;
}
html body #login-view .login-shell .google-login-btn,
html body #signup-view .signup-shell .google-login-btn{
  min-height:42px!important;height:42px!important;padding:0 12px!important;
  font-size:12px!important;font-weight:800!important;letter-spacing:.3px!important;
  border-radius:11px!important;gap:8px!important;margin-bottom:10px!important;
}
html body #login-view .login-shell .google-login-btn span,
html body #signup-view .signup-shell .google-login-btn span{font-size:12px!important}
html body #login-view .login-shell .google-login-btn img,
html body #signup-view .signup-shell .google-login-btn img{width:16px!important;height:16px!important}
html body #login-view .login-shell .login-submit,
html body #signup-view .signup-shell .signup-submit,
html body #login-view .login-shell .login-submit-btn{
  min-height:42px!important;height:42px!important;padding:0 14px!important;
  font-size:12.5px!important;font-weight:800!important;letter-spacing:.5px!important;
  border-radius:11px!important;margin-top:4px!important;
}
html body #login-view .login-shell .auth-divider,
html body #signup-view .signup-shell .auth-divider{font-size:10px!important;margin:8px 0 12px!important}
html body #login-view .login-shell .login-signup-note,
html body #signup-view .signup-shell .signup-login-note{font-size:11.5px!important;margin-top:12px!important}
html body #login-view .login-shell .login-back,
html body #signup-view .signup-shell .signup-back{font-size:12px!important;padding:6px 10px!important}
html body #login-view .login-shell .toggle-pass,
html body #signup-view .signup-shell .toggle-pass{font-size:13px!important}
/* the account tab login/register form (second copy of the form) */
body #account-view .login-submit-btn,
body #account-view .auth-tab-btn{min-height:40px!important;font-size:12.5px!important}

/* ───────────── 4) EDIT PROFILE — premium bottom sheet ───────────── */
body .edit-profile-overlay{
  background:rgba(0,0,0,.72)!important;
  align-items:flex-end!important;
  justify-content:center!important;
  padding:0!important;
}
body .edit-profile-overlay.active{animation:uxFade .18s linear both}
body .edit-profile-overlay.active .edit-profile-box,
body .edit-profile-overlay.active .edit-profile-box.white-edit{animation:uxSheetUp .26s var(--ux-ease) both!important}
body .edit-profile-box,
body .edit-profile-box.white-edit{
  width:100%!important;
  max-width:520px!important;
  max-height:92vh!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:24px 24px 0 0!important;
  background:var(--ux-sheet)!important;
  color:var(--ux-text)!important;
  box-shadow:0 -12px 40px rgba(0,0,0,.45)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain;
  padding-bottom:env(safe-area-inset-bottom,0px)!important;
}
/* grab handle */
body .edit-profile-box::before{
  content:"";display:block;width:38px;height:4px;border-radius:4px;
  background:rgba(255,255,255,.22);margin:10px auto 2px;
}
html[data-theme="light"] body .edit-profile-box::before{background:rgba(0,0,0,.18)}

body .edit-profile-box .edit-header{
  position:sticky;top:0;z-index:3;
  padding:10px 18px 6px!important;margin:0!important;
  background:var(--ux-sheet);
}
body .edit-profile-box .edit-header h3,
body .edit-profile-box.white-edit .edit-header h3{font-size:17px!important;font-weight:800!important;color:var(--ux-text)!important}
body .edit-profile-box .edit-header h3 span{color:var(--ux-accent)!important}
body .edit-profile-box .close-edit-btn{
  width:34px;height:34px;display:grid;place-items:center;border-radius:50%!important;
  background:var(--ux-surface-2)!important;color:var(--ux-text)!important;
  font-size:15px!important;padding:0!important;transition:transform .15s var(--ux-ease)!important;
}
body .edit-profile-box .close-edit-btn:hover{transform:none!important}
body .edit-profile-box .close-edit-btn:active{transform:scale(.9)!important}
body .edit-profile-box .edit-subtitle,
body .edit-profile-box.white-edit .edit-subtitle{
  padding:0 18px!important;margin:0 0 12px!important;font-size:11.5px!important;color:var(--ux-muted)!important;
}
body .edit-profile-box form{padding:0 14px 18px!important}

/* section cards — soft fill, no outline */
body .edit-profile-box .edit-section-card{
  background:var(--ux-surface-2)!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:16px!important;
  padding:14px!important;
  margin:0 0 12px!important;
}
body .edit-profile-box .edit-section-title{
  font-size:11px!important;font-weight:800!important;letter-spacing:.6px;
  text-transform:uppercase;color:var(--ux-accent)!important;margin:0 0 12px!important;
}
body .edit-profile-box .input-group{margin-bottom:11px!important}
body .edit-profile-box .input-group:last-child{margin-bottom:0!important}
body .edit-profile-box .input-group label{
  font-size:10px!important;font-weight:700!important;color:var(--ux-muted)!important;margin:0 0 5px 2px!important;
}
body .edit-profile-box .input-group input,
body .edit-profile-box.white-edit .input-group input{
  width:100%!important;box-sizing:border-box!important;
  height:44px!important;padding:0 13px!important;
  font-size:16px!important;color:var(--ux-text)!important;
  background:var(--ux-field)!important;
  border:1.5px solid transparent!important;
  border-radius:12px!important;
  transition:border-color .15s linear,background-color .15s linear!important;
}
body .edit-profile-box .input-group input:focus{border-color:var(--ux-accent)!important;outline:0!important}
body .edit-profile-box .input-group input[readonly]{opacity:.7!important}

/* photo */
body .edit-profile-box .photo-upload-area{margin:0 0 14px!important}
body .edit-profile-box .photo-preview{
  width:78px!important;height:78px!important;border:0!important;
  box-shadow:0 6px 18px rgba(225,29,46,.35)!important;
  background-size:cover!important;background-position:center!important;
}
body .edit-profile-box .camera-overlay{
  width:26px!important;height:26px!important;right:-2px!important;bottom:-2px!important;
  border:3px solid var(--ux-surface-2)!important;
}
body .edit-profile-box .photo-hint{font-size:11px!important;color:var(--ux-muted)!important}

/* code row (input + button side by side) */
body .edit-profile-box .edit-code-row{display:flex!important;gap:8px!important;align-items:stretch!important}
body .edit-profile-box .edit-code-row input{flex:1 1 auto!important;min-width:0!important}
body .edit-profile-box .edit-code-btn{
  flex:0 0 auto!important;height:44px!important;padding:0 14px!important;
  font-size:11.5px!important;font-weight:800!important;border:0!important;border-radius:12px!important;
  color:#fff!important;white-space:nowrap;
}

/* action bar */
body .edit-profile-box .edit-profile-actions{
  position:sticky;bottom:0;z-index:3;
  display:flex!important;gap:10px!important;
  padding:12px 0 4px!important;margin:6px 0 0!important;
  background:linear-gradient(to top,var(--ux-sheet) 70%,transparent);
}
body .edit-profile-box .cancel-edit,
body .edit-profile-box .save-edit{
  height:46px!important;border:0!important;border-radius:13px!important;
  font-size:13px!important;font-weight:800!important;letter-spacing:.3px;
}
body .edit-profile-box .cancel-edit{flex:0 0 32%!important;background:var(--ux-surface-2)!important;color:var(--ux-text)!important}
body .edit-profile-box .save-edit{
  flex:1 1 auto!important;color:#fff!important;
  background:linear-gradient(135deg,#ff3b4e,#b30d22)!important;
  box-shadow:0 8px 20px rgba(225,29,46,.35)!important;
}
body .edit-profile-box .save-edit:disabled{opacity:.6;box-shadow:none!important}
body .edit-profile-box p{line-height:1.45}

@keyframes uxSheetUp{from{opacity:.4;transform:translate3d(0,40px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes uxFade{from{opacity:0}to{opacity:1}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* ───── extra: last remaining outlines / glows in the price area ───── */
#price-panel .apk-middle-btn,
#price-panel .btn-file,
#price-panel .apk-middle-btn:hover{
  border:0!important;box-shadow:none!important;outline:0!important;
  background:var(--ux-surface-sel)!important;color:var(--ux-text)!important;
  width:100%!important;max-width:100%!important;box-sizing:border-box!important;
}
#price-panel .apk-middle-wrap{width:100%!important}
#price-panel .quantity-selector .qty-btn,
#price-panel .quantity-selector .qty-btn:hover,
#price-panel .quantity-selector .qty-number{
  border:0!important;box-shadow:none!important;filter:none!important;
}
#price-panel .quantity-selector .qty-btn{background:var(--ux-field)!important;color:var(--ux-text)!important}
#price-panel #panel-payment-method-selector,
#price-panel .method-selector{border:0!important;box-shadow:none!important;background:transparent!important}
#price-panel .pay-choice-btn *,#price-panel .method-btn *{box-shadow:none!important;filter:none!important}
#price-panel .athar-pay-card .panel-pay-balance-info{background:var(--ux-surface)!important}
#price-panel .flat-price-item .flat-plan-price{text-shadow:none!important}

/* =====================================================================
   SELECT PLAN VALIDITY — elegant thin outlines on every card
   (overrides the "no outline" rules above; full width is kept)
   ===================================================================== */
:root{
  --ux-line:rgba(255,59,78,.34);
  --ux-line-sel:#ff3b4e;
}
html[data-theme="light"]{--ux-line:rgba(225,29,46,.28)}

#price-panel .purchase-box{
  border:0!important;
  border-top:1px solid var(--ux-line)!important;
  border-bottom:1px solid var(--ux-line)!important;
}
#price-panel .step-label.price-section-btn,
#price-panel .flat-price-item,
#price-panel .quantity-selector,
#price-panel .quantity-selector.athar-qty-combined,
#price-panel .price-display-box,
#price-panel .athar-pay-card,
#price-panel .athar-pay-card .panel-pay-balance-info,
#price-panel .method-btn,
#price-panel .pay-choice-btn,
body #price-panel #panel-payment-method-selector .pay-choice-btn{
  border:1px solid var(--ux-line)!important;
  box-shadow:none!important;
}
#price-panel .flat-price-item:hover{border-color:var(--ux-line)!important}
#price-panel .flat-price-item.selected,
#price-panel .method-btn.selected,
#price-panel .pay-choice-btn.selected,
body #price-panel #panel-payment-method-selector .pay-choice-btn.selected{
  border:1.5px solid var(--ux-line-sel)!important;
  box-shadow:inset 0 0 0 1px rgba(255,59,78,.12)!important;
}
#price-panel .flat-price-item,
#price-panel .quantity-selector,
#price-panel .price-display-box,
#price-panel .athar-pay-card,
#price-panel .method-btn,
#price-panel .pay-choice-btn{border-radius:14px!important}
#price-panel .quantity-selector .qty-btn{border:1px solid var(--ux-line)!important;border-radius:10px!important}
#price-panel .quantity-selector .qty-number{border:0!important}
#price-panel #panel-payment-method-selector,
#price-panel .method-selector{border:0!important}

/* APK FILE & SETUP VIDEO — centered icon, then label */
#price-panel .apk-middle-wrap{display:block!important;width:100%!important;margin:12px 0!important}
#price-panel .apk-middle-btn,
#price-panel .btn-file.apk-middle-btn,
#price-panel .apk-middle-btn:hover{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:8px!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;
  padding:14px 12px!important;text-align:center!important;text-decoration:none!important;
  border:1.5px solid var(--ux-line-sel)!important;border-radius:16px!important;box-shadow:none!important;
  background:linear-gradient(160deg,rgba(225,29,46,.20),rgba(120,12,24,.10))!important;
  color:var(--ux-text)!important;
}
#price-panel .apk-ico{
  width:42px;height:42px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(135deg,#ff3b4e,#b30d22);color:#fff;font-size:17px;
  box-shadow:0 6px 16px rgba(225,29,46,.35);
}
#price-panel .apk-ico i{margin:0!important;color:#fff!important}
#price-panel .apk-txt{font-size:12.5px;font-weight:800;letter-spacing:.5px;line-height:1.2}
