/* ATHAR 2.0 — final polish layer (loaded last) */

/* ───── 1. NO SCROLLBARS (removes the thin purple/red line) ───── */
html,body,*{scrollbar-width:none!important;-ms-overflow-style:none!important}
*::-webkit-scrollbar,html::-webkit-scrollbar,body::-webkit-scrollbar{display:none!important;width:0!important;height:0!important;background:transparent!important}
*::-webkit-scrollbar-thumb,*::-webkit-scrollbar-track{display:none!important;background:transparent!important}

/* ───── 2. PERFORMANCE: smooth scrolling + instant taps ───── */
*,*::before,*::after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
#athar-bg .ath-orb{filter:none!important;animation:none!important;will-change:auto!important}
.athar-winter-flake{display:none!important}
.slider-container::after,.slider-container .slider-slide,.slider-slide,.top-header .header-logo-img,
.official-channel-section::before,.mobile-banking-title::after,.panel-rules-inside::before,
.btn-buy-now,.floating-support,.floating-support-wrap,.premium-member-badge,.athar-welcome-pulse,
.af-proceed-btn::after,.athar-wp-logo-glow,.athar-rl-glow{animation:none!important}
button,a,[onclick],.nav-item,.section-tab,.logo-card,.flat-price-item,.qty-btn,.af-chip,.method-btn,.pay-choice-btn{
  touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important;transition-duration:.12s!important}
.lo-card,.flat-price-item{contain:layout style}
#main-content,.account-view,.panel{-webkit-overflow-scrolling:touch}
html{scroll-behavior:auto!important}
body{overscroll-behavior-y:none}
.real-loading-overlay:not(.active){display:none!important;pointer-events:none!important}

/* ───── 3. HEADER: smaller Login / Register ───── */
.ath-actions{gap:6px!important}
.ath-login,.ath-reg{height:32px!important;min-height:0!important;padding:0 12px!important;font-size:12px!important;font-weight:800!important;border-radius:10px!important;letter-spacing:.2px;line-height:1!important}
.ath-bell{width:34px!important;height:34px!important;min-width:34px!important;border-radius:11px!important;font-size:14px!important}
.ath-bal{height:34px!important;border-radius:11px!important;font-size:12px!important;padding:0 10px!important}
.ath-avatar{width:36px!important;height:36px!important;border-radius:50%!important}
@media(max-width:380px){.ath-login,.ath-reg{height:30px!important;padding:0 9px!important;font-size:11px!important}}

/* ───── 4. SECTION BUTTONS → RED ───── */
#sectionTabs .section-tab,.section-extra-tabs .section-tab,.section-tabs .section-tab,.section-more-toggle{
  background:linear-gradient(145deg,#32080d,#16050a)!important;border:1.5px solid rgba(239,68,68,.6)!important;
  color:#ffe4e6!important;box-shadow:0 4px 14px rgba(127,29,29,.28),inset 0 1px 0 rgba(255,255,255,.06)!important;text-shadow:none!important}
#sectionTabs .section-tab.active,.section-extra-tabs .section-tab.active,.section-tabs .section-tab.active,.section-more-toggle[aria-expanded="true"]{
  background:linear-gradient(135deg,#c4122a,#ff3b4e)!important;border-color:#ff7a86!important;color:#fff!important;box-shadow:0 6px 18px rgba(220,38,38,.45)!important}
.section-tab:active,.section-more-toggle:active{transform:scale(.96)}

/* ───── 5. REGISTER PAGE (same look as Login) ───── */
#auth-form-box.register-mode form{display:flex!important;flex-direction:column}
#auth-form-box.register-mode #username-group{order:1}
#auth-form-box.register-mode #acc-email{order:0}
#auth-form-box.register-mode .input-group:has(#acc-email){order:2}
#auth-form-box.register-mode #phone-group{order:3}
#auth-form-box.register-mode .input-group:has(#acc-pass){order:4}
#auth-form-box.register-mode #confirm-pass-group{order:5}
#auth-form-box.register-mode #athar-auth-country-wrap{order:6}
#auth-form-box.register-mode #forgot-password-row{display:none!important}
#auth-form-box.register-mode #auth-submit-btn{order:9;letter-spacing:1px}
#auth-form-box.register-mode #auth-title{font-size:26px!important}

/* ───── 6. LATEST ORDER always visible ───── */
.home-orders-section{display:block!important;visibility:visible!important;opacity:1!important}
#home-latest-orders-list{display:block!important}

/* ───── 7. FOOTER SOCIAL CARDS ───── */
.athar-footer-socials{display:grid!important;grid-template-columns:repeat(3,1fr);gap:10px!important;margin:4px 0 14px!important}
.athar-footer-socials a{width:auto!important;height:auto!important;min-height:78px;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:7px;
  padding:12px 6px!important;border-radius:18px!important;font-size:24px!important;color:#fff!important;position:relative;overflow:hidden;
  border:1.5px solid rgba(239,68,68,.45)!important;background:linear-gradient(160deg,#2a070c,#0d0507 75%)!important;box-shadow:0 8px 20px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.07)}
.athar-footer-socials a[hidden]{display:none!important}
.athar-footer-socials a span{font-size:11px;font-weight:800;letter-spacing:.4px;color:#fecaca}
.athar-footer-socials a i{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;font-size:21px;color:#fff}
.athar-footer-socials .ft-yt i{background:linear-gradient(135deg,#ff0033,#b3001b)}
.athar-footer-socials .ft-tg i{background:linear-gradient(135deg,#2aabee,#1c7fc2)}
.athar-footer-socials .ft-dc i{background:linear-gradient(135deg,#7b86ff,#4f5bd5)}
.athar-footer-socials a:active{transform:scale(.96)}
.athar-footer-socials a:hover{background:linear-gradient(160deg,#3a0a10,#12060a)!important}

/* ───── 8. PRODUCT PAGE ───── */
#price-panel .panel-visible-back{position:relative!important;top:auto!important;left:auto!important;margin:10px 12px 0!important;display:inline-flex!important}
#price-panel .panel-meta{display:flex!important;align-items:center;gap:14px;margin:10px 12px 12px!important;padding:14px!important;border-radius:22px!important;
  background:linear-gradient(145deg,#2c070c 0%,#120406 60%,#1d0509 100%)!important;border:1.5px solid rgba(239,68,68,.5)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.07)!important;position:relative!important;overflow:hidden}
#price-panel .panel-meta::after{content:"";position:absolute;right:-40px;top:-40px;width:130px;height:130px;border-radius:50%;background:radial-gradient(circle,rgba(255,59,78,.22),transparent 70%);pointer-events:none}
#price-panel .panel-left{flex:none!important;position:static!important;margin:0!important}
#price-panel .panel-logo-display{width:86px!important;height:86px!important;border-radius:20px!important;object-fit:cover;border:2px solid rgba(239,68,68,.55)!important;box-shadow:none!important;position:static!important;margin:0!important}
#price-panel .panel-right{min-width:0;flex:1}
#price-panel .panel-title{font-size:18px!important;line-height:1.2!important;margin:0 0 6px!important}
#price-panel .panel-sub-game{display:inline-block;padding:4px 12px;border-radius:999px;font-size:12px!important;font-weight:800;color:#fecaca!important;background:rgba(220,38,38,.18)!important;border:1px solid rgba(239,68,68,.45)}

/* Payment method + balance + purchase = ONE card */
.athar-pay-card{margin:14px 0 6px;padding:14px 12px 14px;border-radius:22px;border:1.5px solid rgba(239,68,68,.5);
  background:linear-gradient(160deg,#2c070c 0%,#140507 55%,#220609 100%);box-shadow:0 14px 34px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.07)}
.athar-pay-card .step-label{margin:0 0 10px!important}
.athar-pay-card .panel-pay-balance-info{margin:12px 0!important;border-radius:16px!important;background:rgba(0,0,0,.28)!important;border:1px solid rgba(239,68,68,.3)!important}
.athar-pay-card .payment-method-buy-btn{width:100%!important;margin:4px 0 0!important;border-radius:16px!important;border:0!important;color:#fff!important;font-weight:900!important;letter-spacing:.8px;
  background:linear-gradient(135deg,#b3001b 0%,#ff3b4e 100%)!important;box-shadow:0 10px 24px rgba(220,38,38,.4)!important}
.athar-pay-card .payment-method-buy-btn:active{transform:scale(.98)}

/* ───── 9. PROFILE AVATAR: no shadow, animated outline ───── */
#profile-view-box .profile-avatar,.pf-header-row .profile-avatar,#profile-initials{
  box-shadow:none!important;filter:none!important;outline:none!important;position:relative!important;border:3px solid #0d0507!important;overflow:visible!important}
#profile-view-box .profile-avatar::before,#profile-initials::before{content:"";position:absolute;inset:-7px;border-radius:50%;pointer-events:none;z-index:-1;
  background:conic-gradient(from 0deg,#ff1744,#ff8a95,transparent 30%,#ff1744 55%,transparent 80%,#ff1744);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));
  animation:atharRingSpin 4s linear infinite;will-change:transform}
#profile-view-box .profile-avatar::after,#profile-initials::after{box-shadow:none!important}
@keyframes atharRingSpin{to{transform:rotate(360deg)}}
#profile-view-box .pf-hero,#profile-view-box .pf-header-row{text-shadow:none}
#profile-view-box [class*="avatar"]{filter:none!important}

/* ───── 10. ADD FUNDS: logos select directly ───── */
.af-gateway-row,.funds-method-modal,#fundsMethodIconsGroup,#fundsSelectedMethodLogo{display:none!important}
#afMethodChips{display:grid!important;grid-template-columns:repeat(3,1fr);gap:10px;margin:6px 0 14px}
.af-chip{position:relative;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:14px 6px 10px!important;min-height:104px;border-radius:18px!important;
  border:1.5px solid rgba(239,68,68,.35)!important;background:linear-gradient(160deg,#25070b,#0e0507)!important;color:#fff!important;cursor:pointer;transition:transform .12s,border-color .12s,background .12s}
.af-chip .af-chip-icon{width:52px!important;height:36px!important;object-fit:contain;border-radius:8px;background:#fff;padding:3px}
.af-chip .af-chip-label{font-size:12px!important;font-weight:800;line-height:1.1}
.af-chip .af-chip-status-text{font-size:10px!important;color:#86efac!important;font-weight:700}
.af-chip.active{border-color:#ff4d5e!important;background:linear-gradient(160deg,#5a0b16,#1c0509)!important;box-shadow:0 0 0 1px rgba(255,77,94,.6),0 10px 24px rgba(220,38,38,.35)!important;transform:translateY(-1px)}
.af-chip.active::after{content:"\f00c";font-family:"Font Awesome 6 Free","Font Awesome 5 Free";font-weight:900;position:absolute;top:6px;right:6px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:10px;background:#22c55e;color:#fff}
.af-chip:active{transform:scale(.96)}
.af-proceed-btn,.funds-submit-btn{border-radius:16px!important;font-weight:900!important;letter-spacing:.8px;background:linear-gradient(135deg,#b3001b,#ff3b4e)!important;box-shadow:0 10px 24px rgba(220,38,38,.4)!important}

/* ───── 11. Hidden side-drawer leaked a thin line at the left screen edge ───── */
.drawer:not(.open){left:-120%!important;box-shadow:none!important;border:0!important;visibility:hidden!important;transition:left .28s ease,visibility 0s linear .28s!important}
.drawer.open{visibility:visible!important;transition:left .28s ease,visibility 0s!important}
#drawerOverlay:not(.open):not(.active):not(.show){display:none!important}

/* MORE button red (beats earlier id-based rules) */
#home-view #sectionMoreToggle.section-more-toggle,body #sectionMoreToggle{background:linear-gradient(145deg,#32080d,#16050a)!important;border:1.5px solid rgba(239,68,68,.6)!important;color:#ffe4e6!important}
#home-view #sectionMoreToggle[aria-expanded="true"]{background:linear-gradient(135deg,#c4122a,#ff3b4e)!important;color:#fff!important}

/* ───── 12. Add Funds page must never be wider than the screen ───── */
.af-shell,.add-funds-view{min-width:0!important;max-width:100%!important;box-sizing:border-box}
.af-header{min-width:0!important;flex-wrap:nowrap!important}
.af-header-right{display:none!important}
.af-method-chips>*{min-width:0}

/* profile ring must sit above the card background */
#profile-view-box .profile-avatar,#profile-initials{isolation:isolate}
#profile-view-box .profile-avatar::before,#profile-initials::before{z-index:-1}

/* ───── 13. Profile avatar: remove colour glow, add rotating outline ───── */
#profile-view-box .pf-header-row,#profile-view-box .pf-header-row *{box-shadow:none!important;text-shadow:none!important}
#profile-view-box #profile-initials.profile-avatar{animation:none!important;overflow:visible!important;box-shadow:none!important;filter:none!important;position:relative!important;isolation:isolate;
  border:3px solid #0d0507!important;background-clip:padding-box}
#profile-view-box #profile-initials.profile-avatar::before{content:"";display:block!important;position:absolute;inset:0;border-radius:50%;z-index:3;pointer-events:none;
  background:conic-gradient(from 0deg,#ff1744 0%,#ff9aa5 18%,rgba(255,23,68,0) 40%,#ff1744 62%,rgba(255,23,68,0) 85%,#ff1744 100%);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));
  animation:atharRingSpin 3.2s linear infinite!important;will-change:transform}
