/* Prime Social 2.0.7 | Wallet triptych + navigation drawer cleanup
   CSS only; no modifications to payments, amounts, sessions or orders.
   Loaded last in footer to avoid legacy skin conflicts. */
@layer prime-important {
  html:root body .ps-wallet-207 .ps-wallet-heading{
    display:flex!important;flex-wrap:wrap!important;align-items:flex-end!important;
    justify-content:space-between!important;gap:16px!important;margin:0 0 22px!important;
    color:#0c254c!important;
  }
  html:root body .ps-wallet-207 .ps-wallet-heading h1{
    margin:12px 0 6px!important;font-size:clamp(24px,3vw,32px)!important;
    color:#0a2348!important;line-height:1.45!important;font-weight:900!important;
  }
  html:root body .ps-wallet-207 .ps-wallet-heading p{
    margin:0!important;color:#687e99!important;font-size:12px!important;line-height:1.8!important;
  }
  html:root body .ps-wallet-207 .ps-wallet-heading nav{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important}
  html:root body .ps-wallet-207 .ps-wallet-heading nav a{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    gap:8px!important;min-height:37px!important;padding:8px 12px!important;
    background:#f5faff!important;border:1px solid #d9e7fa!important;
    border-radius:12px!important;color:#2361ac!important;text-decoration:none!important;
    font-size:11px!important;font-weight:750!important;
  }
  html:root body .ps-wallet-207 .ps-wallet-heading nav a:hover{background:#e9f2ff!important;border-color:#9fcbff!important}
  html:root body .ps-wallet-207 .ps-wallet-cards{
    display:grid!important;grid-template-columns:1.26fr 1fr 1fr!important;
    gap:14px!important;align-items:stretch!important;margin:0 0 26px!important;
    max-width:100%!important;
  }
  html:root body .ps-wallet-207 .ps-wallet-tile{
    display:flex!important;flex-direction:column!important;justify-content:space-between!important;
    position:relative!important;isolation:isolate!important;min-width:0!important;
    min-height:205px!important;padding:22px!important;border-radius:23px!important;
    text-decoration:none!important;overflow:hidden!important;box-sizing:border-box!important;
    transition:transform .25s ease, box-shadow .25s ease!important;
  }
  html:root body .ps-wallet-207 .ps-wallet-tile:hover{transform:translateY(-3px)!important}
  html:root body .ps-wallet-207 .ps-wallet-tile--balance{
    color:#fff!important;border:1px solid rgba(107,183,255,.45)!important;
    background:radial-gradient(circle at 90% 0%,rgba(52,183,255,.43),transparent 35%),
      radial-gradient(circle at 5% 100%,rgba(112,72,255,.3),transparent 47%),
      linear-gradient(133deg,#071b43 2%,#123f81 58%,#071a39 100%)!important;
    box-shadow:0 22px 44px -26px rgba(5,45,112,.65),inset 0 1px rgba(255,255,255,.22)!important;
  }
  html:root body .ps-wallet-207 .ps-wallet-tile--balance::after{
    content:''!important;display:block!important;position:absolute!important;pointer-events:none!important;
    width:195px!important;height:195px!important;left:-60px!important;bottom:-95px!important;
    border-radius:50%!important;border:1px solid rgba(153,208,255,.23)!important;
    box-shadow:0 0 0 22px rgba(153,208,255,.035),0 0 0 48px rgba(153,208,255,.035)!important;
    opacity:1!important;
  }
  html:root body .ps-wallet-207 .ps-wallet-glow{
    pointer-events:none!important;position:absolute!important;z-index:-1!important;
    top:-75px!important;right:16%!important;width:160px!important;height:160px!important;
    border-radius:50%!important;filter:blur(35px)!important;background:rgba(0,211,255,.24)!important;
  }
  html:root body .ps-wallet-207 .ps-wallet-tile-top{
    display:flex!important;justify-content:space-between!important;align-items:center!important;
    gap:10px!important;direction:ltr!important;
  }
  html:root body .ps-wallet-207 .ps-wallet-brand{
    font:800 12px/1.3 system-ui,sans-serif!important;letter-spacing:.13em!important;color:#fff!important;
    text-shadow:0 1px 9px rgba(255,255,255,.12)!important;
  }
  html:root body .ps-wallet-207 .ps-wallet-brand b{font-weight:450!important;color:#baddff!important}
  html:root body .ps-wallet-207 .ps-wallet-infinity{font:500 37px/1 system-ui,sans-serif!important;color:#a1e5ff!important}
  html:root body .ps-wallet-207 .ps-wallet-tile-bottom{display:grid!important;align-content:end!important;gap:7px!important;z-index:1!important}
  html:root body .ps-wallet-207 .ps-wallet-kicker{
    display:inline-flex!important;align-items:center!important;gap:8px!important;
    font-size:12px!important;font-weight:700!important;color:#c3dcfc!important;
  }
  html:root body .ps-wallet-207 .ps-wallet-amount{
    font-size:clamp(24px,2.3vw,32px)!important;font-weight:900!important;
    line-height:1.3!important;font-variant-numeric:tabular-nums!important;
    direction:ltr!important;text-align:right!important;white-space:nowrap!important;
    letter-spacing:-.035em!important;color:#fff!important;
  }
  html:root body .ps-wallet-207 .ps-wallet-currency{font-size:11px!important;color:#c4dcfa!important;display:flex!important;gap:8px!important;align-items:center!important}
  html:root body .ps-wallet-207 .ps-wallet-card-line{
    position:absolute!important;left:20px!important;right:20px!important;bottom:12px!important;
    height:1px!important;background:linear-gradient(90deg,transparent,rgba(179,221,255,.35),transparent)!important;
  }
  html:root body .ps-wallet-207 .ps-wallet-tile--recharge{
    background:radial-gradient(circle at 95% 0%,rgba(41,215,235,.26),transparent 42%),
     linear-gradient(147deg,#e9faff,#eff6ff)!important;
    border:1px solid #a9e4f0!important;box-shadow:0 18px 38px -28px rgba(0,142,182,.52),inset 0 1px #fff!important;color:#0b4271!important;
  }
  html:root body .ps-wallet-207 .ps-wallet-tile--history{
    background:radial-gradient(circle at 15% 5%,rgba(139,115,255,.23),transparent 46%),
      linear-gradient(146deg,#f1efff,#f9fbff)!important;
    border:1px solid #ddd6fc!important;box-shadow:0 18px 38px -28px rgba(75,56,155,.44),inset 0 1px #fff!important;color:#382970!important;
  }
  html:root body .ps-wallet-207 .ps-wallet-mini-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important}
  html:root body .ps-wallet-207 .ps-wallet-mini-head>i{font-size:13px!important;color:currentColor!important;opacity:.65!important}
  html:root body .ps-wallet-207 .ps-wallet-mini-icon{
    width:44px!important;height:44px!important;border-radius:15px!important;
    display:grid!important;place-items:center!important;font-size:19px!important;
    background:rgba(255,255,255,.85)!important;box-shadow:0 8px 18px rgba(60,98,140,.1)!important;
  }
  html:root body .ps-wallet-207 .ps-wallet-mini-title{display:block!important;margin-top:auto!important;padding-top:14px!important;font-size:17px!important;font-weight:900!important;color:inherit!important}
  html:root body .ps-wallet-207 .ps-wallet-mini-sub{display:block!important;margin-top:4px!important;font-size:10px!important;line-height:1.65!important;color:#6e83a1!important}
  html:root body .ps-wallet-207 .ps-wallet-mini-foot{display:block!important;margin-top:11px!important;padding-top:10px!important;border-top:1px solid rgba(91,135,178,.16)!important;font-size:10px!important;font-weight:750!important;white-space:normal!important;overflow-wrap:anywhere!important;color:inherit!important}

  /* Drawer: remove the legacy vertical dark icon rail and restyle each row independently. */
  html:root body #mobileMenu.prime-drawer{
    background:linear-gradient(180deg,#f9fcff 0%,#eef5ff 100%)!important;
    color:#172d4b!important;border-color:#d6e4f5!important;
  }
  html:root body #mobileMenu .prime-drawer-nav{direction:rtl!important;padding-inline:12px!important}
  html:root body #mobileMenu .prime-menu-items,
  html:root body #mobileMenu .prime-menu-group.open .prime-menu-items{
    background:transparent!important;border:0!important;box-shadow:none!important;
    padding:2px 0 5px!important;direction:rtl!important;
  }
  html:root body #mobileMenu .prime-menu-items::before,
  html:root body #mobileMenu .prime-menu-items::after{
    content:none!important;display:none!important;background:none!important;box-shadow:none!important;
  }
  html:root body #mobileMenu .prime-menu-group{
    margin:6px 0!important;border:1px solid #e0eaf5!important;border-radius:15px!important;
    background:rgba(255,255,255,.75)!important;overflow:hidden!important;
    box-shadow:0 5px 17px rgba(20,61,122,.035)!important;
  }
  html:root body #mobileMenu .prime-menu-group-head{
    display:grid!important;grid-template-columns:34px minmax(0,1fr) 26px!important;
    direction:rtl!important;align-items:center!important;gap:10px!important;
    border:0!important;border-radius:12px!important;min-height:47px!important;
    padding:6px 9px!important;background:transparent!important;color:#213856!important;
    box-shadow:none!important;font-size:12px!important;
  }
  html:root body #mobileMenu .prime-menu-title{direction:rtl!important;text-align:right!important;color:#213856!important;font-weight:800!important}
  html:root body #mobileMenu .prime-menu-head-icon{
    width:32px!important;height:32px!important;display:grid!important;place-items:center!important;
    border-radius:11px!important;border:1px solid #d7e7ff!important;
    background:linear-gradient(145deg,#eff6ff,#e2efff)!important;
    box-shadow:none!important;color:#126bdf!important;font-size:14px!important;
  }
  html:root body #mobileMenu .prime-menu-head-icon i{color:#126bdf!important;font-size:14px!important}
  html:root body #mobileMenu .prime-menu-chevron{
    width:25px!important;height:25px!important;display:grid!important;place-items:center!important;
    border:0!important;background:#f2f6fe!important;color:#6c83a7!important;
    border-radius:9px!important;box-shadow:none!important;
  }
  html:root body #mobileMenu .prime-menu-items a{
    display:grid!important;grid-template-columns:29px minmax(0,1fr)!important;
    direction:rtl!important;text-align:right!important;align-items:center!important;
    gap:9px!important;min-height:39px!important;padding:4px 10px!important;
    margin:2px 6px!important;border:1px solid transparent!important;border-radius:10px!important;
    color:#35506e!important;background:transparent!important;box-shadow:none!important;
    text-decoration:none!important;font-size:12px!important;font-weight:700!important;
  }
  html:root body #mobileMenu .prime-menu-items a i,
  html:root body #mobileMenu .prime-menu-items a img{
    display:grid!important;place-items:center!important;width:29px!important;height:29px!important;
    min-width:29px!important;border-radius:9px!important;
    background:#eaf3ff!important;border:0!important;padding:6px!important;
    box-sizing:border-box!important;box-shadow:none!important;
    color:#2c6dc4!important;font-size:13px!important;object-fit:contain!important;
  }
  html:root body #mobileMenu .prime-menu-items a span{
    display:block!important;min-width:0!important;direction:rtl!important;text-align:right!important;
    color:#35506e!important;line-height:1.45!important;
  }
  html:root body #mobileMenu .prime-menu-items a:hover,
  html:root body #mobileMenu .prime-menu-items a:focus-visible,
  html:root body #mobileMenu .prime-menu-items a.active,
  html:root body #mobileMenu .prime-menu-items a.current{
    background:linear-gradient(90deg,#e8f3ff,#f5faff)!important;
    border-color:#cee4ff!important;color:#1155ad!important;
  }
  html:root body #mobileMenu .prime-menu-items a:hover span,
  html:root body #mobileMenu .prime-menu-items a.active span{color:#1155ad!important}
  html:root body #mobileMenu .prime-drawer-bottom-links{direction:rtl!important;border-top:1px solid #e1eafa!important;padding-top:10px!important}
  html:root body #mobileMenu .prime-drawer-bottom-links a{
    display:flex!important;direction:rtl!important;gap:10px!important;
    min-height:43px!important;margin:6px 0!important;padding:8px 13px!important;
    border:1px solid #e1eaf8!important;border-radius:12px!important;
    background:#fff!important;color:#25456a!important;font-size:12px!important;
  }
  html:root body #mobileMenu .prime-drawer-bottom-links a span{text-align:right!important;direction:rtl!important;color:inherit!important}
  html:root body #mobileMenu .prime-drawer-bottom-links a i{color:#316fca!important}
  html:root body #mobileMenu .prime-user-card{
    background:linear-gradient(143deg,#fff,#edf5ff)!important;color:#153454!important;
    border:1px solid #d8e6f8!important;box-shadow:0 9px 20px rgba(30,68,120,.06)!important;
  }
  html:root body #mobileMenu .prime-user-name{color:#1d365b!important}
  html:root body #mobileMenu .prime-user-email{color:#7e92ac!important}
}
@media(max-width:950px){
  @layer prime-important{
    html:root body .ps-wallet-207 .ps-wallet-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
    html:root body .ps-wallet-207 .ps-wallet-tile--balance{grid-column:1/-1!important;min-height:216px!important}
    html:root body .ps-wallet-207 .ps-wallet-tile:not(.ps-wallet-tile--balance){min-height:175px!important}
  }
}
@media(max-width:470px){
  @layer prime-important{
    html:root body .ps-wallet-207 .ps-wallet-heading{gap:10px!important;margin-bottom:15px!important}
    html:root body .ps-wallet-207 .ps-wallet-heading h1{font-size:24px!important}
    html:root body .ps-wallet-207 .ps-wallet-cards{gap:9px!important}
    html:root body .ps-wallet-207 .ps-wallet-tile{padding:17px!important;border-radius:19px!important}
    html:root body .ps-wallet-207 .ps-wallet-tile--balance{min-height:205px!important}
    html:root body .ps-wallet-207 .ps-wallet-tile:not(.ps-wallet-tile--balance){min-height:165px!important}
    html:root body .ps-wallet-207 .ps-wallet-mini-title{font-size:14px!important;padding-top:8px!important}
    html:root body .ps-wallet-207 .ps-wallet-mini-sub{font-size:9px!important}
    html:root body .ps-wallet-207 .ps-wallet-mini-foot{font-size:9px!important}
    html:root body .ps-wallet-207 .ps-wallet-amount{font-size:clamp(25px,6vw,34px)!important}
  }
}
@media(max-width:350px){
  @layer prime-important{
    html:root body .ps-wallet-207 .ps-wallet-cards{grid-template-columns:1fr!important}
    html:root body .ps-wallet-207 .ps-wallet-tile--balance{grid-column:1!important}
    html:root body .ps-wallet-207 .ps-wallet-tile:not(.ps-wallet-tile--balance){min-height:132px!important}
  }
}
@media(prefers-reduced-motion:reduce){
  @layer prime-important{
    html:root body .ps-wallet-207 .ps-wallet-tile{transition:none!important}
    html:root body .ps-wallet-207 .ps-wallet-tile:hover{transform:none!important}
  }
}
