/* Donats — shared product styles. The viewport, not a phone-frame wrapper,
   owns scrolling so Telegram and desktop keep the same sticky behavior. */
:root {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #191919;
  background: #f4f1e9;
  font-synthesis: none;
  --ink: #191919;
  --paper: #f4f1e9;
  --white: #fffdf8;
  --muted: #706a62;
  --yellow: #ffe35c;
  --purple: #ad87f7;
  --lavender: #eee5ff;
  --line: #dcd5c9;
  --ds-device-safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px));
  --ds-device-safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --ds-safe-top: calc(var(--ds-device-safe-top) + var(--tg-content-safe-area-inset-top, 0px));
  --ds-safe-bottom: calc(var(--ds-device-safe-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(100px + var(--ds-safe-top)); }
body { min-width: 320px; margin: 0; font-size: 14px; line-height: 1.5; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #8150da; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }
button, a, input, textarea { touch-action: manipulation; }
button, input, textarea { -webkit-text-fill-color: currentColor; }
img { max-width: 100%; }
svg { display: inline-block; width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; }
strong, b { font-weight: 800; }
button { color: var(--ink); }
button:not(:disabled) { transition: background-color .15s, border-color .15s, box-shadow .15s; }
[hidden] { display: none !important; }

.app { position: relative; width: min(600px, 100%); min-height: 100dvh; margin: auto; background: var(--paper); }
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
  min-height: calc(78px + var(--ds-safe-top)); padding: calc(14px + var(--ds-safe-top)) 20px 14px;
  border-bottom: 2px solid var(--ink); border-radius: 0 0 20px 20px; background: var(--paper);
}
.logo { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -.055em; text-decoration: none; }
.logo i { color: #8b5ce7; font-style: normal; }
.logo__mark { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1.8px solid var(--ink); border-radius: 50%; background: var(--yellow); transform: rotate(-12deg); }
.logo__mark svg { width: 25px; height: 25px; }
.top__balance { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 42px; margin-left: auto; padding: 4px 11px 4px 5px; border: 1.6px solid var(--ink); border-radius: 23px; background: #fff; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.top__balance span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1.4px solid var(--ink); border-radius: 50%; background: var(--yellow); }
.top__balance svg { width: 21px; height: 21px; }
.top__back { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 9px; border: 1.5px solid var(--ink); border-radius: 50%; background: #fff; }
.top__profile, .top > .profile-avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0; border: 1.8px solid var(--ink); border-radius: 50%; background: var(--purple); font-weight: 800; }
.demo, .role-badge { margin-left: auto; padding: 6px 10px; border: 1px solid #cec5b8; border-radius: 20px; background: var(--white); font-size: 11px; font-weight: 800; white-space: nowrap; }
.role-badge { background: var(--lavender); }
.app--focus .logo { font-size: 22px; }
.app--focus .logo__mark { width: 31px; height: 31px; }
.main { padding: 28px 20px calc(126px + var(--ds-safe-bottom)); }
.app--focus .main { padding-bottom: calc(28px + var(--ds-safe-bottom)); }
.page-head { margin: 0 0 22px; }
.eyebrow { color: #7545d0; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.page-head h1 { margin: 8px 0 9px; font-size: clamp(29px, 7.5vw, 36px); font-weight: 800; line-height: 1.14; letter-spacing: -.045em; overflow-wrap: anywhere; }
.page-head p { max-width: 560px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.section-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 25px 0 12px; }
.section-line h2 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.035em; }
.section-line > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.section-line button { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 4px 0 4px 8px; border: 0; background: none; font-size: 12px; font-weight: 800; }
.section-line button svg { width: 16px; height: 16px; }

/* Home */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 220px; padding: 21px; border: 2px solid var(--ink); border-radius: 25px; background: var(--yellow); box-shadow: 4px 5px 0 var(--ink); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .13; background: radial-gradient(var(--ink) .7px, transparent .8px) 0 0 / 10px 10px; }
.hero .sticker { display: inline-block; position: relative; z-index: 2; padding: 5px 8px; border: 1.5px solid var(--ink); border-radius: 5px; background: var(--white); font-size: 10px; font-weight: 800; transform: rotate(-3deg); }
.hero h1 { position: relative; z-index: 2; max-width: 65%; margin: 23px 0 10px; font-size: 34px; line-height: 1.1; letter-spacing: -.045em; }
.hero p { position: relative; z-index: 2; max-width: 58%; margin: 0; font-size: 13px; font-weight: 600; line-height: 1.45; }
.hero img { position: absolute; right: -10px; bottom: -9px; width: 46%; max-width: 230px; height: auto; aspect-ratio: 1; object-fit: contain; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 0; }
.quick-card { position: relative; min-height: 133px; padding: 14px; border: 2px solid var(--ink); border-radius: 20px; background: #fff; text-align: left; }
.quick-card--dark { color: var(--ink); background: var(--yellow); }
.quick-card--purple { background: var(--purple); }
.quick-card img { display: block; width: 58px; height: 58px; object-fit: contain; }
.quick-card strong { display: block; margin-top: 8px; padding-right: 10px; font-size: 17px; line-height: 1.16; letter-spacing: -.025em; }
.quick-card > span { position: absolute; right: 11px; top: 15px; }
.quick-card > span svg { width: 23px; height: 23px; }
.balance-card, .wallet-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 94px; margin: 20px 0 0; padding: 18px; border: 2px solid var(--ink); border-radius: 20px; background: #fff; text-align: left; }
.balance-card small, .wallet-card small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.balance-card strong, .wallet-card strong { display: block; margin-top: 5px; font-size: 30px; line-height: 1.12; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.balance-card strong span, .wallet-card strong span { font-size: .62em; }
.balance-card__mark { display: grid; place-items: center; flex: none; width: 49px; height: 49px; border: 1.7px solid var(--ink); border-radius: 15px; background: var(--purple); transform: rotate(-7deg); }
.balance-card__mark svg { width: 29px; height: 29px; }
.balance-card--compact { min-height: 76px; margin: 0; padding: 14px 16px; }
.rate-strip, .recent { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 0; padding: 14px 2px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.rate-strip strong { color: var(--ink); }
.recent { width: 100%; padding: 14px; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); text-align: left; }

/* Authors and identity */
.search-field, .catalog-search { display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 13px; border: 1.5px solid var(--ink); border-radius: 15px; background: #fff; }
.search-field input, .catalog-search input { width: 100%; min-width: 0; min-height: 48px; border: 0; outline: none; background: transparent; font-size: 16px; }
.search-field:focus-within, .catalog-search:focus-within { box-shadow: 3px 3px 0 var(--purple); }
.author-grid, .creator-list { display: grid; gap: 12px; margin-top: 16px; }
.author-card, .creator-card, .creator-teaser { position: relative; display: flex; align-items: center; gap: 13px; width: 100%; min-width: 0; min-height: 104px; padding: 14px; border: 1.5px solid var(--ink); border-radius: 19px; background: #fff; text-align: left; }
.author-card > :is(div,span):not(.author-avatar), .creator-card > div, .creator-teaser > span { min-width: 0; flex: 1; }
.author-card strong, .creator-card strong, .creator-teaser strong { display: block; margin: 2px 0; font-size: 18px; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.author-card small, .author-card p, .author-card em, .creator-card small, .creator-teaser small, .creator-teaser em { display: block; margin: 4px 0 0; color: var(--muted); font-size: 12px; font-weight: 500; font-style: normal; line-height: 1.4; overflow-wrap: anywhere; }
.author-card > svg, .author-card > b, .creator-teaser > b { flex: none; margin-left: auto; }
.author-avatar, .avatar, .creator-teaser > img { display: grid; place-items: center; flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: 18px; background: var(--lavender); object-fit: cover; }
.author-avatar img, .avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-identity, .identity-card { display: flex; align-items: center; gap: 15px; min-height: 109px; padding: 18px; border: 1.8px solid var(--ink); border-radius: 21px; background: #fff; }
.profile-identity > div, .identity-card > div { min-width: 0; }
.profile-identity strong, .identity-card strong { display: block; font-size: 23px; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.profile-identity p, .profile-identity small, .identity-card small { display: block; margin: 4px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.profile-avatar { display: grid; place-items: center; flex: none; width: 62px; height: 62px; overflow: hidden; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--purple); font-size: 24px; font-weight: 800; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-cover, .creator-hero { position: relative; overflow: hidden; min-height: 170px; padding: 18px; border: 2px solid var(--ink); border-radius: 22px; background: var(--purple); }
.creator-cover > img, .creator-hero > img { position: absolute; top: 6px; right: -5px; width: 140px; height: 140px; object-fit: contain; }
.creator-cover > div, .creator-hero > div { position: relative; z-index: 1; }
.creator-cover strong, .creator-hero strong { display: block; max-width: 70%; margin: 6px 0; font-size: 27px; line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
.creator-cover p, .creator-cover span, .creator-cover small, .creator-hero span, .creator-hero small { display: block; max-width: 68%; margin: 5px 0; font-size: 13px; line-height: 1.4; }
.goal-progress { position: relative; z-index: 2; margin-top: 17px; padding: 12px; border: 1.5px solid var(--ink); border-radius: 13px; background: #fff; }
.goal-progress > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.goal-progress span { max-width: none; margin: 0; font-size: 12px; }
.goal-progress strong { max-width: none; margin: 0; font-size: 12px; white-space: nowrap; letter-spacing: 0; }
.goal-progress__rail, .level-progress__rail { overflow: hidden; height: 8px; margin-top: 10px; border-radius: 10px; background: #e8e2d9; }
.goal-progress__rail i, .level-progress__rail i { display: block; max-width: 100%; height: 100%; border-radius: inherit; background: var(--yellow); }
.creator-description { margin: 16px 0; font-size: 14px; color: var(--muted); }
.mini-balance { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 13px; }
.mini-balance span { color: var(--muted); }

/* Form controls use 16px to prevent iOS focus zoom. */
.form-grid, .edit-grid, .editor-form { display: grid; gap: 14px; }
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.package { min-height: 80px; padding: 11px; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; text-align: left; }
.package.active, .package[aria-pressed='true'] { background: var(--yellow); box-shadow: 2px 3px 0 var(--ink); }
.package strong { display: block; font-size: 23px; line-height: 1.15; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.package small, .package span { display: block; margin-top: 5px; color: #625b53; font-size: 12px; line-height: 1.25; }
.field-label { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; margin: 17px 0 7px; font-size: 13px; font-weight: 800; }
.field-label em, .field-label small { color: var(--muted); font-size: 12px; font-style: normal; font-weight: 500; }
.field-wrap { display: flex; align-items: center; gap: 8px; min-height: 51px; padding: 0 13px; border: 1.5px solid var(--ink); border-radius: 13px; background: #fff; }
.field-wrap:focus-within { box-shadow: 3px 3px 0 var(--purple); }
.field-wrap input { width: 100%; min-width: 0; min-height: 48px; border: 0; outline: none; background: transparent; font-size: 16px; font-weight: 700; }
.field-wrap > span { flex: none; color: var(--muted); font-size: 12px; font-weight: 700; }
.field-wrap button { flex: none; min-height: 36px; border: 0; border-radius: 8px; padding: 5px 8px; background: var(--yellow); font-size: 12px; font-weight: 800; }
.textarea-field, .message-field { display: block; width: 100%; min-height: 98px; padding: 12px 13px; border: 1.5px solid var(--ink); border-radius: 13px; outline: none; background: #fff; font-size: 16px; line-height: 1.5; resize: vertical; }
.textarea-field:focus, .message-field:focus { box-shadow: 3px 3px 0 var(--purple); }
input::placeholder, textarea::placeholder { color: #8f877d; opacity: 1; font-weight: 400; }
input, textarea, select { scroll-margin-block: calc(100px + var(--ds-safe-top)) 120px; }
select { width: 100%; min-height: 50px; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 12px; background: #fff; font-size: 16px; }
.field-help { margin: 7px 1px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.form-error { margin: 8px 1px; color: #a12c32; font-size: 13px; font-weight: 700; line-height: 1.4; }
[aria-invalid='true'] { border-color: #a12c32; }
.methods { display: grid; gap: 9px; }
.method { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 15px; background: #fff; text-align: left; }
.method.active, .method[aria-pressed='true'] { background: var(--lavender); box-shadow: 2px 3px 0 var(--ink); }
.method__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1.5px solid var(--ink); border-radius: 11px; background: var(--yellow); font-size: 12px; font-weight: 800; }
.method__icon--card { background: #ffc5ab; }
.method__icon--crypto { background: var(--purple); }
.method__icon svg { width: 23px; height: 23px; }
.method__copy { display: block; min-width: 0; flex: 1; }
.method__copy strong, .method__copy small { display: block; }
.method__copy strong { font-size: 14px; }
.method__copy small { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.method > i { display: block; flex: none; width: 19px; height: 19px; border: 1.3px solid var(--ink); border-radius: 50%; background: #fff; }
.method.active > i::after, .method[aria-pressed='true'] > i::after { content: ''; display: block; width: 9px; height: 9px; margin: 3.7px; border-radius: 50%; background: #8858de; }
.order-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 17px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--lavender); }
.order-summary span { font-size: 13px; }
.order-summary strong { font-size: 22px; line-height: 1.2; letter-spacing: -.025em; text-align: right; font-variant-numeric: tabular-nums; }
.primary { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; margin: 17px 0 0; padding: 13px 16px; border: 2px solid var(--ink); border-radius: 15px; background: var(--yellow); color: var(--ink); text-align: left; font-size: 14px; font-weight: 800; line-height: 1.35; }
.primary b { flex: none; color: var(--ink); line-height: 1; }
.primary svg { width: 23px; height: 23px; }
.secondary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 10px; padding: 11px 14px; border: 1.5px solid var(--ink); border-radius: 13px; background: #fff; text-align: center; font-size: 13px; font-weight: 800; line-height: 1.4; }
.text-action { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; margin: 8px auto 0; padding: 9px; border: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 700; }
.text-action svg { width: 16px; height: 16px; }
.action-dock, .sticky-action { position: sticky; bottom: 0; z-index: 15; margin: 18px -8px calc(-8px - var(--ds-safe-bottom)); padding: 8px 8px calc(8px + var(--ds-safe-bottom)); border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; background: var(--paper); }
.action-dock .primary, .sticky-action .primary { margin-top: 5px; }
.action-dock .order-summary { margin: 0 0 6px; padding: 9px 8px; background: none; }
.action-dock .quiet { margin: 7px 3px 0; font-size: 12px; }
.quiet, .fine-print { margin: 12px 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.fine-print { text-align: center; }
.context-card, .context-note, .flow-note { margin: 0 0 18px; padding: 14px; border: 1.5px solid var(--ink); border-radius: 15px; background: var(--lavender); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.context-card strong { display: block; margin-bottom: 3px; font-size: 14px; }
.context-card p { margin: 4px 0; }
.context-card .text-action { justify-content: flex-start; padding: 7px 0 0; margin: 0; }
.flow-note { margin-top: 14px; background: var(--yellow); }

/* Checkout, creator balance and payout */
.topup-lead, .checkout-hero, .creator-dashboard, .payout-hero { position: relative; overflow: hidden; border: 1.8px solid var(--ink); border-radius: 20px; }
.topup-lead { display: flex; justify-content: space-between; align-items: center; min-height: 78px; padding: 12px 16px; background: var(--lavender); }
.topup-lead small, .checkout-hero small, .payout-hero small, .creator-dashboard small { display: block; font-size: 11px; font-weight: 700; }
.topup-lead strong { display: block; margin-top: 5px; font-size: 22px; letter-spacing: -.025em; }
.topup-lead img { width: 66px; height: 66px; object-fit: contain; margin: -8px 0; }
.checkout-hero, .payout-hero { display: flex; align-items: center; min-height: 115px; padding: 17px; background: var(--yellow); }
.checkout-hero > div, .payout-hero > div { position: relative; z-index: 1; max-width: 70%; }
.checkout-hero strong { display: block; margin: 7px 0 3px; font-size: 30px; line-height: 1.1; letter-spacing: -.035em; }
.checkout-hero strong span { font-size: 17px; }
.checkout-hero em { font-size: 12px; font-style: normal; }
.checkout-hero img, .payout-hero img { position: absolute; right: -2px; bottom: -10px; width: 122px; height: 122px; object-fit: contain; }
.payout-hero { background: var(--lavender); }
.payout-hero strong { display: block; margin: 6px 0; font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.payout-hero span { display: block; font-size: 12px; }
.details-card { margin: 16px 0 0; padding: 2px 16px; border: 1.5px solid var(--ink); border-radius: 17px; background: #fff; }
.details-card > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 49px; padding: 14px 0; border-bottom: 1px solid #e8e2d8; }
.details-card > div:last-child { border-bottom: 0; }
.details-card span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.details-card strong { max-width: 62%; font-size: 13px; font-weight: 700; text-align: right; line-height: 1.4; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.details-card .details-card__total strong { color: #7444d0; font-size: 20px; }
.demo-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 13px; background: var(--lavender); }
.demo-note > span { flex: none; }
.demo-note svg { width: 19px; height: 19px; }
.demo-note p { margin: 0; color: #60546d; font-size: 12px; line-height: 1.5; }
.creator-dashboard { min-height: 131px; padding: 18px; background: var(--purple); }
.creator-dashboard > div { position: relative; z-index: 1; max-width: 72%; }
.creator-dashboard strong { display: block; margin-top: 9px; font-size: 28px; line-height: 1.2; letter-spacing: -.035em; }
.creator-dashboard span { display: block; margin-top: 6px; font-size: 12px; }
.creator-dashboard img { position: absolute; right: -5px; top: -5px; width: 143px; height: 143px; object-fit: contain; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 15px 0; }
.stats > div { min-height: 105px; padding: 14px; border: 1.5px solid var(--ink); border-radius: 16px; background: #fff; }
.stats small, .stats strong, .stats span { display: block; }
.stats small { color: var(--muted); font-size: 12px; }
.stats strong { margin-top: 7px; font-size: 27px; line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.stats span { margin-top: 4px; font-size: 12px; }
.payout-preview { margin: 12px 0; padding: 15px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--yellow); }
.payout-preview > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.payout-preview strong { font-size: 22px; letter-spacing: -.025em; }
.payout-preview small { display: block; margin-top: 7px; color: #625b51; font-size: 12px; }
.link-card { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1.5px solid var(--ink); border-radius: 16px; background: #fff; }
.link-card > div { min-width: 0; }
.link-card img { width: 58px; height: 58px; object-fit: contain; }
.link-card small, .link-card strong, .link-card span { display: block; overflow-wrap: anywhere; }
.link-card small { color: #7545d0; font-size: 11px; font-weight: 800; }
.link-card strong { margin: 3px 0; font-size: 16px; line-height: 1.3; }
.link-card span { color: var(--muted); font-size: 12px; }

/* Wallet and operation details */
.filter-row, .history-filters { display: flex; gap: 7px; overflow-x: auto; margin: 20px 0 14px; padding-bottom: 4px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar, .history-filters::-webkit-scrollbar { display: none; }
.filter-chip, .history-filters button { flex: none; min-height: 40px; padding: 8px 13px; border: 1px solid #c9c0b5; border-radius: 22px; background: #fff; font-size: 12px; font-weight: 700; }
.filter-chip.active, .filter-chip[aria-pressed='true'], .history-filters button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.history-list { border-top: 1px solid var(--line); }
.history-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.history-row__icon, .history-row__art { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1.2px solid var(--ink); border-radius: 12px; background: var(--lavender); }
.history-row__icon svg { width: 22px; height: 22px; }
.history-row__art img { width: 40px; height: 40px; object-fit: contain; }
.history-row__copy, .history-row > span:nth-child(2) { min-width: 0; flex: 1; }
.history-row strong, .history-row small { display: block; }
.history-row strong { font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.history-row small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.history-row__amount, .history-row > b { flex: none; max-width: 34%; font-size: 13px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.history-row__amount small { font-size: 11px; font-weight: 500; }
.history-row .is-out { color: #7545d0; }
.empty-state, .history-empty { margin: 18px 0; padding: 23px 18px; border: 1.5px dashed #b8ad9f; border-radius: 19px; background: #fffcf75c; text-align: center; }
.empty-state img, .history-empty img { width: 112px; height: 112px; object-fit: contain; }
.empty-state > svg { width: 44px; height: 44px; margin-bottom: 10px; }
.empty-state strong, .empty-state h2, .history-empty strong { display: block; margin: 5px 0; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
.empty-state p, .history-empty p { max-width: 340px; margin: 6px auto 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.empty-inline { margin: 14px 0; padding: 13px; border: 1.5px dashed #b8ad9f; border-radius: 14px; color: var(--muted); text-align: center; font-size: 13px; }
.status-card { position: relative; margin: 0 0 18px; padding: 20px; border: 1.8px solid var(--ink); border-radius: 22px; background: var(--lavender); text-align: center; }
.status-card h1, .status-card h2 { margin: 12px 0 7px; font-size: 27px; line-height: 1.15; letter-spacing: -.035em; }
.status-card p { margin: 7px auto 0; max-width: 430px; font-size: 13px; color: #62556f; }
.status-card > img { width: 120px; height: 120px; object-fit: contain; }
.status-symbol { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto; border: 1.5px solid var(--ink); border-radius: 50%; background: #fff; }
.status-symbol svg { width: 27px; height: 27px; }
.status--success { background: var(--yellow); }
.status--failed { background: #ffe4df; }
.status--cancelled { background: #e9e4dc; }
.status--pending { background: var(--lavender); }
.status-badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 8px; border: 1px solid #d5cdbf; border-radius: 20px; background: var(--white); color: #5c554c; font-size: 11px; font-weight: 700; line-height: 1.4; }
.status-badge svg { width: 14px; height: 14px; }
.demo-controls { margin: 18px 0; padding: 14px; border: 1px dashed #b5a696; border-radius: 15px; background: #fffcf7; }
.demo-controls h3, .demo-controls strong { margin: 0; font-size: 13px; }
.demo-controls p, .demo-controls small { display: block; margin: 6px 0; color: var(--muted); font-size: 12px; }
.demo-controls .secondary { min-height: 44px; }
.confirmation-panel { margin: 16px 0; padding: 16px; border: 1.5px solid #a12c32; border-radius: 17px; background: #fff1ee; }
.confirmation-panel p { font-size: 13px; }
.confirmation-panel .primary { background: #a12c32; border-color: #a12c32; }
.toast { margin: 12px 0; padding: 12px 14px; border: 1px solid #c5b1ed; border-radius: 12px; background: var(--lavender); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.result-art { display: grid; place-items: center; position: relative; overflow: hidden; height: 135px; border: 1.8px solid var(--ink); border-radius: 22px; background: var(--yellow); }
.result-art--support { background: var(--purple); }
.result-art--payout { background: var(--lavender); }
.result-art img { width: 145px; height: 145px; object-fit: contain; }
.result-art > span { position: absolute; right: 18px; top: 17px; transform: rotate(14deg); }
.result-art + .page-head { margin-top: 20px; }

/* Profile, settings and help */
.profile-hero { position: relative; overflow: hidden; min-height: 130px; margin-top: 18px; padding: 18px; border: 1.5px solid var(--ink); border-radius: 20px; background: var(--yellow); }
.profile-hero small { display: block; font-size: 11px; font-weight: 800; }
.profile-hero strong { display: block; position: relative; z-index: 1; margin: 8px 0; font-size: 34px; line-height: 1.1; letter-spacing: -.035em; }
.profile-hero span { display: block; position: relative; z-index: 1; max-width: 68%; font-size: 12px; }
.profile-hero img { position: absolute; top: -2px; right: 0; width: 137px; height: 137px; object-fit: contain; }
.level-progress { margin: 12px 0 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.level-progress > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.level-progress span { color: var(--muted); }
.level-progress__rail i { background: var(--purple); }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.profile-stats > div { min-height: 82px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.profile-stats strong, .profile-stats span { display: block; }
.profile-stats strong { font-size: 25px; line-height: 1.2; }
.profile-stats span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.profile-action, .settings-list > button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; margin: 10px 0; padding: 13px; border: 1.5px solid var(--ink); border-radius: 16px; background: #fff; text-align: left; }
.profile-action__icon, .profile-action__art { display: grid; place-items: center; flex: none; width: 43px; height: 43px; border: 1.3px solid var(--ink); border-radius: 12px; background: var(--yellow); }
.profile-action__icon svg { width: 24px; height: 24px; }
.profile-action__art { background: var(--lavender); }
.profile-action__art img { width: 47px; height: 47px; object-fit: contain; }
.profile-action > span:nth-child(2), .settings-list > button > span { flex: 1; min-width: 0; }
.profile-action strong, .profile-action small, .settings-list strong, .settings-list small { display: block; }
.profile-action strong, .settings-list strong { font-size: 14px; }
.profile-action small, .settings-list small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.profile-action b svg { width: 22px; height: 22px; }
.profile-foot { margin: 25px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.project-switch { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 83px; margin: 16px 0 0; padding: 14px; border: 1.5px solid var(--ink); border-radius: 17px; background: #fff; text-align: left; }
.project-switch__mark { display: grid; place-items: center; flex: none; width: 45px; height: 45px; border: 1.5px solid var(--ink); border-radius: 13px; background: var(--yellow); }
.project-switch > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.project-switch small { color: var(--muted); font-size: 10px; font-weight: 700; }
.project-switch strong { font-size: 16px; }
.project-switch em { color: var(--muted); font-size: 12px; font-style: normal; }
.project-switch b { margin-left: auto; }
.main--help details { margin: 10px 0; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.main--help summary { cursor: pointer; font-weight: 800; }
.main--help details p { color: var(--muted); font-size: 13px; }

/* Floating navigation: no background layer outside the oval. */
.tabs { position: fixed; z-index: 35; left: 50%; bottom: calc(12px + var(--ds-safe-bottom)); display: flex; align-items: center; justify-content: space-around; width: min(520px, calc(100% - 24px)); height: 79px; padding: 5px 3px; transform: translateX(-50%); border: 1.5px solid #e5ddcf; border-radius: 50px; background: #fffdf8; box-shadow: 0 9px 29px #19191920; }
.tab { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 69px; padding: 0 1px; border: 0; background: transparent; color: #79746d; font-size: 11px; font-weight: 700; line-height: 1.15; }
.tab.active, .tab[aria-current='page'] { color: var(--ink); }
.tab__icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; }
.tab__icon svg { width: 25px; height: 25px; }
.tab.active:not(.tab--donut) .tab__icon { border: 1.3px solid var(--ink); background: var(--yellow); }
.tab--donut .tab__icon { width: 59px; height: 59px; margin-top: -17px; border: 2px solid var(--ink); background: var(--yellow); box-shadow: 2px 3px 0 var(--ink); }
.tab--donut .tab__icon img { width: 55px; height: 55px; object-fit: contain; }
.tab--donut.active .tab__icon { background: var(--purple); }

/* The app scrolls naturally at every width; no overflow:hidden ancestor. */
@media (min-width: 760px) {
  :root { background: #eae5dc; }
  body { background: #eae5dc; }
  .app { width: min(1120px, calc(100% - 48px)); min-height: 100dvh; border-right: 1px solid #d8d0c3; border-left: 1px solid #d8d0c3; }
  .top { padding-right: 34px; padding-left: 34px; min-height: 86px; }
  .main { max-width: 880px; margin: auto; padding: 34px 30px 135px; }
  .app--focus .main { max-width: 690px; padding-bottom: calc(34px + var(--ds-safe-bottom)); }
  .hero { min-height: 260px; padding: 28px 32px; }
  .hero h1 { margin-top: 25px; font-size: 45px; }
  .hero p { max-width: 370px; font-size: 15px; }
  .hero img { right: 25px; width: 270px; max-width: 270px; }
  .hero .sticker { font-size: 11px; }
  .quick-card { min-height: 120px; padding-left: 101px; display: flex; align-items: center; }
  .quick-card img { position: absolute; left: 20px; width: 68px; height: 68px; }
  .quick-card strong { margin: 0; font-size: 20px; }
  .quick-card > span { top: auto; bottom: 15px; right: 15px; }
  .author-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author-card { min-height: 117px; }
  .page-head h1 { font-size: 38px; }
  .main--profile { max-width: 700px; }
  .main--wallet { max-width: 760px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { bottom: calc(18px + var(--ds-safe-bottom)); }
  .creator-cover { min-height: 185px; }
  .creator-cover > img { width: 175px; height: 175px; }
}
@media (min-width: 1060px) {
  .app:not(.app--focus) .main { margin-left: 204px; max-width: none; padding-right: 34px; padding-left: 30px; padding-bottom: 44px; }
  .app:not(.app--focus) .tabs { left: max(24px, calc((100vw - 1120px)/2)); top: calc(113px + var(--ds-safe-top)); bottom: auto; width: 190px; height: auto; padding: 14px 9px; transform: none; flex-direction: column; align-items: stretch; gap: 9px; border: 0; border-radius: 22px; background: transparent; box-shadow: none; }
  .app:not(.app--focus) .tab { flex: none; flex-direction: row; justify-content: flex-start; gap: 11px; width: 100%; min-height: 54px; height: auto; padding: 9px 12px; border: 1px solid transparent; border-radius: 16px; font-size: 13px; }
  .app:not(.app--focus) .tab.active { border-color: var(--ink); background: #fff; }
  .app:not(.app--focus) .tab__icon { width: 34px; height: 34px; }
  .app:not(.app--focus) .tab--donut .tab__icon { width: 37px; height: 37px; margin: 0; box-shadow: none; }
  .app:not(.app--focus) .tab--donut .tab__icon img { width: 36px; height: 36px; }
  .app:not(.app--focus) .tab.active:not(.tab--donut) .tab__icon { border: 0; background: transparent; }
}
@media (max-width: 360px) {
  .top { gap: 7px; padding-right: 14px; padding-left: 14px; }
  .main { padding-right: 16px; padding-left: 16px; }
  .logo { gap: 6px; font-size: 22px; }
  .logo__mark { width: 31px; height: 31px; }
  .top__balance { gap: 4px; padding-right: 8px; font-size: 12px; }
  .top__balance span { width: 24px; height: 24px; }
  .hero { min-height: 220px; padding: 18px; }
  .hero h1 { font-size: 30px; }
  .hero p { max-width: 59%; font-size: 12px; }
  .hero img { right: -18px; width: 49%; }
  .quick-grid { gap: 10px; }
  .quick-card { padding: 12px; }
  .quick-card strong { font-size: 16px; }
  .package { padding: 9px; }
  .package strong { font-size: 22px; }
  .package small, .package span { font-size: 11px; }
  .tabs { width: calc(100% - 16px); bottom: calc(10px + var(--ds-safe-bottom)); }
  .tab { font-size: 10px; }
  .tab--donut .tab__icon { width: 55px; height: 55px; }
  .tab--donut .tab__icon img { width: 50px; height: 50px; }
  .author-avatar { width: 53px; height: 53px; border-radius: 15px; }
  .author-card { gap: 10px; padding: 12px; }
  .details-card { padding: 0 12px; }
  .details-card > div { gap: 10px; }
  .details-card span, .details-card strong { font-size: 12px; }
  .history-row { gap: 8px; }
  .history-row__icon { width: 36px; height: 36px; }
  .history-row__amount { font-size: 12px; }
  .primary { padding-right: 12px; padding-left: 12px; font-size: 13px; }
}
@media (max-height: 650px) {
  .status-card { padding: 16px; }
  .status-card > img { width: 84px; height: 84px; }
  .status-card h1, .status-card h2 { font-size: 25px; }
  .result-art { height: 100px; }
  .result-art img { width: 115px; height: 115px; }
  .action-dock { padding-top: 5px; }
}
/* Focused form fields stay above the keyboard without a second sticky bar. */
@media (max-width: 759px) {
  body:has(input:focus, textarea:focus, select:focus) .action-dock { position: static; }
  body:has(input:focus, textarea:focus, select:focus) .tabs { visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button:not(:disabled) { transition: none; }
}

/* Screen templates */
button.logo { padding: 0; border: 0; background: transparent; }
p.demo-note { display: block; color: #60546d; font-size: 12px; line-height: 1.5; }
.author-card__copy > span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.author-card__copy > em { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.author-card > b svg { width: 19px; height: 19px; }
.goal-progress > small { display: block; max-width: none; margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.creator-cover > .author-avatar { top: 16px; right: 16px; width: 94px; height: 94px; border-radius: 19px; }
.creator-cover > div:first-child { min-height: 96px; padding-right: 103px; }
.creator-cover > div:first-child :is(small,strong,span) { max-width: none; }
.creator-cover > div:first-child strong { font-size: 23px; }
.creator-cover > div:first-child span { font-size: 13px; }
.creator-cover > .goal-progress { position: relative; width: 100%; }
.creator-dashboard > .author-avatar { top: 18px; right: 16px; width: 86px; height: 86px; border-radius: 18px; }
.creator-dashboard > div { max-width: none; padding-right: 95px; }
.creator-dashboard strong { font-size: 24px; }
.creator-onboarding-art { display: block; width: 146px; height: 146px; margin: 10px auto 20px; object-fit: contain; }
.profile-identity > div > span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.profile-identity > .profile-avatar { object-fit: contain; background: var(--lavender); }
.editor-form { display: block; }
select.message-field { min-height: 50px; height: 50px; padding: 10px 12px; }
.status-card > strong { display: block; margin: 13px 0 3px; font-size: 29px; line-height: 1.2; letter-spacing: -.035em; }
.status--completed { background: var(--yellow); }
.status--processing, .status--requested, .status--sent { background: var(--lavender); }
.settings-list > .method > .method__icon { flex: none; }
.settings-list > .method > .method__copy { flex: 1; }
.main--creator > .link-card { margin-top: 12px; }
.main--creator > .quick-grid { margin-top: 3px; }
@media (max-width: 360px) {
  .creator-cover > .author-avatar { top: 16px; right: 13px; width: 72px; height: 72px; }
  .creator-cover > div:first-child { padding-right: 75px; }
  .creator-cover > div:first-child strong { font-size: 21px; }
  .creator-dashboard > div { padding-right: 78px; }
  .creator-dashboard > .author-avatar { width: 72px; height: 72px; }
}
.avatar-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.avatar-option { display: grid; place-items: center; min-width: 0; aspect-ratio: 1; padding: 6px; border: 1.5px solid #c8beb1; border-radius: 17px; background: #fff; }
.avatar-option img { display: block; width: 100%; max-width: 92px; height: 100%; object-fit: contain; border-radius: 10px; }
.avatar-option.active, .avatar-option[aria-pressed='true'] { border: 2px solid var(--ink); background: var(--yellow); box-shadow: 2px 3px 0 var(--ink); }
@media (max-width: 360px) { .avatar-options { gap: 7px; } .avatar-option { padding: 4px; border-radius: 14px; } }
.action-dock .demo-note, .sticky-action .demo-note { margin: 8px 3px 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 11px; line-height: 1.4; }
.action-dock .order-summary { padding-top: 5px; padding-bottom: 5px; }
.action-dock .order-summary strong { font-size: 20px; }
.action-dock .quiet { margin-top: 3px; margin-bottom: 4px; }
.action-dock > .primary { margin-top: 7px; }

/* Generated Donats brand assets: wordmark and small currency mark. */
.logo { flex-shrink: 1; }
.logo__image { display: block; width: clamp(120px, 38vw, 156px); height: auto; max-width: 100%; }
.donats-token { display: block; width: 28px; height: 28px; object-fit: contain; flex: none; }
.top__balance span { width: 30px; height: 30px; border: 0; background: transparent; }
.top__balance .donats-token { width: 30px; height: 30px; }
.balance-card__mark { width: 56px; height: 56px; border: 0; background: transparent; transform: none; }
.balance-card__mark .donats-token { width: 56px; height: 56px; }
.history-row__icon .donats-token, .profile-action__icon .donats-token { width: 28px; height: 28px; }

/* Shared header; contextual navigation belongs to the page content. */
.page-back { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin: -10px 0 16px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 700; }
.page-back svg { width: 19px; height: 19px; }
.package__amount { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.package__amount .donats-token { width: 28px; height: 28px; }
.primary:not(:disabled):hover { background: #ffda32; }
.primary:not(:disabled):active { background: #f4cb26; }
.primary:disabled { background: #e7e1d6; color: #847d72; opacity: 1; border-color: #d6cfc2; }
.primary:disabled b { color: inherit; }
@media (max-width: 360px) { .package__amount .donats-token { width: 24px; height: 24px; } }
