/* ATHAR 2.0 — 114 FINAL PRO
 * 1) Linear-gradient toasts  (green = success, red = error) with icons
 * 2) "Select Plan Validity" bigger button style
 * 3) APK FILE & SETUP VIDEO  -> one small centered button
 * 4) Drawer: smoother, profile logo + name, Edit Profile
 * Loaded LAST so it wins over every earlier patch layer.
 */

/* ───────────────────── 1) TOAST — solid, rounded, icon + × + countdown bar ───────────────────── */
html body #custom-toast.toast-popup{
  position:fixed!important;
  top:calc(env(safe-area-inset-top,0px) + 10px)!important;left:10px!important;right:10px!important;bottom:auto!important;
  width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;
  display:flex!important;align-items:center!important;gap:18px!important;
  padding:22px 46px 20px 20px!important;min-height:70px;border:0!important;border-radius:10px!important;
  color:#fff!important;font-size:15.5px!important;font-weight:500!important;line-height:1.35!important;letter-spacing:.1px;
  background:linear-gradient(90deg,#33d4a2,#3ddcae)!important;
  box-shadow:0 8px 22px rgba(0,0,0,.28)!important;
  transform:translateY(-140%)!important;opacity:0!important;pointer-events:none!important;
  transition:transform .38s cubic-bezier(.22,1,.36,1),opacity .25s ease!important;
  z-index:2147483600!important;overflow:visible!important;
}
html body #custom-toast.toast-popup.show{transform:translateY(0)!important;opacity:1!important;pointer-events:auto!important;left:10px!important;right:10px!important}
html body #custom-toast.toast-popup::after{ /* countdown bar (top-left) */
  content:"";display:block!important;position:absolute;top:-2px;left:0;height:8px;width:100%;border-radius:8px;
  background:#9cc40a;transform-origin:left;transform:scaleX(0);
}
html body #custom-toast.toast-popup.show::after{animation:athToastBar 3.4s linear forwards}
@keyframes athToastBar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
html body #custom-toast.toast-warn{background:linear-gradient(90deg,#f59e0b,#fbb53a)!important}
html body #custom-toast.toast-warn::after{background:#b45309}
html body #custom-toast.toast-info{background:linear-gradient(90deg,#3b82f6,#60a5fa)!important}
html body #custom-toast.toast-info::after{background:#1e40af}
html body #custom-toast.toast-error{background:linear-gradient(90deg,#ef4444,#f87171)!important}
html body #custom-toast.toast-error::after{background:#7f1d1d}
html body #custom-toast .toast-icon{
  flex:none!important;width:38px!important;height:38px!important;border:0!important;border-radius:0!important;background:transparent!important;
  display:grid!important;place-items:center!important;font-size:34px!important;color:#fff!important;box-shadow:none!important;animation:none!important;
}
html body #custom-toast .toast-icon i{margin:0!important;color:#fff!important;font-size:34px!important}
html body #custom-toast #toast-text{flex:1;min-width:0;color:#fff!important;word-break:break-word}
html body #custom-toast .toast-close-btn{
  position:absolute!important;top:6px!important;right:12px!important;width:30px;height:30px;display:grid;place-items:center;
  background:transparent!important;color:#fff!important;border:0!important;font-size:20px!important;margin:0!important;padding:0!important;
}

/* KR2 key-reset toasts share the same look */
#kr2-toast-container .toast,#kr2-toast-container .kr2-toast{
  border-radius:16px!important;color:#fff!important;font-weight:800!important;border:1px solid rgba(255,255,255,.26)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.35)!important;background:linear-gradient(135deg,#1f2937,#111827)!important;
}
#kr2-toast-container .toast.success{background:linear-gradient(135deg,#047857,#10b981 55%,#34d399)!important}
#kr2-toast-container .toast.error{background:linear-gradient(135deg,#991b1b,#dc2626 55%,#f87171)!important}
#kr2-toast-container .toast.info{background:linear-gradient(135deg,#1e3a8a,#2563eb 60%,#60a5fa)!important}
#kr2-toast-container .toast .toast-message{color:#fff!important}
#kr2-toast-container .toast .toast-icon{background:rgba(255,255,255,.22)!important;color:#fff!important;border:2px solid rgba(255,255,255,.5)!important}
#kr2-toast-container .toast .toast-icon i{color:#fff!important}

/* ─────────── 2) SELECT PLAN VALIDITY — one linear deep-red bar ─────────── */
html body #price-panel .purchase-box > .step-label.price-section-btn:first-child,
html body #price-panel .purchase-box > .step-label.price-section-btn:first-of-type{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  width:100%!important;min-height:42px!important;height:auto!important;padding:0 14px!important;margin:0 0 12px!important;
  border-radius:12px!important;border:0!important;box-sizing:border-box!important;
  font-size:13.5px!important;font-weight:800!important;letter-spacing:.3px!important;color:#fff!important;text-align:center!important;
  background:linear-gradient(90deg,#4a070e 0%,#8f0f1c 50%,#c4122a 100%)!important;
  box-shadow:0 6px 16px rgba(143,15,28,.45),inset 0 1px 0 rgba(255,255,255,.12)!important;
}
html body #price-panel .purchase-box > .step-label.price-section-btn:first-child i{font-size:14px!important;color:#fff!important;margin:0!important}

/* ── deep red everywhere on the product page ── */
html body #price-panel .flat-price-list .flat-price-item{
  background:linear-gradient(135deg,#2b060b,#170407)!important;border:1.5px solid rgba(160,16,30,.6)!important;border-radius:14px!important;
}
html body #price-panel .flat-price-list .flat-price-item.selected{
  background:linear-gradient(135deg,#7a0d18,#b3121f 60%,#d4162a)!important;border-color:#ff5a68!important;
  box-shadow:0 8px 20px rgba(143,15,28,.5)!important;
}
html body #price-panel .price-display-box{background:linear-gradient(135deg,#2b060b,#170407)!important;border:1.5px solid rgba(160,16,30,.55)!important}
html body #price-panel .quantity-selector{background:linear-gradient(135deg,#2b060b,#170407)!important;border:1.5px solid rgba(160,16,30,.5)!important}
html body #price-panel .qty-btn{background:linear-gradient(135deg,#8f0f1c,#c4122a)!important;color:#fff!important}
html body #price-panel .method-btn.selected,html body #price-panel .pay-choice-btn.selected{
  background:linear-gradient(135deg,#4a070e,#8f0f1c)!important;border:1.5px solid #ff5a68!important}
html body #price-panel .payment-method-buy-btn{background:linear-gradient(90deg,#4a070e,#8f0f1c 50%,#c4122a)!important;color:#fff!important;
  box-shadow:0 10px 22px rgba(143,15,28,.5)!important}

/* ── panel logo + name sit higher ── */
html body #price-panel .payment-home-topbar{padding-top:8px!important;padding-bottom:6px!important;min-height:0!important}
html body #price-panel .panel-visible-back{margin:2px 12px 0!important}
html body #price-panel .panel-meta{margin:4px 12px 8px!important;padding:10px 12px!important;border-radius:18px!important;gap:12px!important}
html body #price-panel .panel-logo-display{width:68px!important;height:68px!important;border-radius:16px!important}
html body #price-panel .panel-title{font-size:16px!important;margin:0 0 3px!important}

/* ─────────── 3) APK FILE & SETUP VIDEO — one small centered button ─────────── */
html body #price-panel .apk-middle-wrap{
  display:flex!important;justify-content:center!important;align-items:center!important;
  width:100%!important;margin:12px 0!important;
}
html body #price-panel .apk-middle-wrap #panel-apk-link,
html body #price-panel .apk-middle-wrap .apk-middle-btn,
html body #price-panel .apk-middle-wrap .btn-file.apk-middle-btn{
  display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;
  gap:8px!important;width:auto!important;min-width:0!important;max-width:88%!important;height:38px!important;
  padding:0 16px 0 6px!important;margin:0 auto!important;border-radius:999px!important;
  border:1px solid rgba(255,59,78,.55)!important;
  background:linear-gradient(135deg,rgba(225,29,46,.26),rgba(120,12,24,.16))!important;
  color:#fff!important;text-decoration:none!important;box-shadow:0 6px 16px rgba(225,29,46,.22)!important;
  white-space:nowrap!important;
}
html body #price-panel .apk-middle-wrap .apk-ico{
  width:26px!important;height:26px!important;border-radius:50%!important;font-size:12px!important;flex:none;
  display:grid!important;place-items:center!important;box-shadow:none!important;
  background:linear-gradient(135deg,#ff3b4e,#b30d22)!important;
}
html body #price-panel .apk-middle-wrap .apk-txt{font-size:11.5px!important;font-weight:800!important;letter-spacing:.3px!important}
html[data-theme="light"] body #price-panel .apk-middle-wrap #panel-apk-link{color:#8f0f1c!important;background:#fff1f2!important}

/* ─────────── 4) DRAWER ─────────── */
html body .drawer{
  transition:transform .46s cubic-bezier(.32,.72,0,1),box-shadow .46s ease!important;
  will-change:transform;backface-visibility:hidden;
  background:linear-gradient(180deg,#1a080b 0%,#0b0406 55%,#060203 100%)!important;
  border-radius:0 28px 28px 0!important;overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain;
}
html body .drawer-overlay{
  transition:opacity .4s ease,visibility .4s ease!important;
  -webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:rgba(0,0,0,.55)!important;
}
html body .drawer .ath-dh{
  display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center;
  padding:30px 16px 18px!important;gap:0!important;
  background:
    radial-gradient(120% 90% at 50% -10%,rgba(255,59,78,.5),transparent 62%),
    linear-gradient(180deg,rgba(143,15,28,.35),transparent)!important;
}
html body .drawer .ath-dh .drawer-avatar{
  width:88px!important;height:88px!important;border-radius:50%!important;font-size:34px!important;
  background-size:cover!important;background-position:center!important;
  border:3px solid rgba(255,255,255,.85)!important;
  box-shadow:0 0 0 5px rgba(255,59,78,.28),0 14px 34px rgba(225,29,46,.55)!important;
  position:relative;margin-bottom:12px;
}
html body .drawer .ath-dh .drawer-user-info{width:100%;display:flex;flex-direction:column;align-items:center}
html body .drawer .ath-dh h4{
  font-size:19px!important;font-weight:900!important;margin:0 0 3px!important;max-width:100%;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff!important;
}
html body .drawer .ath-dh p{font-size:12.5px!important;margin:0 0 9px!important;opacity:.8;max-width:100%;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal!important}
html body .drawer .ath-dh .drawer-close{top:14px!important;right:14px!important;border-radius:50%!important}

/* Edit Profile pill inside the drawer header (injected by 114 JS) */
.ath-drawer-edit{
  display:none;align-items:center;justify-content:center;gap:7px;margin-top:11px;
  height:36px;padding:0 18px;border-radius:999px;border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.12);color:#fff;font-size:12.5px;font-weight:800;letter-spacing:.3px;cursor:pointer;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:transform .15s ease,background .2s ease;
}
.ath-drawer-edit:active{transform:scale(.95);background:rgba(255,255,255,.22)}
body.athar-user-logged-in .ath-drawer-edit{display:inline-flex}

/* menu items: soft slide-in when the drawer opens */
html body .drawer .drawer-menu-item{
  transition:background .2s ease,transform .2s ease,border-color .2s ease!important;border-radius:16px!important;
}
html body .drawer .drawer-menu-item:active{transform:scale(.97)}
html body .drawer.open .drawer-menu-item,
html body .drawer.open .ath-drawer-balance,
html body .drawer.open .ath-drawer-pref{animation:athDrawerIn .5s cubic-bezier(.22,1,.36,1) both}
html body .drawer.open .drawer-menu-item:nth-child(1){animation-delay:.04s}
html body .drawer.open .drawer-menu-item:nth-child(2){animation-delay:.07s}
html body .drawer.open .drawer-menu-item:nth-child(3){animation-delay:.10s}
html body .drawer.open .drawer-menu-item:nth-child(4){animation-delay:.13s}
html body .drawer.open .drawer-menu-item:nth-child(5){animation-delay:.16s}
html body .drawer.open .drawer-menu-item:nth-child(6){animation-delay:.19s}
html body .drawer.open .drawer-menu-item:nth-child(n+7){animation-delay:.22s}
@keyframes athDrawerIn{from{opacity:0;transform:translateX(-16px)}to{opacity:1;transform:translateX(0)}}
html body .drawer .ath-drawer-balance{border-radius:22px!important}
html body .drawer .drawer-version{letter-spacing:1.4px;font-weight:800;opacity:.6;padding:6px 0 4px}

html[data-theme="light"] body .drawer{background:#fff!important}
html[data-theme="light"] body .drawer .ath-dh h4{color:#111827!important}
html[data-theme="light"] body .drawer .ath-dh p{color:#6b7280!important}
html[data-theme="light"] .ath-drawer-edit{color:#8f0f1c;background:#fff1f2;border-color:#fecdd3}

@media (prefers-reduced-motion:reduce){
  html body .drawer,html body .drawer-overlay,html body #custom-toast.toast-popup{transition-duration:.01s!important}
  html body .drawer.open .drawer-menu-item,html body .drawer.open .ath-drawer-balance,html body .drawer.open .ath-drawer-pref{animation:none!important}
}

/* ─────────── 5) LATEST ORDER — compact, no side line ─────────── */
html body #home-view .home-orders-section{padding:12px 10px!important;border-radius:20px!important;
  background:linear-gradient(180deg,#1a070a,#0a0305)!important;border:1px solid rgba(179,18,31,.45)!important}
html body #home-view .home-orders-title{margin-bottom:10px!important;padding-bottom:9px!important;border-bottom:1px solid rgba(179,18,31,.3)!important}
html body #home-view .live-order-label{font-size:13px!important;letter-spacing:.7px!important}
html body #home-view .live-order-label::before{font-size:13px!important;color:#e11d2e!important}
html body .live-orders-pill{padding:3px 10px!important;font-size:10.5px!important}
html body #home-view .lo-card{
  padding:9px 10px!important;margin:0 0 8px!important;border-radius:14px!important;gap:8px!important;
  background:linear-gradient(135deg,rgba(143,15,28,.28),rgba(30,6,10,.6))!important;
  border:1px solid rgba(179,18,31,.38)!important;box-shadow:none!important;
}
html body #home-view .lo-card::before,html body #home-view .lo-card::after{display:none!important;content:none!important}
html body #home-view .lo-left{gap:10px!important}
html body #home-view .lo-avatar{width:38px!important;height:38px!important;border-radius:50%!important;font-size:15px!important;
  border:1.5px solid rgba(255,255,255,.28)!important;background-color:#8f0f1c;background-size:cover;background-position:center}
html body #home-view .lo-name{font-size:13px!important;font-weight:800!important}
html body #home-view .lo-panel{font-size:11.5px!important;color:#ff8a96!important}
html body #home-view .lo-sub{font-size:10.5px!important;gap:4px!important}
html body #home-view .lo-status-paid,html body #home-view .lo-status-pending{padding:4px 8px!important;font-size:9px!important;letter-spacing:.1px!important}
html body #home-view .lo-empty{font-size:12px!important;border-radius:14px!important}

/* ─────────── 6) LOGIN / REGISTER — smaller button text ─────────── */
html body #login-view .login-submit,html body #signup-view .signup-submit,html body #login-view .login-submit-btn,
html body #auth-form-box .login-submit-btn{
  font-size:15px!important;min-height:50px!important;letter-spacing:.5px!important;font-weight:800!important;
}
html body #login-view .google-login-btn,html body #signup-view .google-login-btn{font-size:13.5px!important}
