/* Member app – new design (default). Classic design: More → App design.
   Everything here is scoped to body.member.paytm, so removing the class gives the old look. */
body.member.paytm {
  --nx-blue: #00b2f0;
  --nx-deep: #0057b8;
  --nx-navy: #062a5f;
  --nx-bg: #f2f5fa;
  --nx-card: #ffffff;
  --nx-ink: #0b1b33;
  --nx-sub: #5d6b80;
  --nx-line: #e5ebf2;
  --nx-shadow: 0 6px 24px rgba(10, 40, 90, .08);
  --primary: #0091d6;
  --primary-soft: #e3f5fd;
  --grad: linear-gradient(135deg, #00b2f0 0%, #0057b8 100%);
  background: var(--nx-bg);
}
@media (prefers-color-scheme: dark) {
  body.member.paytm {
    --nx-bg: #0b1120; --nx-card: #151d2e; --nx-ink: #f1f5fb; --nx-sub: #97a6bc; --nx-line: #222c40;
    --nx-shadow: 0 6px 24px rgba(0, 0, 0, .35); --primary: #3cc4f5; --primary-soft: #0f2f45;
  }
}

/* top bar + bottom tabs */
body.member.paytm .m-top { background: var(--nx-bg); border-bottom: 0; }
body.member.paytm .m-top .gym-name, body.member.paytm .m-top h1 { color: var(--nx-ink); font-weight: 800; }
body.member.paytm .m-tabs { background: var(--nx-card); border-top: 1px solid var(--nx-line); box-shadow: 0 -6px 24px rgba(10, 40, 90, .06); }
body.member.paytm .m-tabs a { font-weight: 700; }
body.member.paytm .m-tabs a.active { color: var(--nx-deep); }
@media (prefers-color-scheme: dark) { body.member.paytm .m-tabs a.active { color: var(--nx-blue); } }
body.member.paytm .m-tabs a.checkin-tab .tab-ring { background: var(--grad); box-shadow: 0 8px 20px rgba(0, 120, 220, .45); border-color: var(--nx-card); }

/* ---------- home ---------- */
.nx { display: grid; gap: 14px; }
.nx > * { animation: nx-up .5s cubic-bezier(.2, .8, .2, 1) both; }
.nx > *:nth-child(2) { animation-delay: .05s; }
.nx > *:nth-child(3) { animation-delay: .1s; }
.nx > *:nth-child(4) { animation-delay: .15s; }
.nx > *:nth-child(5) { animation-delay: .2s; }
.nx > *:nth-child(6) { animation-delay: .25s; }
.nx > *:nth-child(7) { animation-delay: .3s; }
@keyframes nx-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nx > * { animation: none; } }

.nx-hi small { color: var(--nx-sub); font-weight: 700; font-size: .9rem; }
.nx-hi h2 { margin: 2px 0 0; font-size: 1.85rem; font-weight: 900; letter-spacing: -.02em; color: var(--nx-ink); }

/* press feedback for every big card */
.nx-check, .nx-plan, .nx-today, .nx-tile, .nx-notice { transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s; -webkit-tap-highlight-color: transparent; }
.nx-check:active, .nx-plan:active, .nx-today:active, .nx-tile:active, .nx-notice:active { transform: scale(.97); }

/* 1. check-in: the biggest thing on the screen */
.nx-check {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 104px; padding: 18px 20px; border: 0; border-radius: 26px;
  background: var(--grad); color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 14px 30px rgba(0, 110, 210, .35);
  position: relative; overflow: hidden;
}
.nx-check::after { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: rgba(255, 255, 255, .1); right: -60px; top: -90px; }
.nx-ring { width: 64px; height: 64px; flex: none; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-size: 1.8rem; }
.nx-ring svg { width: 34px; height: 34px; }
.nx-ct { flex: 1; min-width: 0; display: grid; gap: 3px; position: relative; z-index: 1; }
.nx-ct b { font-size: 1.4rem; font-weight: 900; letter-spacing: -.01em; }
.nx-ct small { font-size: .88rem; font-weight: 600; color: rgba(255, 255, 255, .92); }
.nx-check.done .nx-ct small { color: var(--nx-sub); }
.nx-arrow { width: 26px; height: 26px; opacity: .9; position: relative; z-index: 1; }
.nx-arrow svg { width: 26px; height: 26px; }
.nx-go { padding: 9px 14px; border-radius: 999px; background: #fff; color: #0b6b3a; font-weight: 800; font-size: .88rem; position: relative; z-index: 1; }
.nx-check.live { background: linear-gradient(135deg, #10b981 0%, #047857 100%); box-shadow: 0 14px 30px rgba(4, 120, 87, .35); }
.nx-check.live .nx-ct b { font-variant-numeric: tabular-nums; font-size: 1.7rem; }
.nx-check.done { background: var(--nx-card); color: var(--nx-ink); box-shadow: var(--nx-shadow); cursor: default; }
.nx-check.done .nx-ring { background: #e6f9ee; }
.nx-check.done::after { display: none; }

/* 2. plan */
.nx-plan {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 24px; background: var(--nx-card);
  box-shadow: var(--nx-shadow); color: var(--nx-ink); text-decoration: none;
}
.nx-pl { flex: 1; min-width: 0; }
.nx-pl small { display: block; color: var(--nx-sub); font-weight: 700; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-days { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 6px; }
.nx-days b { font-size: 2.6rem; line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.nx-days span { font-weight: 800; color: var(--nx-sub); }
.nx-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.nx-chip.ok { background: #e2f8ec; color: #08703a; }
.nx-chip.warn { background: #fff2cc; color: #8a5a00; }
.nx-chip.bad { background: #ffe1e7; color: #b4123a; }
.nx-pr { display: grid; gap: 10px; text-align: right; padding-left: 14px; border-left: 1px solid var(--nx-line); }
.nx-pr b { display: block; font-size: 1.3rem; font-weight: 900; }
.nx-pr small { color: var(--nx-sub); font-weight: 700; font-size: .75rem; }

/* 3. today's workout */
.nx-today {
  position: relative; overflow: hidden; display: flex; align-items: center; min-height: 132px; padding: 18px 20px; border-radius: 24px;
  background: linear-gradient(135deg, #062a5f 0%, #0b4fa3 100%); color: #fff; text-decoration: none; box-shadow: 0 12px 26px rgba(6, 42, 95, .3);
}
.nx-tt { position: relative; z-index: 1; display: grid; gap: 6px; max-width: 64%; }
.nx-tt small { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.nx-tt b { font-size: 1.45rem; font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.nx-pill { justify-self: start; padding: 6px 12px; border-radius: 999px; background: #fff; color: #062a5f; font-weight: 800; font-size: .82rem; }
.nx-art { position: absolute; right: 4px; bottom: -4px; width: 128px; height: 128px; color: #fff; --ground: rgba(255, 255, 255, .25); }
.nx-art svg { width: 100%; height: 100%; }

/* 4. four big shortcuts */
.nx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nx-tile {
  display: grid; gap: 4px; padding: 16px; border-radius: 22px; background: var(--nx-card); box-shadow: var(--nx-shadow);
  color: var(--nx-ink); text-decoration: none; min-height: 118px; align-content: start;
}
.nx-ti { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 6px; }
.nx-tile b { font-size: 1.1rem; font-weight: 900; }
.nx-tile small { color: var(--nx-sub); font-weight: 600; font-size: .8rem; }
.nx-tile.c1 .nx-ti { background: #e3f5fd; }
.nx-tile.c2 .nx-ti { background: #e5f8ec; }
.nx-tile.c3 .nx-ti { background: #fdeee6; }
.nx-tile.c4 .nx-ti { background: #efe9fe; }
@media (prefers-color-scheme: dark) {
  .nx-tile.c1 .nx-ti { background: #0f2f45; } .nx-tile.c2 .nx-ti { background: #0d3322; }
  .nx-tile.c3 .nx-ti { background: #3a2010; } .nx-tile.c4 .nx-ti { background: #2a1f4a; }
  .nx-chip.ok { background: #0d3322; color: #7ee2a8; } .nx-chip.warn { background: #3a2c08; color: #ffd27a; } .nx-chip.bad { background: #3d1020; color: #ff9fb3; }
  .nx-check.done .nx-ring { background: #0d3322; }
}

/* gym notice (only when there is one) */
.nx-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; background: var(--nx-card); box-shadow: var(--nx-shadow); color: var(--nx-ink); text-decoration: none; }
.nx-notice span { font-size: 1.4rem; }
.nx-notice p { margin: 0; font-weight: 600; font-size: .92rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* other pages: same cards, bolder headings */
body.member.paytm .m-card, body.member.paytm .list-card { background: var(--nx-card); border-radius: 22px; box-shadow: var(--nx-shadow); border-color: transparent; }
body.member.paytm .m-card h2, body.member.paytm .sec-head h2 { font-weight: 900; }
body.member.paytm .alert { border-radius: 18px; font-weight: 600; }

/* PT entry on home */
.nx-pt {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%); box-shadow: 0 12px 26px rgba(124, 58, 237, .3);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1);
}
.nx-pt:active { transform: scale(.97); }
.nx-pti { width: 52px; height: 52px; flex: none; border-radius: 16px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 1.6rem; }
.nx-ptt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nx-ptt b { font-size: 1.12rem; font-weight: 900; }
.nx-ptt small { font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .9); }
body.member.paytm .pt-card, body.member.paytm .pt-pkg, body.member.paytm .pt-bk { background: var(--nx-card); border-color: transparent; box-shadow: var(--nx-shadow); }
