/* Your Story Today — public site styles. Colors come from admin settings via CSS variables. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font), system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--btn); color: var(--btn-text); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn); color: var(--btn-text); box-shadow: 0 8px 24px -10px rgba(0,0,0,.5); }
.btn-primary:hover { box-shadow: 0 12px 28px -10px rgba(0,0,0,.55); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; }
.pill.dark { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; padding: 14px 0; transition: background .2s, box-shadow .2s; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--border); }
.nav { display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; white-space: nowrap; min-width: 0; }
.brand img { height: 34px; width: auto; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--btn); display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 6px; }
.brand-mark span { background: var(--btn-text); border-radius: 2px; }
.brand-mark span:nth-child(2) { background: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px; }
.nav-links a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text); }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--bg); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text); }
.mobile-menu { display: none; }
@media (max-width: 1120px) {
  .nav-links, .nav-actions .hide-mobile { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .mobile-menu[data-open="true"] { display: block; position: fixed; inset: 74px 12px auto; z-index: 50; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.25); }
  .mobile-menu a { display: block; padding: 14px 16px; border-radius: 14px; text-decoration: none; font-weight: 600; }
  .mobile-menu a:hover { background: var(--bg); }
  .mobile-menu .btn { margin-top: 8px; width: 100%; }
}
.btn-claim .short { display: none; }
@media (max-width: 520px) { .nav-actions .btn-claim { padding: 0 14px; } .btn-claim .long { display: none; } .btn-claim .short { display: inline; } .brand-text { font-size: 16px; } .nav { gap: 8px; } }

/* ---------- flash ---------- */
.flashes { position: fixed; top: 84px; right: 16px; left: 16px; z-index: 60; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.flash { pointer-events: auto; max-width: 440px; padding: 12px 16px 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.flash::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--muted); }
.flash.success::before { background: #1a9f5c; } .flash.error::before { background: #d93a3a; } .flash.info::before { background: #3d6bff; }
.flash button { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 54px); }
.section-head h2 .soft { color: var(--muted); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 40px 0 24px; text-align: center; overflow: hidden; }
.hero h1 { font-size: clamp(42px, 7.4vw, 96px); max-width: 1000px; margin: 0 auto 22px; letter-spacing: -0.045em; line-height: 1.0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { max-width: 640px; margin: 0 auto 30px; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-support { margin: 18px auto 0; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; justify-content: center; max-width: 520px; }
.mosaic { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; margin: 56px auto 0; max-width: 1180px; align-items: start; }
.mosaic .col { display: grid; gap: 16px; }
.mosaic .col:nth-child(1) { margin-top: 40px; } .mosaic .col:nth-child(2) { margin-top: 0; }
.mosaic .col:nth-child(3) { margin-top: 70px; } .mosaic .col:nth-child(4) { margin-top: 10px; }
.mosaic .col:nth-child(5) { margin-top: 70px; } .mosaic .col:nth-child(6) { margin-top: 0; }
.mosaic .col:nth-child(7) { margin-top: 40px; }
.tile { position: relative; border-radius: 22px; overflow: hidden; background: var(--block-bg); border: 1px solid var(--border); aspect-ratio: 3/4; display: grid; place-items: center; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; cursor: pointer; padding: 0; font: inherit; color: inherit; width: 100%; }
.tile.tall { aspect-ratio: 3/5; } .tile.short { aspect-ratio: 1/1; }
.tile:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 30px 50px -28px rgba(0,0,0,.45); }
.tile .logo { width: calc(var(--s, .7) * 80%); height: calc(var(--s, .7) * 80%); object-fit: contain; }
.tile.fit-cover .logo { width: 100%; height: 100%; object-fit: cover; }
.tile .tile-name { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.8); backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.empty { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--muted) 45%, transparent); color: var(--muted); font-weight: 600; font-size: 14px; flex-direction: column; gap: 8px; display: flex; align-items: center; justify-content: center; }
.tile.empty .plus { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.tile.cta { background: var(--btn); color: var(--btn-text); border-color: var(--btn); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 18px; text-align: left; font-weight: 700; font-size: 17px; line-height: 1.2; }
.tile.cta .arrow { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; }
@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .mosaic .col:nth-child(n+5) { display: none; }
  .mosaic .col { gap: 10px; }
  .mosaic .col:nth-child(1) { margin-top: 20px; } .mosaic .col:nth-child(3) { margin-top: 36px; } .mosaic .col:nth-child(4) { margin-top: 8px; }
  .tile { border-radius: 16px; } .tile.cta { font-size: 12px; padding: 10px; } .tile.cta .arrow { width: 24px; height: 24px; top: 8px; right: 8px; }
  .tile.empty { font-size: 11px; text-align: center; padding: 6px; } .tile.empty .plus { width: 28px; height: 28px; }
  .tile .tile-name { display: none; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px; }
.stat b { display: block; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 14px; }
.launch-banner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 22px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 18px; text-align: center; }
.avatars { display: inline-flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px; display: grid; place-items: center; overflow: hidden; background: var(--block-bg); }
.avatars span:first-child { margin-left: 0; }
.avatars img { width: 70%; height: 70%; object-fit: contain; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } section { padding: 52px 0; } }

/* ---------- wall ---------- */
.wall-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 32px; padding: 28px; box-shadow: 0 40px 80px -60px rgba(0,0,0,.35); }
.wall-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-right: auto; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend .lg-live { background: var(--text); }
.legend .lg-free { border: 1.5px dashed var(--muted); }
.legend .lg-soon { background: repeating-linear-gradient(45deg, var(--border), var(--border) 3px, transparent 3px, transparent 6px); border: 1px solid var(--border); }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.wall.compact { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.block { position: relative; aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--block-bg); padding: 0; font: inherit; color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; cursor: pointer; overflow: hidden; }
.block img { width: calc(var(--s, .8) * 100%); height: calc(var(--s, .8) * 100%); object-fit: contain; pointer-events: none; }
.block.fit-cover img { width: 100%; height: 100%; object-fit: cover; }
.block.active:hover, .block.active:focus-visible { transform: translateY(-3px) scale(1.06); box-shadow: 0 16px 28px -14px rgba(0,0,0,.45); z-index: 2; }
.block .bname { position: absolute; left: 4px; right: 4px; bottom: 4px; font-size: 10px; font-weight: 600; text-align: center; background: rgba(255,255,255,.85); border-radius: 6px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block .sample-dot { position: absolute; top: 5px; right: 5px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: rgba(17,17,17,.75); color: #fff; padding: 1px 5px; border-radius: 6px; }
.block.available { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--muted) 30%, transparent); color: color-mix(in srgb, var(--muted) 70%, transparent); }
.block.available:hover, .block.available:focus-visible { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.block.available .i { width: 18px; height: 18px; opacity: .6; }
.block.promo { border-style: solid; border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); font-size: 10px; font-weight: 700; line-height: 1.15; text-align: center; padding: 6px; }
.block.claimed, .block.reserved { background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 5px, var(--surface) 5px, var(--surface) 10px); cursor: default; color: var(--muted); font-size: 10px; font-weight: 600; }
.block.disabled { visibility: hidden; }
.block.selected { outline: 3px solid var(--accent); outline-offset: 2px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); border-color: var(--accent); }
.wall-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.wall-more { text-align: center; margin-top: 18px; }
@media (max-width: 640px) {
  .wall-wrap { padding: 14px; border-radius: 22px; }
  .wall { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 7px; }
  .block { border-radius: 11px; }
  .block .bname { display: none; }
}

/* ---------- ads ---------- */
.ad { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.ad-label { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; background: rgba(255,255,255,.88); color: #333; padding: 3px 8px; border-radius: 999px; }
.ad-image a { display: block; } .ad-image img { width: 100%; height: auto; }
.ad-card { display: flex; gap: 20px; align-items: center; padding: 22px 22px 22px 22px; padding-top: 40px; }
.ad-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 16px; flex: none; }
.ad-card h3 { font-size: 20px; margin: 0 0 4px; }
.ad-card p { color: var(--muted); margin: 0 0 12px; font-size: 15px; }
.ad-text { padding: 36px 22px 18px; }
.ad.promo { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.ad.promo .ad-card p { color: color-mix(in srgb, var(--btn-text) 70%, transparent); }
.ad.promo .btn-primary { background: var(--accent); color: #fff; }
.ad-slot { margin: 0 auto; }
.ad-slot.inline { padding: 24px 0; }
.ad .ad-mobile { display: none; }
@media (max-width: 640px) { .ad .ad-desktop.has-mobile { display: none; } .ad .ad-mobile { display: block; } .ad-card { flex-direction: column; align-items: flex-start; } .ad-card img { width: 100%; height: 160px; } }

/* ---------- how / benefits / pricing ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px 24px; position: relative; }
.step .num { font-size: 52px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; margin-bottom: 28px; display: flex; justify-content: space-between; align-items: flex-start; }
.step .num .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit { padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.benefit .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-bottom: 18px; }
.benefit h3 { font-size: 18px; margin-bottom: 6px; } .benefit p { color: var(--muted); margin: 0; font-size: 15px; }
.benefit.feature { grid-row: span 2; background: var(--btn); color: var(--btn-text); display: flex; flex-direction: column; justify-content: space-between; }
.benefit.feature p { color: color-mix(in srgb, var(--btn-text) 70%, transparent); }
.benefit.feature .ic { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } .benefits { grid-template-columns: 1fr 1fr; } .benefit.feature { grid-row: auto; grid-column: span 2; } }
@media (max-width: 560px) { .steps, .benefits { grid-template-columns: 1fr; } .benefit.feature { grid-column: auto; } }

.price-card { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; background: var(--surface); border: 1px solid var(--border); border-radius: 32px; overflow: hidden; box-shadow: 0 50px 90px -70px rgba(0,0,0,.5); }
.price-card .left { padding: 40px; background: var(--btn); color: var(--btn-text); display: flex; flex-direction: column; }
.price-card .amount { font-size: clamp(64px, 8vw, 96px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin: 18px 0 6px; }
.price-card .amount small { font-size: 18px; font-weight: 500; letter-spacing: 0; opacity: .7; }
.price-card .left p { color: color-mix(in srgb, var(--btn-text) 70%, transparent); }
.price-card .left .btn { margin-top: auto; background: var(--accent); color: #fff; }
.price-card .right { padding: 40px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li .i { color: #1a9f5c; margin-top: 3px; }
.price-card .checks-head { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.price-card .checks + .checks-head { margin-top: 26px; }
.price-card .checks strong { font-weight: 600; }
.price-card .checks small { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.price-card .checks + .fine { margin-top: 24px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 20px; }
@media (max-width: 760px) { .price-card { grid-template-columns: 1fr; } .price-card .left, .price-card .right { padding: 28px; } }

/* ---------- featured / faq / cta ---------- */
.featured { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 18px; text-decoration: none; display: flex; flex-direction: column; gap: 12px; transition: transform .2s, box-shadow .2s; cursor: pointer; font: inherit; color: inherit; text-align: left; width: 100%; }
.card:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -30px rgba(0,0,0,.45); }
.card .card-logo { aspect-ratio: 16/10; border-radius: 16px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); }
.card .card-logo img { width: calc(var(--s, .8) * 60%); height: calc(var(--s, .8) * 80%); object-fit: contain; }
.card h3 { font-size: 17px; margin: 0; }
.card .meta { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; flex: none; transition: transform .2s; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .answer { color: var(--muted); padding-bottom: 20px; }
.final-cta { background: var(--btn); color: var(--btn-text); border-radius: 36px; padding: clamp(40px, 7vw, 90px) 24px; text-align: center; position: relative; overflow: hidden; }
.final-cta h2 { font-size: clamp(34px, 5.5vw, 68px); max-width: 860px; margin: 0 auto 16px; }
.final-cta p { color: color-mix(in srgb, var(--btn-text) 70%, transparent); max-width: 560px; margin: 0 auto 28px; font-size: 18px; }
.final-cta .btn-primary { background: var(--accent); color: #fff; }
.final-cta .orbit { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; pointer-events: none; }

/* ---------- footer ---------- */
.site-footer { padding: 64px 0 32px; margin-top: 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--text); font-size: 15px; }
.footer-grid a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; background: var(--surface); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: span 2; } }

/* ---------- glass profile modal ---------- */
.modal-root[hidden] { display: none; }
.modal-root { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(15,15,20,.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s ease; }
.glass {
  position: relative; width: min(760px, 100%); max-height: min(88vh, 900px); overflow: auto; overscroll-behavior: contain;
  background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.7); border-radius: 32px;
  backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.8);
  color: #111; animation: pop .26s cubic-bezier(.2,.9,.3,1.2);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: #fff; } }
@media (prefers-reduced-transparency: reduce) { .glass { background: #fff; backdrop-filter: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-close { position: sticky; top: 14px; margin: 14px 14px -58px auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.9); cursor: pointer; z-index: 3; color: #111; }
.profile { padding: 34px; }
.profile-head { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; padding-right: 40px; }
.profile-logo { width: 104px; height: 104px; border-radius: 26px; display: grid; place-items: center; flex: none; overflow: hidden; border: 1px solid rgba(0,0,0,.06); box-shadow: 0 10px 30px -14px rgba(0,0,0,.3); }
.profile-logo img { width: calc(var(--s, .8) * 100%); height: calc(var(--s, .8) * 100%); object-fit: contain; }
.profile-logo.fit-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 4px; }
.profile .tagline { color: #555; margin: 0; font-size: 17px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid rgba(0,0,0,.06); font-size: 13px; font-weight: 500; text-decoration: none; color: #222; }
.chip.sample { background: #111; color: #fff; }
.profile .desc { font-size: 16px; color: #2a2a2a; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 18px; display: block; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.profile-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid rgba(0,0,0,.08); text-decoration: none; font-size: 14px; font-weight: 600; color: #111; }
.profile-links a.primary { background: #111; color: #fff; border-color: #111; }
.profile-links a:hover { transform: translateY(-1px); }
.contact-lines { display: grid; gap: 6px; font-size: 15px; margin-bottom: 8px; }
.contact-lines a { color: #111; }
.profile-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 18px; border-top: 1px solid rgba(0,0,0,.08); margin-top: 18px; }
.profile-foot .note { font-size: 12px; color: #666; margin-left: auto; }
.profile .ad { margin-top: 18px; }
.modal-loading { padding: 80px; text-align: center; color: #555; }
@media (max-width: 640px) {
  .modal-root { padding: 0; place-items: end stretch; }
  .glass { width: 100%; max-height: 94vh; border-radius: 28px 28px 0 0; animation: sheet .3s cubic-bezier(.2,.9,.3,1); }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .profile { padding: 22px; } .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .profile-head { gap: 14px; } .profile-logo { width: 78px; height: 78px; border-radius: 20px; }
}

/* ---------- explore ---------- */
.page-head { padding-top: 36px; padding-bottom: 28px; text-align: center; }
.page-head h1 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -0.04em; }
.page-head p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto; }
.search { max-width: 680px; margin: 26px auto 0; display: flex; gap: 8px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: 0 20px 40px -30px rgba(0,0,0,.35); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; padding: 0 18px; outline: none; }
.search:focus-within { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.filters select { font: inherit; font-size: 14px; padding: 9px 36px 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.filters input { font: inherit; font-size: 14px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.cat-pills { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin-top: 18px; scrollbar-width: none; justify-content: safe center; }
.cat-pills a { flex: none; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.explore-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.explore-layout.no-aside { grid-template-columns: 1fr; }
.explore-layout aside { position: sticky; top: 96px; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.empty-state { text-align: center; padding: 60px 20px; background: var(--surface); border: 1px dashed var(--border); border-radius: 24px; }
.empty-state h2 { font-size: 26px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
@media (max-width: 960px) { .explore-layout { grid-template-columns: 1fr; } .explore-layout aside { position: static; order: -1; } }

/* ---------- member page ---------- */
.member-page { padding: 24px 0 60px; }
.member-page .glass-page { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 32px; box-shadow: 0 40px 80px -60px rgba(0,0,0,.4); overflow: hidden; }
.member-hero { height: 160px; background: radial-gradient(circle at 20% 20%, var(--hero-c, #eee), transparent 60%), radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 55%), var(--bg); }
.member-page .profile { padding-top: 0; }
.member-page .profile-head { margin-top: -52px; align-items: flex-end; padding-right: 0; flex-wrap: wrap; }
.member-page .profile-logo { background: #fff; width: 124px; height: 124px; }

/* ---------- forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: clamp(22px, 4vw, 40px); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .label { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
.field .opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.req { color: var(--accent); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=number], input[type=date], input[type=search], select, textarea {
  font: inherit; font-size: 16px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { min-height: 120px; resize: vertical; }
.field.error input, .field.error select, .field.error textarea, .field.error .dropzone { border-color: #d93a3a; }
.error-msg { color: #c62828; font-size: 13px; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.error-msg::before { content: "!"; width: 16px; height: 16px; border-radius: 50%; background: #c62828; color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 800; flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--btn); flex: none; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 24px; }
.form-actions .left { margin-right: auto; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; padding: 0; }
legend + .hint { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

.dropzone { border: 2px dashed var(--border); border-radius: 20px; padding: 22px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; background: var(--bg); position: relative; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone .dz-title { font-weight: 700; }
.dropzone .dz-hint { font-size: 13px; color: var(--muted); }
.logo-editor { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: start; }
.logo-preview { width: 160px; height: 160px; border-radius: 24px; border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; background: #fff; }
.logo-preview img { width: calc(var(--s, .8) * 100%); height: calc(var(--s, .8) * 100%); object-fit: contain; }
.logo-preview.fit-cover img { width: 100%; height: 100%; object-fit: cover; }
.logo-preview .ph { color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }
.logo-controls { display: grid; gap: 12px; }
.inline-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; }
input[type=range] { accent-color: var(--btn); width: 180px; }
input[type=color] { width: 44px; height: 36px; border: 1px solid var(--border); border-radius: 10px; padding: 2px; background: var(--surface); }
@media (max-width: 560px) { .logo-editor { grid-template-columns: 1fr; } }

.gallery-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; }
.g-item { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); cursor: grab; }
.g-item.dragging { opacity: .4; }
.g-item.over { outline: 3px solid var(--accent); }
.g-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.g-item .g-tools { display: flex; gap: 4px; padding: 6px; align-items: center; }
.g-item .g-tools button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--text); }
.g-item .g-tools button:hover { background: var(--bg); }
.g-item .g-tools .del { margin-left: auto; color: #c62828; }
.g-item input.alt { border: 0; border-top: 1px solid var(--border); border-radius: 0; font-size: 12px; padding: 6px 8px; }
.g-item .badge { position: absolute; top: 6px; left: 6px; }

.stepper { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 8px 0 28px; list-style: none; padding: 0; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.stepper li span:first-child { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-size: 12px; }
.stepper li.done span:first-child { background: #1a9f5c; color: #fff; }
.stepper li.current { color: var(--text); border-color: var(--text); }
.stepper li.current span:first-child { background: var(--btn); color: var(--btn-text); }
@media (max-width: 640px) { .stepper li:not(.current) .lbl { display: none; } .stepper li:not(.current) { padding: 4px; } }

.claim-bar { position: sticky; bottom: 16px; z-index: 30; margin-top: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 14px 14px 22px; background: var(--btn); color: var(--btn-text); border-radius: 999px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.5); }
.claim-bar[hidden] { display: none; }
.claim-bar .btn { background: var(--accent); color: #fff; margin-left: auto; }
@media (max-width: 560px) { .claim-bar { border-radius: 24px; } .claim-bar[hidden] { display: none; }
.claim-bar .btn { width: 100%; } }

.summary { display: grid; gap: 10px; }
.summary .row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.summary .row.total { font-weight: 800; font-size: 20px; border-bottom: 0; }
.notice { padding: 16px 18px; border-radius: 18px; background: var(--bg); border: 1px solid var(--border); font-size: 14px; }
.notice.warn { background: #fff7e6; border-color: #f5d28a; color: #6b4a00; }
.notice.ok { background: #ebf8f0; border-color: #a6dfbe; color: #145c37; }
.notice.bad { background: #fdecec; border-color: #f2b8b8; color: #7a1d1d; }
.notice.info { background: #eef2ff; border-color: #c8d3ff; color: #22337a; }
.test-banner { background: repeating-linear-gradient(45deg, #fff3c4, #fff3c4 12px, #ffe98a 12px, #ffe98a 24px); color: #4d3b00; text-align: center; font-weight: 700; font-size: 13px; padding: 6px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.s-approved, .badge.s-active, .badge.s-succeeded { background: #e7f7ee; color: #146c3c; }
.badge.s-pending, .badge.s-reserved, .badge.s-paused { background: #fff4dc; color: #7a5200; }
.badge.s-changes_requested, .badge.s-past_due { background: #fff0e6; color: #8a3a00; }
.badge.s-rejected, .badge.s-suspended, .badge.s-failed { background: #fdeaea; color: #8f1c1c; }
.badge.s-unpublished, .badge.s-expired, .badge.s-draft, .badge.s-canceled, .badge.s-disabled { background: #eeeeee; color: #444; }
.badge.s-available { background: #eef2ff; color: #2b3f99; }
.badge.s-sample { background: #111; color: #fff; }

/* ---------- account ---------- */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding-top: 24px; padding-bottom: 60px; align-items: start; }
.dash > * { min-width: 0; }
.dash-nav { position: sticky; top: 96px; display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 10px; }
.dash-nav a, .dash-nav button { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.dash-nav a[aria-current="page"], .dash-nav a:hover { background: var(--bg); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 26px; margin-bottom: 18px; }
.panel h2 { font-size: 22px; } .panel h3 { font-size: 17px; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head h2 { margin: 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kv div { background: var(--bg); border-radius: 16px; padding: 14px 16px; }
.kv dt, .kv .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.kv dd, .kv .v { margin: 4px 0 0; font-weight: 700; font-size: 16px; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table-wrap { overflow-x: auto; }
.my-block { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.my-block .block { width: 96px; height: 96px; cursor: default; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } .dash-nav { position: static; grid-auto-flow: column; overflow-x: auto; } }

.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 30px 0 60px; }
.auth-card { width: min(460px, 100%); }
.auth-card h1 { font-size: 34px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 24px; }
.prose { font-size: 17px; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose p { color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.placeholder-note { padding: 14px 18px; border-radius: 16px; background: #fff7e6; border: 1px solid #f5d28a; color: #6b4a00; font-size: 14px; margin-bottom: 24px; font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- videos ---------- */
.video-add { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 640px) { .video-add { grid-template-columns: 1fr; } }
.video-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.video-list li { display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.video-list img, .video-list .v-ic { width: 72px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--bg); }
.video-list .v-text { display: grid; min-width: 0; font-size: 14px; }
.video-list .v-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-list .mv { margin-left: auto; display: flex; gap: 4px; }
.video-list .mv button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--text); }
.video-list .mv .del { color: #c62828; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; margin: 20px 0; }
.video { position: relative; border-radius: 18px; overflow: hidden; background: #111; aspect-ratio: 16/9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play, a.video-link { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; background: linear-gradient(135deg, #1d1d22, #3a3a44); color: #fff; font: inherit; text-decoration: none; }
.video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-play .play, a.video-link .play { position: relative; width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.92); color: #111; display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); transition: transform .15s; }
.video-play:hover .play, a.video-link:hover .play { transform: scale(1.08); }
.video-play .play .i, a.video-link .play .i { width: 26px; height: 26px; margin-left: 3px; }
.video .vmeta { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); text-align: left; }
.video .vmeta .src { background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 999px; flex: none; }
.video .vmeta .ttl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .videos { grid-template-columns: 1fr; } }

/* ---- Member growth tools: analytics, short links & QR, mailing list ---- */
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mini-stats div { background: var(--bg); border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; }
.mini-stats b { font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mini-stats span { font-size: 13px; color: var(--muted); font-weight: 600; }
.mini-stats small { font-size: 12px; color: var(--muted); }
.mini-stats.big div { background: var(--surface); border: 1px solid var(--border); padding: 18px; }
.mini-stats.big b { font-size: 34px; }
.share-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.share-row code, .table code { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; font-size: 14px; overflow-wrap: anywhere; }
.table code { padding: 2px 6px; font-size: 12px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; }
.seg a[aria-current] { background: var(--btn); color: var(--btn-text); }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split-2 > .panel { margin-bottom: 18px; }
@media (max-width: 900px) { .split-2 { grid-template-columns: 1fr; } }

/* Bar chart: thin bars, 2px gaps, rounded data end, recessive axes */
.bars { margin: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 220px auto; gap: 6px 10px; }
.bars-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.bars-plot { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; align-items: end; border-bottom: 1px solid var(--border);
  background: linear-gradient(var(--border) 1px, transparent 1px) top / 100% 50%; }
.bar { position: relative; height: 100%; display: flex; align-items: flex-end; cursor: default; outline: none; }
.bar i { display: block; width: 100%; height: var(--h); min-height: 1px; background: var(--text); border-radius: 4px 4px 0 0; opacity: .85; }
.bar:hover i, .bar:focus-visible i { opacity: 1; background: var(--accent); }
.bar:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 4px; }
.bar em { position: absolute; bottom: min(calc(var(--h) + 8px), calc(100% - 48px)); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--surface);
  font-style: normal; font-size: 12px; padding: 6px 10px; border-radius: 10px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 2; }
.bar em b { display: block; font-size: 15px; }
.bar:hover em, .bar:focus-visible em { opacity: 1; }
.bars-plot .bar:first-child em { left: 0; transform: none; }
.bars-plot .bar:last-child em { left: auto; right: 0; transform: none; }
.bars-x { grid-column: 2; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.as-table { margin-top: 14px; font-size: 14px; }
.as-table summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.as-table .table-wrap { max-height: 300px; overflow: auto; margin-top: 8px; }
.share-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.share-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.share-list b { font-variant-numeric: tabular-nums; }
.share-list i { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: var(--bg); position: relative; overflow: hidden; }
.share-list i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--text); border-radius: 4px; opacity: .8; }

/* Short links & QR */
.qr-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.qr-preview { background: repeating-conic-gradient(var(--bg) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; border: 1px solid var(--border); border-radius: 18px; padding: 10px; }
.qr-preview img { display: block; width: 100%; height: auto; }
.inline-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-form label { font-weight: 600; font-size: 14px; }
.inline-form .prefix { color: var(--muted); font-size: 14px; }
.inline-form input { width: 180px; }
.inline-form.error input { border-color: #d93a3a; }
.inline-form + .hint { font-size: 13px; color: var(--muted); margin: 6px 0 16px; }
.inline-form.error + .hint { color: #b42323; }
.qr-options { border: 0; padding: 0; margin: 0 0 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr-options legend { margin-bottom: 8px; }
.qr-options label:not(.check) { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.qr-options input[type=color] { width: 40px; height: 32px; padding: 2px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.link-add { display: grid; grid-template-columns: 2fr 1.2fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 14px; }
.link-add .field { margin: 0; }
.row-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.row-actions form { display: flex; gap: 4px; }
td.clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
tr.is-off td { color: var(--muted); }
.small { font-size: 12px; }
@media (max-width: 760px) { .qr-layout { grid-template-columns: 1fr; } .qr-preview { max-width: 220px; } .link-add { grid-template-columns: 1fr; } }

/* Newsletter signup on profiles */
.newsletter { margin: 26px 0 8px; padding: 20px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border); }
.newsletter h2, .newsletter h3 { font-size: 19px; margin: 0 0 12px; }
.nl-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; margin-bottom: 12px; }
.newsletter .check { font-size: 13px; color: var(--muted); }
.nl-msg { margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.nl-msg:empty { display: none; }
.nl-msg.ok { color: #146c3c; } .nl-msg.bad { color: #b42323; }
@media (max-width: 640px) { .nl-row { grid-template-columns: 1fr; } }

/* ---- Profile page designs (templates chosen by members). All values come from validated design settings. ---- */
.pd { --pd-muted: color-mix(in srgb, var(--pd-text) 64%, var(--pd-bg)); --pd-line: color-mix(in srgb, var(--pd-text) 13%, transparent);
  --pd-soft: color-mix(in srgb, var(--pd-text) 6%, var(--pd-surface));
  background: var(--pd-bg); color: var(--pd-text); font-family: var(--pd-font-body), system-ui, sans-serif; }
.pd h1, .pd h2, .pd h3 { font-family: var(--pd-font-head), system-ui, sans-serif; color: var(--pd-text); }
.pd .member-page h1 { font-size: clamp(30px, 5vw, 48px); margin: 0 0 4px; line-height: 1.05; }
.pd .crumbs, .pd .crumbs a { color: var(--pd-muted); }
.pd .glass-page { background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: calc(var(--pd-r) + 6px); }
.pd-card-outline .glass-page { box-shadow: none; }
.pd-card-flat .glass-page { background: transparent; border: 0; box-shadow: none; overflow: visible; }
.pd-card-flat .member-hero { border-radius: var(--pd-r); }
.pd .member-hero { background: radial-gradient(circle at 20% 20%, var(--pd-hero), transparent 62%), radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--pd-accent) 35%, transparent), transparent 55%), color-mix(in srgb, var(--pd-hero) 35%, var(--pd-bg)); }
.pd-hero-solid .member-hero { background: var(--pd-hero); }
.pd-hero-image .member-hero { background-size: cover; background-position: center; }
.pd .profile-logo { border-radius: var(--pd-r); border-color: var(--pd-line); }
.pd .tagline { color: var(--pd-muted); }
.pd .chip { background: var(--pd-soft); border-color: var(--pd-line); color: var(--pd-text); border-radius: var(--pd-btn-r); }
.pd .chip.sample { background: var(--pd-text); color: var(--pd-bg); }
.pd .desc { color: var(--pd-text); font-size: 17px; line-height: 1.65; }
.pd .gallery img, .pd .video { border-radius: var(--pd-r); }
.pd .profile-links a { background: var(--pd-surface); color: var(--pd-text); border-color: var(--pd-line); border-radius: var(--pd-btn-r); }
.pd .profile-links a.primary, .pd .btn-primary { background: var(--pd-accent); color: var(--pd-accent-text); border-color: var(--pd-accent); }
.pd .btn { border-radius: var(--pd-btn-r); }
.pd .btn-ghost { background: var(--pd-surface); color: var(--pd-text); border-color: var(--pd-line); }
.pd .btn-outline { color: var(--pd-text); border-color: var(--pd-text); }
.pd .contact-lines a { color: var(--pd-text); }
.pd .profile-foot { border-top-color: var(--pd-line); }
.pd .profile-foot .note { color: var(--pd-muted); }
.pd .newsletter { background: var(--pd-soft); border-color: var(--pd-line); border-radius: var(--pd-r); }
.pd .newsletter input:not([type=checkbox]) { background: var(--pd-surface); color: var(--pd-text); border-color: var(--pd-line); border-radius: min(var(--pd-btn-r), 14px); }
.pd .newsletter .check { color: var(--pd-muted); }
.pd .check input { accent-color: var(--pd-accent); }
.pd .pd-sec { margin: 22px 0; }
.pd .pd-sec:first-child { margin-top: 0; }
.pd .pd-sec .gallery, .pd .pd-sec .videos, .pd .pd-sec .profile-links { margin-top: 0; margin-bottom: 0; }
.pd a:focus-visible, .pd button:focus-visible { outline: 3px solid var(--pd-accent); outline-offset: 2px; }
.pd .ad { color: #111; }

/* Gallery styles */
.pd .gallery.g-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd .gallery.g-large img:first-child { grid-column: 1 / -1; }
.pd .gallery.g-mosaic { grid-auto-flow: dense; }
.pd .gallery.g-mosaic img:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }

/* Layouts */
.pd-l-cover .glass-page, .pd-l-showcase .glass-page { max-width: 1040px; }
.pd-l-cover .member-hero { height: clamp(220px, 34vw, 340px); }
.pd-l-showcase .profile-head { margin-top: 0; }
.pd-hero-none .member-page .profile { padding-top: 34px; }
.pd-hero-none .member-page .profile-head { margin-top: 0; align-items: center; }
.pd-card-flat .member-page .profile { padding-left: 0; padding-right: 0; }
.pd-card-flat.pd-hero-none .member-page .profile { padding-top: 8px; }
.pd-l-minimal .glass-page { max-width: 700px; }
.pd-l-minimal .profile-head { flex-direction: column; align-items: flex-start; gap: 16px; }
.pd-l-minimal .member-page .profile-logo { width: 84px; height: 84px; }
.pd-l-minimal .member-page h1 { font-size: clamp(36px, 6vw, 60px); }
.pd-l-minimal .profile-links { flex-direction: column; align-items: stretch; }
.pd-l-minimal .profile-links a { justify-content: space-between; padding: 14px 18px; }
.pd-l-split .glass-page { max-width: 1120px; }
.pd-l-split .profile { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 36px; align-items: start; }
.pd-l-split .pd-aside { position: sticky; top: 96px; }
.pd-l-split .profile-head { flex-direction: column; align-items: flex-start; }
.pd-l-split .profile-links { flex-direction: column; align-items: stretch; }
.pd-l-split .pd-main { padding-top: 70px; min-width: 0; }
.pd-hero-none.pd-l-split .pd-main { padding-top: 0; }
.pd-l-split .nl-row { grid-template-columns: 1fr; }
@media (max-width: 860px) {
  .pd-l-split .profile { grid-template-columns: 1fr; gap: 0; }
  .pd-l-split .pd-aside { position: static; }
  .pd-l-split .pd-main { padding-top: 0; }
}
.preview-flag { position: sticky; top: 8px; z-index: 5; width: max-content; margin: 0 auto 12px; background: #111; color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
body.is-preview .site-header, body.is-preview .site-footer, body.is-preview .center { display: none; }

/* ---- Page design editor ---- */
.de { display: grid; grid-template-columns: minmax(340px, 420px) 1fr; gap: 18px; align-items: start; }
.de-controls { min-width: 0; }
.de-preview { position: sticky; top: 90px; min-width: 0; }
.de-preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.de-frame { border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--surface); height: calc(100vh - 150px); min-height: 520px; margin: 0 auto; transition: max-width .2s; max-width: 100%; }
.de-frame.is-mobile { max-width: 390px; }
.de-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.de-small { font-size: 13px; }
.de-filter select { padding: 7px 12px; font-size: 14px; border-radius: 999px; }
.de-group { border: 0; padding: 0; margin: 0 0 22px; }
.de-group legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; padding: 0; }
.de-layouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.de-layout { position: relative; display: grid; gap: 4px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; background: var(--surface); }
.de-layout input { position: absolute; opacity: 0; pointer-events: none; }
.de-layout:has(input:checked) { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.de-layout:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.de-lay-name { font-weight: 700; font-size: 13px; }
.de-lay-hint { font-size: 11px; color: var(--muted); line-height: 1.3; }
.de-lay-pic { height: 54px; border-radius: 8px; background: var(--bg); display: grid; gap: 3px; padding: 6px; grid-template-rows: 14px 1fr; }
.de-lay-pic i { background: color-mix(in srgb, var(--text) 18%, transparent); border-radius: 3px; }
.de-lay-pic.lay-cover { grid-template-rows: 26px 1fr; }
.de-lay-pic.lay-split { grid-template-columns: 1fr 2fr; grid-template-rows: 1fr 1fr; }
.de-lay-pic.lay-split i:first-child { grid-row: 1 / 3; }
.de-lay-pic.lay-minimal { grid-template-rows: 8px 6px 6px; padding: 10px 18px; }
.de-lay-pic.lay-showcase { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 10px; }
.de-lay-pic.lay-showcase i:last-child { grid-column: 1 / -1; }
.de-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px; }
.de-color { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; }
.de-color input { width: 34px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; flex: none; cursor: pointer; }
.de-color input:disabled { opacity: .35; }
.de-warnings { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.de-warnings li { font-size: 13px; padding: 8px 12px; border-radius: 12px; background: #fff7e6; border: 1px solid #f5d28a; color: #6b4a00; }
.de-warnings:empty { display: none; }
.de-seg-row { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; margin-bottom: 10px; }
.de-seg-label { font-size: 13px; font-weight: 600; }
.de-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.de-seg label { position: relative; }
.de-seg input { position: absolute; opacity: 0; pointer-events: none; }
.de-seg span { display: block; padding: 6px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); }
.de-seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.de-seg input:focus-visible + span { outline: 2px solid var(--accent); }
.de-sections { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.de-sections { counter-reset: sec; }
.de-sections li { counter-increment: sec; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: box-shadow .15s; }
.de-sections li.dragging { box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); border-color: var(--text); position: relative; z-index: 2; }
.de-sections li:has(input[name=show]:not(:checked)) .de-sec-name { color: var(--muted); text-decoration: line-through; }
.de-handle { cursor: grab; touch-action: none; display: grid; place-items: center; width: 26px; height: 32px; border-radius: 8px; color: var(--muted); flex: none; }
.de-handle .i { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.de-handle:hover { background: var(--bg); color: var(--text); }
li.dragging .de-handle { cursor: grabbing; }
.de-num::before { content: counter(sec); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); font-size: 12px; font-weight: 700; }
.de-sec-name { flex: 1; font-size: 14px; font-weight: 600; min-width: 0; }
.de-show { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.de-show input { width: 18px; height: 18px; accent-color: var(--btn); }
.de-mv { display: flex; gap: 4px; }
.de-mv button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--text); }
.de-savebar { position: sticky; bottom: 12px; z-index: 3; display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: 0 10px 30px -18px rgba(0,0,0,.4); }
.de-savebar [data-dirty] { margin-right: auto; }
@media (max-width: 1180px) { .de { grid-template-columns: 1fr; } .de-preview { position: static; order: -1; } .de-frame { height: 560px; } }

/* Template cards + mini drawings */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tpl-card { display: grid; gap: 4px; text-align: left; padding: 8px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); cursor: pointer; font: inherit; color: var(--text); }
.tpl-card[aria-checked="true"] { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.tpl-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tpl-card[hidden] { display: none; }
.tpl-name { font-weight: 700; font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tpl-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 999px; }
.tpl-desc { font-size: 12px; color: var(--muted); line-height: 1.35; }
.tt { display: block; aspect-ratio: 4/3; border-radius: 10px; background: var(--t-bg); padding: 8px; overflow: hidden; border: 1px solid rgba(0,0,0,.06); }
.tt-card { display: block; height: 100%; background: var(--t-surface); border-radius: var(--t-r); overflow: hidden; box-shadow: 0 6px 14px -10px rgba(0,0,0,.5); }
.tt-card-outline .tt-card { box-shadow: none; border: 1px solid color-mix(in srgb, var(--t-text) 15%, transparent); }
.tt-card-flat .tt-card { background: transparent; box-shadow: none; }
.tt-hero { display: block; height: 26%; background: linear-gradient(135deg, var(--t-hero), color-mix(in srgb, var(--t-accent) 40%, var(--t-surface))); }
.tt-cover .tt-hero { height: 40%; }
.tt-hero-none .tt-hero, .tt-minimal .tt-hero { display: none; }
.tt-hero-solid .tt-hero { background: var(--t-hero); }
.tt-body { display: grid; gap: 3px; padding: 5px 7px; grid-template-columns: auto 1fr; align-items: center; }
.tt-logo { width: 16px; height: 16px; border-radius: var(--t-r); background: var(--t-accent); grid-row: 1 / 3; margin-top: -10px; border: 2px solid var(--t-surface); }
.tt-hero-none .tt-logo, .tt-minimal .tt-logo { margin-top: 0; }
.tt-title { font-family: var(--t-font), sans-serif; font-weight: 700; color: var(--t-text); font-size: 13px; line-height: 1; }
.tt-line { grid-column: 2; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--t-text) 35%, transparent); }
.tt-line.short { width: 60%; }
.tt-pics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 2px; }
.tt-pics i { aspect-ratio: 1.3; background: color-mix(in srgb, var(--t-hero) 70%, var(--t-text) 10%); border-radius: calc(var(--t-r) / 2); }
.tt-minimal .tt-pics, .tt-split .tt-pics { display: none; }
.tt-showcase .tt-pics { order: -1; grid-template-columns: 2fr 1fr 1fr; }
.tt-btn { grid-column: 1 / -1; width: 46%; height: 7px; border-radius: var(--t-b); background: var(--t-accent); margin-top: 2px; }
.tt-split .tt-body { grid-template-columns: 30% 1fr; }

/* ---- Shop (profile page + pop-up) ---- */
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 14px; }
.products > li[hidden] { display: none; }
.product { display: grid; gap: 4px; text-decoration: none; color: inherit; height: 100%; align-content: start; }
.product-img { display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: color-mix(in srgb, currentColor 6%, transparent); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.product:hover .product-img img { transform: scale(1.04); }
.product-name { font-weight: 600; font-size: 15px; line-height: 1.3; margin-top: 4px; }
.product-price { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.product-buy { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; opacity: .7; }
.product-buy .i { width: 13px; height: 13px; }
.product:hover .product-buy, .product:focus-visible .product-buy { opacity: 1; text-decoration: underline; }
.shop-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.shop-head h2 { margin: 0; font-size: 24px; }
.shop-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.shop-filter button { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12); background: transparent; color: inherit; cursor: pointer; }
.shop-filter button[aria-pressed="true"] { background: #111; color: #fff; border-color: #111; }
.shop-note { font-size: 12px; opacity: .65; margin: 12px 0 0; }
.shop-jump { margin: -6px 0 18px; }
.pd .product-img { border-radius: var(--pd-r); background: var(--pd-soft); }
.pd .product, .pd .product-name { color: var(--pd-text); font-family: var(--pd-font-body), system-ui, sans-serif; }
.pd .product-buy { color: var(--pd-text); }
.pd .shop-filter button { border-color: var(--pd-line); border-radius: var(--pd-btn-r); }
.pd .shop-filter button[aria-pressed="true"] { background: var(--pd-accent); color: var(--pd-accent-text); border-color: var(--pd-accent); }
.pd .shop-note { color: var(--pd-muted); opacity: 1; }
.pd-l-split .pd-aside .products { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.popup-shop { margin: 20px 0; }
.popup-shop-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.popup-shop-head h3 { display: flex; gap: 8px; align-items: center; font-size: 18px; margin: 0; }
.popup-shop-head a { font-size: 14px; font-weight: 600; color: #111; }
.popup-shop .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.popup-shop .product-name { font-size: 14px; }
@media (max-width: 560px) { .popup-shop .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Shop manager (dashboard) */
.shop-form { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: start; }
.shop-img .dropzone { padding: 10px; }
.shop-thumb { aspect-ratio: 1; border-radius: 14px; background: var(--surface); display: grid; place-items: center; overflow: hidden; margin-bottom: 6px; color: var(--muted); }
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-thumb .i { width: 34px; height: 34px; }
.price-row { display: grid; grid-template-columns: 1fr 100px; gap: 8px; }
.shop-admin { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.shop-admin > li { border: 1px solid var(--border); border-radius: 18px; padding: 10px; background: var(--surface); scroll-margin-top: 100px; }
.shop-admin > li.is-off .shop-row-img { opacity: .45; }
.shop-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.shop-row-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.shop-row-text { display: grid; gap: 2px; min-width: 0; flex: 1 1 220px; font-size: 14px; }
.shop-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.shop-row-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.shop-admin details { margin-top: 8px; }
.shop-admin summary { cursor: pointer; font-size: 14px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.shop-admin details[open] > form { padding: 14px 4px 4px; }
.col-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (max-width: 640px) { .shop-form { grid-template-columns: 1fr; } .shop-img { max-width: 200px; } }
.pd-shop, #newsletter { scroll-margin-top: 96px; }
.pd .gallery.g-mosaic img:nth-child(6n + 1) { aspect-ratio: auto; }

/* Header "None": the logo, name and details sit centered at the top of the page */
.pd-hero-none .member-page .profile-head,
.pd-hero-none.pd-l-minimal .profile-head,
.pd-hero-none.pd-l-split .profile-head { flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-right: 0; }
.pd-hero-none .pd-aside > .chips { justify-content: center; }
.pd-hero-none:not(.pd-l-split) .pd-aside { margin-bottom: 8px; }
.tt-hero-none .tt-body { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.tt-hero-none .tt-logo { grid-row: auto; }
.tt-hero-none .tt-line { grid-column: 1; width: 70%; }
.tt-hero-none .tt-line.short { width: 45%; }
.tt-hero-none .tt-btn { justify-self: center; }

/* Every design: 10px between the page content and the screen edges; images 4:3, videos 16:9 */
.pd .member-page { padding-left: 10px; padding-right: 10px; }
.pd .gallery img, .gallery img { aspect-ratio: 4 / 3; }
.pd .gallery.g-mosaic img:nth-child(6n + 1) { aspect-ratio: auto; }
.video, .video.portrait { aspect-ratio: 16 / 9; max-width: none; }

/* ---- Digital business card ---- */
body.card-only { background: var(--bg); }
.bc-page { min-height: 100vh; padding: 24px 10px 40px; display: flex; flex-direction: column; align-items: center; }
.bc-page.is-preview { min-height: 0; padding: 18px 10px; border-radius: 22px; }
.bc { position: relative; width: 100%; max-width: 440px; background: var(--pd-surface); color: var(--pd-text); border: 1px solid var(--pd-line);
  border-radius: calc(var(--pd-r) + 6px); padding: 0 22px 22px; text-align: center; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(0,0,0,.45); }
.bc-band { height: 110px; margin: 0 -22px; background: radial-gradient(circle at 20% 20%, var(--pd-hero), transparent 62%), radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--pd-accent) 40%, transparent), transparent 55%), color-mix(in srgb, var(--pd-hero) 40%, var(--pd-bg)); }
.bc-logo { width: 104px; height: 104px; margin: -52px auto 12px; border-radius: var(--pd-r); display: grid; place-items: center; overflow: hidden; border: 4px solid var(--pd-surface); box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); }
.bc-logo img { width: calc(var(--s, .8) * 100%); height: calc(var(--s, .8) * 100%); object-fit: contain; }
.bc-logo.fit-cover img { width: 100%; height: 100%; object-fit: cover; }
.bc-name { font-family: var(--pd-font-head), system-ui, sans-serif; font-size: clamp(26px, 7vw, 34px); margin: 0 0 4px; line-height: 1.1; color: var(--pd-text); }
.bc-role { margin: 0 0 18px; color: var(--pd-muted); font-size: 15px; }
.bc-role span:empty { display: none; }
.bc-save { width: 100%; justify-content: center; padding: 15px; font-size: 16px; background: var(--pd-accent); color: var(--pd-accent-text); border-radius: var(--pd-btn-r); }
.bc-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 12px 0 18px; }
.bc-actions a { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: min(var(--pd-btn-r), 16px); background: var(--pd-soft); color: var(--pd-text); text-decoration: none; font-size: 12px; font-weight: 600; }
.bc-actions .i { width: 20px; height: 20px; }
.bc-lines { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; border-top: 1px solid var(--pd-line); }
.bc-lines li { display: flex; gap: 12px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--pd-line); font-size: 15px; min-width: 0; }
.bc-lines li > .i { flex: none; color: var(--pd-muted); }
.bc-lines span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.bc-lines small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--pd-muted); font-weight: 600; }
.bc-lines a { color: var(--pd-text); text-decoration: none; }
.bc-note { margin: 16px 0 0; font-size: 15px; color: var(--pd-muted); }
.bc-social { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.bc-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--pd-soft); color: var(--pd-text); }
.bc-qr { margin-top: 18px; padding: 16px; border-radius: var(--pd-r); background: #fff; color: #111; }
.bc-qr img { width: min(200px, 70%); height: auto; display: block; margin: 0 auto; }
.bc-qr p { margin: 8px 0 0; font-size: 13px; font-weight: 600; }
.bc-foot { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.bc-made { margin-top: 18px; font-size: 13px; color: var(--pd-muted); }
.bc-made a { color: var(--pd-muted); }
.bc-editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.bc-side { position: sticky; top: 90px; display: grid; gap: 0; }
.bc-qr-preview { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 10px; max-width: 240px; margin: 0 auto 12px; }
.bc-qr-preview img { width: 100%; height: auto; display: block; }
.bc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.bc-modes { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.bc-mode { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: 16px; cursor: pointer; font-size: 14px; }
.bc-mode:has(input:checked) { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.bc-mode input { margin-top: 3px; accent-color: var(--btn); width: 18px; height: 18px; flex: none; }
.bc-savebar { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; padding: 12px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--border); }
.bc-preview-wrap .bc-page { background: var(--pd-bg); }
@media (max-width: 1100px) { .bc-editor { grid-template-columns: 1fr; } .bc-side { position: static; } }

/* Print view: standard 85 × 55 mm card, front and back */
.print-wrap { min-height: 100vh; padding: 24px 10px; background: #f2f2f0; }
.print-bar { max-width: 760px; margin: 0 auto 24px; display: grid; gap: 10px; font-size: 14px; }
.print-sheet { display: flex; flex-wrap: wrap; gap: 10mm; justify-content: center; }
.pcard { width: 85mm; height: 55mm; background: #fff; color: #111; border: 0.2mm dashed #c8c8c8; box-sizing: border-box; padding: 5mm; display: flex; gap: 4mm; align-items: center; font-family: var(--pd-font-body), Inter, sans-serif; overflow: hidden; }
.pcard-logo { width: 18mm; height: 18mm; border-radius: 3mm; display: grid; place-items: center; overflow: hidden; flex: none; align-self: flex-start; }
.pcard-logo img { width: 80%; height: 80%; object-fit: contain; }
.pcard-text { display: grid; gap: 1mm; min-width: 0; }
.pcard-name { font-family: var(--pd-font-head), Inter, sans-serif; font-size: 13pt; line-height: 1.1; }
.pcard-role { font-size: 8pt; color: #555; }
.pcard-lines { display: grid; gap: .6mm; margin-top: 2mm; font-size: 7.5pt; overflow-wrap: anywhere; }
.pcard-front { border-top: 2mm solid var(--pd-accent); }
.pcard-back { justify-content: center; text-align: left; }
.pcard-back img { width: 36mm; height: 36mm; flex: none; }
.pcard-back div { display: grid; gap: 1.5mm; font-size: 8pt; }
.pcard-back strong { font-size: 10pt; }
.pcard-back span { color: #555; overflow-wrap: anywhere; }
@media print {
  @page { size: A4; margin: 12mm; }
  .no-print, .skip { display: none !important; }
  .print-wrap { background: #fff; padding: 0; min-height: 0; }
  .pcard { break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* One gallery image: a small 4:3 thumbnail instead of a full-width picture */
.gallery.g-single, .pd .gallery.g-single.g-large, .pd .gallery.g-single.g-mosaic { grid-template-columns: minmax(0, 240px); }
.gallery.g-single img, .pd .gallery.g-single img:first-child, .pd .gallery.g-single img:nth-child(6n + 1) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
.de-btn-opt { font-size: 14px; margin-bottom: 8px; }

/* "Message me" (WhatsApp) + Shop buttons under the profile header */
.pd-cta { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 18px; }
.pd-cta .shop-jump { margin: 0; }
.pd-hero-none .pd-aside > .pd-cta { justify-content: center; }
.msg-btn .i { width: 18px; height: 18px; }
.modal-body .pd-cta { margin: 0 0 16px; }
.modal-body .msg-btn { background: #0f7a3f; color: #fff; }

/* ---- promo codes at checkout, refer a friend */
.summary .promo-row { color: #146c3c; }
.promo-form { margin: 16px 0 4px; display: grid; gap: 6px; }
.promo-form label { font-weight: 600; font-size: 15px; }
.promo-form .opt { font-weight: 400; color: var(--muted); }
.promo-input { display: flex; gap: 8px; }
.promo-input input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.promo-form .notice { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.promo-form .notice .link-btn { margin-left: auto; }
.promo-form .hint.err { color: #b42323; font-size: 13px; }
.ref-code { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ref-code code { font-size: clamp(22px, 4vw, 30px); font-weight: 800; letter-spacing: .06em; padding: 10px 16px; border: 2px dashed var(--border); border-radius: 14px; background: var(--bg); overflow-wrap: anywhere; }
.ref-link { display: flex; gap: 8px; margin-top: 14px; }
.ref-link input { flex: 1; min-width: 0; }
/* Admin signed in to a member's account */
.imp-bar { position: sticky; top: 0; z-index: 90; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px 10px; background: #fff4d6; color: #5c4100; border-bottom: 1px solid #f0d58a; font-size: 14px; }
.imp-bar form { margin: 0; }
.imp-bar .btn { padding: 6px 12px; min-height: 0; }

/* ---- advertising slideshow: slides share one cell and fade; media keep the spot's shape */
.ad-show { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.ad-show > .ad-slide { grid-area: 1 / 1; min-width: 0; border: 0; border-radius: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.ad-show > .ad-slide.is-on { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; z-index: 1; }
.ad-media { display: block; aspect-ratio: var(--ad-ratio, 4 / 1); background: #111; }
.ad-media img, .ad-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 3; display: flex; gap: 5px; justify-content: center; pointer-events: none; }
.ad-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.18); transition: background .3s, width .3s; }
.ad-dots i.on { background: #fff; width: 16px; border-radius: 3px; }
.ad-pause { position: absolute; right: 8px; bottom: 6px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 9px; letter-spacing: -1px; cursor: pointer; opacity: .75; }
.ad-pause:hover, .ad-pause:focus-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ad-show > .ad-slide, .ad-show > .ad-slide.is-on { transition: none; } }

/* ---- invoices / receipts (print friendly) */
.invoice-wrap { max-width: 820px; margin: 0 auto; padding: 24px 16px 60px; }
.invoice-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.invoice { background: #fff; color: #111; border: 1px solid var(--border); border-radius: 18px; padding: clamp(20px, 5vw, 48px); }
.inv-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid #e6e6e6; }
.inv-logo { max-height: 48px; max-width: 160px; display: block; margin-bottom: 10px; }
.inv-seller { font-size: 18px; display: block; margin-bottom: 4px; }
.inv-small { font-size: 13px; color: #666; line-height: 1.5; }
.inv-title h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 10px; }
.inv-title dl { display: grid; grid-template-columns: auto auto; gap: 4px 16px; margin: 0; font-size: 14px; }
.inv-title dt { color: #666; } .inv-title dd { margin: 0; font-weight: 600; }
.inv-to { padding: 20px 0; line-height: 1.5; }
.inv-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #666; margin-bottom: 4px; }
.inv-lines { width: 100%; border-collapse: collapse; margin: 8px 0 18px; }
.inv-lines th, .inv-lines td { padding: 12px 0; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.inv-lines th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #666; }
.inv-lines .num { text-align: right; white-space: nowrap; padding-left: 16px; }
.inv-lines tfoot td { border-bottom: 0; padding: 6px 0; }
.inv-lines tfoot .total td { font-weight: 800; font-size: 18px; border-top: 2px solid #111; padding-top: 12px; }
.inv-foot { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid #eee; color: #444; }
@media print { .invoice-page { background: #fff; } .invoice { border: 0; padding: 0; } .invoice-wrap { padding: 0; } }

/* Manual payments (Whish, OMT, bank transfer) */
.pay-ref { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--border); border-radius: 14px; background: var(--bg); }
.pay-ref .k { font-size: 13px; color: var(--muted); flex-basis: 100%; }
.pay-ref strong { font-size: 22px; letter-spacing: .04em; }
.pay-ref .btn { margin-left: auto; }
.pay-instructions { white-space: normal; font-size: 15px; }
.pay-instructions p { margin: 0 0 10px; }

/* ---------- block hold: timer and "claim it again" pop-up ---------- */
.hold-pill { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; background: var(--text, #111); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18); white-space: nowrap; }
.hold-pill .i { width: 16px; height: 16px; color: var(--accent, #ff6a3d); }
.hold-dialog { box-sizing: border-box; border: 0; border-radius: 22px; padding: 28px; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(0,0,0,.25); text-align: center; color: var(--text, #111); }
.hold-dialog::backdrop { background: rgba(15,15,20,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.hold-dialog h2 { font-size: 22px; margin: 12px 0 8px; }
.hold-dialog p { color: var(--muted, #6b6b6b); margin: 0 0 20px; }
.hold-icon { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent, #ff6a3d) 14%, #fff); color: var(--accent, #ff6a3d); }
.hold-icon .i { width: 26px; height: 26px; }
.hold-actions { display: grid; gap: 10px; }
.hold-actions .btn { justify-content: center; }
.hold-actions [hidden] { display: none; }

/* Social links shown as icons only (member's choice in Page design) */
.profile-links.icons-only a:not(.primary) { width: 44px; height: 44px; padding: 0; justify-content: center; }
.profile-links.icons-only a:not(.primary) .i { width: 20px; height: 20px; }
.pd-l-minimal .profile-links.icons-only, .pd-l-split .profile-links.icons-only { flex-direction: row; flex-wrap: wrap; align-items: center; }
.pd-l-minimal .profile-links.icons-only a.primary, .pd-l-split .profile-links.icons-only a.primary { flex-basis: 100%; }

/* ---------- cover image ---------- */
.cover-preview { aspect-ratio: 16 / 5; border-radius: 16px; border: 1.5px dashed var(--border); background: var(--bg) center / cover no-repeat;
  display: grid; place-items: center; margin-bottom: 10px; color: var(--muted); font-size: 14px; text-align: center; padding: 8px; }
.cover-preview.filled, .cover-preview[style] { border-style: solid; }
.pd.has-cover .member-hero { height: auto; aspect-ratio: 16 / 5; background-position: center; background-size: cover; }

/* Phones: no empty colour band. Without a cover image the page starts with the logo beside the name, like on desktop */
@media (max-width: 640px) {
  .pd:not(.has-cover) .member-hero { display: none; }
  .pd:not(.has-cover) .member-page .profile-head,
  .pd:not(.has-cover).pd-hero-none .member-page .profile-head { margin-top: 0; padding-top: 22px; flex-direction: row; align-items: center; text-align: left; flex-wrap: nowrap; gap: 14px; }
  .pd:not(.has-cover) .member-page .profile-logo { width: 72px; height: 72px; }
  .pd:not(.has-cover).pd-hero-none .pd-aside > .chips { justify-content: flex-start; }
  .pd .member-page .profile-head h1 { font-size: clamp(24px, 7vw, 32px); }
  .pd.has-cover .member-page .profile-head { margin-top: -38px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .pd.has-cover .member-page .profile-logo { width: 84px; height: 84px; }
}

/* ---------- enlarged images ---------- */
.gallery img, .projects .project-img img, [data-zoom] { cursor: zoom-in; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; overflow: hidden; }
.lightbox::backdrop { background: rgba(10,10,12,.88); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; grid-column: 2; }
.lightbox figure img { max-width: min(92vw, 1400px); max-height: 84vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; }
.lb-count { color: rgba(255,255,255,.8); font-size: 14px; min-height: 1em; }
.lb-close, .lb-nav { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.26); }
.lb-close { position: fixed; top: 16px; right: 16px; z-index: 2; }
.lb-prev { grid-column: 1; margin-left: 16px; } .lb-next { grid-column: 3; margin-right: 16px; }
.lightbox.single .lb-nav { visibility: hidden; }
@media (max-width: 640px) { .lb-nav { position: fixed; bottom: 22px; } .lb-prev { left: 22px; margin: 0; } .lb-next { right: 22px; margin: 0; } .lightbox figure img { max-width: 96vw; } }
.pop-cover { aspect-ratio: 16 / 5; margin: -8px -4px 18px; border-radius: 18px; background: center / cover no-repeat; }
.modal-body .profile.has-cover .profile-head { padding-right: 0; }

/* ---------- NGO projects ---------- */
.projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.project { display: grid; grid-template-rows: auto 1fr; border-radius: 18px; overflow: hidden; background: var(--surface, #fff); border: 1px solid var(--border, #e8e8e4); }
.pd .project { background: var(--pd-surface); border-color: var(--pd-line); border-radius: var(--pd-r); }
.project-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg, #f7f7f5); }
.project-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.project-name { font-size: 16px; }
.project-impact { font-size: 14px; line-height: 1.45; color: var(--muted, #6b6b6b); }
.pd .project-impact { color: color-mix(in srgb, var(--pd-text) 70%, transparent); }
.pd-projects .shop-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.donate-btn { background: #c2185b; border-color: #c2185b; color: #fff; }
.pd .donate-btn, .modal-body .donate-btn { background: #c2185b; border-color: #c2185b; color: #fff; }
.popup-projects .projects { grid-template-columns: repeat(2, 1fr); }
#projects { scroll-margin-top: 96px; }
@media (max-width: 520px) { .popup-projects .projects { grid-template-columns: 1fr; } }
fieldset { min-width: 0; } /* let form sections shrink to small screens */
.cover-preview, .dropzone { max-width: 100%; box-sizing: border-box; }

/* ---------- several businesses in one account ---------- */
.biz-switch { display: grid; gap: 8px; padding: 0 0 12px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.biz-switch form { display: grid; gap: 4px; margin: 0; }
.biz-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.biz-switch select { font-weight: 600; padding: 10px 12px; }
.dash-nav .biz-add { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px dashed var(--border);
  background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.dash-nav .biz-add:hover { border-color: var(--text); }
@media (max-width: 860px) { .biz-switch { grid-auto-flow: column; align-items: end; border-bottom: 0; padding: 0; margin: 0 8px 0 0; }
  .biz-switch select { min-width: 160px; } .dash-nav .biz-add { white-space: nowrap; } }

/* Profile sections: tight, even spacing (not the site's big section padding) */
.pd .pd-sec { padding: 14px 0; margin: 0; }
.pd .pd-sec:first-child { padding-top: 6px; }
.pd .pd-sec:last-child { padding-bottom: 10px; }
.pd .chips { margin-bottom: 14px; }
.pd .pd-cta { margin: 0 0 12px; }
.pd .profile-foot { margin-top: 10px; }
@media (max-width: 760px) {
  .pd .pd-sec { padding: 11px 0; }
  .pd .pd-sec:first-child { padding-top: 4px; }
}

/* No cover image: no empty band. The page starts with the logo beside the name (unless the design centres it) */
.pd.no-cover:not(.pd-hero-none):not(.pd-l-split) .member-page .profile-head { margin-top: 0; padding-top: 30px; align-items: center; flex-wrap: nowrap; }
.pd.no-cover.pd-l-split .member-page .profile-head { margin-top: 0; padding-top: 30px; }
.pd.no-cover.pd-l-split .pd-main { padding-top: 30px; }
.pd.no-cover.pd-hero-none .member-page .profile { padding-top: 30px; }

/* With a cover image the logo overlaps its bottom edge, but the name and tagline always start below it */
@media (min-width: 641px) {
  .pd.has-cover:not(.pd-l-split):not(.pd-l-minimal) .member-page .profile-head { align-items: flex-start; flex-wrap: nowrap; }
  .pd.has-cover:not(.pd-l-split):not(.pd-l-minimal) .member-page .profile-head > div:last-child { padding-top: 62px; min-width: 0; }
}

/* ---------- share panel ---------- */
.share-dialog { box-sizing: border-box; border: 0; border-radius: 24px; padding: 26px; width: calc(100% - 32px); max-width: 460px; color: var(--text, #111); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.share-dialog::backdrop { background: rgba(15,15,20,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.share-dialog h2 { font-size: 20px; margin: 0 40px 16px 0; line-height: 1.25; }
.share-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border, #e8e8e4); background: #fff; display: grid; place-items: center; cursor: pointer; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.share-opt { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 16px; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: inherit; text-decoration: none; cursor: pointer; }
.share-opt:hover { background: var(--bg, #f7f7f5); }
.share-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #111; }
.share-ic .i { width: 22px; height: 22px; }
.s-whatsapp .share-ic { background: #25d366; } .s-facebook .share-ic { background: #1877f2; } .s-x .share-ic { background: #111; }
.s-linkedin .share-ic { background: #0a66c2; } .s-telegram .share-ic { background: #229ed9; } .s-pinterest .share-ic { background: #e60023; }
.s-mail .share-ic { background: #6b6b6b; } .s-copy .share-ic { background: var(--accent, #ff6a3d); }
.share-hint { margin: 14px 0 0; font-size: 13px; color: var(--muted, #6b6b6b); }
@media (max-width: 380px) { .share-grid { grid-template-columns: repeat(3, 1fr); } }

/* Choosing how social links look (Edit profile) */
.social-style-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ss-opt { position: relative; cursor: pointer; }
.ss-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ss-card { display: grid; gap: 10px; padding: 14px; border: 1.5px solid var(--border); border-radius: 16px; background: var(--surface); font-size: 14px; height: 100%; box-sizing: border-box; }
.ss-opt input:checked + .ss-card { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.ss-opt input:focus-visible + .ss-card { outline: 3px solid var(--accent); outline-offset: 2px; }
.ss-demo { display: flex; gap: 6px; flex-wrap: wrap; min-height: 34px; align-items: center; }
.ss-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 12px; font-weight: 600; }
.ss-dot { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; }
.ss-pill .i, .ss-dot .i { width: 15px; height: 15px; }
@media (max-width: 420px) { .social-style-pick { grid-template-columns: 1fr; } }
