/* PARTNEX polish pass 2 — micro-interactions and consistency only (no layout or logic changes). Light theme stays default. */
:root { --pp-ease: cubic-bezier(.22,1,.36,1); }
html { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(91,69,240,.22); }
body { font-variant-numeric: tabular-nums; }
* { scrollbar-width: thin; scrollbar-color: rgba(120,126,150,.35) transparent; }

/* page entrance: content blocks rise in one after another */
@media (prefers-reduced-motion: no-preference) {
  .page.active > .page-content > * { animation: ppRise .42s var(--pp-ease) both; }
  .page.active > .page-content > *:nth-child(2) { animation-delay: .04s; }
  .page.active > .page-content > *:nth-child(3) { animation-delay: .08s; }
  .page.active > .page-content > *:nth-child(4) { animation-delay: .12s; }
  .page.active > .page-content > *:nth-child(5) { animation-delay: .16s; }
  .page.active > .page-content > *:nth-child(n+6) { animation-delay: .2s; }
  .skeleton { animation: shimmer 1.4s linear infinite; }
}
@keyframes ppRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* press feedback on every tappable surface */
.px-btn, .nx-gp-btn, .nx-q, .px-method, .primary-btn, .secondary-btn, .nx-icobtn, .nx-gp-open-h button, .nav-item, .px-copy, .chip, .cat-chip {
  transition: transform .16s var(--pp-ease), box-shadow .2s, background-color .2s, border-color .2s, color .2s; }
.px-btn:not(:disabled):active, .nx-gp-btn:not(:disabled):active, .px-method:active, .primary-btn:active, .secondary-btn:active, .px-copy:active { transform: scale(.97); }
@media (hover: hover) {
  .nx-q:hover, .px-method:hover { border-color: rgba(91,69,240,.45); transform: translateY(-1px); }
  .nx-gp-btn:not(:disabled):hover { box-shadow: 0 10px 26px rgba(91,69,240,.35); transform: translateY(-1px); }
}
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* wallet hero: soft light sweep + floating icon */
.px-wallet-hero { position: relative; overflow: hidden; }
.px-wallet-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%); transform: translateX(-120%); animation: ppSweep 7s ease-in-out 1.2s infinite; }
@keyframes ppSweep { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.px-wallet-ico { animation: ppFloat 5s ease-in-out infinite; }
@keyframes ppFloat { 50% { transform: translateY(-4px) rotate(-3deg); } }
.px-wallet-amt { letter-spacing: -.02em; }
@media (prefers-reduced-motion: reduce) { .px-wallet-hero::after, .px-wallet-ico { animation: none; } }

/* add-money card */
.nx-gp { border-radius: 22px; box-shadow: var(--shadow-card); }
.nx-gp-badge { box-shadow: inset 0 0 0 1px rgba(18,161,80,.18); }
.nx-gp-methods { display: flex; flex-wrap: nowrap; gap: 5px; margin: -2px 0 2px; }
.nx-gp-m { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 5px; border-radius: 999px; flex: 1 1 auto; justify-content: center; min-width: 0; white-space: nowrap; background: var(--surface); border: 1px solid var(--border);
  font: 600 11px Inter, sans-serif; color: var(--text); }
.nx-gp-m img { width: 16px; height: 16px; object-fit: contain; border-radius: 5px; }
.nx-gp-amt { transition: border-color .2s, box-shadow .2s, background .2s, transform .2s var(--pp-ease); }
.nx-gp-amt:focus-within { transform: translateY(-1px); }
.nx-gp-quick { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.nx-gp-quick .nx-q { height: 40px; border-radius: 12px; font-size: 13.5px; background: var(--bg2); }
.nx-gp-quick .nx-q.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(91,69,240,.3); }
.nx-gp-btn { height: 54px; border-radius: 16px; letter-spacing: .005em; }
.nx-gp-btn.busy i { animation: nxSpin .8s linear infinite; }
.nx-gp-note { padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.nx-gp-open { border: 1px solid var(--border); background: var(--surface); }
.nx-gp-row { padding: 8px 10px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border); }

/* panels, lists, inputs */
.px-panel { border-radius: 20px; transition: box-shadow .25s; }
.px-panel-title { letter-spacing: -.01em; }
.px-input, .app-input { transition: border-color .2s, box-shadow .2s, background .2s; }
.px-method.active, .px-method.sel { box-shadow: 0 0 0 2px rgba(91,69,240,.35); }
.empty-state { animation: ppRise .5s var(--pp-ease) both; }

/* bottom nav: active dot, smoother icon */
.nav-item { position: relative; }
.nav-item .nav-icon { transition: transform .25s var(--pp-ease), background .2s, color .2s, width .2s; }
.nav-item.active .nav-icon { transform: translateY(-1px); }
.nav-item.active .nav-label { font-weight: 700; }

/* toast */
.toast { border-radius: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* receipts / tiles / cards: gentle lift */
.nx-receipt-card, .nx-tile, .nx-sec, .px-ref-card { transition: transform .2s var(--pp-ease), box-shadow .25s; }
.nx-receipt-card:active, .nx-tile:active { transform: scale(.985); }
@media (hover: hover) { .nx-receipt-card:hover, .nx-tile:hover { box-shadow: var(--nx-lift); } }

/* dark theme keeps the same rhythm */
html[data-theme="dark"] .nx-gp-m { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .nx-gp-row { background: rgba(255,255,255,.04); }
html[data-theme="dark"] .nx-gp-quick .nx-q.active { box-shadow: 0 6px 16px rgba(124,92,255,.4); }
