/* =========================================================
   Dreamy Mockups — shared SaaS components + landing / auth pages
   Loaded after dreamy.css on landing, sign in, sign up and the studio.
   ========================================================= */

:root{
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --surface-1: rgba(238,240,245,0.03);
  --surface-2: rgba(238,240,245,0.06);
  --ring: 0 0 0 2px var(--bg-base), 0 0 0 4px color-mix(in srgb, var(--accent-primary) 70%, transparent);
  --warning: #f5b544;
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
html, body{ font-family: var(--font-ui); }

/* ---------- Buttons (additions) ---------- */
.btn{ font-weight: 500; text-decoration: none; }
.btn:focus-visible{ outline: none; box-shadow: var(--ring); }
.btn--lg{ min-height: 48px; padding: 0 20px; font-size: 0.95rem; border-radius: 10px; }
a.btn{ display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Pills / badges (studio plan chip, admin) ---------- */
.pill{ display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 8px; font-size: 0.75rem; font-weight: 500; border: 1px solid var(--border-soft); background: var(--surface-2); color: var(--text-secondary); }
.pill__dot{ width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--success{ color: #8fd9b3; background: rgba(76,195,138,0.08); border-color: rgba(76,195,138,0.22); }
.pill--warning{ color: #f5d38a; background: rgba(245,181,68,0.08); border-color: rgba(245,181,68,0.24); }
.pill--danger{ color: #f2a7a9; background: rgba(229,72,77,0.08); border-color: rgba(229,72,77,0.26); }
.pill--accent{ color: var(--text-primary); background: var(--surface-2); border-color: var(--border-soft); }
.pill--accent .pill__dot{ color: var(--accent-primary); }
.grad-text{ color: inherit; }

/* ---------- Pricing cards (landing + studio plans modal) ---------- */
.pricing-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }
.price-card{ position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 16px; border: 1px solid var(--border-soft); background: var(--bg-raised); }
.price-card.is-featured{ border-color: color-mix(in srgb, var(--accent-primary) 55%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.price-card__ribbon{ display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; font-size: 0.72rem; font-weight: 500; vertical-align: 2px; color: var(--text-primary); background: color-mix(in srgb, var(--accent-primary) 22%, transparent); white-space: nowrap; }
.price-card__head h3{ margin: 0; font-size: 1rem; font-weight: 600; }
.price-card__head p{ margin: 4px 0 0; font-size: 0.85rem; color: var(--text-secondary); }
.price-card__price{ display: flex; align-items: baseline; gap: 6px; }
.price-card__price strong{ font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-card__price > span{ font-size: 0.85rem; color: var(--text-muted); }
.price-card__meta{ display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0 0 16px; border-bottom: 1px solid var(--border-softer); font-size: 0.85rem; color: var(--text-secondary); }
.price-card__meta li + li::before{ content: "·"; margin: 0 8px; color: var(--text-muted); }
.price-card__meta b{ color: var(--text-primary); font-weight: 500; }
.price-card__features{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price-card__features li, .check-list li{ position: relative; padding-left: 24px; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.45; }
.price-card__features li::before, .check-list li::before{
  content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; background: var(--success);
  -webkit-mask: var(--check-icon) center / 16px no-repeat;
          mask: var(--check-icon) center / 16px no-repeat;
}
.price-card .is-current{ pointer-events: none; opacity: 0.85; }

.topup-strip{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--border-softer); background: var(--surface-1); }
.topup-strip__text{ display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.topup-strip__text strong{ font-size: 0.95rem; font-weight: 600; }
.topup-strip__text span{ font-size: 0.85rem; color: var(--text-secondary); }
.topup-strip__items{ display: flex; flex-wrap: wrap; gap: 8px; }
.topup-chip{ display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-soft); font-size: 0.85rem; color: var(--text-secondary); }
.topup-chip b{ color: var(--text-primary); font-weight: 500; font-variant-numeric: tabular-nums; }
button.topup-chip{ cursor: pointer; font-family: inherit; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
button.topup-chip:hover{ border-color: rgba(238,240,245,0.2); background: rgba(238,240,245,0.08); }

/* =========================================================
   Landing page
   ========================================================= */
.site-body{ min-height: 100dvh; }
.site-nav{ position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 clamp(16px, 4vw, 40px); background: rgba(11,13,20,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-softer); }
.site-nav__brand{ display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 1rem; margin-right: auto; }
.site-nav__brand .brand-logo{ max-height: 28px; }
.site-nav__links{ display: none; gap: 24px; }
.site-nav__links a, .site-nav__login{ text-decoration: none; font-size: 0.875rem; color: var(--text-secondary); transition: color .15s var(--ease); }
.site-nav__links a:hover, .site-nav__login:hover{ color: var(--text-primary); }
.site-nav__cta{ display: flex; align-items: center; gap: 16px; }
@media (min-width: 820px){ .site-nav__links{ display: flex; margin-right: auto; margin-left: 32px; } .site-nav__brand{ margin-right: 0; } }

.hero{ display: grid; gap: 48px; align-items: center; max-width: 1180px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px) 48px; }
@media (min-width: 920px){ .hero{ grid-template-columns: 1.15fr 0.85fr; min-height: calc(100dvh - 64px - 140px); } }
.hero h1{ font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 20px; font-weight: 500; max-width: 12ch; text-wrap: balance; }
.hero__lead{ font-size: clamp(1rem, 1.6vw, 1.125rem); color: var(--text-secondary); line-height: 1.6; max-width: 34rem; margin: 0 0 32px; }
.hero__ctas{ display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note{ margin: 16px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.hero__proof{ display: flex; gap: 40px; margin: 40px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border-softer); max-width: 34rem; }
.hero__proof dt{ font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.hero__proof dd{ margin: 0; font-size: 1.4rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.hero__visual{ position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero__caption{ margin: 0; font-size: 0.8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* The one rich moment: a lit lockscreen in a dark room. */
.demo-phone{ width: min(288px, 72vw); aspect-ratio: 9 / 19.5; border-radius: 48px; padding: 10px; background: #15171d; box-shadow: 0 40px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 0 2px #2a2d35, inset 0 0 0 3px #0b0c10; }
.demo-phone__screen{ position: relative; height: 100%; border-radius: 38px; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding-top: 20%; color: #fff;
  background:
    radial-gradient(120% 70% at 50% 110%, #e9895b 0%, #b4566a 28%, #4a2f5e 55%, transparent 80%),
    linear-gradient(180deg, #0d1326 0%, #1b2140 45%, #3a2b4e 100%); }
.demo-phone__screen::after{ content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 32%); pointer-events: none; }
.demo-phone__island{ position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 32%; height: 26px; border-radius: 20px; background: #000; }
.demo-phone__date{ font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.85); }
.demo-phone__time{ font-size: clamp(3.6rem, 9vw, 4.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.demo-phone__widgets{ display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.demo-phone__widgets i{ font-style: normal; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.16); box-shadow: inset 0 0 0 3px rgba(255,255,255,0.55); }
.demo-phone__widgets i b{ font-size: 0.72rem; font-weight: 600; }
.demo-phone__widgets i.wide{ width: auto; padding: 0 12px; border-radius: 14px; box-shadow: none; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.demo-phone__widgets i.wide small{ font-size: 0.6rem; color: rgba(255,255,255,0.75); white-space: nowrap; }
.demo-phone__wm{ position: absolute; right: 16px; bottom: 16px; font-size: 0.7rem; font-weight: 500; color: rgba(255,255,255,0.7); }

.showcase{ max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.showcase__track{ display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x proximity; }
.showcase__track::-webkit-scrollbar{ display: none; }
.showcase__item{ flex: 0 0 auto; margin: 0; width: 112px; height: 112px; border-radius: 14px; padding: 8px; background: var(--surface-1); border: 1px solid var(--border-softer); scroll-snap-align: start; }
.showcase__item img{ width: 100%; height: 100%; object-fit: contain; }

.section{ max-width: 1180px; margin: 0 auto; padding: clamp(64px, 9vw, 112px) clamp(16px, 4vw, 40px) 0; }
.section--tight{ padding-top: clamp(56px, 7vw, 96px); }
.section__head{ max-width: 640px; margin: 0 0 32px; }
.section__head h2{ font-size: clamp(1.6rem, 3.4vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.15; }
.section__head p{ color: var(--text-secondary); margin: 0; line-height: 1.6; }

.feature-grid{ display: grid; column-gap: 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--border-softer); }
.feature{ padding: 24px 0 28px; border-bottom: 1px solid var(--border-softer); }
.feature__icon{ display: block; color: var(--text-secondary); margin-bottom: 16px; }
.feature h3{ margin: 0 0 8px; font-size: 1rem; font-weight: 500; }
.feature p{ margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.55; max-width: 34ch; }

.steps{ list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li{ padding: 24px; border-radius: 16px; border: 1px solid var(--border-softer); background: var(--bg-raised); }
.steps__n{ display: block; font-size: 0.85rem; font-variant-numeric: tabular-nums; color: var(--text-muted); margin-bottom: 24px; }
.steps h3{ margin: 0 0 8px; font-size: 1rem; font-weight: 500; }
.steps p{ margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }

.fine-print{ color: var(--text-muted); font-size: 0.85rem; margin: 20px 0 0; max-width: 620px; line-height: 1.5; }
.faq{ max-width: 760px; display: flex; flex-direction: column; border-top: 1px solid var(--border-softer); }
.faq details{ border-bottom: 1px solid var(--border-softer); }
.faq summary{ cursor: pointer; list-style: none; padding: 20px 0; font-weight: 500; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color .15s var(--ease); }
.faq summary:hover{ color: #fff; }
.faq summary:focus-visible{ outline: none; box-shadow: var(--ring); border-radius: 6px; }
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{ content: "+"; color: var(--text-muted); font-size: 1.25rem; font-weight: 400; line-height: 1; transition: transform .2s var(--ease); }
.faq details[open] summary::after{ transform: rotate(45deg); }
.faq p{ margin: 0 0 20px; color: var(--text-secondary); line-height: 1.6; font-size: 0.95rem; max-width: 60ch; }

.cta-band{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; max-width: 1100px; margin: clamp(64px, 9vw, 112px) auto 0; padding: clamp(28px, 5vw, 48px); border-radius: 20px; background: var(--bg-raised); border: 1px solid var(--border-soft); }
.cta-band h2{ margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; }
.cta-band p{ margin: 0; color: var(--text-secondary); }
@media (max-width: 1140px){ .cta-band{ margin-left: 16px; margin-right: 16px; } }

.site-footer{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 64px auto 0; padding: 32px clamp(16px, 4vw, 40px) 40px; border-top: 1px solid var(--border-softer); color: var(--text-muted); font-size: 0.85rem; }
.site-footer__brand{ display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-primary); }
.site-footer__brand .brand-logo{ max-height: 24px; }
.site-footer__links{ display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer__links a{ text-decoration: none; color: var(--text-secondary); transition: color .15s var(--ease); }
.site-footer__links a:hover{ color: var(--text-primary); }

/* One entrance on load: the hero rises a few pixels. */
@media (prefers-reduced-motion: no-preference){
  .hero__copy, .hero__visual{ animation: rise .5s var(--ease) both; }
  .hero__visual{ animation-delay: .06s; }
  @keyframes rise{ from{ opacity: 0; transform: translateY(8px); } }
}

/* =========================================================
   Auth pages (sign in / sign up)
   ========================================================= */
.auth-page{ display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-shell{ width: 100%; max-width: 920px; display: grid; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-soft); background: var(--bg-raised); box-shadow: var(--shadow-soft); }
@media (min-width: 820px){ .auth-shell{ grid-template-columns: 0.95fr 1.05fr; } }
.auth-aside{ display: none; flex-direction: column; gap: 24px; padding: 40px; background: var(--bg-base); border-right: 1px solid var(--border-softer); }
@media (min-width: 820px){ .auth-aside{ display: flex; } }
.auth-aside__brand{ display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.auth-aside h2{ font-size: 1.6rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; margin: 16px 0 0; }
.auth-aside__note{ margin: auto 0 0; font-size: 0.85rem; color: var(--text-muted); }
.check-list{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li{ font-size: 0.9rem; }
.auth-panel{ padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 40px); }
.auth-panel h1{ margin: 0; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.auth-panel__sub{ margin: 8px 0 24px; color: var(--text-secondary); font-size: 0.9rem; }
.auth-panel .auth-form{ display: flex; flex-direction: column; gap: 16px; }
.auth-panel .auth-form .field{ margin: 0; }
.auth-panel input[type="email"], .auth-panel input[type="password"], .auth-panel input[type="text"]{ height: 44px; }
.auth-switch{ margin: 24px 0 0; font-size: 0.875rem; color: var(--text-secondary); text-align: center; }
.auth-switch a, .auth-help a{ color: var(--text-primary); text-decoration: underline; text-decoration-color: rgba(238,240,245,0.3); text-underline-offset: 3px; font-weight: 500; }
.auth-switch a:hover, .auth-help a:hover{ text-decoration-color: currentColor; }
.auth-help{ margin: 8px 0 0; text-align: center; font-size: 0.8rem; color: var(--text-muted); }
.auth-fine{ margin: 0; font-size: 0.75rem; color: var(--text-muted); text-align: center; line-height: 1.45; }
.hp-field{ position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   App modal (studio: packages popup, paywall, welcome)
   ========================================================= */
.app-modal{ position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: rgba(4,4,8,0.72); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.app-modal.is-open{ opacity: 1; pointer-events: auto; }
@media (min-width: 720px){ .app-modal{ align-items: center; padding: 24px; } }
.app-modal__card{ position: relative; width: 100%; max-width: 1000px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; padding: 26px clamp(16px, 4vw, 30px) calc(22px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: var(--bg-raised); border: 1px solid var(--border-soft); box-shadow: 0 30px 90px rgba(0,0,0,0.6); transform: translateY(16px); transition: transform .3s var(--ease); }
@media (min-width: 720px){ .app-modal__card{ border-radius: 20px; } }
.app-modal.is-open .app-modal__card{ transform: none; }
.app-modal__close{ position: absolute; top: 14px; right: 14px; min-width: 36px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-soft); background: var(--surface-2); color: var(--text-primary); font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.app-modal__close:disabled{ cursor: default; opacity: 0.7; }
.app-modal__head{ text-align: center; max-width: 560px; margin: 0 auto 22px; padding: 0 30px; }
.app-modal__head h2{ margin: 8px 0 8px; font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; }
.app-modal__head p{ margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.app-modal__foot{ margin-top: 16px; text-align: center; font-size: 0.78rem; color: var(--text-muted); }
.app-modal .pricing-grid{ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* =========================================================
   Help button (WhatsApp support) — landing, sign in, sign up
   ========================================================= */
.support-fab{
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px 0 14px; border-radius: 24px;
  background: var(--bg-raised-2); color: var(--text-primary);
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
  text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: background-color .15s var(--ease), transform .12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.support-fab svg{ color: #4cc38a; flex-shrink: 0; }
.support-fab:hover{ background: #222734; }
.support-fab:active{ transform: scale(0.97); }
.support-fab:focus-visible{ outline: none; box-shadow: var(--ring); }
.support-fab__text{ display: flex; flex-direction: column; line-height: 1.2; }
.support-fab__hours{ font-size: 0.72rem; font-weight: 400; color: var(--text-muted); }
@media (max-width: 520px){
  .support-fab{ padding: 0; width: 48px; justify-content: center; }
  .support-fab__text{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* =========================================================
   Currency (PKR for Pakistan, USD elsewhere) — see currency_boot.php
   ========================================================= */
.cur-usd{ display: none; }
html[data-currency="USD"] .cur-usd{ display: inline; }
html[data-currency="USD"] .cur-pkr{ display: none; }
.cur-switch{ display: inline-flex; gap: 2px; margin-top: 16px; padding: 2px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-soft); }
.cur-switch button{ min-width: 52px; height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); font: inherit; font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease); }
.cur-switch button:hover{ color: var(--text-primary); }
.cur-switch button[aria-pressed="true"]{ background: var(--bg-raised-2); color: var(--text-primary); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px var(--border-soft); }
.cur-switch button:focus-visible{ outline: none; box-shadow: var(--ring); }
.app-modal__head .cur-switch, .shop-plans > .cur-switch{ margin: 12px auto 0; }
.shop-plans > .cur-switch{ display: flex; width: max-content; margin: 0 0 12px; }

/* Help menu when there are several support contacts */
.support-menu{ position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
.support-menu > summary{ position: static; list-style: none; cursor: pointer; }
.support-menu > summary::-webkit-details-marker{ display: none; }
.support-menu--icon{ position: relative; right: auto; bottom: auto; z-index: 50; }
.support-menu__panel{ position: absolute; right: 0; bottom: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); padding: 8px; border-radius: 16px; background: var(--bg-raised); border: 1px solid var(--border-soft); box-shadow: 0 20px 48px rgba(0,0,0,0.5); transform-origin: bottom right; }
.support-menu--icon .support-menu__panel{ top: calc(100% + 8px); bottom: auto; transform-origin: top right; }
@media (prefers-reduced-motion: no-preference){
  .support-menu[open] .support-menu__panel{ animation: menu-in .18s var(--ease); }
  @keyframes menu-in{ from{ opacity: 0; transform: translateY(4px) scale(0.98); } }
}
.support-menu__title{ display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 8px 8px 12px; font-size: 0.85rem; font-weight: 500; color: var(--text-primary); }
.support-menu__title small{ font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }
.support-menu__item{ display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--text-primary); transition: background-color .15s var(--ease); }
.support-menu__item:hover, .support-menu__item:focus-visible{ background: var(--surface-2); outline: none; }
.support-menu__avatar{ flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(76,195,138,0.12); color: #8fd9b3; font-size: 0.9rem; font-weight: 600; }
.support-menu__who{ display: flex; flex-direction: column; min-width: 0; flex: 1; }
.support-menu__who strong{ font-size: 0.9rem; font-weight: 500; }
.support-menu__who small{ font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.support-menu__go{ color: var(--text-muted); flex-shrink: 0; }

/* =========================================================
   Public SEO pages: mockup gallery, guides, tools, footer
   ========================================================= */
.page-top{ padding-top: clamp(32px, 6vw, 64px); }
.crumbs{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: 0.85rem; color: var(--text-muted); }
.crumbs a{ color: var(--text-secondary); text-decoration: none; }
.crumbs a:hover{ color: var(--text-primary); }
.page-head{ display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-head h1, .guide__head h1{ margin: 0 0 12px; font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
.page-head p{ margin: 0; max-width: 38rem; color: var(--text-secondary); line-height: 1.6; }

.gallery-search{ position: relative; display: flex; align-items: center; max-width: 420px; margin-bottom: 24px; color: var(--text-muted); }
.gallery-search svg{ position: absolute; left: 14px; pointer-events: none; }
.gallery-search input{ width: 100%; height: 44px; padding: 0 64px 0 40px; border-radius: 10px; border: 1px solid var(--border-soft); background: rgba(238,240,245,0.04); color: var(--text-primary); font: inherit; font-size: 0.95rem; outline: none; transition: border-color .15s var(--ease); }
.gallery-search input:focus{ border-color: var(--accent-primary); }
.gallery-search__count{ position: absolute; right: 14px; font-size: 0.8rem; font-variant-numeric: tabular-nums; }

.gallery{ list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.gallery__item{ display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 12px; border-radius: 14px; background: var(--surface-1); border: 1px solid var(--border-softer); }
.gallery__item[hidden]{ display: none; }
.gallery__item img{ width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: rgba(238,240,245,0.03); }
.gallery__item span{ font-size: 0.78rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.gallery--strip{ grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); margin: 40px 0 0; }
.gallery-empty{ color: var(--text-muted); }
.showcase__more{ margin: 16px 0 0; font-size: 0.9rem; }
.showcase__more a, .page-head p a{ color: var(--text-primary); text-decoration: underline; text-decoration-color: rgba(238,240,245,0.3); text-underline-offset: 3px; }

.guide__head{ max-width: 46rem; }
.guide__head p{ margin: 0 0 16px; color: var(--text-secondary); font-size: 1.05rem; line-height: 1.65; }
.guide__head .hero__ctas{ margin-top: 24px; }
.guide__block{ margin-top: clamp(48px, 7vw, 80px); }
.guide__block > h2{ margin: 0 0 24px; font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 500; letter-spacing: -0.02em; }
.check-list--wide{ display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 32px; max-width: 900px; }

.tool-links{ display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tool-link{ display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 12px; background: var(--bg-raised); border: 1px solid var(--border-softer); color: var(--text-primary); text-decoration: none; font-size: 0.95rem; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.tool-link svg{ color: var(--text-muted); transition: transform .15s var(--ease), color .15s var(--ease); }
.tool-link:hover{ border-color: rgba(238,240,245,0.16); background: var(--bg-raised-2); }
.tool-link:hover svg{ color: var(--text-primary); transform: translateX(2px); }
.tool-link:focus-visible{ outline: none; box-shadow: var(--ring); }

.site-footer--full{ display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); align-items: start; gap: 32px; }
.site-footer__col{ display: flex; flex-direction: column; gap: 10px; }
.site-footer__col h2{ margin: 0 0 4px; font-size: 0.85rem; font-weight: 500; color: var(--text-primary); }
.site-footer__col a{ color: var(--text-secondary); text-decoration: none; transition: color .15s var(--ease); }
.site-footer__col a:hover{ color: var(--text-primary); }
.site-footer__about p{ margin: 4px 0 0; max-width: 28ch; line-height: 1.5; }
.site-footer__copy{ grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--border-softer); }
@media (max-width: 760px){ .site-footer--full{ grid-template-columns: 1fr 1fr; } .site-footer__about{ grid-column: 1 / -1; } }
