/* sheet-v2.css - the pop-up used for every upgrade prompt ("Distance filter", "See who likes you",
   "Out of likes") and the likers list (tiers.js). Softer card, clear hierarchy, one strong button.
   Loads after likes.css. Rollback: remove its <link> from index.html. */

.ts-back {
  background: rgba(20, 18, 31, .55);
  backdrop-filter: none;
  padding: 0;
}
.ts {
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  padding: 26px 26px calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--s1);
  color: var(--t1);
  border: 0;
  border-radius: 24px 24px 0 0;
  clip-path: none;
  box-shadow: 0 -10px 40px rgba(20, 18, 31, .18);
  animation: ts2Up .28s cubic-bezier(.2, .8, .2, 1);
}
@keyframes ts2Up { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ts2Pop { from { transform: translateY(10px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 600px) {
  .ts-back { padding: 24px; }
  .ts {
    padding: 28px 28px 22px;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(20, 18, 31, .28);
    animation-name: ts2Pop;
  }
}

/* icon, title, text */
.ts-ic {
  width: 48px; height: 48px; margin: 0 0 16px; border-radius: 14px; clip-path: none;
  background: rgba(255, 107, 94, .14); color: var(--acc-t);
}
.ts-ic svg { width: 22px; height: 22px; }
.ts-t { margin: 0; font: 700 24px/1.25 var(--font-d) !important; text-transform: none; letter-spacing: -.01em; color: var(--t1); }
.ts-p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--t2); }
.ts-p + .ts-p { margin-top: 6px; font-size: 13.5px; color: var(--t3); }

/* "From THB 229 / month" as a quiet price tag */
.ts-pr {
  display: inline-flex; align-items: center; margin: 16px 0 0; padding: 6px 12px;
  background: var(--s2); color: var(--t1); border-radius: 12px;
  font: 700 15px/1.3 var(--font-b) !important;
}

/* buttons: one strong action, one quiet text button */
.ts-btns { display: grid; gap: 6px; margin-top: 22px; }
.ts-btns .btn {
  width: 100%; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 14px; clip-path: none !important;
  font: 700 15px var(--font-b); text-transform: none; letter-spacing: 0; box-shadow: none;
}
.ts-btns .btn:not(.ghost) { background: #FF6B5E; color: #1B1A2E; }
.ts-btns .btn:not(.ghost):hover { filter: brightness(1.05); transform: translateY(-1px); }
.ts-btns .btn.ghost { min-height: 40px; background: none; color: var(--t2); font-weight: 600; }
.ts-btns .btn.ghost:hover { background: var(--s2); color: var(--t1); transform: none; }

/* likers list inside the same sheet */
.ts .lk-row { gap: 12px; padding: 12px 0; border-color: var(--line); }
.ts .lk-row .av { border-radius: 12px; clip-path: none; }
.ts .lk-row .btn { width: auto; min-height: 36px; padding: 6px 14px; border-radius: 12px; clip-path: none; font: 700 13px var(--font-b); text-transform: none; }
/* end of sheet-v2.css */

/* ---------- Profile preview (peek.js): cleaner card, same buttons everywhere, real full screen on phones ---------- */
#pk.pk-back { background: rgba(20, 18, 31, .6); }
#pk .pk-card { background: var(--s1); box-shadow: 0 24px 60px rgba(20, 18, 31, .3); }
#pk .pk-info { gap: 12px; padding: 26px 28px 24px; }
#pk .pk-info h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font: 700 28px/1.2 var(--font-d); text-transform: none; letter-spacing: 0; }
#pk .pk-dist { margin-top: -6px; font-size: 13px; font-weight: 500; color: var(--t3); }
#pk .pk-rows { gap: 12px 16px; margin: 2px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#pk .pk-rows dt { font-size: 12px; font-weight: 500; color: var(--t3); }
#pk .pk-rows dd { margin-top: 2px; font-size: 14px; font-weight: 600; }
#pk .pk-bio { font-size: 14.5px; line-height: 1.6; }
#pk .pk-acts { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 6px; }
#pk .pk-acts .btn {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 12px; clip-path: none !important;
  font: 700 14px var(--font-b); text-transform: none; letter-spacing: 0; box-shadow: none;
}
#pk .pk-acts .btn:not(.ghost) { background: #FF6B5E; color: #1B1A2E; }
#pk .pk-acts .btn.ghost { background: var(--s2); color: var(--t1); }
#pk .pk-acts .btn.ghost:hover { background: var(--s3); }
#pk .pk-x { background: rgba(20, 18, 31, .55); }

@media (max-width: 899px) {
  #pk .pk-card {
    display: flex; flex-direction: column; width: 100vw; height: 100vh; height: 100dvh;
    border-radius: 0; overflow-y: auto; overscroll-behavior: contain;
  }
  #pk .pk-gal { flex: none; width: 100%; aspect-ratio: 4 / 5; max-height: 62vh; max-height: 62dvh; }
  #pk .pk-info { flex: 1 0 auto; overflow: visible; padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
  #pk .pk-info h2 { font-size: 26px; }
  #pk .pk-acts { position: sticky; bottom: 0; padding: 12px 0 calc(4px + env(safe-area-inset-bottom, 0px)); background: var(--s1); }
}
/* end of profile preview */
