/* SHIZA checkout — one engine, themed by CSS variables injected per ?app=.
   Tokens (--bg, --accent, --font-*, …) come from the server-side theme.

   Visual language: "lightweight 3D" + a touch of glass. Depth is built from
   soft, theme-tinted shadows, frosted surfaces, a clay CTA and restrained
   motion (pointer parallax, fade-up, slow background breathing). Everything
   degrades gracefully under prefers-reduced-motion and on touch devices, and
   reads correctly on both the dark skins (brainboosty/default) and the light
   one (diary). No hardcoded brand colours live here. */

* { box-sizing: border-box; }

/* Derived design tokens (built on top of the per-theme tokens). These are kept
   out of the theme files so every skin gets the same depth system for free. */
:root {
  /* Frosted surfaces: the theme surface, made translucent so the background
     aurora bleeds through behind backdrop-filter blur. */
  --glass: color-mix(in srgb, var(--surface) 78%, transparent);
  --glass-2: color-mix(in srgb, var(--surface-2) 76%, transparent);
  --glass-line: color-mix(in srgb, var(--text) 12%, transparent);
  --ring: color-mix(in srgb, var(--accent) 55%, transparent);

  /* A single, theme-tinted shadow colour drives all elevation, so shadows feel
     like coloured ambient light rather than flat black on every skin. */
  --shadow: color-mix(in srgb, var(--accent-2) 42%, #04030a);
  --elev-1:
    0 1px 1px color-mix(in srgb, var(--shadow) 16%, transparent),
    0 6px 14px -10px color-mix(in srgb, var(--shadow) 55%, transparent);
  --elev-2:
    0 1px 1px color-mix(in srgb, var(--shadow) 18%, transparent),
    0 10px 22px -12px color-mix(in srgb, var(--shadow) 55%, transparent),
    0 26px 50px -28px color-mix(in srgb, var(--shadow) 65%, transparent);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Background aurora — two slow-breathing blobs of accent light. Lives on
   pseudo layers so no markup is required and it sits behind all content. */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  will-change: transform, opacity;
}
body::before {
  top: -22%;
  right: -16%;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
  animation: breathe-a 18s var(--ease) infinite;
}
body::after {
  bottom: -28%;
  left: -20%;
  width: 64vmax;
  height: 64vmax;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--accent-2) 26%, transparent), transparent 70%);
  animation: breathe-b 22s var(--ease) infinite;
}

@keyframes breathe-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .85; }
  50%      { transform: translate3d(-3%, 4%, 0) scale(1.12); opacity: 1; }
}
@keyframes breathe-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .8; }
  50%      { transform: translate3d(4%, -3%, 0) scale(1.1); opacity: 1; }
}

.shell {
  position: relative;
  max-width: 30rem;
  margin: 0 auto;
  padding: 1.25rem 1.1rem 2.5rem;
  /* 3D stage for the card's pointer parallax. */
  perspective: 1400px;
}
.shell--center {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

/* Desktop composition: the card floats, vertically centred, on the brand glow
   so the surrounding space reads as intentional atmosphere. */
@media (min-width: 48rem) {
  .shell {
    max-width: 34rem;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* Shared entrance: sections rise into place. Staggered via --i set inline. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .7s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
/* The card is also the pointer-parallax target, so its entrance must NOT animate
   `transform` (a forwards-filled translate would clobber the tilt). Fade only. */
.card.reveal {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  animation-name: fade-in;
}

/* Brand / anchor ---------------------------------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem 1.1rem;
}
.anchor {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 1.05rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, var(--glass));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--elev-1), inset 0 1px 0 color-mix(in srgb, #fff 16%, transparent);
  color: var(--text);
  white-space: nowrap;
}
.anchor--lg {
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}
.brand-app { display: flex; flex-direction: column; line-height: 1.2; }
.brand-app-name { font-weight: 700; font-size: 1.05rem; }
.brand-motif { color: var(--muted); font-size: 0.85rem; }

/* Card — frosted glass slab, lifted with layered ambient light ------------ */
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem 1.6rem;
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  box-shadow:
    var(--elev-2),
    inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent);
  transform-style: preserve-3d;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  /* Pointer parallax: JS feeds --rx/--ry (deg) and --mx/--my (glare %). */
  transform:
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
}
/* Top sheen + pointer glare, kept subtle enough to read on light skins. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(22rem 22rem at var(--mx, 50%) var(--my, 0%),
      color-mix(in srgb, #fff 14%, transparent), transparent 60%),
    linear-gradient(180deg,
      color-mix(in srgb, #fff 8%, transparent), transparent 28%);
  opacity: .9;
  transition: background-position .2s var(--ease);
}
.card > * { position: relative; }

.title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Period toggle — frosted track with a sliding 3D thumb ------------------- */
.period-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0.3rem;
  background: var(--glass-2);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  margin-bottom: 1.1rem;
  box-shadow: inset 0 2px 6px color-mix(in srgb, var(--shadow) 30%, transparent);
}
.period-thumb {
  position: absolute;
  z-index: 0;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0.3rem;
  width: calc(50% - 0.3rem);
  border-radius: 999px;
  background: linear-gradient(180deg,
    color-mix(in srgb, #fff 18%, var(--accent)), var(--accent) 55%, var(--accent-2));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 35%, transparent),
    0 6px 14px -8px color-mix(in srgb, var(--accent) 75%, transparent);
  transition: transform .32s var(--ease);
  transform: translateX(0);
}
.period-toggle[data-active="year"] .period-thumb {
  transform: translateX(100%);
}
.period-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 0.62rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color .25s var(--ease);
}
.period-btn[aria-selected="true"] {
  color: var(--accent-contrast);
}
.period-save {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.25rem;
  opacity: 0.95;
}

/* Plans — clay tiles; the selected one lifts toward the viewer ------------ */
.plans { display: grid; gap: 0.7rem; margin-bottom: 1rem; }
.plans-loading { color: var(--muted); text-align: center; padding: 1rem; }

.plan {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  width: 100%;
  appearance: none;
  cursor: pointer;
  background: var(--glass-2);
  border: 1.5px solid var(--glass-line);
  border-radius: calc(var(--radius) - 4px);
  padding: 1rem 1.05rem;
  color: var(--text);
  font: inherit;
  box-shadow: var(--elev-1), inset 0 1px 0 color-mix(in srgb, #fff 10%, transparent);
  transition: border-color .2s var(--ease), transform .22s var(--ease),
              box-shadow .22s var(--ease), background .2s var(--ease);
  /* New nodes (period switches re-render) animate in. */
  animation: plan-in .45s var(--ease) both;
}
@keyframes plan-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (hover: hover) {
  .plan:hover {
    transform: translateY(-2px);
    box-shadow: var(--elev-2);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--glass-line));
  }
}
.plan:active { transform: translateY(0) scale(0.995); }
.plan[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--glass-2));
  transform: translateY(-3px);
  box-shadow:
    0 0 0 3px var(--ring),
    var(--elev-2),
    inset 0 1px 0 color-mix(in srgb, #fff 16%, transparent);
}
.plan-main { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.plan-name { font-weight: 700; font-size: 1.04rem; }
.plan-upgrade {
  color: var(--text);
  font-size: 0.8rem;
  opacity: 0.92;
  margin: 0.05rem 0;
}
.plan-sub { color: var(--muted); font-size: 0.82rem; }
.plan-price { text-align: right; white-space: nowrap; }
.plan-amount { font-weight: 800; font-size: 1.15rem; }
.plan-per { color: var(--muted); font-size: 0.78rem; display: block; }

.plan-badge {
  position: absolute;
  top: -0.62rem;
  left: 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 30%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--glass-line));
  box-shadow: var(--elev-1);
  color: var(--text);
}

/* Included ---------------------------------------------------------------- */
.included {
  border-top: 1px solid var(--glass-line);
  border-bottom: 1px solid var(--glass-line);
  padding: 0.9rem 0.1rem;
  margin-bottom: 0.95rem;
}
.included-head { font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.included-line { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.included-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.included-more { margin-top: 0.45rem; }
.included-more summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.included-more summary::-webkit-details-marker { display: none; }
.included-more summary::after { content: "▾"; transition: transform .2s var(--ease); }
.included-more[open] summary::after { transform: rotate(180deg); }
.included-more .included-list { margin-top: 0.45rem; }

/* Annual note ------------------------------------------------------------- */
.annual-note {
  background: color-mix(in srgb, var(--accent-2) 16%, var(--glass-2));
  border: 1px solid color-mix(in srgb, var(--accent-2) 38%, var(--glass-line));
  border-radius: calc(var(--radius) - 6px);
  padding: 0.72rem 0.9rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  box-shadow: var(--elev-1);
  animation: rise .5s var(--ease);
}

/* Pay — clay CTA with a solid 3D bottom edge that compresses on press ------ */
.pay-btn {
  position: relative;
  display: block;
  width: 100%;
  appearance: none;
  border: 0;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  font-size: clamp(0.8rem, 3.4vw, 1.05rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1.05rem 0.85rem;
  border-radius: 999px;
  color: var(--accent-contrast);
  background: linear-gradient(180deg,
    color-mix(in srgb, #fff 20%, var(--accent)), var(--accent) 48%, var(--accent-2));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 40%, transparent),
    inset 0 -2px 5px color-mix(in srgb, #000 22%, transparent),
    0 4px 0 color-mix(in srgb, var(--accent-2) 75%, #000),
    0 14px 26px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  transform: translateY(0);
  transition: transform .12s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.pay-btn > span { display: block; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) {
  .pay-btn:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow:
      inset 0 1px 0 color-mix(in srgb, #fff 40%, transparent),
      inset 0 -2px 5px color-mix(in srgb, #000 22%, transparent),
      0 5px 0 color-mix(in srgb, var(--accent-2) 75%, #000),
      0 18px 30px -10px color-mix(in srgb, var(--accent) 75%, transparent);
  }
}
.pay-btn:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 30%, transparent),
    inset 0 -1px 3px color-mix(in srgb, #000 22%, transparent),
    0 1px 0 color-mix(in srgb, var(--accent-2) 75%, #000),
    0 8px 16px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.pay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent);
}
.pay-btn--link { margin-top: 0.5rem; }

/* Secondary rail (YooKassa card/SBP): quieter, outlined "ghost" button below
   the primary CTA, so the Telegram rail stays the visual default. */
.pay-btn--alt {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--fg, #f3e9ec);
  background: color-mix(in srgb, var(--card, #241318) 82%, transparent);
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent),
    0 8px 20px -14px color-mix(in srgb, #000 80%, transparent);
}
.pay-btn--alt svg { flex: 0 0 auto; opacity: 0.9; }
@media (hover: hover) {
  .pay-btn--alt:hover {
    filter: none;
    background: color-mix(in srgb, var(--accent) 12%, var(--card, #241318));
    box-shadow:
      inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, transparent),
      0 10px 22px -14px color-mix(in srgb, #000 80%, transparent);
  }
}
.pay-btn--alt:active {
  transform: translateY(1px);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent);
}

.recurrent-note {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  margin: 0.8rem 0 0;
  line-height: 1.4;
}
.recurrent-note[hidden] { display: none; }

/* Autorenew opt-out checkbox — deliberately at price-level weight (not
   footer fineprint): this is the actual decision, not a disclosure of one. */
.autorenew-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.9rem 0 0.2rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: var(--glass-2);
  border: 1.5px solid var(--glass-line);
  cursor: pointer;
  user-select: none;
}
.autorenew-opt[hidden] { display: none; }
.autorenew-opt input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.autorenew-opt__text {
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.45;
}

.pay-hint { color: var(--muted); font-size: 0.8rem; text-align: center; margin: 0.6rem 0 1.1rem; }

/* Trust ------------------------------------------------------------------- */
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
.trust-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent);
}
.trust-link:hover { color: var(--text); }
.trust-icon {
  flex: 0 0 18px;
  display: block;
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  margin-top: 0.1rem;
  opacity: 0.85;
}

.foot { text-align: center; color: var(--muted); font-size: 0.78rem; padding: 1.4rem 0 0; }

/* Modal (login gate) — frosted dialog ------------------------------------- */
.modal {
  position: fixed; inset: 0;
  background: color-mix(in srgb, var(--bg) 55%, rgba(0,0,0,0.55));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.1rem; z-index: 50;
  animation: fade-in .2s var(--ease);
}
.modal[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative;
  width: 100%; max-width: 24rem;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  padding: 1.6rem 1.35rem 1.45rem;
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: var(--elev-2), inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent);
  animation: pop-in .35s var(--ease);
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 0.6rem; right: 0.75rem;
  appearance: none; border: 0; background: transparent;
  color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.modal-title { font-family: var(--font-display); margin: 0 0 0.5rem; font-size: 1.4rem; }
.modal-text { color: var(--text); margin: 0 0 0.9rem; font-size: 0.95rem; }
.privacy-box {
  background: var(--glass-2);
  border: 1px solid var(--glass-line);
  border-radius: calc(var(--radius) - 6px);
  padding: 0.8rem 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.tg-login { display: flex; justify-content: center; min-height: 3rem; }
.tg-login-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  width: 100%; margin-top: 0.15rem;
  padding: 0.78rem 1.2rem; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 0.95rem;
  color: #fff; text-decoration: none; cursor: pointer;
  background: #2aabee;
  box-shadow: 0 10px 24px -14px color-mix(in srgb, #2aabee 80%, #000);
  transition: filter .15s var(--ease), transform .15s var(--ease);
}
.tg-login-btn:hover { filter: brightness(1.06); }
.tg-login-btn:active { transform: scale(.98); }
.tg-login-btn[hidden] { display: none; }
.modal-note { color: var(--muted); font-size: 0.8rem; text-align: center; margin: 0.8rem 0 0; }

/* Reward screen ----------------------------------------------------------- */
.reward { text-align: center; position: relative; overflow: hidden; }
.reward-glow {
  position: absolute; inset: -40% -20% auto; height: 16rem;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 35%, transparent), transparent);
  pointer-events: none;
}
.reward-check {
  position: relative;
  width: 4.2rem; height: 4.2rem; margin: 0.5rem auto 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-contrast);
  background: linear-gradient(180deg,
    color-mix(in srgb, #fff 22%, var(--accent)), var(--accent) 50%, var(--accent-2));
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 40%, transparent),
    inset 0 -3px 7px color-mix(in srgb, #000 25%, transparent),
    0 14px 28px -8px color-mix(in srgb, var(--accent) 70%, transparent);
  animation: pop-in .5s var(--ease);
}
.reward-check svg { width: 1.9rem; height: 1.9rem; }
.reward-title { font-family: var(--font-display); font-size: 1.8rem; margin: 0 0 0.6rem; }
.reward-body { color: var(--text); line-height: 1.5; margin: 0 0 1.2rem; }
.reward-body--muted { color: var(--muted); }
.reward-foot { color: var(--muted); font-size: 0.8rem; margin: 1.1rem 0 0; }

/* Toast ------------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  background: var(--glass-2); color: var(--text);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 999px; padding: 0.7rem 1.1rem; font-size: 0.88rem;
  box-shadow: var(--elev-2);
  z-index: 60; max-width: 90vw;
  animation: pop-in .3s var(--ease);
}
.toast[hidden] { display: none; }

/* Logged-in indicator on the tariff card (non-subscribers) ---------------- */
.session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: -0.35rem 0 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--accent) 10%, var(--glass-2));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.session-bar[hidden] { display: none; }
.session-bar-user {
  color: var(--muted);
  font-size: 0.85rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-bar-switch {
  flex: 0 0 auto;
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.session-bar-switch:hover { color: var(--text); }
.session-bar-switch:disabled { opacity: 0.5; cursor: default; }

/* Personal cabinet ------------------------------------------------------- *
   Shown instead of the tariff card when the signed-in user already has an
   active subscription: current plan + expiry, and one-tap renew / upgrade.
   Built from the same tokens as the rest, so every skin gets it for free.    */
.account-card[hidden] { display: none; }

.account-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.account-avatar {
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 22%, var(--glass-2));
  background-size: cover;
  background-position: center;
  border: 1px solid var(--glass-line);
  box-shadow: var(--elev-1), inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent);
}
.account-hello { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.account-greet { color: var(--muted); font-size: 0.85rem; }
.account-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.account-sub {
  background: var(--glass-2);
  border: 1px solid var(--glass-line);
  border-radius: calc(var(--radius) - 6px);
  padding: 0.95rem 1rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--elev-1), inset 0 1px 0 color-mix(in srgb, #fff 10%, transparent);
}
.account-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.account-tier { font-weight: 800; font-size: 1.15rem; }
.account-state {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--accent-contrast);
  background: linear-gradient(180deg,
    color-mix(in srgb, #fff 20%, var(--accent)), var(--accent) 55%, var(--accent-2));
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 30%, transparent);
}
.account-state[data-tone="warn"] {
  color: var(--text);
  background: color-mix(in srgb, var(--accent-2) 22%, var(--glass));
  border: 1px solid color-mix(in srgb, var(--accent-2) 45%, var(--glass-line));
  box-shadow: none;
}
.account-meta { color: var(--muted); font-size: 0.85rem; line-height: 1.45; margin: 0.55rem 0 0; }

.account-actions { display: grid; gap: 0.6rem; }
.account-btn {
  appearance: none;
  width: 100%;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  color: var(--text);
  background: var(--glass-2);
  border: 1.5px solid var(--glass-line);
  box-shadow: var(--elev-1), inset 0 1px 0 color-mix(in srgb, #fff 10%, transparent);
  transition: border-color .2s var(--ease), transform .18s var(--ease), background .2s var(--ease);
}
@media (hover: hover) {
  .account-btn:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--glass-line));
  }
}
.account-btn:active { transform: translateY(0) scale(0.995); }
.account-btn[hidden] { display: none; }

.account-upgrade { margin-top: 1rem; animation: rise .4s var(--ease); }
.account-upgrade[hidden] { display: none; }
.account-upgrade-head { font-weight: 700; margin-bottom: 0.6rem; }
.account-upgrade-list { display: grid; gap: 0.6rem; }

.account-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  appearance: none;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  background: var(--glass-2);
  border: 1.5px solid var(--glass-line);
  border-radius: calc(var(--radius) - 4px);
  padding: 0.85rem 1rem;
  box-shadow: var(--elev-1), inset 0 1px 0 color-mix(in srgb, #fff 10%, transparent);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
@media (hover: hover) {
  .account-plan:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--glass-line));
    box-shadow: var(--elev-2);
  }
}
.account-plan:active { transform: translateY(0) scale(0.995); }
.account-plan:disabled { opacity: 0.6; cursor: default; }
.account-plan-main { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.account-plan-name { font-weight: 700; font-size: 1.02rem; }
.account-plan-sub { color: var(--muted); font-size: 0.8rem; }
.account-plan-price { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }

.account-logout {
  display: block;
  margin: 1.15rem auto 0;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.account-logout:hover { color: var(--text); }
.account-logout:disabled { opacity: 0.5; cursor: default; }

.account-link-btn {
  display: block;
  margin: 0.7rem auto 0;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.account-link-btn[hidden] { display: none; }
.account-link-btn:hover { color: var(--text); }
.account-link-btn:disabled { opacity: 0.5; cursor: default; }

/* ======================================================================== *
   HOOK SKIN (brainboosty) — grunge + neon. A loud promo "hook" layered on top
   of the lightweight-3D base: torn condensed headline, brush tagline, a neon
   crimson card frame, a gritty bordeaux backdrop and an icon trust strip.
   Scoped to [data-skin="brainboosty"] so the calm skins are untouched.
   ======================================================================== */

/* Gritty bordeaux backdrop + iridescent neuron canvas (see neuron-bg.js). */
body[data-hook] {
  background-color: #0a050c;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 50% -10%, transparent 55%, rgba(0,0,0,0.65) 100%);
  background-repeat: repeat, no-repeat;
  background-size: 180px 180px, cover;
  background-attachment: fixed, fixed;
}
/* Hook skin: mute the generic aurora blobs — neurons carry the atmosphere. */
body[data-hook]::before,
body[data-hook]::after { opacity: 0.25; }

/* Iridescent neural network (canvas, hook skin only). */
.neuron-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.neuron-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

/* Hook hero ---------------------------------------------------------------- */
.hook { padding: 0.4rem 0.15rem 1.15rem; }
.hook-top { display: flex; justify-content: flex-end; margin-bottom: 0.9rem; }
.secure-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--muted); font-size: 0.72rem; font-weight: 600;
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.secure-badge svg { color: var(--glow); flex: none; }

.hook-kicker {
  position: relative;
  display: inline-block;
  font-family: var(--font-hook);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  margin: 0 0 0.55rem;
}
/* Red brush stroke under the kicker (the promo's hand-painted underline). */
.hook-kicker::after {
  content: "";
  position: absolute;
  left: -0.1rem; right: -0.4rem; bottom: -0.28rem;
  height: 0.26rem;
  background: var(--glow);
  border-radius: 40% 60% 55% 45%;
  transform: rotate(-1.4deg) scaleX(0.98);
  filter: blur(0.3px);
  box-shadow: 0 0 8px -1px color-mix(in srgb, var(--glow) 70%, transparent);
}

.hook-title {
  font-family: var(--font-hook);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(2.7rem, 14vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
  margin: 0;
  color: var(--text);
  text-shadow: 0 3px 0 rgba(0,0,0,0.45), 0 0 28px color-mix(in srgb, var(--glow) 18%, transparent);
}

.hook-tagline {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.05;
  color: color-mix(in srgb, var(--glow) 55%, var(--text));
  margin: 0.5rem 0 0;
}
.hook-motif {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--muted); font-size: 0.85rem; margin: 0.95rem 0 0;
}
.hook-brain { color: var(--glow); flex: none; opacity: 0.95; }

/* Neon-framed card -------------------------------------------------------- */
body[data-hook] .card {
  border-color: color-mix(in srgb, var(--glow) 65%, transparent);
  background: color-mix(in srgb, var(--surface) 90%, #000);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--glow) 35%, transparent),
    var(--elev-2),
    inset 0 0 36px -14px color-mix(in srgb, var(--glow) 45%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent);
}
/* Pulsing neon bloom around the frame (opacity-only animation = cheap). */
body[data-hook] .card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    0 0 22px 1px var(--glow),
    0 0 60px 6px color-mix(in srgb, var(--glow) 55%, transparent);
  opacity: 0.4;
  animation: neon-pulse 4.2s var(--ease) infinite;
}
@keyframes neon-pulse {
  0%, 100% { opacity: 0.32; }
  50%      { opacity: 0.7; }
}

/* Selected plan picks up the neon ring too. */
body[data-hook] .plan[aria-pressed="true"] {
  border-color: var(--glow);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--glow) 55%, transparent),
    0 0 18px -3px color-mix(in srgb, var(--glow) 60%, transparent),
    var(--elev-2);
}
body[data-hook] .plan-badge {
  border-color: color-mix(in srgb, var(--glow) 60%, var(--glass-line));
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.66rem;
}

/* Hook CTA — «Неон-пульс»: crimson bloom that breathes, pulls the eye in. */
body[data-hook] .pay-btn:not(:disabled) {
  background: linear-gradient(180deg,
    color-mix(in srgb, #fff 18%, var(--accent)), var(--accent) 50%, var(--accent-2));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--glow) 55%, transparent),
    0 0 28px -4px var(--glow),
    0 14px 32px -12px color-mix(in srgb, var(--glow) 70%, transparent);
  animation: neon-breathe-btn 2.8s var(--ease) infinite;
}
@media (hover: hover) {
  body[data-hook] .pay-btn:not(:disabled):hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow:
      0 0 0 1px var(--glow),
      0 0 42px -2px var(--glow),
      0 20px 40px -10px color-mix(in srgb, var(--glow) 80%, transparent);
  }
}
body[data-hook] .pay-btn:not(:disabled):active {
  transform: translateY(1px);
  filter: brightness(1.02);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--glow) 45%, transparent),
    0 0 18px -6px var(--glow),
    0 10px 24px -12px color-mix(in srgb, var(--glow) 60%, transparent);
}
@keyframes neon-breathe-btn {
  0%, 100% {
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--glow) 45%, transparent),
      0 0 22px -6px var(--glow),
      0 14px 32px -12px color-mix(in srgb, var(--glow) 65%, transparent);
  }
  50% {
    box-shadow:
      0 0 0 1px var(--glow),
      0 0 38px 0 var(--glow),
      0 18px 38px -10px color-mix(in srgb, var(--glow) 75%, transparent);
  }
}

/* Icon trust strip (mirrors the promo's bottom row) ----------------------- */
.trust-strip {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--glass-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
}
.trust-cell, .trust-cell a {
  display: flex; flex-direction: column; align-items: center; gap: 0.42rem;
  color: var(--muted);
  font-size: 0.7rem; font-weight: 700; line-height: 1.15;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.trust-cell a { text-decoration: none; }
.trust-cell a:hover { color: var(--text); }
.trust-cell svg {
  width: 22px; height: 22px;
  color: var(--glow);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--glow) 45%, transparent));
}
.trust-fineprint {
  color: var(--muted);
  font-size: 0.74rem;
  text-align: center;
  margin: 0.85rem 0 0;
  line-height: 1.4;
  opacity: 0.85;
}

/* Bottom strapline */
.foot-strap {
  font-family: var(--font-hook);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Product hub (shizacore.com landing) ------------------------------------- */
.shell--wide { max-width: 56rem; }
@media (min-width: 48rem) {
  .shell--wide { max-width: 56rem; }
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 0.3rem 0 0.5rem;
}
@media (min-width: 40rem) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
}

/* Each tile is a neon-framed slab tinted by its own --glow (set inline). */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 90%, #000);
  border: 1.5px solid color-mix(in srgb, var(--glow) 60%, transparent);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.4rem;
  min-height: 10rem;
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--glow) 30%, transparent),
    var(--elev-2),
    inset 0 0 44px -16px color-mix(in srgb, var(--glow) 50%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  overflow: hidden;
}
.product-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    0 0 20px 1px var(--glow),
    0 0 52px 6px color-mix(in srgb, var(--glow) 50%, transparent);
  opacity: 0.3;
  animation: neon-pulse 4.2s var(--ease) infinite;
}
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-4px);
    border-color: var(--glow);
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--glow) 45%, transparent),
      var(--elev-2),
      0 0 26px -4px color-mix(in srgb, var(--glow) 60%, transparent),
      inset 0 0 44px -14px color-mix(in srgb, var(--glow) 55%, transparent);
  }
  .product-card:hover .product-cta { filter: brightness(1.06); }
}
.product-card:active { transform: translateY(-1px); }

.product-badge {
  position: absolute;
  top: 0.95rem; right: 0.95rem;
  font-family: var(--font-hook);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--glow) 22%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--glow) 60%, transparent);
}
.product-name {
  font-family: var(--font-hook);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--text);
  text-shadow: 0 2px 0 rgba(0,0,0,0.4);
}
.product-tagline {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.05;
  color: color-mix(in srgb, var(--glow) 55%, var(--text));
}
.product-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  color: var(--accent-contrast);
  background: linear-gradient(180deg,
    color-mix(in srgb, #fff 20%, var(--glow)), var(--glow) 55%, color-mix(in srgb, var(--glow) 55%, #000));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 40%, transparent),
    0 8px 18px -8px var(--glow);
  transition: filter .18s var(--ease);
}
.product-card--soon { opacity: 0.72; }
.product-card--soon .product-name { color: color-mix(in srgb, var(--text) 65%, var(--muted)); }
.product-cta--soon {
  background: transparent;
  color: var(--muted);
  border: 1px dashed color-mix(in srgb, var(--glow) 45%, var(--glass-line));
  box-shadow: none;
}
/* On the landing the trust strip stands alone (no card wrapper). */
.shell--wide .trust-strip { margin-top: 0.6rem; }

/* ======================================================================== *
   KAWAII SKIN (diary) — soft pink, cuddly. A warm hero with the diary mascot
   illustration + the "ты не одна" neon heart and a floating hearts/stars
   backdrop, paired with the real (clickable) plan card. The illustration is
   pure decoration: the decor layer is pointer-events:none and sits BEHIND the
   interactive shell, so every control stays clickable.
   Scoped to [data-skin="diary"] / body[data-kawaii] so other skins are intact.
   ======================================================================== */

/* Light "warm blush" day: an airy, all-pink sky that echoes the blush-pink
   diary mascot — no cool lavender to fight its warm tones. Soft rose glows
   breathe slowly; the light card floats over it, and pink hearts/sparkles
   (see .kawaii-decor) drift on top. Kept as a 5-layer stack so kw-bg-pan
   animates every layer in lock-step. */
body[data-kawaii] {
  background:
    radial-gradient(88% 65% at 82% 6%, rgba(255, 150, 196, 0.50) 0%, transparent 55%),
    radial-gradient(90% 72% at 10% 96%, rgba(255, 172, 205, 0.50) 0%, transparent 55%),
    radial-gradient(120% 90% at 50% 118%, rgba(255, 140, 190, 0.30) 0%, transparent 60%),
    radial-gradient(140% 120% at 50% -20%, rgba(255, 255, 255, 0.55) 0%, transparent 60%),
    linear-gradient(165deg, #fff2f8 0%, #ffe2ef 55%, #ffd6e8 100%);
  background-size: 160% 160%, 160% 160%, 150% 150%, 200% 200%, 100% 100%;
  background-position: 50% 0%, 0% 100%, 50% 100%, 50% 0%, 0% 0%;
  background-attachment: fixed;
  animation: kw-bg-pan 32s ease-in-out infinite alternate;
}

/* Light-bg decor tuning: the starry-night dust doesn't belong on a bright pink
   sky, so we fade the white star field right down and recolour the sprite stars
   to soft rose (white would vanish on light). Floating pink hearts + bokeh
   carry the atmosphere. Scoped to diary so a future night skin keeps its stars. */
[data-skin="diary"] .kawaii-decor::before { opacity: .22; }
[data-skin="diary"] .kawaii-decor::after  { opacity: .4; }
[data-skin="diary"] .kw-star {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff8ac4' d='M12 2l1.6 6.5L20 10l-6.4 1.5L12 18l-1.6-6.5L4 10l6.4-1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 0 5px rgba(255, 120, 180, .5));
}
[data-skin="diary"] .kw-shoot { display: none; }
@keyframes kw-bg-pan {
  0%   { background-position: 50% 0%, 0% 100%, 50% 100%, 50% 0%, 0% 0%; }
  100% { background-position: 42% 10%, 12% 86%, 58% 90%, 50% 6%, 0% 0%; }
}

/* Floating decor — a depth (bokeh) layer + a foreground sparkle field. The
   whole layer is shifted a little by the pointer (app.js) for parallax. */
.kawaii-decor {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  transform: translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0);
  transition: transform .5s var(--ease);
}
.kw { position: absolute; left: var(--x); top: var(--y); will-change: transform, opacity; }

/* Realistic starfield — two tiled layers of tiny dots at different depths.
   ::before is a dense far field (fine dust), ::after a sparser near field of
   brighter stars with a faint warm/rose tint. Both drift slowly upward for
   subtle parallax, and the whole field breathes (twinkle) via opacity. */
.kawaii-decor::before,
.kawaii-decor::after {
  content: "";
  position: absolute;
  left: -20%; right: -20%; top: -40%;
  height: 220%;
  pointer-events: none;
  will-change: transform, opacity;
}
.kawaii-decor::before {
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1px 1px at 47% 62%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 78% 34%, rgba(255,240,250,.75), transparent 60%),
    radial-gradient(1px 1px at 33% 88%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 66% 12%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 90% 76%, rgba(255,246,252,.65), transparent 60%),
    radial-gradient(1px 1px at 21% 45%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 55% 28%, rgba(255,255,255,.55), transparent 60%);
  background-size: 260px 260px;
  opacity: .5;
  animation: kw-star-drift 140s linear infinite, kw-star-twinkle 6s ease-in-out infinite;
}
.kawaii-decor::after {
  background-image:
    radial-gradient(1.6px 1.6px at 20% 30%, rgba(255,255,255,.98), transparent 55%),
    radial-gradient(2px 2px at 70% 70%, rgba(255,214,236,.95), transparent 55%),
    radial-gradient(1.6px 1.6px at 45% 15%, rgba(255,255,255,.9), transparent 55%),
    radial-gradient(2.2px 2.2px at 85% 40%, rgba(215,190,255,.9), transparent 55%),
    radial-gradient(1.6px 1.6px at 15% 80%, rgba(255,255,255,.85), transparent 55%),
    radial-gradient(1.8px 1.8px at 60% 92%, rgba(255,235,248,.9), transparent 55%);
  background-size: 440px 440px;
  opacity: .75;
  animation: kw-star-drift 90s linear infinite reverse, kw-star-twinkle 4.2s ease-in-out infinite .8s;
}
@keyframes kw-star-drift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-260px); }
}
@keyframes kw-star-twinkle {
  0%, 100% { opacity: .35; }
  50%      { opacity: .9; }
}

/* Shooting stars — a couple of thin light streaks crossing the sky on a long
   loop. Pure decoration; each is a bright head with a fading tail. */
.kw-shoot {
  position: absolute;
  top: var(--y, 12%); left: var(--x, -10%);
  width: 120px; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9) 60%, #fff);
  border-radius: 999px;
  filter: drop-shadow(0 0 6px rgba(255,220,245,.9));
  opacity: 0;
  transform: rotate(18deg);
  animation: kw-shoot var(--dur, 9s) ease-in infinite;
  animation-delay: var(--d, 0s);
}
@keyframes kw-shoot {
  0%      { opacity: 0; transform: translate(0, 0) rotate(18deg) scaleX(.2); }
  3%      { opacity: 1; }
  16%     { opacity: 1; }
  22%     { opacity: 0; transform: translate(60vw, 20vh) rotate(18deg) scaleX(1); }
  100%    { opacity: 0; transform: translate(60vw, 20vh) rotate(18deg) scaleX(1); }
}

/* Big, soft, blurred bokeh hearts deep in the background. */
.kw-bokeh {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--bs, 16rem); height: var(--bs, 16rem);
  background: radial-gradient(closest-side, rgba(255,150,205,.55), rgba(255,150,205,0) 72%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.7-10-9.2C.2 8.4 1.8 5 5.2 5c2 0 3.4 1.1 4.3 2.4C10.4 6.1 11.8 5 13.8 5c3.4 0 5 3.4 3.2 6.8C16.5 16.3 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.7-10-9.2C.2 8.4 1.8 5 5.2 5c2 0 3.4 1.1 4.3 2.4C10.4 6.1 11.8 5 13.8 5c3.4 0 5 3.4 3.2 6.8C16.5 16.3 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: blur(3px);
  opacity: .45;
  will-change: transform;
  animation: kw-bokeh-drift var(--dur, 28s) var(--ease) infinite alternate;
  animation-delay: var(--d, 0s);
}
@keyframes kw-bokeh-drift {
  0%   { transform: translate(0, 0) scale(1) rotate(-4deg); }
  100% { transform: translate(46px, -34px) scale(1.14) rotate(4deg); }
}
.kw-heart {
  width: calc(22px * var(--s, 1));
  height: calc(22px * var(--s, 1));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff8ac4' d='M12 21s-7.5-4.7-10-9.2C.2 8.4 1.8 5 5.2 5c2 0 3.4 1.1 4.3 2.4C10.4 6.1 11.8 5 13.8 5c3.4 0 5 3.4 3.2 6.8C16.5 16.3 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .5;
  filter: drop-shadow(0 4px 8px rgba(255,120,180,.35));
  animation: kw-float 11s var(--ease) infinite;
  animation-delay: var(--d, 0s);
}
.kw-star {
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff4fb' d='M12 2l1.6 6.5L20 10l-6.4 1.5L12 18l-1.6-6.5L4 10l6.4-1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .9;
  filter: drop-shadow(0 0 6px rgba(255,205,235,.75));
  animation: kw-twinkle 3.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes kw-float {
  0%   { transform: translateY(10px) rotate(-6deg); opacity: 0; }
  15%  { opacity: .55; }
  85%  { opacity: .5; }
  100% { transform: translateY(-26px) rotate(6deg); opacity: 0; }
}
@keyframes kw-twinkle {
  0%, 100% { transform: scale(.7) rotate(0deg); opacity: .35; }
  50%      { transform: scale(1.15) rotate(15deg); opacity: 1; }
}

/* Full-area video-hero composition: the diary clip (added by the owner) fills
   the screen as a fixed hero layer behind the floating tariff panel, while the
   kawaii pink backdrop + hearts/sparkles play behind it. On mobile the panel
   stacks centred over the hero; on wide screens it hugs the right so the diary
   stays clear in the centre/left. */
.shell--kawaii {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Keep the panel above the fixed hero stage (same stacking context). */
.shell--kawaii .card { position: relative; z-index: 2; }
.shell--kawaii .foot { position: relative; z-index: 2; }
@media (min-width: 64rem) {
  .shell--kawaii {
    max-width: 72rem;
    align-items: flex-end;
    padding-right: clamp(1rem, 4vw, 3rem);
  }
  .shell--kawaii .card { width: 30rem; margin: 0; }
  .shell--kawaii .foot { align-self: flex-end; }
}

/* Hero stage — sits above the pink backdrop and below the panel.
   Pointer-transparent so the panel controls stay clickable. On phones it flows
   in the column, centred above the tariff card; on wide screens it becomes a
   fixed full-viewport hero. The owner drops a transparent diary clip; until
   then the kawaii backdrop + floating hearts carry the page on their own. */
.kawaii-stage {
  /* Phones: the diary rides in the normal flow, centred above the tariff panel,
     so it's always visible and never hidden behind the (opaque) card. Wide
     screens promote it to a fixed full-height hero layer (media query below). */
  position: relative;
  z-index: 1;
  pointer-events: none;
  display: grid;
  place-items: center;
  overflow: visible;
  margin-bottom: clamp(0.6rem, 3vw, 1.4rem);
}
/* Cut-out hero: the composited (transparent) diary animation. Smaller now, and
   pushed to the left, so the dark starry sky reads as the main stage and the
   diary is a floating character rather than a full-bleed backdrop. A soft float
   + a warm rose glow give it a premium, lit-from-within feel. */
.kawaii-hero-canvas {
  display: block;
  width: min(66vw, 17rem);
  height: auto;
  filter:
    drop-shadow(0 18px 40px rgba(190, 80, 140, 0.28))
    drop-shadow(0 0 34px rgba(255, 134, 194, 0.40));
  opacity: 0;
  transition: opacity .6s var(--ease, ease);
  animation: kw-hero-float 7s ease-in-out infinite;
}
.kawaii-stage.is-anim .kawaii-hero-canvas { opacity: 1; }
@keyframes kw-hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@media (min-width: 64rem) {
  .kawaii-stage {
    position: fixed;
    inset: 0;
    z-index: 1;
    margin-bottom: 0;
    overflow: hidden;
    justify-items: start;
    padding-left: clamp(1.5rem, 6vw, 6rem);
  }
  .kawaii-hero-canvas { width: min(40vw, 25rem); }
}
/* The two source clips decode off-screen — only the composited canvas shows. */
.kawaii-src {
  position: absolute; left: 0; top: 0;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none; z-index: -1;
}
/* Bottom strapline sits on the bright pink backdrop — use a soft deep rose. */
.shell--kawaii .foot {
  color: #a45c86;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* Tariff panel — dark frosted-glass slab with a soft rose inner ring and a
   premium ambient glow. Replaces the light "sticker" look for the dark yogurt
   night. ------------------------------------------------------------------- */
[data-skin="diary"] .card {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--surface) 92%, #fff 8%),
      color-mix(in srgb, var(--surface) 96%, #000 4%));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 30px;
  padding-top: 1.5rem;
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  box-shadow:
    0 34px 70px -28px rgba(0, 0, 0, 0.75),
    0 0 60px -18px rgba(255, 134, 194, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
/* Features now live inside the sticker cards, and the heading owns the
   period toggle — drop the separate "what's included" block here. */
[data-skin="diary"] .included { display: none; }
[data-skin="diary"] .title {
  color: #ffb2d8;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-shadow: 0 0 22px rgba(255, 134, 194, 0.35);
}
[data-skin="diary"] .title::before,
[data-skin="diary"] .title::after {
  content: "";
  width: 1.05rem; height: 1.05rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff5fa8' d='M12 21s-7.5-4.7-10-9.2C.2 8.4 1.8 5 5.2 5c2 0 3.4 1.1 4.3 2.4C10.4 6.1 11.8 5 13.8 5c3.4 0 5 3.4 3.2 6.8C16.5 16.3 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat;
  flex: none;
}

/* Sticker tariff cards — stacked white stickers with an icon, bullet
   features and a price pill, linked by little curved arrows (the promo). */
[data-skin="diary"] .plans { gap: 1.4rem; }
[data-skin="diary"] .plan {
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--surface-2) 82%, transparent),
      color-mix(in srgb, var(--surface) 88%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 20px;
  padding: 1.25rem 1.15rem 1.05rem;
  box-shadow:
    0 18px 34px -20px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: visible;
}
/* gentle staircase like the reference */
[data-skin="diary"] .plan:nth-child(odd)  { margin-right: 1.1rem; }
[data-skin="diary"] .plan:nth-child(even) { margin-left: 1.1rem; }

/* curved down-arrow connector between consecutive cards */
[data-skin="diary"] .plan + .plan::before {
  content: "";
  position: absolute;
  top: -1.25rem; left: 50%;
  width: 1.7rem; height: 1.3rem;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8ac4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v15'/%3E%3Cpath d='M5.5 12.5 12 19l6.5-6.5'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .85;
}

[data-skin="diary"] .plan-ico {
  width: 2.4rem; height: 2.4rem;
  margin: 0 auto 0.1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--accent) 32%, var(--surface-2)),
    color-mix(in srgb, var(--accent) 12%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow:
    0 6px 14px -8px rgba(0, 0, 0, 0.6),
    0 0 16px -4px color-mix(in srgb, var(--accent) 55%, transparent);
}
[data-skin="diary"] .plan-ico svg { width: 1.5rem; height: 1.5rem; display: block; }

[data-skin="diary"] .plan-name {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: #ffb2d8;
}
[data-skin="diary"] .plan-feats {
  list-style: none; margin: 0.1rem 0 0; padding: 0;
  display: grid; gap: 0.26rem;
}
[data-skin="diary"] .plan-feats li {
  position: relative; padding-left: 1rem;
  font-size: 0.85rem; line-height: 1.3; color: var(--muted);
  text-align: left;
}
[data-skin="diary"] .plan-feats li::before {
  content: "";
  position: absolute; left: 0; top: 0.45em;
  width: 0.5rem; height: 0.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff7eb6' d='M12 21s-7.5-4.7-10-9.2C.2 8.4 1.8 5 5.2 5c2 0 3.4 1.1 4.3 2.4C10.4 6.1 11.8 5 13.8 5c3.4 0 5 3.4 3.2 6.8C16.5 16.3 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat;
}
[data-skin="diary"] .plan-pill {
  align-self: center;
  margin-top: 0.5rem;
  padding: 0.42rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.08rem;
  color: #ffd0e7;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--accent) 42%, transparent);
  white-space: nowrap;
}

/* "выбор сердца" ribbon centred on top of the recommended sticker. */
[data-skin="diary"] .plan-badge {
  left: 50%; right: auto; top: -0.75rem;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ff8ac4, #ff5fa8);
  border-color: #ff5fa8;
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(255, 95, 168, 0.7);
}
[data-skin="diary"] .plan[aria-pressed="true"] {
  border-color: var(--accent);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--accent) 20%, var(--surface-2)),
      color-mix(in srgb, var(--accent) 10%, var(--surface)));
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent),
    0 0 26px -4px color-mix(in srgb, var(--accent) 55%, transparent),
    0 18px 36px -18px rgba(0, 0, 0, 0.7);
}

/* Pay CTA — breathing glow + a soft shimmer sweep. Disabled stays calm. */
[data-skin="diary"] .pay-btn:not(:disabled) {
  animation: kw-pay-breathe 3.2s ease-in-out infinite;
}
[data-skin="diary"] .pay-btn:not(:disabled)::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: kw-pay-shimmer 3.4s ease-in-out infinite;
}
@keyframes kw-pay-breathe {
  0%, 100% { filter: drop-shadow(0 6px 16px rgba(255, 95, 168, 0.45)); }
  50%      { filter: drop-shadow(0 12px 28px rgba(255, 95, 168, 0.85)); }
}
@keyframes kw-pay-shimmer {
  0%        { left: -60%; }
  55%, 100% { left: 130%; }
}

/* ======================================================================== *
   LIGHT TARIFF PANEL (diary) — a frosted blush-white glass card floating over
   the dark starry night. Apple-style: soft translucency, a hairline light
   edge, a gentle rose ambient glow, and calm dark-on-light typography for
   maximum clarity. Declared last in the diary block so it cleanly overrides
   the earlier dark-panel rules without touching the shared engine.
   Ink #47273f · rose #c5327c/#b02e72 · muted #8a6a80 — a single harmonious
   berry family, so nothing fights the pink hero next to it.
   ======================================================================== */
[data-skin="diary"] .card {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, #ffffff 92%, #ffe6f2),
      color-mix(in srgb, #ffffff 86%, #ffdcee));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 34px 80px -34px rgba(46, 12, 34, 0.62),
    0 0 70px -24px rgba(255, 133, 194, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(255, 143, 196, 0.14);
}
/* Soften the white sheen so it doesn't wash out the light surface. */
[data-skin="diary"] .card::before { opacity: 0.5; }

[data-skin="diary"] .title {
  color: #c5327c;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Period toggle — blush track; white active label rides the pink thumb. */
[data-skin="diary"] .period-toggle {
  background: color-mix(in srgb, #ff8fc4 12%, #ffffff);
  border-color: rgba(255, 143, 196, 0.35);
  box-shadow: inset 0 2px 5px rgba(197, 50, 124, 0.12);
}
[data-skin="diary"] .period-btn { color: #9c748f; }
[data-skin="diary"] .period-btn[aria-selected="true"] { color: #ffffff; }

/* Sticker plan cards — clean white with a soft rose edge, dark-on-light text. */
[data-skin="diary"] .plan {
  background: linear-gradient(180deg, #ffffff, #fff5fa);
  border: 1px solid rgba(255, 143, 196, 0.32);
  box-shadow:
    0 16px 30px -22px rgba(46, 12, 34, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
[data-skin="diary"] .plan[aria-pressed="true"] {
  border-color: #ff5fa8;
  background: linear-gradient(180deg, #ffffff, #ffeaf4);
  box-shadow:
    0 0 0 2px rgba(255, 95, 168, 0.55),
    0 0 26px -6px rgba(255, 95, 168, 0.45),
    0 16px 30px -20px rgba(46, 12, 34, 0.4);
}
[data-skin="diary"] .plan-name,
[data-skin="diary"] .plan-amount { color: #b02e72; }
[data-skin="diary"] .plan-sub,
[data-skin="diary"] .plan-per,
[data-skin="diary"] .plan-upgrade,
[data-skin="diary"] .plan-feats li { color: #8a6a80; }
[data-skin="diary"] .plan-ico {
  background: radial-gradient(closest-side, #ffd9ec, #fff2f8);
  border-color: rgba(255, 143, 196, 0.5);
  box-shadow:
    0 6px 14px -8px rgba(197, 50, 124, 0.35),
    0 0 16px -6px rgba(255, 95, 168, 0.4);
}
[data-skin="diary"] .plan-pill {
  color: #c5327c;
  background: color-mix(in srgb, #ff5fa8 12%, #ffffff);
  border-color: rgba(255, 95, 168, 0.42);
}

/* Teaser sticker (real plans not live yet): a calm "скоро будет" pill and a
   default cursor, so it reads as an upcoming tariff rather than a live button.
   It still hovers/lifts like the others, so the card stays lively. */
[data-skin="diary"] .plan--soon { cursor: default; }
[data-skin="diary"] .plan-pill--soon {
  color: #a45c86;
  background: color-mix(in srgb, #ff8fc4 10%, #ffffff);
  border-color: rgba(255, 143, 196, 0.34);
  border-style: dashed;
  font-size: 0.98rem;
}

/* Pay CTA — a clean, vivid rose so it stays the clear focal point on white. */
[data-skin="diary"] .pay-btn:not(:disabled) {
  color: #ffffff;
  background: linear-gradient(180deg, #ff77b6, #ff4fa0 52%, #ec3d90);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 5px rgba(150, 20, 70, 0.25),
    0 4px 0 #d4327f,
    0 16px 28px -12px rgba(255, 79, 160, 0.6);
}

/* Fine print + trust — calm plum on the light panel; pink icons and links. */
[data-skin="diary"] .pay-hint,
[data-skin="diary"] .recurrent-note,
[data-skin="diary"] .plans-loading,
[data-skin="diary"] .trust-item { color: #8a6a80; }
[data-skin="diary"] .autorenew-opt {
  background: linear-gradient(180deg, #ffffff, #fff5fa);
  border-color: rgba(255, 143, 196, 0.32);
}
[data-skin="diary"] .autorenew-opt__text { color: #6a4a5f; }
[data-skin="diary"] .account-link-btn { color: #8a6a80; }
[data-skin="diary"] .account-link-btn:hover { color: #b02e72; }
[data-skin="diary"] .trust-icon { color: #ff5fa8; opacity: 1; }
[data-skin="diary"] .trust-link { text-decoration-color: rgba(255, 95, 168, 0.6); }
[data-skin="diary"] .trust-link:hover { color: #b02e72; }
[data-skin="diary"] .annual-note {
  background: color-mix(in srgb, #ff8fc4 10%, #ffffff);
  border-color: rgba(255, 143, 196, 0.4);
  color: #6d4a63;
}

/* Personal cabinet on the light diary panel — berry ink on blush white, to
   match the sticker plans (the shared tokens would render light-on-light). */
[data-skin="diary"] .account-name,
[data-skin="diary"] .account-tier,
[data-skin="diary"] .account-plan-name,
[data-skin="diary"] .account-plan-price { color: #b02e72; }
[data-skin="diary"] .account-greet,
[data-skin="diary"] .account-meta,
[data-skin="diary"] .account-plan-sub { color: #8a6a80; }
[data-skin="diary"] .account-sub {
  background: color-mix(in srgb, #ff8fc4 8%, #ffffff);
  border-color: rgba(255, 143, 196, 0.32);
}
[data-skin="diary"] .account-avatar {
  color: #b02e72;
  background: radial-gradient(closest-side, #ffd9ec, #fff2f8);
  border-color: rgba(255, 143, 196, 0.5);
}
[data-skin="diary"] .account-btn,
[data-skin="diary"] .account-plan {
  color: #b02e72;
  background: linear-gradient(180deg, #ffffff, #fff5fa);
  border-color: rgba(255, 143, 196, 0.32);
}
[data-skin="diary"] .account-plan[aria-pressed],
[data-skin="diary"] .account-plan:hover { border-color: #ff5fa8; }
[data-skin="diary"] .account-logout { color: #8a6a80; }
[data-skin="diary"] .account-logout:hover { color: #b02e72; }
[data-skin="diary"] .session-bar {
  background: rgba(255, 95, 168, 0.06);
  border-color: rgba(255, 95, 168, 0.18);
}
[data-skin="diary"] .session-bar-user { color: #8a6a80; }
[data-skin="diary"] .session-bar-switch { color: #b02e72; }
[data-skin="diary"] .session-bar-switch:hover { color: #ff5fa8; }

/* Heart confetti burst on plan select (spawned by app.js). */
.kw-burst {
  position: fixed;
  z-index: 70;
  font-size: 1.25rem;
  pointer-events: none;
  will-change: transform, opacity;
  user-select: none;
}

/* Motion & accessibility -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body[data-hook] .card::after,
  body[data-hook] .pay-btn:not(:disabled),
  .neuron-bg canvas,
  .product-card::after { animation: none; }
  .product-card { transition: none; }
  body::before, body::after { animation: none; }
  .reveal, .plan, .annual-note, .account-upgrade,
  .modal, .modal-card, .reward-check, .toast {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .card { transition: none; transform: none !important; }
  .card::before { display: none; }
  .period-thumb { transition: none; }
  /* Kawaii skin: freeze all the soft motion, keep the art static. */
  body[data-kawaii],
  .kw, .kw-bokeh, .kw-shoot, .kawaii-hero-canvas,
  .kawaii-decor::before, .kawaii-decor::after,
  [data-skin="diary"] .pay-btn,
  [data-skin="diary"] .pay-btn::after { animation: none !important; }
  .kawaii-decor { transition: none; }
  .kw-shoot { opacity: 0; }
  * { scroll-behavior: auto; }
}

/* Tier comparison infographic -------------------------------------------- */
.compare-card { margin-top: 1rem; }
.compare-title { margin-bottom: 1rem; font-size: 1.35rem; }

.compare {
  --cols: 3;
  display: grid;
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(var(--cols), minmax(0, 1fr));
  align-items: stretch;
}
.compare-row + .compare-row {
  border-top: 1px solid color-mix(in srgb, var(--glass-line) 65%, transparent);
}
/* Zebra striping (data rows only) for scan-ability. */
.compare-row:not(.compare-head):nth-of-type(even) {
  background: color-mix(in srgb, #fff 3%, transparent);
}

.compare-feat {
  padding: 0.62rem 0.75rem;
  font-size: 0.86rem;
  line-height: 1.25;
  color: var(--muted);
  display: flex;
  align-items: center;
}
.compare-cell {
  padding: 0.62rem 0.4rem;
  font-size: 0.86rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.compare-val { font-variant-numeric: tabular-nums; }
.compare-no { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.compare-yes { color: var(--accent); }
.compare-cell.is-free { color: var(--muted); }

/* Header row. */
.compare-head { background: color-mix(in srgb, var(--surface-2) 75%, transparent); }
.compare-head .compare-feat,
.compare-head .compare-cell {
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

/* Top-tier column (last data column) — the standout stripe. */
.compare-cell.is-top {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
  font-weight: 600;
}
.compare-head .compare-cell.is-top {
  background: color-mix(in srgb, var(--accent) 26%, transparent);
}

.compare-note {
  margin: 0.8rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Hook (neon) skin: swap the accent tint for the crimson glow. */
body[data-hook] .compare { border-color: color-mix(in srgb, var(--glow) 38%, var(--glass-line)); }
body[data-hook] .compare-cell.is-top { background: color-mix(in srgb, var(--glow) 12%, transparent); }
body[data-hook] .compare-head .compare-cell.is-top {
  background: color-mix(in srgb, var(--glow) 24%, transparent);
  box-shadow: inset 0 0 22px -10px var(--glow);
}
body[data-hook] .compare-yes { color: color-mix(in srgb, #fff 22%, var(--glow)); }

@media (max-width: 480px) {
  .compare-feat { padding: 0.55rem 0.5rem; font-size: 0.75rem; }
  .compare-cell { padding: 0.55rem 0.25rem; font-size: 0.75rem; }
  .compare-title { font-size: 1.2rem; }
}
