/* Holdviola Masszázs — Otthoni Relaxáció member PWA.
   Self-contained design system. Brand: violet #4a0292, spa-calm, feminine-restrained. */

@font-face {
  font-family: "Prata";
  src: url("/assets/fonts/65fdc67c19715c2695638450_Prata-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Caudex";
  src: url("/assets/fonts/65fdc7dc60eb345129a3eef3_Caudex-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Baloo Bhaijaan 2";
  src: url("/assets/fonts/65fdc8d88f077fb05e2e8c9c_BalooBhaijaan2-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Baloo Bhaijaan 2";
  src: url("/assets/fonts/660fff14ff94bc7320c95984_BalooBhaijaan2-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --violet: #4a0292;
  --violet-deep: #250779;
  --violet-bright: #ad56d9;
  --violet-700: #5e1aa6;
  --violet-100: #ece1f7;
  --violet-50: #f6f0fc;
  --ink: #2a1646;
  --ink-2: #4c3a68;
  --body: #564a68;
  --muted: #8a7ca0;
  --line: #ece6f3;
  --paper: #fbf8fe;
  --white: #ffffff;
  --grad: linear-gradient(150deg, #250779, #ad56d9);
  --grad-soft: linear-gradient(150deg, #6a2bbd, #c47de4);
  --shadow-sm: 0 2px 10px rgba(74, 2, 146, .06);
  --shadow-md: 0 10px 30px rgba(74, 2, 146, .12);
  --shadow-lg: 0 22px 60px rgba(37, 7, 121, .26);
  --shadow-vio: 0 12px 28px rgba(74, 2, 146, .30);
  --r: 14px;
  --r-lg: 18px;
  --r-pill: 999px;
  --pwa-max: 460px;
  --nav-h: 64px;
  --player-h: 0px;

  --font-head: "Prata", Georgia, serif;
  --font-body: "Caudex", Georgia, serif;
  --font-btn: "Baloo Bhaijaan 2", system-ui, sans-serif;
}

* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); font-weight: 400; line-height: 1.25; margin: 0; }
a { color: var(--violet); }

/* phone-frame shell, centered on desktop */
.pwa {
  width: 100%; max-width: var(--pwa-max); margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  overflow-x: hidden; background: var(--paper); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); position: relative;
}

/* ---------- top bar ---------- */
.pwa-top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 248, 254, .88); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 13px 18px; padding-top: max(13px, env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pwa-top__logo { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; }
.pwa-top__logo img { height: 30px; width: 30px; flex: 0 0 auto; }
.pwa-top__logo .tt { min-width: 0; overflow: hidden; }
.pwa-top__logo .tt b { display: block; font-family: var(--font-head); color: var(--ink); font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
.pwa-top__logo .tt span { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.pwa-top .top-act { flex: 0 0 auto; background: var(--violet-50); border: 1px solid var(--violet-100); color: var(--violet); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 1.05rem; transition: transform .15s, background .15s; }
.pwa-top .top-act:active { transform: scale(.92); }

.pwa-main { flex: 1; width: 100%; max-width: 100%; padding: 18px 16px calc(var(--nav-h) + var(--player-h) + 28px); overflow-x: hidden; }

/* ---------- greeting / hero ---------- */
.greet { padding: 6px 2px 16px; }
.greet .eyebrow { font-family: var(--font-btn); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; color: var(--violet-bright); margin-bottom: 6px; }
.greet h1 { font-size: 1.7rem; margin-bottom: 6px; }
.greet p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- unlock CTA banner ---------- */
.unlock-cta {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--grad); color: #fff; padding: 22px 20px; margin-bottom: 22px;
  box-shadow: var(--shadow-vio);
}
.unlock-cta::after { content: ""; position: absolute; top: -40%; right: -20%; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); pointer-events: none; }
.unlock-cta .uc-eye { font-family: var(--font-btn); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; color: rgba(255,255,255,.82); margin-bottom: 7px; }
.unlock-cta h2 { color: #fff; font-size: 1.32rem; margin-bottom: 8px; position: relative; }
.unlock-cta p { color: rgba(255,255,255,.88); font-size: .88rem; margin: 0 0 16px; position: relative; line-height: 1.5; }
.unlock-cta .price { font-family: var(--font-head); font-size: 1rem; color: #fff; }

/* ---------- buttons (Baloo, uppercase, pill) ---------- */
.btn {
  font-family: var(--font-btn); font-weight: 500; text-transform: uppercase; letter-spacing: .05em;
  font-size: .9rem; border: none; border-radius: var(--r-pill); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; transition: transform .15s, box-shadow .15s, opacity .15s; line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; transform: none; box-shadow: none; cursor: default; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-vio); }
.btn-white { background: #fff; color: var(--violet); box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.btn-ghost { background: #fff; border: 1.5px solid var(--violet-100); color: var(--violet); }
.btn-soft { background: var(--violet-50); color: var(--violet); }

/* ---------- category section ---------- */
.cat-sec { margin-bottom: 26px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 13px; }
.cat-head h3 { font-size: 1.18rem; display: flex; align-items: center; gap: 9px; }
.cat-head h3 .ic { font-size: 1.1rem; }
.cat-head .count { font-size: .72rem; color: var(--muted); font-family: var(--font-btn); letter-spacing: .04em; }

/* ---------- card grid ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } }

.med-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; cursor: pointer;
  transition: transform .18s, box-shadow .18s; text-align: left;
  padding: 0; font-family: inherit; color: inherit; width: 100%;
}
.med-card:active { transform: scale(.98); }
.med-card.playing { box-shadow: 0 0 0 2px var(--violet), var(--shadow-md); }
.med-cover {
  position: relative; aspect-ratio: 1 / 1; width: 100%;
  background-size: cover; background-position: center; display: grid; place-items: center;
}
.med-cover .play-fab {
  width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; color: var(--violet); font-size: 1.15rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.22); transition: transform .15s;
  padding-left: 3px;
}
.med-card:hover .play-fab { transform: scale(1.06); }
.med-cover .dur {
  position: absolute; bottom: 8px; right: 8px; background: rgba(37,7,121,.78); color: #fff;
  font-family: var(--font-btn); font-size: .68rem; letter-spacing: .03em; padding: 3px 9px;
  border-radius: var(--r-pill); backdrop-filter: blur(4px);
}
.med-cover .free-badge {
  position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.94); color: var(--violet);
  font-family: var(--font-btn); font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  font-size: .58rem; padding: 4px 9px; border-radius: var(--r-pill);
}
.med-card.is-playing-now .play-fab::before { content: ""; }

/* locked overlay */
.med-card.locked .med-cover::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37,7,121,.30), rgba(37,7,121,.62));
}
.lock-ov {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; color: #fff;
}
.lock-ov .lk { font-size: 1.4rem; }
.lock-ov .lk-txt {
  font-family: var(--font-btn); font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  font-size: .66rem; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4);
  padding: 6px 12px; border-radius: var(--r-pill);
}
.med-body { padding: 11px 12px 13px; flex: 1; }
.med-body .ttl { font-family: var(--font-head); color: var(--ink); font-size: .96rem; line-height: 1.25; margin-bottom: 3px; overflow-wrap: anywhere; }
.med-body .sub { color: var(--muted); font-size: .76rem; line-height: 1.35; overflow-wrap: anywhere; }

/* ---------- global player bar ---------- */
.player-bar {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(120%);
  bottom: var(--nav-h); width: 100%; max-width: var(--pwa-max); z-index: 40;
  background: rgba(255,255,255,.97); backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(74,2,146,.10);
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
}
.player-bar.up { transform: translateX(-50%) translateY(0); }
.player-bar .pb-top { display: flex; align-items: center; gap: 12px; }
.pb-cover { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 11px; background-size: cover; background-position: center; box-shadow: var(--shadow-sm); }
.pb-meta { flex: 1; min-width: 0; }
.pb-meta b { display: block; font-family: var(--font-head); color: var(--ink); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.pb-meta span { display: block; font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-play { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--grad); color: #fff; font-size: 1.15rem; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-vio); padding-left: 2px; transition: transform .15s; }
.pb-play:active { transform: scale(.9); }
.pb-close { flex: 0 0 auto; background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 6px; line-height: 1; }
.pb-seek { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.pb-seek .t { font-family: var(--font-btn); font-size: .66rem; color: var(--muted); flex: 0 0 auto; min-width: 34px; text-align: center; }
.seekbar { flex: 1; height: 6px; -webkit-appearance: none; appearance: none; background: var(--violet-100); border-radius: 999px; outline: none; cursor: pointer; }
.seekbar::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--violet); box-shadow: 0 1px 4px rgba(74,2,146,.4); cursor: pointer; }
.seekbar::-moz-range-thumb { width: 15px; height: 15px; border: none; border-radius: 50%; background: var(--violet); cursor: pointer; }
.pb-prog { position: absolute; left: 0; top: 0; height: 3px; background: var(--grad); border-radius: 0 3px 3px 0; transition: width .2s linear; }

/* ---------- bottom nav ---------- */
.pwa-tabs {
  position: sticky; bottom: 0; z-index: 30;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 24px rgba(74,2,146,.05);
}
.pwa-tab {
  position: relative; background: none; border: none; padding: 9px 2px; min-height: var(--nav-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-family: var(--font-btn); font-size: .64rem; letter-spacing: .05em;
  text-transform: uppercase; cursor: pointer; transition: color .18s; -webkit-user-select: none; user-select: none;
}
.pwa-tab .ic { font-size: 1.28rem; line-height: 1; transition: transform .18s; filter: grayscale(.35) opacity(.78); }
.pwa-tab.active { color: var(--violet); }
.pwa-tab.active .ic { transform: translateY(-1px) scale(1.06); filter: none; }
.pwa-tab.active::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--violet); }
.pwa-tab:active .ic { transform: scale(.9); }

/* ---------- cards (info / profile) ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.card--accent { background: linear-gradient(155deg, var(--violet-50), #fff); border-color: var(--violet-100); }
.sec-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 1.04rem; margin-bottom: 10px; color: var(--ink); }
.muted-note { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.center { text-align: center; }
.avatar { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.3rem; }
.row-head { display: flex; align-items: center; gap: 14px; }
.row-head > div { min-width: 0; }
.pill { display: inline-block; padding: 5px 13px; border-radius: var(--r-pill); font-family: var(--font-btn); font-size: .7rem; letter-spacing: .04em; }
.pill-vio { background: var(--violet-50); color: var(--violet); }
.pill-ok { background: #eafbf2; color: #18794e; }

/* ---------- login ---------- */
.login-wrap { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 28px 24px calc(28px + env(safe-area-inset-bottom)); max-width: var(--pwa-max); margin: 0 auto; }
.login-bg { position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(1100px 540px at 80% -10%, rgba(173,86,217,.16), transparent 60%),
  radial-gradient(900px 480px at -10% 100%, rgba(37,7,121,.12), transparent 60%), var(--paper); }
.login-logo { height: 64px; width: 64px; margin: 0 auto 18px; display: block; }
.login-wrap h1 { font-size: 1.85rem; text-align: center; margin-bottom: 6px; }
.login-sub { color: var(--muted); font-size: .92rem; text-align: center; margin: 0 auto 24px; max-width: 300px; line-height: 1.5; }
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-family: var(--font-btn); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 7px; }
.field input { width: 100%; min-width: 0; max-width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r); font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: #b3a8c4; }
.field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(74,2,146,.12); }
.otp-input { letter-spacing: 12px; text-align: center; font-size: 1.6rem; font-family: var(--font-head); }
.card--login { padding: 22px 20px; }
.demo-hint { margin-top: 16px; padding: 13px 15px; background: var(--violet-50); border: 1px solid var(--violet-100); border-radius: 12px; color: var(--violet-700); font-size: .85rem; text-align: center; }
.demo-hint b { display: inline-block; color: var(--violet); font-size: 1.25rem; letter-spacing: 5px; font-family: var(--font-head); margin-top: 4px; }
.banner-msg { display: block; padding: 12px 15px; margin-bottom: 16px; background: var(--violet-50); color: var(--violet-700); border-radius: 12px; font-size: .9rem; text-align: center; }
.banner-err { background: #fdecf2; color: #b4205a; }

/* ---------- empty / error / loading ---------- */
.empty { text-align: center; padding: 32px 18px; }
.empty .glyph { font-size: 2.6rem; line-height: 1; margin-bottom: 12px; display: block; }
.empty h3 { font-size: 1.1rem; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: .9rem; line-height: 1.5; max-width: 290px; margin: 0 auto; }
.errbox { text-align: center; padding: 28px 18px; }
.errbox .glyph { font-size: 2.3rem; display: block; margin-bottom: 10px; }
.spin { width: 28px; height: 28px; border: 3px solid var(--violet-100); border-top-color: var(--violet); border-radius: 50%; animation: sp .8s linear infinite; margin: 36px auto; }
@keyframes sp { to { transform: rotate(360deg); } }

/* skeletons */
.sk { background: linear-gradient(100deg, #efe9f6 30%, #f7f2fc 50%, #efe9f6 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-card { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.sk-cover { aspect-ratio: 1/1; width: 100%; }
.sk-line { height: 12px; margin: 11px 12px; }
.sk-line.w60 { width: 60%; } .sk-line.w80 { width: 80%; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--player-h) + 22px); transform: translate(-50%, 12px); background: var(--violet-deep); color: #fff; padding: 13px 22px; border-radius: 14px; z-index: 999; box-shadow: var(--shadow-lg); font-family: var(--font-body); font-size: .92rem; max-width: 90%; display: flex; align-items: center; gap: 9px; opacity: 0; transition: opacity .25s, transform .25s; }
.toast.in { opacity: 1; transform: translate(-50%, 0); }

/* ---------- modal (purchase / generic) ---------- */
.modal-ov { position: fixed; inset: 0; background: rgba(37,7,121,.42); backdrop-filter: blur(3px); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; padding: 0; animation: fadeIn .2s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: 100%; max-width: var(--pwa-max); background: #fff; border-radius: 22px 22px 0 0; padding: 8px 22px calc(26px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: slideUp .34s cubic-bezier(.22,.61,.36,1) both; }
@keyframes slideUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.modal .grab { width: 42px; height: 4px; border-radius: 999px; background: var(--line); margin: 8px auto 16px; }
.modal h2 { font-size: 1.4rem; margin-bottom: 8px; text-align: center; }
.modal .m-sub { color: var(--muted); font-size: .92rem; text-align: center; margin: 0 auto 18px; line-height: 1.5; max-width: 330px; }
.modal .perks { list-style: none; padding: 0; margin: 0 0 20px; }
.modal .perks li { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }
.modal .perks li:last-child { border-bottom: none; }
.modal .perks li .ck { flex: 0 0 auto; color: var(--violet); font-size: 1rem; margin-top: 1px; }
.modal .price-row { text-align: center; margin-bottom: 16px; }
.modal .price-row .amt { font-family: var(--font-head); font-size: 2rem; color: var(--ink); }
.modal .price-row .per { color: var(--muted); font-size: .88rem; }
.modal .m-foot { text-align: center; color: var(--muted); font-size: .76rem; margin-top: 12px; }
.modal .m-close { display: block; width: 100%; margin-top: 10px; background: none; border: none; color: var(--muted); font-family: var(--font-btn); text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; padding: 12px; cursor: pointer; }

/* ---------- entrance reveal ---------- */
.reveal > * { animation: cardIn .42s cubic-bezier(.22,.61,.36,1) both; }
.reveal > *:nth-child(2) { animation-delay: .05s; }
.reveal > *:nth-child(3) { animation-delay: .1s; }
.reveal > *:nth-child(4) { animation-delay: .15s; }
.reveal > *:nth-child(5) { animation-delay: .2s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (min-width: 600px) {
  body { padding: 24px 0; }
  .pwa { min-height: calc(100dvh - 48px); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); }
  .player-bar { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
