:root {
  --bg: #fff5f8;
  --card: #ffffff;
  --text: #4a2638;
  --muted: #9a6f82;
  --line: #f8d7e3;
  --accent: #e0457b;
  --accent-2: #b57be6;
  --accent-soft: #ffe4ee;
  --hiring: #c2336b;
  --hiring-soft: #ffe0ec;
  --update: #8a4fcf;
  --update-soft: #f0e6ff;
  --resource: #d0664a;
  --resource-soft: #ffe9e1;
  --radius: 22px;
  --shadow: 0 6px 20px rgba(224, 69, 123, 0.10);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Nothing may push the page sideways on phones ("clip" keeps the sticky tab bar working). */
html, body { overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  font: 16px/1.5 "Quicksand", system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  background: transparent; /* html paints the base colour; body::before paints the gradient */
  overflow-wrap: break-word;
}
/* iPhone Safari ignores background-attachment: fixed, so the gradient lives on a fixed layer. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 10% 0%, #ffd6e7 0, transparent 40%),
    radial-gradient(circle at 95% 15%, #ecdcff 0, transparent 35%),
    radial-gradient(circle at 50% 100%, #ffe3ec 0, transparent 45%),
    var(--bg);
}
a { color: inherit; }
.wrap { max-width: 560px; margin: 0 auto; padding: 40px 16px 32px; position: relative; }

/* Floating sparkles */
.wrap::before, .love {
  position: absolute; color: #f4a6c3; font-size: 22px;
  animation: float 4s ease-in-out infinite;
}
.wrap::before { content: "✦"; top: 34px; left: 22px; pointer-events: none; }
/* The heart looks exactly like the old decoration, but a tap bursts little hearts. */
.love {
  top: 70px; right: 26px; color: #c9a3f0; animation-delay: 1.5s; z-index: 2;
  background: none; border: 0; padding: 0; margin: 0; line-height: normal;
  font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.love::after { content: ""; position: absolute; inset: -12px; } /* bigger tap area, invisible */
.heart-bit {
  position: fixed; z-index: 50; pointer-events: none; line-height: 1;
  animation: heartfly .9s ease-out forwards;
}
@keyframes heartfly {
  from { transform: translate(-50%, -50%) scale(.6); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(var(--r)); opacity: 0; }
}
@keyframes float { 50% { transform: translateY(-8px) rotate(8deg); } }

/* Profile */
.profile { text-align: center; margin-bottom: 30px; }
.avatar {
  width: 104px; height: 104px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, #ffb3cf, var(--accent) 50%, var(--accent-2));
  padding: 4px; box-shadow: 0 8px 24px rgba(224, 69, 123, 0.25);
}
.avatar img, .avatar span {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  object-fit: cover; background: #fff0f6; border: 3px solid #fff;
  font: 700 34px "Dancing Script", cursive; color: var(--accent);
}
h1 {
  font: 700 40px/1.1 "Dancing Script", cursive; margin: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.handle { color: var(--muted); text-decoration: none; font-size: 15px; }
.bio { margin: 10px auto 18px; max-width: 420px; color: var(--muted); white-space: pre-line; }
.socials { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.social {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #f36b9c, var(--accent));
  box-shadow: 0 6px 16px rgba(224, 69, 123, 0.25); transition: transform .15s, box-shadow .15s;
}
.social svg { width: 24px; height: 24px; }
.social:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 22px rgba(224, 69, 123, 0.32); }
.social:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.social.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 95%); }
.social.youtube { background: #ff0033; box-shadow: 0 6px 16px rgba(255, 0, 51, 0.25); }
.social.email { background: linear-gradient(135deg, #c99af2, var(--accent-2)); box-shadow: 0 6px 16px rgba(181, 123, 230, 0.3); }
.social.linkedin { background: #0a66c2; box-shadow: 0 6px 16px rgba(10, 102, 194, 0.25); }
.social.whatsapp { background: #25d366; box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3); }
.social.telegram { background: #229ed9; box-shadow: 0 6px 16px rgba(34, 158, 217, 0.3); }
.social.facebook { background: #1877f2; box-shadow: 0 6px 16px rgba(24, 119, 242, 0.25); }
.social.x { background: #1a1a1a; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); }

/* Sections */
.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
.tabs button {
  flex: 1 0 auto; font: 700 14px "Quicksand", sans-serif; color: var(--text);
  padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); cursor: pointer; transition: all .15s;
}
.tabs button:hover { border-color: #f4a6c3; }
.tabs button[aria-selected="true"] {
  background: linear-gradient(135deg, #f36b9c, var(--accent-2)); border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(224, 69, 123, 0.25);
}
#search {
  width: 100%; font: 500 16px "Quicksand", sans-serif; color: var(--text);
  padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card);
}
#search::placeholder { color: #c49aab; }
#search:focus, .tabs button:focus-visible, .card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Cards */
.card {
  display: block; text-decoration: none; background: var(--card);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); border-color: #f4a6c3; box-shadow: 0 10px 26px rgba(224, 69, 123, 0.16); }
.card.closed { opacity: .55; }
.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.tag { font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tag.hiring { color: var(--hiring); background: var(--hiring-soft); }
.tag.update { color: var(--update); background: var(--update-soft); }
.tag.resource { color: var(--resource); background: var(--resource-soft); }
.badge { font-weight: 700; color: #fff; background: linear-gradient(135deg, #f36b9c, var(--accent)); padding: 3px 9px; border-radius: 999px; }
.badge.off { background: #cfb6c1; }
.card h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; line-height: 1.35; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.cta { font-weight: 700; font-size: 14px; color: var(--accent); }

.empty { text-align: center; color: var(--muted); padding: 24px 0; }

.foot { text-align: center; margin-top: 40px; color: var(--muted); font-size: 13px; }
.share {
  font: 700 14px "Quicksand", sans-serif; color: var(--accent); cursor: pointer;
  padding: 10px 22px; border-radius: 999px; border: 1.5px solid #f4a6c3; background: #fff;
}
.share:hover { background: var(--accent-soft); }
.foot p::after { content: " ♡"; color: var(--accent); }

/* Signup */

.signup {
  width: min(420px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 26px;
  color: var(--text); background: #fff; box-shadow: 0 24px 60px rgba(120, 30, 70, .25); overflow: auto;
}
.signup::backdrop { background: rgba(74, 38, 56, .35); backdrop-filter: blur(3px); }
.signup[open] { animation: pop .25s ease-out; }
@keyframes pop { from { transform: translateY(16px) scale(.97); opacity: 0; } }
.signup form { position: relative; }
.signup-x {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .8); color: var(--muted); font-size: 14px;
}
.signup-head, .signup-done {
  text-align: center; padding: 28px 24px 18px;
  background: linear-gradient(160deg, #ffe4ee, #f3e6ff);
}
.signup-done { padding-bottom: 28px; }
.signup-emoji { font-size: 36px; line-height: 1; margin-bottom: 8px; }
.signup h2 { font: 700 30px/1.15 "Dancing Script", cursive; color: var(--accent); margin: 0 0 6px; }
.signup-head p, .signup-done p { margin: 0; color: var(--muted); font-size: 14.5px; }
.signup-body { padding: 18px 24px 22px; }
.f { display: grid; gap: 5px; margin: 0 0 12px; border: 0; padding: 0; }
.f > span, .f legend { font-size: 13px; font-weight: 700; padding: 0; margin-bottom: 5px; }
.f b { color: var(--accent); }
.f em { font-style: normal; font-weight: 500; color: var(--muted); }
.f input {
  width: 100%; font: 500 16px "Quicksand", sans-serif; color: var(--text);
  padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fffafc;
}
.f input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 0; }
.chips span {
  display: inline-block; font-size: 13.5px; font-weight: 700; padding: 7px 13px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--muted); background: #fff; transition: all .15s;
}
.chips input:checked + span { border-color: #f4a6c3; background: var(--accent-soft); color: var(--accent); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.signup-err { color: #c0392b; background: #fdecec; border-radius: 10px; padding: 8px 12px; font-size: 14px; margin: 0 0 10px; }
.signup-go {
  width: 100%; font: 700 16px "Quicksand", sans-serif; color: #fff; cursor: pointer; border: 0;
  padding: 13px; border-radius: 999px; background: linear-gradient(135deg, #f36b9c, var(--accent));
  box-shadow: 0 6px 16px rgba(224, 69, 123, .3); margin-top: 4px;
}
.signup-go:disabled { opacity: .6; }
.signup-done .signup-go { margin-top: 18px; }
.signup-later {
  width: 100%; margin-top: 6px; font: 600 14px "Quicksand", sans-serif; color: var(--muted);
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.signup-fine { text-align: center; font-size: 12px; color: var(--muted); margin: 4px 0 0; }

/* Sponsored */
.badge.spon { background: #fff4d6; color: #a77a00; }
.sponsor-slot { margin: 0 0 28px; }
.sponsor-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; text-decoration: none;
  padding: 14px 16px; border-radius: var(--radius); background: linear-gradient(135deg, #fffaf0, #fff);
  border: 1.5px solid #f6e2b3; box-shadow: 0 6px 18px rgba(200, 150, 30, .10); position: relative;
  transition: transform .15s;
}
.sponsor-card:hover { transform: translateY(-2px); }
.sponsor-card img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #fff; }
.sponsor-card .who { font-size: 12px; font-weight: 700; color: #a77a00; letter-spacing: .04em; text-transform: uppercase; }
.sponsor-card b { display: block; font-size: 15.5px; margin: 2px 0; }
.sponsor-card p { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.sponsor-card .cta { font-size: 13.5px; }
.sponsor-card.no-img { grid-template-columns: 1fr; }

/* Ad screen before a link */
.adgate {
  width: min(420px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 20px; border: 0; border-radius: 26px;
  background: #fff; color: var(--text); box-shadow: 0 24px 60px rgba(120, 30, 70, .25);
}
.adgate::backdrop { background: rgba(74, 38, 56, .45); backdrop-filter: blur(4px); }
.adgate[open] { animation: pop .25s ease-out; }
.adgate-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.adgate-kicker { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.adgate-host { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.adgate-cancel { font: 600 13px "Quicksand", sans-serif; color: var(--muted); background: #f7eef2; border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.adgate-label { font-size: 11.5px; color: var(--muted); text-align: center; margin-bottom: 8px; }
.adgate-ad {
  min-height: 250px; border-radius: 16px; background: #fdf7fa; border: 1px dashed var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.adgate-ad iframe { display: block; width: 300px; max-width: 100%; height: 250px; border: 0; }
.adgate-ad .sponsor-card { width: 100%; border: 0; box-shadow: none; border-radius: 0; grid-template-columns: 1fr; text-align: center; padding: 20px; }
.adgate-ad .sponsor-card img { width: 100%; height: auto; max-height: 180px; border-radius: 12px; }
.adgate-go {
  position: relative; width: 100%; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 16px "Quicksand", sans-serif; color: #fff; border: 0; border-radius: 999px; padding: 13px; cursor: pointer;
  background: linear-gradient(135deg, #f36b9c, var(--accent)); box-shadow: 0 6px 16px rgba(224, 69, 123, .3);
}
.adgate-go:disabled { cursor: default; background: #e9d3dd; color: #7d5a6a; box-shadow: none; }
.adgate-go .ring { width: 22px; height: 22px; transform: rotate(-90deg); }
.adgate-go .ring circle { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-dasharray: 97.4; stroke-dashoffset: 0; }
.adgate-go:not(:disabled) .ring { display: none; }
.adgate-fallback { margin: 0; text-align: center; color: var(--muted); font-weight: 600; line-height: 1.6; padding: 20px; }
.adgate-go:not(:disabled) { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: scale(1.03); box-shadow: 0 8px 22px rgba(224, 69, 123, .4); } }

/* 1:1 booking card on the main page */
.book-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; text-decoration: none;
  margin: 0 0 24px; padding: 14px 16px; border-radius: var(--radius); color: var(--text);
  background: linear-gradient(135deg, #ffe4ee, #f1e6ff); border: 1.5px solid #f4c3d8;
  box-shadow: 0 8px 22px rgba(224, 69, 123, .14); transition: transform .15s;
}
.book-card:hover { transform: translateY(-2px); }
.book-emoji { font-size: 26px; width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; }
.book-text b { display: block; font-size: 16px; }
.book-text small { color: var(--muted); font-size: 13px; font-weight: 600; }
.book-go { font-weight: 700; font-size: 13.5px; color: #fff; background: linear-gradient(135deg, #f36b9c, var(--accent)); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 380px) { .book-go { padding: 7px 10px; font-size: 12.5px; } }

/* /book page */
.bk-head { text-align: center; margin-bottom: 22px; }
.bk-head .avatar { width: 76px; height: 76px; margin-bottom: 10px; }
.bk-head .avatar span, .bk-head .avatar img { font-size: 26px; }
.bk-head h1 { font-size: 34px; }
.bk-head p { color: var(--muted); margin: 6px auto 0; max-width: 440px; }
.bk-back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; }
.bk-panel { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.bk-step { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.bk-services { display: grid; gap: 8px; }
.bk-service { text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #fffafc; }
.bk-service.on { border-color: var(--accent); background: var(--accent-soft); }
.bk-service b { display: block; }
.bk-service small { color: var(--muted); }
.bk-dates { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.bk-date {
  flex: none; width: 66px; padding: 10px 0; text-align: center; cursor: pointer; font: inherit; color: var(--text);
  border-radius: 16px; border: 1.5px solid var(--line); background: #fff;
}
.bk-date small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.bk-date b { display: block; font-size: 20px; line-height: 1.2; }
.bk-date.on { border-color: transparent; color: #fff; background: linear-gradient(135deg, #f36b9c, var(--accent-2)); }
.bk-date.on small { color: rgba(255, 255, 255, .85); }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bk-time { font: 700 14px "Quicksand", sans-serif; cursor: pointer; padding: 10px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--text); }
.bk-time:hover { border-color: #f4a6c3; }
.bk-time.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.bk-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.bk-chosen { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--accent-soft); border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; font-weight: 700; }
.bk-chosen button { font: 700 13px "Quicksand", sans-serif; color: var(--accent); background: none; border: 0; cursor: pointer; }
.f textarea {
  width: 100%; font: 500 16px "Quicksand", sans-serif; color: var(--text); resize: vertical;
  padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fffafc;
}
.f textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bk-done { text-align: center; }
.bk-done .when { font-size: 18px; font-weight: 700; margin: 8px 0 16px; }
.bk-done .btns { display: grid; gap: 8px; margin-top: 12px; }
.bk-ghost { display: block; text-align: center; font: 700 14px "Quicksand", sans-serif; color: var(--accent); text-decoration: none; padding: 11px; border-radius: 999px; background: #fff; border: 1.5px solid #f4a6c3; }
.bk-empty { text-align: center; color: var(--muted); padding: 14px 0; }
.book-page .wrap::before { display: none; }
.bk-optin { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.bk-optin input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.bk-optin em { font-style: normal; font-weight: 500; color: var(--muted); }

/* Tabs at the top of the posts */
.tabbar {
  position: sticky; top: 0; z-index: 5; margin: 0 -16px 10px; padding: 10px 16px;
  background: rgba(255, 245, 248, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tabs button { display: inline-flex; align-items: center; gap: 6px; }
.tabs .count {
  font-size: 11.5px; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent);
}
.tabs button[aria-selected="true"] .count { background: rgba(255, 255, 255, .3); color: #fff; }
.search { margin-bottom: 14px; }
.tab-note { font-size: 13px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; margin: 0 0 12px; }
.badge.feat { background: #fff4d6; color: #a77a00; }
.card.closed { opacity: .75; }

/* Booking page: breathing room at the bottom (incl. iPhone home bar) */
.book-page .wrap { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
.book-page .bk-panel { padding-bottom: 22px; }
.bk-optin span { line-height: 1.45; }
.bk-optin em { display: block; }

/* Payment on the booking page */
.pay-note { text-align: center; font-size: 12.5px; color: var(--muted); margin: 8px 0 0; font-weight: 600; }
.pay-wait { display: grid; gap: 10px; text-align: center; font-weight: 600; background: #fff8e6; border: 1px solid #f6dca0; color: #8a6400; border-radius: 14px; padding: 12px; margin: 0 0 12px; }
.done-paid { color: #1f9d6b; font-weight: 700; margin: -8px 0 14px; font-size: 14px; }

/* Policy pages */
.legal-page .wrap::before, .legal-page .wrap::after, .book-page .wrap::after { display: none; }
.legal-page .wrap { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.legal { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); line-height: 1.65; }
.legal h1 { font: 700 34px/1.15 "Dancing Script", cursive; color: var(--accent); margin: 0 0 4px; }
.legal h2 { font-size: 17px; margin: 22px 0 6px; }
.legal p, .legal li { color: #5e3a4b; font-size: 15px; }
.legal ul { padding-left: 20px; margin: 6px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); font-weight: 700; }
.legal-updated { color: var(--muted) !important; font-size: 13px !important; margin: 0 0 14px; }
.legal-card { background: #fff7fa; border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; margin: 12px 0; }
.legal-card p { margin: 10px 0; }
.legal-nav, .foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 18px; font-size: 13px; }
.legal-nav a, .foot-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.legal-nav a[aria-current="page"] { color: var(--accent); }
.legal-nav a:hover, .foot-links a:hover { color: var(--accent); }
.bk-terms { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.bk-terms a { color: var(--muted); }

/* Post panel with resources */
.card.has-res .cta { color: var(--update); }
.card.product { border-color: #f4c3d6; background: linear-gradient(135deg, #fff 60%, #fff3f8); }
.badge.prem { background: #fff1d6; color: #a86a00; }
.sheet {
  width: min(520px, 100vw); max-width: 100vw; max-height: 88vh; padding: 0; border: 0; color: var(--text); background: #fff;
  border-radius: 26px; box-shadow: 0 24px 60px rgba(120, 30, 70, .28); overflow: auto;
}
.sheet::backdrop { background: rgba(74, 38, 56, .4); backdrop-filter: blur(3px); }
.sheet[open] { animation: pop .25s ease-out; }
#sheet-body { position: relative; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
.sheet .meta { padding-right: 36px; }
.sheet h2 { font-size: 21px; line-height: 1.3; margin: 4px 0 8px; }
.sheet-desc { color: var(--muted); margin: 0 0 14px; white-space: pre-line; }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f7eef2; color: var(--muted); cursor: pointer; font-size: 14px; }
.sheet-step { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--update); margin: 16px 0 8px; }
.sheet-step span { color: var(--muted); }
.res-list { display: grid; gap: 8px; margin-bottom: 18px; }
.res-item {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-decoration: none; color: var(--text);
  padding: 10px 12px; border-radius: 16px; background: #faf5ff; border: 1.5px solid #ecdcfb; transition: transform .15s, border-color .15s;
}
.res-item:hover { transform: translateY(-1px); border-color: #c9a3f0; }
.res-ico { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 19px; }
.res-text { min-width: 0; }
.res-text b { display: block; font-size: 15px; }
.res-text small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-go { color: var(--update); font-weight: 700; }
.sheet-apply { display: block; text-align: center; text-decoration: none; }
.sheet-note { text-align: center; font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.sheet-share { display: block; margin: 12px auto 0; font: 700 14px "Quicksand", sans-serif; color: var(--accent); background: none; border: 0; cursor: pointer; padding: 6px 10px; }
@media (max-width: 600px) {
  .sheet { margin: auto 0 0; width: 100vw; border-radius: 26px 26px 0 0; }
  .sheet[open] { animation: slideup .28s ease-out; }
}
@keyframes slideup { from { transform: translateY(40px); opacity: 0; } }
.f-hint { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.f-hint b { color: var(--text); }

/* Resume: upload PDF or paste link */
.res-mode { display: flex; gap: 6px; background: #f7eef2; padding: 4px; border-radius: 14px; margin-bottom: 8px; }
.res-mode button { flex: 1; font: 700 14px "Quicksand", sans-serif; color: var(--muted); background: none; border: 0; padding: 9px; border-radius: 11px; cursor: pointer; }
.res-mode button.on { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(80, 20, 50, .1); }
.drop { position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; cursor: pointer;
  padding: 14px; border-radius: 14px; border: 1.5px dashed #f4a6c3; background: #fffafc;
}
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop.has-file { border-style: solid; background: #f3fbf6; border-color: #9fd9bc; }
.drop-icon { font-size: 26px; }
.drop-text b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.drop-text small { color: var(--muted); font-size: 12.5px; }
#mode-link input { width: 100%; font: 500 16px "Quicksand", sans-serif; color: var(--text); padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fffafc; margin-bottom: 4px; }

/* Long links or words (e.g. meeting URLs) wrap instead of widening the page */
.card, .card h3, .card p, .sheet h2, .sheet-desc, .res-text b, .bio, .legal, .bk-head p { overflow-wrap: anywhere; }
.card { min-width: 0; }

/* Dialogs: use the visible height on iPhone (100vh hides under Safari's toolbar) */
.signup, .adgate { max-height: calc(100dvh - 24px); }
.sheet { max-height: 88dvh; }

@media (max-width: 520px) {
  .tabbar { padding: 8px 12px 10px; margin: 0 -16px 8px; }
  .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; overflow: visible; margin: 0; padding: 0; }
  .tabs button {
    position: relative; flex-direction: column; justify-content: center; gap: 2px;
    padding: 8px 2px 7px; border-radius: 14px; font-size: 11.5px; line-height: 1.15; min-width: 0;
  }
  .tabs .ti { font-size: 18px; line-height: 1; }
  .tabs .tl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs .count {
    position: absolute; top: -6px; right: -3px; min-width: 18px; padding: 1px 5px; font-size: 10.5px;
    background: var(--accent); color: #fff; box-shadow: 0 0 0 2px var(--bg);
  }
  .tabs button[aria-selected="true"] .count { background: #fff; color: var(--accent); }
}

/* Shop card on the main page */
.shop-card { background: linear-gradient(135deg, #fff4e0, #ffe4ee); border-color: #f6d3a8; margin-top: -12px; }
.book-emoji img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.book-text small { display: block; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Shop page */
.shop-page .wrap::before, .shop-page .wrap::after { display: none; }
.shop-page .wrap { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
.shop-head { text-align: center; margin-bottom: 20px; }
.shop-head h1 { font: 700 38px/1.1 "Dancing Script", cursive; color: var(--accent); margin: 0; }
.shop-head p { color: var(--muted); margin: 6px 0 0; }
.prod-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.prod-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; text-decoration: none; color: var(--text);
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.prod-card img, .prod-cover-ph { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; background: linear-gradient(135deg, #ffe4ee, #f1e6ff); display: grid; place-items: center; font-size: 34px; }
.prod-card b { display: block; font-size: 16px; overflow-wrap: anywhere; }
.prod-card small { color: var(--muted); display: block; margin: 2px 0 6px; }
.price-tag { display: inline-block; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, #f36b9c, var(--accent)); padding: 4px 12px; border-radius: 999px; }
.prod { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.prod-hero { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #ffe4ee, #f1e6ff); display: grid; place-items: center; font-size: 64px; }
.prod-hero img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { padding: 18px; }
.prod-body h2 { font-size: 22px; margin: 0 0 6px; overflow-wrap: anywhere; }
.prod-body > p { color: var(--muted); margin: 0 0 14px; }
.inside { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.inside li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 15px; overflow-wrap: anywhere; }
.inside li::before { content: "✅"; font-size: 14px; line-height: 1.6; }
.buy-box { border-top: 1px dashed var(--line); padding-top: 14px; }
.buy-price { font-size: 26px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.buy-price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.got-it { text-align: center; padding: 6px 0; }
.got-it .signup-go { text-decoration: none; display: block; }

/* UPI payment step */
.upi-step { text-align: center; }
.upi-amount { font-size: 24px; margin: 4px 0 4px; }
.upi-hold { color: #8a6400; background: #fff8e6; border: 1px solid #f6dca0; border-radius: 12px; padding: 8px 10px; font-size: 13.5px; font-weight: 600; margin: 0 0 14px; }
.upi-qr { width: min(240px, 70vw); margin: 0 auto 14px; padding: 10px; background: #fff; border-radius: 18px; border: 1.5px solid var(--line); }
.upi-qr svg { display: block; width: 100%; height: auto; }
.upi-app { display: block; text-decoration: none; margin-bottom: 12px; }
.upi-id { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; background: #faf5ff; border: 1px solid #ecdcfb; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.upi-id b { overflow-wrap: anywhere; }
.upi-id small { color: var(--muted); }
.upi-id .bk-ghost { padding: 7px 14px; flex: none; }
.upi-steps { text-align: left; padding-left: 20px; margin: 0 0 14px; color: #5e3a4b; font-size: 14.5px; }
.upi-steps li { margin-bottom: 6px; }
#proof { text-align: left; }
.foot-me { display: inline-block; margin: 2px 0 10px; font-weight: 600; color: var(--accent); text-decoration: none; font-size: 14px; }
.foot-me:hover { text-decoration: underline; }
