/* Customer tipping page — mobile-first. Theme colors arrive as CSS variables on <body>. */
@font-face { font-family: Nunito; font-weight: 600; font-display: swap; src: url(/fonts/nunito-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(/fonts/nunito-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: Nunito; font-weight: 900; font-display: swap; src: url(/fonts/nunito-latin-900-normal.woff2) format('woff2'); }

:root { color-scheme: dark; --text: #fbf7ff; --muted: #c9bddf; --line: rgba(196, 160, 255, .28); --panel: rgba(30, 20, 52, .72); --danger: #ff7a9a; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body.tp {
  min-height: 100dvh; color: var(--text); font: 600 17px/1.45 Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(120% 60% at 15% 22%, color-mix(in srgb, var(--ember) 32%, transparent), transparent 60%),
    radial-gradient(90% 60% at 100% 10%, color-mix(in srgb, var(--glow) 35%, transparent), transparent 62%),
    radial-gradient(120% 70% at 50% 110%, color-mix(in srgb, var(--a1) 30%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg1), #120a20 55%, var(--bg2));
  background-attachment: fixed;
}
a { color: inherit; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.tp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tp-main { width: 100%; max-width: 440px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); display: grid; gap: 18px; }
.tp-narrow { max-width: 480px; }

.tp-brand { text-align: center; font-weight: 900; font-style: italic; font-size: 30px; letter-spacing: .01em; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.tp-brand b { font-weight: 900; padding: 0 .14em 0 .04em; margin: 0 -.14em 0 -.04em; background: linear-gradient(90deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.tp-hero { display: grid; justify-items: center; text-align: center; gap: 6px; }
.tp-photo-wrap { position: relative; margin: 4px 0 8px; }
.tp-photo { display: block; width: 188px; height: 188px; border-radius: 50%; object-fit: cover; border: 5px solid color-mix(in srgb, var(--a1) 70%, #fff 0%); box-shadow: 0 0 0 3px rgba(0,0,0,.35), 0 0 34px color-mix(in srgb, var(--glow) 75%, transparent), 0 0 90px color-mix(in srgb, var(--glow) 35%, transparent); background: #1c1230; }
.tp-photo-empty { display: grid; place-items: center; color: color-mix(in srgb, var(--a1) 60%, #fff); }
.tp-photo-empty .ico { width: 84px; height: 84px; stroke-width: 1.4; }
.tp-theme-badge { position: absolute; right: -58px; top: -6px; color: #fff; opacity: .95; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.tp-theme-badge .ico { width: 62px; height: 62px; stroke-width: 1.5; transform: rotate(12deg); }
.tp-name { margin: 0; font-size: clamp(34px, 10vw, 44px); line-height: 1.05; font-weight: 900; letter-spacing: -.01em; text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.tp-where { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 19px; color: #efe6ff; }
.tp-swoosh { width: 150px; height: 8px; margin: 6px 0 4px; border-radius: 50%; background: linear-gradient(90deg, transparent, var(--a1) 30%, var(--a2) 75%, transparent); transform: rotate(-3deg); box-shadow: 0 0 14px var(--glow); }
.tp-welcome { margin: 4px 0 0; font-size: 19px; line-height: 1.4; max-width: 22em; color: #fbf7ff; }

.tp-form { display: grid; gap: 14px; }
.tp-cause { justify-self: center; display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 10px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--a1) 22%, var(--panel)); border: 1.5px solid color-mix(in srgb, var(--a1) 55%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--glow) 45%, transparent); font-weight: 900; font-size: 18px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.tp-cause svg { flex: none; width: 20px; height: 20px; color: var(--a1); fill: currentColor; fill-opacity: .25; }
.tp-amounts { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.tp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tp-grid:empty { display: none; }
.tp-amt { position: relative; display: block; cursor: pointer; }
.tp-amt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tp-amt span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; border-radius: 16px; border: 2px solid var(--line); background: var(--panel); font-weight: 900; font-size: 24px; transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.tp-amt input:checked + span { background: linear-gradient(135deg, var(--a1), var(--a2)); border-color: rgba(255, 255, 255, .7); box-shadow: 0 6px 24px color-mix(in srgb, var(--a1) 45%, transparent); }
.tp-amt input:focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }
.tp-amt:active span { transform: scale(.97); }
.tp-custom-toggle span { min-height: 56px; font-size: 19px; font-weight: 800; }
.tp-custom { display: none; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 16px; border: 2px solid var(--line); background: rgba(10, 6, 20, .55); }
.tp-custom.show, .tp-amounts:has(.tp-custom-toggle input:checked) .tp-custom { display: flex; }
.tp-cur { font-weight: 900; font-size: 22px; color: var(--muted); }
.tp-custom input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; color: var(--text); font: 900 22px Nunito, system-ui, sans-serif; outline: none; }
.tp-custom:focus-within { border-color: var(--a1); }

.tp-pay { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 64px; padding: 14px 20px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; font: 900 24px Nunito, system-ui, sans-serif; background: linear-gradient(90deg, var(--a1), var(--a2)); box-shadow: 0 10px 30px color-mix(in srgb, var(--a1) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.35); }
.tp-pay .ico { width: 30px; height: 30px; }
.tp-pay:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.tp-pay:active { transform: translateY(1px); }
.tp-note { margin: -4px 0 0; text-align: center; color: var(--muted); font-size: 14.5px; }
.tp-error { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 80, 120, .14); border: 1px solid rgba(255, 122, 154, .5); color: #ffd5df; font-size: 15px; }
.tp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tp-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 9px; background: rgba(255, 255, 255, .92); color: #1a1030; font-weight: 900; font-size: 13px; }
.tp-chip .ico { width: 15px; height: 15px; }
.tp-secure { margin: 0; display: flex; gap: 8px; justify-content: center; align-items: flex-start; color: var(--muted); font-size: 14px; text-align: left; }
.tp-secure .ico { margin-top: 2px; }

.tp-foot { margin-top: 6px; padding: 18px 0 6px; text-align: center; position: relative; }
.tp-foot::before { content: ''; position: absolute; left: -18px; right: -18px; top: 0; height: 3px; border-radius: 50%; background: linear-gradient(90deg, transparent, var(--a1), var(--a2), transparent); opacity: .8; }
.tp-mark { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-style: italic; font-size: 22px; letter-spacing: .02em; }
.tp-wave { width: 28px; height: 28px; stroke-width: 2.4; }
.tp-faq { margin-top: -4px; color: var(--muted); font-size: 14.5px; }
.tp-faq summary { cursor: pointer; list-style: none; }
.tp-faq summary::-webkit-details-marker { display: none; }
.tp-faq-all > summary { width: max-content; margin: 0 auto; padding: 4px 10px; font-weight: 800; font-size: 14px; opacity: .8; text-decoration: underline; text-underline-offset: 3px; }
.tp-faq-all > summary:focus-visible, .tp-q > summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
.tp-faq-all[open] > summary { margin-bottom: 8px; }
.tp-q { border-top: 1px solid var(--line); }
.tp-q:last-child { border-bottom: 1px solid var(--line); }
.tp-q > summary { display: flex; justify-content: space-between; gap: 10px; padding: 11px 2px; color: var(--text); font-weight: 800; }
.tp-q > summary::after { content: '+'; color: var(--muted); font-weight: 900; }
.tp-q[open] > summary::after { content: '–'; }
.tp-q p { margin: 0 2px 12px; line-height: 1.45; }
.tp-owner { margin: -10px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); }

.tp-empty, .tp-card { padding: 22px; border-radius: 22px; background: var(--panel); border: 1.5px solid var(--line); }
.tp-empty { text-align: center; }
.tp-empty h1, .tp-h { margin: 0 0 6px; font-size: 26px; font-weight: 900; }
.tp-muted { color: var(--muted); margin: 0; }
.tp-small { font-size: 14px; }
.stack { display: grid; gap: 10px; }
.tp-label { font-weight: 800; font-size: 15px; margin-top: 4px; }
.tp-input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); background: rgba(10, 6, 20, .55); color: var(--text); font: 600 16px Nunito, system-ui, sans-serif; }
.tp-input:focus { outline: none; border-color: var(--a1); }
textarea.tp-input { resize: vertical; }
.tp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.center { text-align: center; }
.tp-opt { color: var(--muted); font-weight: 600; font-size: 14px; }
.tp-hint { margin: -4px 0 4px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.tp-ferr { margin: -4px 0 2px; color: #ffc2d1; font-size: 14.5px; font-weight: 800; }
.tp-input[aria-invalid="true"] { border-color: var(--danger); }
.tp-main > * { min-width: 0; }
.tp-setup { min-width: 0; }
.tp-setup .tp-pay { margin-top: 6px; font-size: 21px; }
.tp-setup .tp-pay:disabled { opacity: .7; cursor: progress; }
.tp-fieldset { border: 0; margin: 4px 0 0; padding: 0; min-width: 0; }
.tp-fieldset .tp-label { padding: 0; margin-bottom: 8px; }
.tp-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.tp-theme { position: relative; cursor: pointer; }
.tp-theme input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tp-theme span { display: grid; justify-items: center; gap: 4px; padding: 10px 2px; text-align: center; border-radius: 14px; border: 2px solid var(--line); background: rgba(10, 6, 20, .45); font-size: 14px; }
.tp-theme .ico { width: 30px; height: 30px; color: var(--a1); }
.tp-theme b { font-size: 12.5px; letter-spacing: -.01em; white-space: nowrap; }
.tp-theme input:checked + span { border-color: var(--a1); background: linear-gradient(160deg, color-mix(in srgb, var(--a1) 30%, transparent), color-mix(in srgb, var(--a2) 22%, transparent)); box-shadow: 0 0 16px color-mix(in srgb, var(--glow) 55%, transparent); }
.tp-theme input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.tp-photo-pick { display: flex; align-items: center; gap: 14px; }
.tp-pick-preview, .tp-pick-empty { flex: none; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--a1); box-shadow: 0 0 16px color-mix(in srgb, var(--glow) 50%, transparent); }
.tp-pick-empty { display: grid; place-items: center; color: var(--a1); background: rgba(10, 6, 20, .45); }
.tp-pick-empty .ico { width: 30px; height: 30px; }
.tp-pick-preview[hidden], .tp-pick-empty[hidden] { display: none; }
.tp-file { min-width: 0; width: 100%; flex: 1; color: var(--muted); font: 600 14px Nunito, system-ui, sans-serif; }
.tp-file::file-selector-button { margin-right: 10px; padding: 9px 14px; border: 0; border-radius: 999px; background: linear-gradient(90deg, var(--a1), var(--a2)); color: #fff; font: 800 14px Nunito, system-ui, sans-serif; cursor: pointer; }
.tp-help { margin: -2px 0 4px; border: 1.5px dashed var(--line); border-radius: 14px; padding: 0 12px; }
.tp-help > summary { display: flex; align-items: center; gap: 8px; padding: 11px 0; cursor: pointer; font-weight: 800; font-size: 15px; list-style: none; }
.tp-help > summary::-webkit-details-marker { display: none; }
.tp-help > summary .ico { color: var(--a1); }
.tp-help > summary::after { content: '+'; margin-left: auto; color: var(--muted); font-weight: 900; }
.tp-help[open] > summary::after { content: '–'; }
.tp-provs { display: grid; gap: 8px; margin-bottom: 10px; }
.tp-prov { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(10, 6, 20, .45); border: 1.5px solid var(--line); text-decoration: none; }
.tp-prov:hover, .tp-prov:focus-visible { border-color: var(--a1); }
.tp-prov b { display: inline-flex; align-items: center; gap: 6px; }
.tp-prov span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.tp-prov.rec { border-color: color-mix(in srgb, var(--a1) 70%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--a1) 16%, rgba(10, 6, 20, .5)), rgba(10, 6, 20, .5)); }
.tp-rec { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: linear-gradient(90deg, var(--a1), var(--a2)); color: #fff; font: 900 11.5px Nunito, system-ui, sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.tp-prov b { width: 100%; }
.tp-out { width: 15px; height: 15px; color: var(--a1); }
.tp-help .tp-hint { margin: 0 0 12px; }
.tp-link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-weight: 800; color: #fff; }

/* Setup form steps */
.tp-steps { list-style: none; margin: 2px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: s; }
.tp-steps[hidden] { display: none; }
.tp-steps li { display: grid; justify-items: center; gap: 5px; text-align: center; font-size: 12.5px; font-weight: 800; color: var(--muted); position: relative; }
.tp-steps li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: rgba(10, 6, 20, .5); font-weight: 900; font-size: 14px; position: relative; z-index: 1; }
.tp-steps li:not(:first-child)::before { content: ''; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.tp-steps li.on { color: var(--text); }
.tp-steps li.on span { border-color: transparent; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; }
.tp-steps li.on:not(:first-child)::before { background: linear-gradient(90deg, var(--a2), var(--a1)); }
.tp-step { min-width: 0; padding-top: 6px; }
.tp-step + .tp-step { border-top: 1px solid var(--line); padding-top: 16px; }
.tp-step[hidden] { display: none; }
.tp-stepped .tp-step { border-top: 0; }
.tp-step-k { margin: 0; color: var(--a1); font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tp-step-h { margin: -6px 0 0; font-size: 22px; font-weight: 900; outline: none; }
.tp-step-intro { margin-top: -6px; }
.tp-step-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.tp-step-nav[hidden], .tp-back[hidden] { display: none; }
.tp-next, .tp-back { min-height: 52px; padding: 0 26px; border-radius: 999px; font: 900 18px Nunito, system-ui, sans-serif; cursor: pointer; }
.tp-next { margin-left: auto; border: 0; color: #fff; background: linear-gradient(90deg, var(--a1), var(--a2)); box-shadow: 0 8px 22px color-mix(in srgb, var(--a1) 40%, transparent); }
.tp-back { border: 2px solid var(--line); background: transparent; color: var(--text); }
.tp-next:focus-visible, .tp-back:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.tp-step-last .tp-pay { margin-top: 0; flex: 1; }

/* "Submitted" pop-up */
.tp-done-wrap { display: grid; place-items: center; min-height: 52dvh; }
.tp-done { width: 100%; justify-items: stretch; box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 40px color-mix(in srgb, var(--glow) 35%, transparent); animation: tp-pop .28s ease-out; }
.tp-done .tp-link { justify-self: center; }
.tp-done-ico { justify-self: center; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 0 30px color-mix(in srgb, var(--glow) 60%, transparent); }
.tp-done-ico .ico { width: 38px; height: 38px; stroke-width: 2.6; }
.tp-done .tp-pay { font-size: 20px; }
.tp-done .tp-pay .ico { width: 24px; height: 24px; }
@keyframes tp-pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }


@media (max-width: 360px) { .tp-amt span { font-size: 20px; min-height: 56px; } .tp-theme-badge { right: -38px; } .tp-theme-badge .ico { width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .tp-amt span { transition: none; } .tp-done { animation: none; } }

/* Activation pop-up: pinned to the bottom of the screen until the one-time fee is paid. */
.tp-pay:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.tp-activate { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 5; display: grid; gap: 6px; padding: 18px 18px 16px; border-radius: 22px; text-align: center; color: #1c1230; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 3px color-mix(in srgb, var(--a1) 75%, transparent); animation: tp-act-in .45s cubic-bezier(.2,.9,.3,1.2) both .3s; }
.tp-act-k { margin: 0; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--a1) 80%, #1c1230); }
.tp-activate h2 { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 900; }
.tp-act-p { margin: 0 0 6px; font-size: 14px; color: #4a3d5c; }
.tp-act-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 999px; color: #fff; font-weight: 900; font-size: 19px; text-decoration: none; background: linear-gradient(90deg, var(--a1), var(--a2)); box-shadow: 0 8px 22px color-mix(in srgb, var(--a1) 45%, transparent); }
.tp-act-btn .ico { width: 24px; height: 24px; }
.tp-act-btn:focus-visible { outline: 3px solid #1c1230; outline-offset: 3px; }
@keyframes tp-act-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tp-activate { animation: none; } }
