/* =====================================================================
   /wishing-star — living night sky + emotional form.

   2026-07-10 rebuild notes:
   - The sky is the signature: a canvas starfield (twinkle, parallax,
     shooting stars) behind DOM wish-stars. DOM stars stay real anchors
     for SEO / keyboard / screen readers.
   - The "ghost star" (#ws-ghost) is a live preview of the visitor's
     future star — it reacts to the form (name, category, tier). No
     competitor shows "your star on the sky" before checkout.
   - Night surfaces (.ws-sky, .ws-preview, tier orbs) are ALWAYS dark:
     it is a night sky in both themes. Chrome around them follows the
     Liquid Glass tokens of the active theme.
   ===================================================================== */

.ws-container{width:100%;margin:0 auto}

/* ── Sky panel ──────────────────────────────────────────────────────── */
.ws-sky{
    position:relative;
    width:100%;
    height:clamp(420px, 48vw, 560px);
    border-radius:var(--radius-lg, 16px);
    overflow:hidden;
    /* Night gradient: deep space up top, indigo horizon glow at the
       bottom, faint violet nebula + teal airglow accents. */
    background:
        radial-gradient(ellipse 130% 70% at 50% 108%, rgba(76,60,161,.42) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 78% 88%, rgba(45,212,191,.05) 0%, transparent 70%),
        radial-gradient(ellipse 90% 80% at 22% -10%, rgba(109,74,255,.12) 0%, transparent 60%),
        linear-gradient(180deg, #030310 0%, #0b0926 55%, #17123b 100%);
    border:1px solid rgba(124,132,255,.14);
    box-shadow:0 18px 60px rgba(2,3,18,.5), inset 0 0 90px rgba(76,90,255,.06);
    margin-bottom:14px;
    isolation:isolate;
}
@media(max-width:520px){
    .ws-sky{height:400px;border-radius:14px}
}

.ws-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}

.ws-stars-layer{position:absolute;inset:0;z-index:3}

/* Empty-state CTA. NOTE: `display:flex` on the base class used to defeat
   the [hidden] attribute (author flex beats the UA display:none), so the
   "sky is empty" text sat on top of a full sky. Keep the [hidden] guard. */
.ws-sky-empty{
    position:absolute;inset:0;display:flex;flex-direction:column;gap:6px;
    align-items:center;justify-content:center;text-align:center;
    padding:0 28px;pointer-events:none;z-index:2;
}
.ws-sky-empty[hidden]{display:none!important}
.ws-empty-title{color:#e9edff;font-size:17px;font-weight:700;text-shadow:0 2px 18px rgba(76,90,255,.5);margin:0}
.ws-empty-sub{color:#aab3e8;font-size:13px;margin:0}

/* ── Wish star (DOM anchor) ─────────────────────────────────────────── */
.ws-star{
    position:absolute;
    left:var(--x, 50%);
    top:var(--y, 50%);
    transform:translate(-50%, -50%);
    width:18px;height:18px;
    display:block;
    color:inherit;text-decoration:none;
    transition:transform .25s ease;
    z-index:3;
}
.ws-star svg{display:block;width:100%;height:100%;overflow:visible}
.ws-star .ws-star-glow{fill:#cad7ff;filter:blur(1.5px);opacity:.9}
.ws-star .ws-star-shape{fill:#fff;filter:drop-shadow(0 0 1px #fff)}
.ws-star:hover,.ws-star:focus-visible{transform:translate(-50%, -50%) scale(1.4);outline:none;z-index:5}
.ws-star:focus-visible::after{
    content:"";position:absolute;inset:-6px;border:2px solid #38bdf8;border-radius:50%;
}
.ws-star.is-found{z-index:6}
.ws-star.is-found::before{
    content:"";position:absolute;inset:-9px;border:2px solid #38bdf8;border-radius:50%;
    box-shadow:0 0 18px rgba(56,189,248,.75);
    animation:ws-found 1.6s ease-in-out infinite;
}
@keyframes ws-found{0%,100%{opacity:1}50%{opacity:.35}}

/* Spectral colours (deterministic per slug, set via .ws-spec-X class) */
.ws-spec-O .ws-star-glow{fill:#aabfff}
.ws-spec-O .ws-star-shape{fill:#dbe6ff}
.ws-spec-B .ws-star-glow{fill:#cad7ff}
.ws-spec-B .ws-star-shape{fill:#eaf0ff}
.ws-spec-A .ws-star-glow{fill:#f8f7ff}
.ws-spec-A .ws-star-shape{fill:#ffffff}
.ws-spec-F .ws-star-glow{fill:#fff4ea}
.ws-spec-F .ws-star-shape{fill:#fffaf0}
.ws-spec-G .ws-star-glow{fill:#fff2a1}
.ws-spec-G .ws-star-shape{fill:#fffce0}
.ws-spec-K .ws-star-glow{fill:#ffd2a1}
.ws-spec-K .ws-star-shape{fill:#fff0db}
.ws-spec-M .ws-star-glow{fill:#ffcc6f}
.ws-spec-M .ws-star-shape{fill:#ffe2c2}

/* Tier sizes + animations */
.ws-tier-star     {width:14px;height:14px;animation:ws-twinkle 3s ease-in-out infinite}
.ws-tier-bright   {width:20px;height:20px;animation:ws-twinkle 2.4s ease-in-out infinite;filter:drop-shadow(0 0 3px rgba(251,191,36,.4))}
.ws-tier-supernova{width:28px;height:28px;animation:ws-twinkle-pulse 2s ease-in-out infinite;filter:drop-shadow(0 0 6px rgba(251,191,36,.55))}
.ws-tier-galaxy   {width:38px;height:38px;animation:ws-twinkle-pulse 1.8s ease-in-out infinite;filter:drop-shadow(0 0 12px rgba(168,85,247,.55))}
.ws-tier-galaxy::before{
    content:"";position:absolute;inset:-200%;border-radius:50%;pointer-events:none;
    background:radial-gradient(circle, rgba(168,85,247,.18) 0%, transparent 60%);
    z-index:-1;
}

@keyframes ws-twinkle{0%,100%{opacity:.6}50%{opacity:1}}
@keyframes ws-twinkle-pulse{
    0%,100%{opacity:.7;transform:translate(-50%,-50%) scale(1)}
    50%{opacity:1;transform:translate(-50%,-50%) scale(1.15)}
}
@media(prefers-reduced-motion: reduce){
    .ws-tier-star,.ws-tier-bright,.ws-tier-supernova,.ws-tier-galaxy{animation:none}
}

/* Memorial: silver, static — no twinkle, no shimmer. */
.ws-cat-memorial .ws-star-glow,
.ws-cat-memorial.ws-show-hero .ws-star-glow{fill:#e2e8f0!important;filter:blur(2px);opacity:.85}
.ws-cat-memorial .ws-star-shape,
.ws-cat-memorial.ws-show-hero .ws-star-shape{fill:#f8fafc!important;filter:none}
.ws-cat-memorial.ws-star{animation:none!important;filter:none!important}
.ws-cat-memorial.ws-star::before{display:none!important}

/* Granted star — small green spark at top-right */
.ws-star.is-granted::after{
    content:"";position:absolute;top:-3px;right:-3px;width:6px;height:6px;
    background:#22c55e;border-radius:50%;box-shadow:0 0 6px rgba(34,197,94,.7);
}

/* ── Ghost star: live preview of the visitor's future star ──────────── */
.ws-ghost{
    position:absolute;
    left:var(--x, 68%);
    top:var(--y, 26%);
    transform:translate(-50%,-50%);
    width:26px;height:26px;
    pointer-events:none;
    z-index:4;
    opacity:.92;
    transition:width .3s ease, height .3s ease;
}
.ws-ghost svg{display:block;width:100%;height:100%;overflow:visible;animation:ws-ghost-breathe 2.8s ease-in-out infinite}
.ws-ghost .ws-star-glow{fill:#fde68a;filter:blur(3px);opacity:.75}
.ws-ghost .ws-star-shape{fill:#fffbe8;filter:drop-shadow(0 0 4px rgba(250,204,21,.8))}
.ws-ghost::before{
    content:"";position:absolute;inset:-9px;border:1.5px dashed rgba(250,204,21,.55);border-radius:50%;
    animation:ws-ghost-spin 14s linear infinite;
}
.ws-ghost.ws-ghost-star{width:18px;height:18px}
.ws-ghost.ws-ghost-bright{width:24px;height:24px}
.ws-ghost.ws-ghost-supernova{width:32px;height:32px}
.ws-ghost.ws-ghost-galaxy{width:42px;height:42px}
.ws-ghost.ws-ghost-galaxy::after{
    content:"";position:absolute;inset:-130%;border-radius:50%;
    background:radial-gradient(circle, rgba(168,85,247,.20) 0%, transparent 60%);
    z-index:-1;
}
.ws-ghost.ws-ghost-memorial .ws-star-glow{fill:#e2e8f0;opacity:.8}
.ws-ghost.ws-ghost-memorial .ws-star-shape{fill:#f8fafc;filter:drop-shadow(0 0 3px rgba(226,232,240,.8))}
.ws-ghost.ws-ghost-memorial::before{border-color:rgba(226,232,240,.5)}
.ws-ghost.ws-ghost-memorial svg{animation:none}
.ws-ghost-label{
    position:absolute;top:calc(100% + 14px);left:50%;transform:translateX(-50%);
    white-space:nowrap;font-size:12px;color:#e9edff;
    background:rgba(5,6,25,.62);border:1px solid rgba(124,132,255,.25);
    padding:4px 10px;border-radius:99px;
    backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
    max-width:60vw;overflow:hidden;text-overflow:ellipsis;
}
@keyframes ws-ghost-breathe{0%,100%{opacity:.65}50%{opacity:1}}
@keyframes ws-ghost-spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}
@media(prefers-reduced-motion: reduce){
    .ws-ghost svg,.ws-ghost::before{animation:none}
}

/* ── Stats chip inside the sky ──────────────────────────────────────── */
.ws-sky-stats{
    position:absolute;left:14px;bottom:12px;z-index:4;
    display:flex;align-items:center;gap:10px;
    background:rgba(5,6,25,.55);
    border:1px solid rgba(124,132,255,.22);
    border-radius:99px;padding:7px 14px;
    backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
    font-size:13px;color:#c6cdf5;
}
.ws-sky-stats b{color:#fff;font-weight:800;font-variant-numeric:tabular-nums}
.ws-stats-sep{opacity:.4}
[dir="rtl"] .ws-sky-stats{left:auto;right:14px}

/* ── Star tooltip (hover / focus / tap preview) ─────────────────────── */
.ws-tip{
    position:absolute;z-index:7;width:min(260px, 74vw);
    background:rgba(8,10,32,.92);
    border:1px solid rgba(124,132,255,.3);
    border-radius:14px;padding:12px 14px;
    box-shadow:0 14px 40px rgba(2,3,18,.6);
    backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    pointer-events:none;
    opacity:0;transition:opacity .18s ease;
}
.ws-tip.is-open{opacity:1;pointer-events:auto}
.ws-tip[hidden]{display:none}
.ws-tip-head{display:flex;align-items:center;gap:8px;margin-bottom:6px;min-width:0}
.ws-tip-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;background:var(--ws-cat, #fbbf24);box-shadow:0 0 8px var(--ws-cat, #fbbf24)}
.ws-tip-name{font-size:14px;font-weight:700;color:#f2f4ff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ws-tip-granted{font-size:12px;color:#86efac;flex-shrink:0}
.ws-tip-granted[hidden]{display:none}
.ws-tip-wish{margin:0 0 8px;font-size:13px;line-height:1.5;color:#c6cdf5;font-style:italic;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ws-tip-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#8b93c9}
.ws-tip-open{color:#7dd3fc;text-decoration:none;font-weight:600;white-space:nowrap}
.ws-tip-open:hover{text-decoration:underline}

/* Category accent variables (tooltip dot, ticker dot, picker ring) */
.ws-cat-health   {--ws-cat:#34d399}
.ws-cat-love     {--ws-cat:#fb7185}
.ws-cat-success  {--ws-cat:#fbbf24}
.ws-cat-peace    {--ws-cat:#7dd3fc}
.ws-cat-gratitude{--ws-cat:#c4b5fd}
.ws-cat-memorial {--ws-cat:#cbd5e1}

/* ── Recent wishes ticker ───────────────────────────────────────────── */
.ws-ticker{margin-bottom:24px}
.ws-ticker-head{
    display:flex;align-items:center;justify-content:space-between;gap:16px;
    margin:0 2px 10px;flex-wrap:wrap;
}
.ws-ticker-title{font-size:13px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--text-muted, #94a3b8);margin:0}
.ws-ticker-row{
    display:flex;gap:10px;overflow-x:auto;padding:2px 2px 10px;
    scroll-snap-type:x proximity;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
    mask-image:linear-gradient(90deg, #000 92%, transparent);
    -webkit-mask-image:linear-gradient(90deg, #000 92%, transparent);
}
[dir="rtl"] .ws-ticker-row{
    mask-image:linear-gradient(270deg, #000 92%, transparent);
    -webkit-mask-image:linear-gradient(270deg, #000 92%, transparent);
}
.ws-ticker-card{
    flex:0 0 auto;width:220px;scroll-snap-align:start;
    background:var(--glass, rgba(255,255,255,.05));
    border:1px solid var(--border, rgba(255,255,255,.08));
    border-radius:12px;padding:10px 12px;
    text-decoration:none;display:block;
    transition:border-color .15s, background .15s;
}
.ws-ticker-card:hover{border-color:rgba(124,132,255,.45);background:rgba(124,132,255,.07)}
.ws-ticker-name{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:var(--text-primary, #f8fafc);margin-bottom:4px;min-width:0}
.ws-ticker-name .ws-tip-dot{width:7px;height:7px}
.ws-ticker-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ws-ticker-wish{font-size:12px;line-height:1.45;color:var(--text-secondary, #cbd5e1);font-style:italic;margin:0 0 5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.ws-ticker-date{font-size:12px;color:var(--text-muted, #94a3b8)}

/* Find your star (in ticker head) */
.ws-find{position:relative;min-width:0}
.ws-find input[type=search]{
    width:min(230px, 48vw);padding:8px 12px;border-radius:99px;
    background:var(--glass, rgba(255,255,255,.05));border:1px solid var(--border, rgba(255,255,255,.1));
    color:var(--text-primary, #f8fafc);font-size:13px;outline:none;
    transition:border-color .15s;box-sizing:border-box;
}
.ws-find input[type=search]:focus{border-color:#38bdf8}
.ws-find-result{
    position:absolute;top:calc(100% + 6px);right:0;z-index:5;
    font-size:12px;color:var(--text-secondary, #cbd5e1);
    background:var(--bg-secondary, #12142e);border:1px solid var(--border, rgba(255,255,255,.1));
    border-radius:9px;padding:6px 10px;white-space:nowrap;
}
.ws-find-result[hidden]{display:none}
[dir="rtl"] .ws-find-result{right:auto;left:0}

/* ── Form ───────────────────────────────────────────────────────────── */
.ws-form{
    background:var(--glass, rgba(255,255,255,.05));
    border:1px solid var(--border, rgba(255,255,255,.08));
    border-radius:var(--radius-lg, 16px);
    padding:26px 26px 20px;margin-bottom:32px;
    backdrop-filter:blur(20px) saturate(1.3);
    -webkit-backdrop-filter:blur(20px) saturate(1.3);
}
@media(max-width:520px){
    .ws-form{padding:20px 16px 16px}
}
.ws-form-title{font-size:21px;font-weight:800;margin:0 0 4px;color:var(--text-primary, #f8fafc)}
.ws-form-sub{font-size:14px;margin:0 0 20px;color:var(--text-secondary, #cbd5e1);line-height:1.5}

.ws-fieldset{border:none;padding:0;margin:0 0 20px;min-width:0}
.ws-legend{
    display:flex;align-items:center;gap:8px;width:100%;
    font-size:13px;font-weight:700;color:var(--text-secondary, #cbd5e1);
    text-transform:uppercase;letter-spacing:.6px;margin-bottom:12px;padding:0;
}
.ws-step-num{
    display:inline-flex;align-items:center;justify-content:center;
    width:20px;height:20px;border-radius:50%;flex-shrink:0;
    background:rgba(251,191,36,.14);border:1px solid rgba(251,191,36,.4);
    color:#d97706;font-size:12px;font-weight:800;
}
.ws-legend::after{content:"";flex:1;height:1px;background:var(--border, rgba(255,255,255,.08))}

/* Category picker */
.ws-cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
@media(max-width:520px){.ws-cat-grid{grid-template-columns:repeat(2,1fr)}}
.ws-cat-pick{
    position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;
    padding:14px 10px;border:1px solid var(--border, rgba(255,255,255,.08));background:rgba(0,0,0,.12);
    border-radius:12px;cursor:pointer;transition:all .15s;text-align:center;font-size:13px;
}
/* Visually-hidden but accessible input (keeps keyboard + SR + label click). */
.ws-cat-pick input{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.ws-cat-pick:has(input:checked){
    background:color-mix(in srgb, var(--ws-cat, #38bdf8) 13%, transparent);
    border-color:color-mix(in srgb, var(--ws-cat, #38bdf8) 55%, transparent);
}
.ws-cat-pick:has(input:focus-visible){outline:2px solid #38bdf8;outline-offset:2px}
.ws-cat-pick:hover{background:rgba(255,255,255,.06)}
.ws-cat-pick *{pointer-events:none}
.ws-cat-icon{font-size:22px;line-height:1}
.ws-cat-name{color:var(--text-secondary, #cbd5e1)}
.ws-cat-pick:has(input:checked) .ws-cat-name{color:var(--text-primary, #f8fafc);font-weight:600}

.ws-row{margin-bottom:14px}
.ws-lab{display:block;font-size:13px;font-weight:600;color:var(--text-secondary, #cbd5e1);margin-bottom:6px}
.ws-form input[type=text],
.ws-form input[type=email],
.ws-form input[type=number],
.ws-form textarea{
    width:100%;padding:11px 13px;border-radius:10px;
    background:rgba(0,0,0,.25);border:1px solid var(--border, rgba(255,255,255,.1));
    color:var(--text-primary, #f8fafc);font-size:14px;font-family:inherit;line-height:1.5;
    outline:none;transition:border-color .15s;box-sizing:border-box;
}
.ws-form input:focus,
.ws-form textarea:focus{border-color:#38bdf8}
.ws-form textarea{resize:vertical;min-height:84px}
.ws-hint{display:block;font-size:12px;color:var(--text-muted, #94a3b8);margin-top:6px;line-height:1.4}
.ws-count{display:block;text-align:right;font-size:12px;color:var(--text-muted, #94a3b8);margin-top:4px}
[dir="rtl"] .ws-count{text-align:left}

/* Tier picker — live mini-star previews instead of emoji */
.ws-tier-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}
@media(max-width:640px){.ws-tier-grid{grid-template-columns:repeat(2,1fr)}}
.ws-tier-pick{
    position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;
    padding:12px 8px 11px;border:1px solid var(--border, rgba(255,255,255,.08));background:rgba(0,0,0,.12);
    border-radius:12px;cursor:pointer;transition:all .15s;text-align:center;
}
.ws-tier-pick input{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.ws-tier-pick:has(input:checked){background:rgba(251,191,36,.10);border-color:rgba(251,191,36,.5)}
.ws-tier-pick-galaxy:has(input:checked){background:rgba(168,85,247,.12);border-color:rgba(168,85,247,.55)}
.ws-tier-pick:has(input:focus-visible){outline:2px solid #38bdf8;outline-offset:2px}
.ws-tier-pick *{pointer-events:none}
.ws-tier-pop{
    position:absolute;top:-9px;left:50%;transform:translateX(-50%);
    font-size:12px;font-weight:700;line-height:1;white-space:nowrap;
    color:#0c0a1f;background:linear-gradient(135deg,#fde047 0%,#f59e0b 100%);
    border-radius:99px;padding:3px 9px;
    box-shadow:0 3px 10px rgba(251,191,36,.35);
}
.ws-tier-orb{
    position:relative;width:52px;height:52px;border-radius:50%;
    background:radial-gradient(circle at 50% 42%, #131037 0%, #05040f 78%);
    border:1px solid rgba(124,132,255,.18);
    display:flex;align-items:center;justify-content:center;
    overflow:hidden;
}
.ws-tier-orb svg{display:block;overflow:visible}
.ws-tier-orb .ws-star-glow{fill:#fde68a;filter:blur(2px);opacity:.8}
.ws-tier-orb .ws-star-shape{fill:#fffbe8;filter:drop-shadow(0 0 3px rgba(250,204,21,.8))}
.ws-orb-star svg     {width:13px;height:13px;animation:ws-twinkle 3s ease-in-out infinite}
.ws-orb-bright svg   {width:18px;height:18px;animation:ws-twinkle 2.4s ease-in-out infinite;filter:drop-shadow(0 0 3px rgba(251,191,36,.5))}
.ws-orb-supernova svg{width:24px;height:24px;animation:ws-orb-pulse 2s ease-in-out infinite;filter:drop-shadow(0 0 6px rgba(251,191,36,.6))}
.ws-orb-galaxy svg   {width:30px;height:30px;animation:ws-orb-pulse 1.8s ease-in-out infinite;filter:drop-shadow(0 0 9px rgba(168,85,247,.7))}
.ws-orb-galaxy{background:radial-gradient(circle at 50% 45%, rgba(88,52,163,.55) 0%, #05040f 80%)}
.ws-orb-galaxy .ws-star-glow{fill:#d8b4fe}
@keyframes ws-orb-pulse{0%,100%{opacity:.72;transform:scale(1)}50%{opacity:1;transform:scale(1.14)}}
@media(prefers-reduced-motion: reduce){
    .ws-tier-orb svg{animation:none}
}
.ws-tier-name{font-size:12px;color:var(--text-secondary, #cbd5e1);text-transform:uppercase;letter-spacing:.4px;font-weight:700}
.ws-tier-effect{font-size:12px;color:var(--text-muted, #94a3b8);line-height:1.3;min-height:2.6em;display:flex;align-items:center;justify-content:center}
.ws-tier-amount{font-size:14px;font-weight:800;color:var(--text-primary, #f8fafc)}

.ws-amount-custom{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.ws-amount-wrap{position:relative;display:flex;align-items:center}
.ws-amount-wrap input{padding-right:34px}
.ws-amount-suffix{position:absolute;right:12px;color:var(--text-muted, #94a3b8);font-weight:700;pointer-events:none}

/* Live preview strip — "this is your star" */
.ws-preview{
    display:flex;align-items:center;gap:16px;
    background:
        radial-gradient(ellipse 120% 160% at 50% 130%, rgba(76,60,161,.4) 0%, transparent 60%),
        linear-gradient(180deg, #05040f 0%, #100d2e 100%);
    border:1px solid rgba(124,132,255,.2);
    border-radius:14px;padding:14px 18px;margin:0 0 20px;
}
.ws-preview-star{
    position:relative;width:56px;height:56px;flex-shrink:0;
    display:flex;align-items:center;justify-content:center;
}
.ws-preview-star svg{display:block;overflow:visible;transition:width .25s ease, height .25s ease;width:16px;height:16px}
.ws-preview-star .ws-star-glow{fill:#fde68a;filter:blur(3px);opacity:.8}
.ws-preview-star .ws-star-shape{fill:#fffbe8;filter:drop-shadow(0 0 5px rgba(250,204,21,.85))}
.ws-preview-star.ws-prev-star svg{width:16px;height:16px;animation:ws-twinkle 3s ease-in-out infinite}
.ws-preview-star.ws-prev-bright svg{width:22px;height:22px;animation:ws-twinkle 2.4s ease-in-out infinite}
.ws-preview-star.ws-prev-supernova svg{width:30px;height:30px;animation:ws-orb-pulse 2s ease-in-out infinite}
.ws-preview-star.ws-prev-galaxy svg{width:38px;height:38px;animation:ws-orb-pulse 1.8s ease-in-out infinite;filter:drop-shadow(0 0 10px rgba(168,85,247,.75))}
.ws-preview-star.ws-prev-memorial svg{animation:none}
.ws-preview-star.ws-prev-memorial .ws-star-glow{fill:#e2e8f0}
.ws-preview-star.ws-prev-memorial .ws-star-shape{fill:#f8fafc;filter:drop-shadow(0 0 4px rgba(226,232,240,.8))}
@media(prefers-reduced-motion: reduce){
    .ws-preview-star svg{animation:none!important}
}
.ws-preview-text{min-width:0;display:flex;flex-direction:column;gap:3px}
.ws-preview-name{font-size:15px;font-weight:800;color:#f2f4ff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ws-preview-tier{font-size:12px;color:#aab3e8}

/* Consent + honeypot */
.ws-consent{display:flex;gap:8px;align-items:flex-start;font-size:13px;color:var(--text-secondary, #cbd5e1);line-height:1.5;cursor:pointer}
.ws-consent input{margin-top:3px;flex-shrink:0;accent-color:#f59e0b}
.ws-hp{position:absolute;left:-9999px;width:0;height:0;overflow:hidden}

.ws-submit{
    width:100%;padding:15px 16px;border-radius:12px;border:none;font-size:16px;font-weight:800;
    color:#0c0a1f;background:linear-gradient(135deg,#fde047 0%,#f59e0b 100%);
    cursor:pointer;transition:transform .15s, box-shadow .15s;
    box-shadow:0 6px 22px rgba(251,191,36,.28);
    display:flex;align-items:center;justify-content:center;gap:10px;
}
.ws-submit:hover{transform:translateY(-1px);box-shadow:0 10px 30px rgba(251,191,36,.42)}
.ws-submit:disabled{opacity:.6;cursor:not-allowed;transform:none}
.ws-submit-spin{display:inline-block;animation:ws-spin .8s linear infinite}
/* [hidden] must beat the display:inline-block above (same class of bug as
   .ws-sky-empty — author display defeats the UA hidden rule) */
.ws-submit-spin[hidden],.ws-submit-label[hidden]{display:none}
@keyframes ws-spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}

.ws-form-foot{font-size:12px;color:var(--text-muted, #94a3b8);text-align:center;margin:12px 0 0;line-height:1.5}

/* Memorial form variant — silver accent */
.ws-form.is-memorial .ws-submit{
    background:linear-gradient(135deg,#e2e8f0 0%,#94a3b8 100%);color:#0c0a1f;
    box-shadow:0 6px 20px rgba(148,163,184,.25);
}
.ws-form.is-memorial .ws-submit:hover{box-shadow:0 10px 28px rgba(148,163,184,.4)}
.ws-form.is-memorial .ws-preview-star .ws-star-glow{fill:#e2e8f0}
.ws-form.is-memorial .ws-preview-star .ws-star-shape{fill:#f8fafc}

/* =====================================================================
   Individual star page (/wishing-star/{slug})
   ===================================================================== */
.ws-show-wrap{max-width:780px;margin:0 auto;padding:0 16px}
.ws-show-sky{
    position:relative;height:280px;border-radius:var(--radius-lg, 16px);overflow:hidden;
    background:
        radial-gradient(ellipse 130% 80% at 50% 115%, rgba(76,60,161,.45) 0%, transparent 58%),
        linear-gradient(180deg, #030310 0%, #0b0926 55%, #17123b 100%);
    border:1px solid rgba(124,132,255,.14);
    margin-bottom:24px;
}
.ws-show-hero{
    position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
    width:80px;height:80px;z-index:2;
}
.ws-show-hero svg{width:100%;height:100%;overflow:visible}
.ws-show-hero .ws-star-glow{filter:blur(8px);opacity:.7;fill:#facc15}
.ws-show-hero .ws-star-shape{fill:#fffce0;filter:drop-shadow(0 0 6px #facc15)}
.ws-show-hero::before{
    content:"";position:absolute;inset:-60%;border-radius:50%;pointer-events:none;
    background:radial-gradient(circle, rgba(250,204,21,.16) 0%, transparent 60%);
}
.ws-show-hero.ws-cat-memorial::before{background:radial-gradient(circle, rgba(226,232,240,.14) 0%, transparent 60%)}
.ws-show-hero.ws-tier-galaxy{width:120px;height:120px}
.ws-show-hero.ws-tier-supernova{width:100px;height:100px}
.ws-show-hero.ws-tier-star{width:64px;height:64px}

.ws-show-card{
    background:var(--glass, rgba(255,255,255,.05));
    border:1px solid var(--border, rgba(255,255,255,.08));
    border-radius:var(--radius-lg, 16px);padding:28px;margin-bottom:24px;
    backdrop-filter:blur(20px) saturate(1.3);-webkit-backdrop-filter:blur(20px) saturate(1.3);
    text-align:center;
}
.ws-show-eyebrow{font-size:13px;text-transform:uppercase;letter-spacing:.7px;color:var(--text-muted, #94a3b8);margin:0 0 8px}
.ws-show-h1{font-size:32px;font-weight:800;margin:0 0 8px;color:var(--text-primary, #f8fafc);line-height:1.2}
.ws-show-attrib{font-size:14px;color:var(--text-secondary, #cbd5e1);margin:0 0 18px}
.ws-show-wish{
    font-size:18px;line-height:1.6;color:var(--text-primary, #f8fafc);
    font-style:italic;margin:0 0 24px;padding:0 12px;
    border-left:3px solid #facc15;text-align:left;padding-left:16px;
}
.ws-show-cat-memorial + .ws-show-h1 + .ws-show-attrib + .ws-show-wish,
.ws-cat-memorial .ws-show-wish{border-left-color:#cbd5e1}

.ws-show-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:0 0 24px;text-align:left}
@media(max-width:520px){.ws-show-meta{grid-template-columns:1fr}}
.ws-show-meta dt{font-size:12px;color:var(--text-muted, #94a3b8);text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}
.ws-show-meta dd{margin:0;font-size:14px;font-weight:600;color:var(--text-primary, #f8fafc)}

.ws-show-granted{
    background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.3);
    color:#86efac;font-size:13px;padding:8px 14px;border-radius:10px;margin:0 0 18px;
}

.ws-show-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:18px}
.ws-show-btn{
    display:inline-flex;align-items:center;gap:6px;padding:10px 14px;border-radius:10px;
    background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);
    color:var(--text-primary, #f8fafc);font-size:13px;font-weight:600;text-decoration:none;
    cursor:pointer;transition:all .15s;
}
.ws-show-btn:hover{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.20)}
.ws-show-btn-primary{
    background:linear-gradient(135deg,#facc15 0%,#f59e0b 100%);color:#0c0a1f;border-color:transparent;
}
.ws-show-btn-primary:hover{box-shadow:0 6px 18px rgba(251,191,36,.3)}
.ws-show-btn-success{background:rgba(34,197,94,.15);border-color:rgba(34,197,94,.4);color:#86efac}
.ws-show-btn-success:hover{background:rgba(34,197,94,.25)}

.ws-show-permalink{font-size:12px;color:var(--text-muted, #94a3b8);text-align:center;word-break:break-all;margin:8px 0 0}

/* Conversion loop from shared star pages: "make your own wish" CTA */
.ws-show-cta{
    display:flex;flex-direction:column;align-items:center;gap:10px;
    text-align:center;margin:0 0 24px;
}
.ws-show-cta-btn{
    display:inline-flex;align-items:center;gap:8px;
    padding:13px 26px;border-radius:12px;text-decoration:none;
    font-size:15px;font-weight:800;color:#0c0a1f;
    background:linear-gradient(135deg,#fde047 0%,#f59e0b 100%);
    box-shadow:0 6px 22px rgba(251,191,36,.28);
    transition:transform .15s, box-shadow .15s;
}
.ws-show-cta-btn:hover{transform:translateY(-1px);box-shadow:0 10px 30px rgba(251,191,36,.42)}
.ws-show-back{text-align:center;margin:24px 0}
.ws-show-back-link{font-size:14px;color:var(--text-secondary, #cbd5e1);text-decoration:underline}

/* ── Light theme ────────────────────────────────────────────────────── */
/* Night surfaces stay night. Chrome adapts. */
[data-theme="light"] .ws-form,[data-theme="light"] .ws-show-card,[data-theme="light"] .ws-ticker-card{
    background:rgba(255,255,255,.7);border-color:rgba(0,0,0,.08);
}
[data-theme="light"] .ws-ticker-card:hover{border-color:rgba(79,70,229,.4);background:rgba(79,70,229,.05)}
[data-theme="light"] .ws-ticker-name{color:#0f172a}
[data-theme="light"] .ws-ticker-wish{color:#334155}
[data-theme="light"] .ws-form input[type=text],
[data-theme="light"] .ws-form input[type=email],
[data-theme="light"] .ws-form input[type=number],
[data-theme="light"] .ws-form textarea{background:rgba(0,0,0,.04);border-color:rgba(0,0,0,.10);color:#0f172a}
[data-theme="light"] .ws-find input[type=search]{background:rgba(0,0,0,.04);border-color:rgba(0,0,0,.12);color:#0f172a}
[data-theme="light"] .ws-find-result{background:#fff;border-color:rgba(0,0,0,.12)}
[data-theme="light"] .ws-cat-pick,[data-theme="light"] .ws-tier-pick{background:rgba(0,0,0,.03);border-color:rgba(0,0,0,.08)}
[data-theme="light"] .ws-cat-pick:hover{background:rgba(0,0,0,.06)}
[data-theme="light"] .ws-cat-name,[data-theme="light"] .ws-tier-name{color:#334155}
[data-theme="light"] .ws-cat-pick:has(input:checked) .ws-cat-name{color:#0f172a}
[data-theme="light"] .ws-tier-amount{color:#0f172a}
[data-theme="light"] .ws-form-title,[data-theme="light"] .ws-show-h1,[data-theme="light"] .ws-show-meta dd{color:#0f172a}
[data-theme="light"] .ws-form-sub,[data-theme="light"] .ws-lab,[data-theme="light"] .ws-legend,[data-theme="light"] .ws-consent{color:#334155}
[data-theme="light"] .ws-show-wish{color:#0f172a}
[data-theme="light"] .ws-show-btn{background:rgba(0,0,0,.04);border-color:rgba(0,0,0,.12);color:#0f172a}
[data-theme="light"] .ws-show-btn:hover{background:rgba(0,0,0,.08)}
[data-theme="light"] .ws-show-btn-primary{background:linear-gradient(135deg,#facc15 0%,#f59e0b 100%);color:#0c0a1f}

/* ── RTL — Arabic ───────────────────────────────────────────────────── */
[dir="rtl"] .ws-show-wish{border-left:none;border-right:3px solid #facc15;padding-left:0;padding-right:16px;text-align:right}
[dir="rtl"] .ws-amount-suffix{right:auto;left:12px}
[dir="rtl"] .ws-amount-wrap input{padding-right:12px;padding-left:34px}
