/* =====================================================================================
   neopop.css · Augmont SIP prototype
   NeoPOP-style "plunk" parts: hard right and bottom edges drawn as strips skewed 45deg,
   the face drops into the page on press. Same build as the Moneycontrol button bundle
   (v1.0, 13 Oct 2026), re-coloured to Augmont navy, gold and cream.
   Visual idea from CRED NeoPOP (open source, Apache-2.0). Independent CSS: no CRED code,
   fonts, names or assets.
   ===================================================================================== */

:root {
  --np-face: #E8B84A; --np-edge-r: #B0841F; --np-edge-b: #7D5C12;
  --np-ink: #1A1405; --np-face-pressed: #D6A93F; --np-track: rgba(26,20,5,.28);
  --np-ring: #FFE29A;
  --np-depth: 5px; --np-h: 50px; --np-font: 16px; --np-radius: 3px; --np-press: 60ms;
}

/* ---------- button ---------- */
.np-btn {
  --d: var(--np-depth);
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  box-sizing: border-box; width: calc(100% - var(--d)); height: var(--np-h);
  margin: 0 var(--d) var(--d) 0; padding: 0 20px;
  border: 0; border-radius: var(--np-radius) 0 0 0;
  background-color: var(--np-face); color: var(--np-ink);
  font: 700 var(--np-font)/20px Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: .2px; text-align: center; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform var(--np-press) ease-out;
}
.np-btn--auto { display: inline-flex; width: auto; }
.np-btn--sm { --np-h: 40px; --np-depth: 4px; --np-font: 14px; padding: 0 14px; }
.np-btn::before, .np-btn::after { content: ""; position: absolute; pointer-events: none; transform-origin: 0 0; }
.np-btn::before { top: 0; left: 100%; width: var(--d); height: 100%; background: var(--np-edge-r); transform: skewY(45deg); transition: width var(--np-press) ease-out; }
.np-btn::after  { left: 0; top: 100%; width: 100%; height: var(--d); background: var(--np-edge-b); transform: skewX(45deg); transition: height var(--np-press) ease-out; }
.np-btn:active:not(:disabled):not([aria-disabled="true"]), .np-btn.is-pressed { transform: translate(var(--d), var(--d)); background-color: var(--np-face-pressed); }
.np-btn:active:not(:disabled):not([aria-disabled="true"])::before, .np-btn.is-pressed::before { width: 0; }
.np-btn:active:not(:disabled):not([aria-disabled="true"])::after, .np-btn.is-pressed::after { height: 0; }
.np-btn:disabled, .np-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.np-btn:focus-visible { outline: 2px solid var(--np-ring); outline-offset: 3px; }
.np-btn:focus:not(:focus-visible) { outline: none; }
.np-btn__spin { display: none; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border: 2.5px solid var(--np-track); border-top-color: var(--np-ink); border-radius: 50%; animation: np-spin .8s linear infinite; }
.np-btn.is-loading { cursor: progress; pointer-events: none; }
.np-btn.is-loading .np-btn__label { visibility: hidden; }
.np-btn.is-loading .np-btn__spin { display: block; }
@keyframes np-spin { to { transform: rotate(360deg); } }
.np-btn--shine { background-image: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.42) 50%, transparent 65%); background-size: 260% 100%; background-repeat: no-repeat; background-position: 160% 0; animation: np-shine 3.6s ease-in-out infinite; }
@keyframes np-shine { 0%, 55% { background-position: 160% 0; } 100% { background-position: -60% 0; } }

/* colour variants */
.np-btn--navy   { --np-face: #2A3C68; --np-edge-r: #4A6198; --np-edge-b: #33477A; --np-ink: #F7F2E7; --np-face-pressed: #24345B; --np-track: rgba(247,242,231,.28); }
.np-btn--cream  { --np-face: #F7F2E7; --np-edge-r: #B9AE95; --np-edge-b: #8C8269; --np-ink: #121A2E; --np-face-pressed: #E9E2D2; --np-track: rgba(18,26,46,.25); }
.np-btn--silver { --np-face: #D5DCE6; --np-edge-r: #8E99AA; --np-edge-b: #687384; --np-ink: #121A2E; --np-face-pressed: #C5CDD9; --np-track: rgba(18,26,46,.25); }
.np-btn--green  { --np-face: #2FCB86; --np-edge-r: #1F8F5D; --np-edge-b: #156743; --np-ink: #04150D; --np-face-pressed: #29B677; }

/* ghost: outlined, still plunks */
.np-btn--ghost { --np-face: transparent; --np-edge-r: #3A4C78; --np-edge-b: #2B3A60; --np-ink: #F7F2E7; --np-face-pressed: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1.5px #4A5D8C; }

/* text button: no edges */
.np-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--gold, #E8B84A); font: 600 14px/20px Inter, system-ui, sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.np-link:disabled { color: #5D6886; cursor: not-allowed; }
.np-link:focus-visible { outline: 2px solid var(--np-ring); outline-offset: 2px; border-radius: 3px; }

/* ---------- elevated card ---------- */
.np-card {
  --e: 6px; --card-face: var(--surface, #151F38); --card-r: #2B3B63; --card-b: #1F2B4C;
  position: relative; background: var(--card-face); padding: 16px;
  margin: 0 var(--e) var(--e) 0; border-radius: 3px 0 0 0;
}
.np-card::before, .np-card::after { content: ""; position: absolute; pointer-events: none; transform-origin: 0 0; }
.np-card::before { top: 0; left: 100%; width: var(--e); height: 100%; background: var(--card-r); transform: skewY(45deg); }
.np-card::after  { left: 0; top: 100%; width: 100%; height: var(--e); background: var(--card-b); transform: skewX(45deg); }
.np-card--gold   { --card-face: #1E2238; --card-r: #B0841F; --card-b: #7D5C12; box-shadow: inset 0 0 0 1px rgba(232,184,74,.45); }
.np-card--silver { --card-face: #1A2236; --card-r: #8E99AA; --card-b: #687384; box-shadow: inset 0 0 0 1px rgba(205,213,224,.35); }
.np-card--cream  { --card-face: #F7F2E7; --card-r: #B9AE95; --card-b: #8C8269; color: #121A2E; }
.np-card--flat   { --e: 0px; }
button.np-card { display: block; width: calc(100% - var(--e)); text-align: left; border: 0; color: inherit; font: inherit; cursor: pointer; transition: transform 60ms ease-out; }
button.np-card:active { transform: translate(var(--e), var(--e)); }
button.np-card:active::before { width: 0; }
button.np-card:active::after { height: 0; }
button.np-card:focus-visible { outline: 2px solid var(--np-ring); outline-offset: 3px; }

/* ---------- tag ---------- */
.np-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font: 700 12px/16px Inter, system-ui, sans-serif; letter-spacing: .6px; text-transform: uppercase; background: #E8B84A; color: #1A1405; border-radius: 2px 0 0 0; box-shadow: 3px 3px 0 #7D5C12; }
.np-tag--navy { background: #2A3C68; color: #F7F2E7; box-shadow: 3px 3px 0 #1A2747; }
.np-tag--silver { background: #D5DCE6; color: #121A2E; box-shadow: 3px 3px 0 #687384; }
.np-tag--green { background: #2FCB86; color: #04150D; box-shadow: 3px 3px 0 #156743; }
.np-tag--live { background: #FF5A5F; color: #fff; box-shadow: 3px 3px 0 #9E2A2E; }

/* ---------- chips (selectable, small plunk) ---------- */
.np-chip { --c: 3px; position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; margin: 0 var(--c) var(--c) 0; border: 0; border-radius: 2px 0 0 0; background: #1C2847; color: #F7F2E7; font: 600 15px/20px Inter, system-ui, sans-serif; cursor: pointer; box-shadow: inset 0 0 0 1px #34467A; transition: transform 60ms ease-out; -webkit-tap-highlight-color: transparent; }
.np-chip::before, .np-chip::after { content: ""; position: absolute; transform-origin: 0 0; pointer-events: none; }
.np-chip::before { top: 0; left: 100%; width: var(--c); height: 100%; background: #34467A; transform: skewY(45deg); }
.np-chip::after { left: 0; top: 100%; width: 100%; height: var(--c); background: #26365E; transform: skewX(45deg); }
.np-chip[aria-pressed="true"] { background: #E8B84A; color: #1A1405; box-shadow: none; }
.np-chip[aria-pressed="true"]::before { background: #B0841F; }
.np-chip[aria-pressed="true"]::after { background: #7D5C12; }
.np-chip:active { transform: translate(var(--c), var(--c)); }
.np-chip:active::before { width: 0; } .np-chip:active::after { height: 0; }
.np-chip:focus-visible { outline: 2px solid var(--np-ring); outline-offset: 3px; }

/* ---------- segmented control ---------- */
.np-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding: 4px; background: #111A30; box-shadow: inset 0 0 0 1px #2A3A60; border-radius: 3px 0 0 0; }
.np-seg button { min-height: 40px; border: 0; background: transparent; color: #C9CFDD; font: 600 14px/18px Inter, system-ui, sans-serif; cursor: pointer; border-radius: 2px 0 0 0; }
.np-seg button[aria-pressed="true"] { background: #F7F2E7; color: #121A2E; box-shadow: 3px 3px 0 #8C8269; }
.np-seg button:focus-visible { outline: 2px solid var(--np-ring); outline-offset: 1px; }

@media (prefers-reduced-motion: reduce) {
  .np-btn--shine { animation: none; }
  .np-btn, .np-btn::before, .np-btn::after, .np-chip, button.np-card { transition: none; }
}
