
/* PaisaNow 20260726: user AI, wallet, story, like and profile reliability polish. */
body[data-page="wallet"] .wallet-pro{max-width:100%!important;width:100%!important;padding-inline:clamp(4px,1vw,12px)!important;}
body[data-page="wallet"] .wallet-pro-hero,
body[data-page="withdrawal"] .finance-balance{
  background:
    radial-gradient(circle at 12% 12%,rgba(59,130,246,.16),transparent 28%),
    radial-gradient(circle at 84% 6%,rgba(236,72,153,.14),transparent 30%),
    linear-gradient(135deg,#ffffff 0%,#eff6ff 36%,#fff7ed 70%,#fdf2f8 100%)!important;
  color:#0f172a!important;
  border:1px solid rgba(148,163,184,.35)!important;
  box-shadow:0 16px 40px rgba(15,23,42,.08)!important;
}
body[data-page="wallet"] .wallet-pro-hero:after{border-color:rgba(15,23,42,.08)!important;}
body[data-page="wallet"] .wallet-hero-title p,
body[data-page="wallet"] .wallet-hero-balance small,
body[data-page="wallet"] .wallet-account-card small{color:#475569!important;}
body[data-page="wallet"] .wallet-hero-title h1{font-size:clamp(22px,3vw,34px)!important;}
body[data-page="wallet"] .wallet-hero-balance{min-width:0!important;max-width:100%!important;}
body[data-page="wallet"] .wallet-hero-balance strong,
body[data-page="withdrawal"] .finance-balance strong{
  display:block!important;
  font-size:clamp(24px,4vw,40px)!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-width:100%!important;
  letter-spacing:-.035em!important;
}
body[data-page="wallet"] .wallet-account-card{background:rgba(255,255,255,.72)!important;border-color:rgba(148,163,184,.3)!important;color:#0f172a!important;}
body[data-page="wallet"] .wallet-kpi strong{font-size:clamp(18px,2.4vw,24px)!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
@media(max-width:620px){body[data-page="wallet"] .wallet-hero-top{gap:10px!important;}body[data-page="wallet"] .wallet-hero-balance strong{font-size:28px!important;}body[data-page="wallet"] .wallet-account-card strong{font-size:16px!important;letter-spacing:.05em!important;word-break:break-word!important;white-space:normal!important;}}
body[data-page="withdrawal"] .finance-action-page,body[data-page="withdrawal"] .transaction-page{max-width:100%!important;width:100%!important;}
body[data-page="withdrawal"] .finance-balance span{color:#475569!important;font-weight:900!important;text-transform:uppercase;letter-spacing:.08em;}
body[data-page="withdrawal"] .finance-form input,body[data-page="withdrawal"] .finance-form textarea{background:#fff!important;color:#0f172a!important;}
/* Story badge: unread green below/right of DP, read normal grey. */
.stories .story b{top:42px!important;right:10px!important;background:#16a34a!important;color:#fff!important;border-color:#fff!important;box-shadow:0 4px 12px rgba(22,163,74,.35)!important;}
.stories .story.is-seen b{background:#e5e7eb!important;color:#64748b!important;box-shadow:none!important;}
.stories .story:not(.is-seen):not(.own-story) .story-ring{box-shadow:0 0 0 3px #16a34a,0 0 0 6px rgba(22,163,74,.15)!important;}
.stories .story.is-seen .story-ring{box-shadow:0 0 0 2px #d1d5db!important;filter:saturate(.72)!important;}
@media(max-width:700px){.stories .story b{top:40px!important;right:9px!important;}}
/* Like state must be visibly different. */
.post-actions .pn-like-main{border:1px solid transparent!important;transition:background .15s ease,color .15s ease,border-color .15s ease!important;}
.post-actions .pn-like-main:not(.liked){background:#f8fafc!important;color:#475569!important;border-color:#e2e8f0!important;}
.post-actions .pn-like-main:not(.liked) .pn-main-reaction-icon{filter:grayscale(1);opacity:.72;}
.post-actions .pn-like-main.liked,.post-actions .pn-like-main.reaction-like{background:#e7f3ff!important;color:#0866ff!important;border-color:#bfdbfe!important;font-weight:950!important;}
.post-actions .pn-like-main.reaction-love{background:#fff1f2!important;border-color:#fecdd3!important;}
.post-actions .pn-like-main.reaction-haha,.post-actions .pn-like-main.reaction-wow,.post-actions .pn-like-main.reaction-sad{background:#fffbeb!important;border-color:#fde68a!important;}
.post-actions .pn-like-main.reaction-angry{background:#fff7ed!important;border-color:#fed7aa!important;}
/* Text-only astrology timeline post design. */
.post-card[data-background-style="astro-light-multicolour"],
.feed-item[data-background-style="astro-light-multicolour"],
.post-card.astro-light-multicolour{
  background:linear-gradient(135deg,#ffffff,#eff6ff 35%,#fff7ed 70%,#fdf2f8)!important;
  color:#0f172a!important;
  border:1px solid rgba(148,163,184,.35)!important;
}
/* Edit profile: avoid hidden-panel validation/overflow issues. */
body[data-page="edit-profile"] .pn-fb-form{overflow:visible!important;}
body[data-page="edit-profile"] .pn-fb-section:not(.active){display:none!important;}
body[data-page="edit-profile"] .pn-fb-section.active input,body[data-page="edit-profile"] .pn-fb-section.active select,body[data-page="edit-profile"] .pn-fb-section.active textarea{max-width:100%!important;}
