:root {
      --bg: #05030c;
      --fg: #f7f3ff;
      --muted: rgba(247, 243, 255, 0.55);
      --line: rgba(247, 243, 255, 0.16);
      --glow-a: #7c5cff;
      --glow-b: #ff4fd8;
      --glow-c: #3de7ff;
      --glow-d: #ffb84d;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    html, body {
      height: 100%;
      min-height: 100%;
      max-height: 100dvh;
      background: var(--bg);
      color: var(--fg);
      font-family: "Outfit", sans-serif;
      overflow: hidden;
      color-scheme: dark;
      scrollbar-width: none;
    }
    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
      display: none;
      width: 0;
      height: 0;
    }

    /* Keep embedded/overflow UI on dark scheme (no white OS scrollbars) */
    .panel-inner,
    .paytr-frame-wrap,
    #paytrIframe {
      color-scheme: dark;
      scrollbar-width: thin;
      scrollbar-color: rgba(124, 92, 255, 0.45) rgba(8, 5, 18, 0.95);
    }

    #sky {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      display: block;
    }

    .vignette {
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      background:
        radial-gradient(ellipse 80% 60% at 50% 40%, transparent 20%, rgba(5, 3, 12, 0.55) 100%),
        linear-gradient(180deg, rgba(5, 3, 12, 0.35), transparent 25%, transparent 70%, rgba(5, 3, 12, 0.65));
    }

    .app, .panel {
      position: relative;
      z-index: 2;
    }

    .app {
      min-height: 100dvh;
      display: grid;
      grid-template-rows: auto 1fr auto;
      padding:
        max(1.25rem, env(safe-area-inset-top))
        1.5rem
        max(1.25rem, env(safe-area-inset-bottom));
      pointer-events: none;
    }
    .app > * { pointer-events: auto; }

    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      animation: fadeIn 0.8s ease both;
    }

    .logo {
      font-family: "Syne", sans-serif;
      font-weight: 700;
      font-size: 0.95rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      text-decoration: none;
      color: var(--fg);
      text-shadow: 0 0 24px rgba(124, 92, 255, 0.45);
    }

    .mark {
      display: inline-grid;
      gap: 3px;
      margin-right: 0.65rem;
      vertical-align: middle;
    }
    .mark i {
      display: block;
      background: var(--fg);
      box-shadow: 0 0 10px rgba(61, 231, 255, 0.7);
    }
    .mark i:first-child { width: 8px; height: 8px; }
    .mark i:last-child { width: 5px; height: 5px; margin-left: 3px; }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 0.45rem;
    }
    .nav-dot {
      width: 2rem;
      height: 2rem;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.04);
      color: var(--fg);
      cursor: pointer;
      display: grid;
      place-items: center;
      font-size: 0.78rem;
      backdrop-filter: blur(8px);
      transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
    }
    .nav-dot:hover,
    .nav-dot:focus-visible {
      border-color: rgba(124, 92, 255, 0.55);
      background: rgba(124, 92, 255, 0.16);
      box-shadow: 0 0 18px rgba(124, 92, 255, 0.25);
      outline: none;
    }
    .nav-dot.muted {
      opacity: 0.55;
      border-color: rgba(255, 255, 255, 0.1);
    }
    .nav-ico { line-height: 1; }

    main {
      display: grid;
      place-items: center;
      text-align: center;
      padding: 2rem 0;
    }

    .stage {
      width: min(100%, 720px);
      animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .kicker {
      font-size: 0.7rem;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 1.25rem;
    }

    h1 {
      font-family: "Syne", sans-serif;
      font-weight: 600;
      font-size: clamp(2rem, 7vw, 3.4rem);
      letter-spacing: -0.03em;
      line-height: 1.05;
      margin-bottom: 2.5rem;
      text-shadow: 0 0 40px rgba(255, 79, 216, 0.25);
    }

    .lead {
      color: var(--muted);
      font-size: clamp(0.95rem, 2.2vw, 1.05rem);
      font-weight: 300;
      line-height: 1.55;
      max-width: 26rem;
      margin: 0 auto 2.75rem;
    }

    .choices {
      display: grid;
      gap: 0.85rem;
      width: min(100%, 420px);
      margin: 0 auto;
    }

    .choice {
      appearance: none;
      border: 1px solid var(--line);
      background: linear-gradient(135deg, rgba(18, 12, 36, 0.72), rgba(12, 8, 28, 0.5));
      backdrop-filter: blur(14px);
      color: var(--fg);
      font-family: "Syne", sans-serif;
      font-weight: 600;
      font-size: 1rem;
      padding: 1.15rem 1.25rem;
      cursor: pointer;
      transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
      text-align: left;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      gap: 0.95rem;
    }
    .choice-ico {
      flex-shrink: 0;
      width: 2.35rem;
      height: 2.35rem;
      display: grid;
      place-items: center;
      border: 1px solid rgba(247, 243, 255, 0.14);
      background: rgba(124, 92, 255, 0.12);
      color: #d7cbff;
      font-size: 1rem;
      box-shadow: inset 0 0 16px rgba(124, 92, 255, 0.18);
    }
    .choice-ico-glow {
      background: rgba(255, 184, 77, 0.12);
      color: #ffd27a;
      box-shadow: inset 0 0 16px rgba(255, 184, 77, 0.2), 0 0 18px rgba(255, 184, 77, 0.15);
      animation: icoPulse 2.8s ease-in-out infinite;
    }
    .choice-copy { flex: 1; min-width: 0; }
    .choice-sub {
      display: block;
      font-family: "Outfit", sans-serif;
      font-weight: 300;
      font-size: 0.82rem;
      color: var(--muted);
      margin-top: 0.25rem;
      letter-spacing: 0;
    }

    .choice:hover,
    .choice:focus-visible {
      background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(12, 8, 28, 0.55));
      border-color: rgba(124, 92, 255, 0.65);
      box-shadow: 0 0 40px rgba(124, 92, 255, 0.28), 0 12px 40px rgba(0, 0, 0, 0.25);
      outline: none;
      transform: translateY(-2px);
    }
    .choice-alt:hover,
    .choice-alt:focus-visible {
      border-color: rgba(255, 184, 77, 0.55);
      box-shadow: 0 0 40px rgba(255, 184, 77, 0.2), 0 12px 40px rgba(0, 0, 0, 0.25);
    }
    .choice:active { transform: scale(0.985); }

    .arrow { opacity: 0.45; transition: transform 0.25s ease, opacity 0.25s ease; margin-left: auto; }
    .choice:hover .arrow { opacity: 1; transform: translateX(4px); }

    footer {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.1rem;
      padding-bottom: 0.25rem;
    }
    .home-stats {
      display: flex;
      align-items: stretch;
      justify-content: center;
      gap: 0;
      width: min(100%, 320px);
    }
    .home-stat {
      flex: 1;
      text-align: center;
      padding: 0.35rem 0.75rem;
    }
    .home-stat + .home-stat {
      border-left: 1px solid var(--line);
    }
    .home-stat strong {
      display: block;
      font-family: "Syne", sans-serif;
      font-weight: 600;
      font-size: clamp(1.35rem, 4vw, 1.75rem);
      letter-spacing: -0.02em;
      line-height: 1.1;
      text-shadow: 0 0 28px rgba(124, 92, 255, 0.4);
    }
    .home-stat span {
      display: block;
      margin-top: 0.35rem;
      font-size: 0.65rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--muted);
      font-weight: 300;
    }
    .scroll { color: var(--muted); opacity: 0.45; letter-spacing: 0.2em; }

    .panel {
      position: fixed;
      inset: 0;
      z-index: 20;
      display: grid;
      place-items: center;
      padding:
        max(0.5rem, env(safe-area-inset-top))
        0.75rem
        max(0.5rem, env(safe-area-inset-bottom));
      background: rgba(5, 3, 12, 0.62);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      opacity: 0;
      visibility: hidden;
      overflow: hidden;
      overscroll-behavior: none;
      transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s;
    }
    .panel.open { opacity: 1; visibility: visible; }

    .panel.sky-mode {
      background: transparent;
      backdrop-filter: none;
      place-items: stretch;
      padding: 0;
      pointer-events: none;
    }
    .panel.sky-mode.open { pointer-events: none; }
    .panel.sky-mode .sky-ui { pointer-events: auto; }

    .panel-inner {
      width: min(100%, 400px);
      max-width: 100%;
      max-height: calc(100dvh - 1rem);
      text-align: center;
      transform: translateY(18px) scale(0.96);
      opacity: 0;
      overflow: hidden;
      overflow-x: hidden;
      overscroll-behavior: contain;
      box-sizing: border-box;
      transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.45s ease,
        box-shadow 0.55s ease;
      background: linear-gradient(165deg, rgba(18, 12, 40, 0.94), rgba(10, 6, 24, 0.9));
      border: 1px solid rgba(247, 243, 255, 0.16);
      backdrop-filter: blur(22px);
      -webkit-backdrop-filter: blur(22px);
      padding: 1.25rem 1.15rem 1.1rem;
      box-shadow: 0 0 50px rgba(124, 92, 255, 0.12);
      border-radius: 1.25rem;
      scrollbar-width: none;
    }
    .panel-inner::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .panel.open .panel-inner {
      transform: translateY(0) scale(1);
      opacity: 1;
      box-shadow:
        0 0 70px rgba(124, 92, 255, 0.26),
        0 22px 50px rgba(0, 0, 0, 0.4);
      animation: panelIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .panel h2 {
      font-family: "Syne", sans-serif;
      font-size: clamp(1.35rem, 4.2vw, 1.85rem);
      font-weight: 600;
      letter-spacing: -0.02em;
      margin-bottom: 0.4rem;
    }

    .panel p {
      color: var(--muted);
      font-weight: 300;
      line-height: 1.45;
      margin-bottom: 0.85rem;
    }

    .field {
      width: 100%;
      background: transparent;
      border: none;
      border-bottom: 1px solid var(--line);
      color: var(--fg);
      font-family: "Outfit", sans-serif;
      font-size: 1.05rem;
      font-weight: 300;
      padding: 0.85rem 0;
      margin-bottom: 1.5rem;
      outline: none;
      text-align: center;
    }
    .field:focus { border-color: rgba(61, 231, 255, 0.65); }
    .field::placeholder { color: rgba(247, 243, 255, 0.28); }

    .wish-compose {
      position: relative;
      overflow: hidden;
      overflow-x: hidden;
      text-align: center;
      width: min(100%, 380px);
      max-width: 100%;
      max-height: calc(100dvh - 1rem);
      padding: 1.1rem 1rem 0.95rem;
      border-radius: 1.25rem;
      border: 1px solid rgba(124, 92, 255, 0.3);
      background:
        radial-gradient(ellipse 90% 55% at 50% -12%, rgba(124, 92, 255, 0.26), transparent 58%),
        radial-gradient(ellipse 45% 35% at 90% 95%, rgba(255, 79, 216, 0.1), transparent 50%),
        linear-gradient(168deg, rgba(18, 12, 40, 0.97), rgba(8, 5, 20, 0.94));
      display: flex;
      flex-direction: column;
    }
    .compose-glow {
      position: absolute;
      inset: -40% -20% auto;
      height: 58%;
      pointer-events: none;
      background:
        radial-gradient(circle at 50% 45%, rgba(61, 231, 255, 0.14), transparent 42%),
        radial-gradient(circle at 40% 60%, rgba(124, 92, 255, 0.22), transparent 45%);
      animation: wishGlow 6s ease-in-out infinite;
    }
    .compose-star {
      position: relative;
      z-index: 1;
      font-size: 1.15rem;
      color: #c9b6ff;
      text-shadow: 0 0 22px rgba(124, 92, 255, 0.75);
      margin-bottom: 0.2rem;
      flex-shrink: 0;
      animation: icoPulse 2.6s ease-in-out infinite;
    }
    .wish-compose h2 {
      position: relative;
      z-index: 1;
      margin-bottom: 0.25rem;
      font-size: clamp(1.25rem, 4vw, 1.65rem);
      flex-shrink: 0;
    }
    .compose-lead {
      position: relative;
      z-index: 1;
      margin-bottom: 0.7rem !important;
      font-size: 0.8rem;
      max-width: 26ch;
      margin-left: auto;
      margin-right: auto;
      flex-shrink: 0;
    }
    .compose-form {
      position: relative;
      z-index: 1;
      text-align: left;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      overflow: hidden;
    }
    .compose-label {
      display: block;
      font-size: 0.58rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: rgba(201, 182, 255, 0.7);
      margin: 0 0 0.28rem 0.05rem;
      font-weight: 400;
    }
    .compose-label.soft { color: var(--muted); }
    .compose-wish,
    .compose-msg,
    .compose-name,
    .compose-email {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      display: block;
      box-sizing: border-box;
      resize: none;
      appearance: none;
      border: 1px solid rgba(247, 243, 255, 0.14);
      border-radius: 0.75rem;
      background: rgba(255, 255, 255, 0.04);
      color: var(--fg);
      font-family: "Outfit", sans-serif;
      font-weight: 300;
      outline: none;
      overflow: hidden;
      scrollbar-width: none;
      transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        transform 0.2s ease;
    }
    .compose-wish::-webkit-scrollbar,
    .compose-msg::-webkit-scrollbar { display: none; }
    .compose-wish {
      font-family: "Syne", sans-serif;
      font-size: clamp(0.98rem, 3.2vw, 1.12rem);
      font-weight: 600;
      letter-spacing: -0.02em;
      line-height: 1.3;
      padding: 0.55rem 0.75rem;
      margin-bottom: 0.55rem;
      min-height: 2.6rem;
      height: 2.85rem;
      max-height: 2.85rem;
      color: #fff6e8;
    }
    .compose-msg {
      font-size: 0.86rem;
      line-height: 1.4;
      padding: 0.55rem 0.75rem;
      margin-bottom: 0.6rem;
      min-height: 2.8rem;
      height: 3.1rem;
      max-height: 3.1rem;
    }
    .compose-name,
    .compose-email {
      font-size: 0.9rem;
      padding: 0.55rem 0.75rem;
      margin-bottom: 0.55rem;
      height: 2.55rem;
    }
    .compose-wish:focus,
    .compose-msg:focus,
    .compose-name:focus,
    .compose-email:focus {
      border-color: rgba(124, 92, 255, 0.55);
      background: rgba(124, 92, 255, 0.09);
      box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12), 0 0 24px rgba(124, 92, 255, 0.12);
      transform: translateY(-1px);
    }
    .compose-wish::placeholder,
    .compose-msg::placeholder,
    .compose-name::placeholder,
    .compose-email::placeholder {
      color: rgba(247, 243, 255, 0.28);
      font-weight: 300;
    }
    .compose-who {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.35rem;
      margin-bottom: 0.55rem;
    }
    .who-chip {
      appearance: none;
      border: 1px solid rgba(247, 243, 255, 0.14);
      background: rgba(255, 255, 255, 0.03);
      color: var(--muted);
      font-family: "Outfit", sans-serif;
      font-size: 0.75rem;
      font-weight: 400;
      letter-spacing: 0.04em;
      padding: 0.5rem 0.4rem;
      border-radius: 999px;
      cursor: pointer;
      transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    }
    .who-chip:hover,
    .who-chip:focus-visible {
      border-color: rgba(124, 92, 255, 0.45);
      color: var(--fg);
      outline: none;
      transform: translateY(-1px);
    }
    .who-chip.active {
      border-color: rgba(255, 210, 122, 0.45);
      background: rgba(255, 210, 122, 0.12);
      color: #ffd27a;
      box-shadow: 0 0 18px rgba(255, 210, 122, 0.15);
    }
    .compose-name-wrap {
      margin-bottom: 0.25rem;
      animation: rise 0.3s ease both;
      overflow: hidden;
    }
    .compose-name-wrap[hidden] { display: none; }
    .compose-email {
      margin-bottom: 0.35rem;
    }
    .compose-error {
      min-height: 0.95rem;
      margin: 0 0 0.4rem;
      font-size: 0.72rem;
      color: #ff7ab8;
      text-align: center;
    }
    .compose-actions,
    .pay-actions {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0.4rem;
    }
    .compose-actions .btn,
    .pay-actions .btn {
      width: 100%;
      padding: 0.72rem 0.55rem;
      font-size: 0.78rem;
    }
    .panel-x,
    .wish-card-x {
      position: absolute;
      top: 0.65rem;
      right: 0.65rem;
      z-index: 3;
      width: 2rem;
      height: 2rem;
      border: 1px solid rgba(247, 243, 255, 0.14);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.04);
      color: rgba(247, 243, 255, 0.75);
      font-size: 1.15rem;
      line-height: 1;
      cursor: pointer;
      display: grid;
      place-items: center;
      transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    }
    .panel-x:hover,
    .panel-x:focus-visible,
    .wish-card-x:hover,
    .wish-card-x:focus-visible {
      border-color: rgba(255, 210, 122, 0.45);
      background: rgba(255, 210, 122, 0.1);
      color: #ffd27a;
      outline: none;
      transform: scale(1.05);
    }
    .panel-x-inline {
      position: static;
      margin: 0.35rem auto 0;
    }
    .pay-abort-row {
      display: flex;
      justify-content: center;
      grid-template-columns: none;
    }

    .actions { display: grid; gap: 0.65rem; }

    .btn {
      appearance: none;
      border: 1px solid var(--fg);
      background: var(--fg);
      color: #12081f;
      font-family: "Syne", sans-serif;
      font-weight: 600;
      font-size: 0.9rem;
      letter-spacing: 0.04em;
      padding: 0.95rem 1.2rem;
      cursor: pointer;
    }
    .btn.ghost {
      background: transparent;
      color: var(--fg);
      border-color: var(--line);
    }

    .sky-ui {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      display: flex;
      justify-content: flex-start;
      align-items: flex-start;
      padding:
        max(1.25rem, env(safe-area-inset-top))
        1.5rem
        0;
      z-index: 5;
      pointer-events: none;
    }
    .sky-brand {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.85rem;
      pointer-events: auto;
    }
    .sky-back {
      padding: 0.55rem 1rem;
      font-size: 0.82rem;
      align-self: flex-start;
    }

    .ui-tip {
      position: fixed;
      z-index: 45;
      pointer-events: none;
      max-width: min(240px, 70vw);
      padding: 0.45rem 0.65rem;
      border-radius: 0.55rem;
      border: 1px solid rgba(247, 243, 255, 0.18);
      background: rgba(12, 8, 28, 0.96);
      color: var(--fg);
      font-size: 0.75rem;
      font-weight: 400;
      letter-spacing: 0.02em;
      line-height: 1.35;
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(124, 92, 255, 0.18);
      opacity: 0;
      transform: translateY(4px);
      transition: opacity 0.15s ease, transform 0.15s ease;
    }
    .ui-tip.show {
      opacity: 1;
      transform: none;
    }

    .tooltip {
      position: fixed;
      z-index: 30;
      pointer-events: none;
      min-width: 180px;
      max-width: min(300px, 70vw);
      padding: 0.9rem 1.05rem;
      border-radius: 1rem;
      background: rgba(12, 8, 28, 0.92);
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow:
        0 0 36px rgba(124, 92, 255, 0.4),
        0 14px 44px rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(14px);
      opacity: 0;
      transform: translate(-50%, -118%) scale(0.94);
      transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .tooltip.show {
      opacity: 1;
      transform: translate(-50%, -132%) scale(1);
    }
    .tooltip.interactive {
      pointer-events: auto;
    }
    .tooltip span {
      display: block;
      font-weight: 300;
      font-size: 0.9rem;
      line-height: 1.45;
      color: rgba(247, 243, 255, 0.88);
    }
    .tooltip em {
      display: block;
      margin-top: 0.5rem;
      font-style: normal;
      font-size: 0.68rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .tooltip-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 0.75rem;
    }
    .more-info {
      flex-shrink: 0;
      width: 1.7rem;
      height: 1.7rem;
      border: 1px solid rgba(255, 255, 255, 0.22);
      background: rgba(255, 255, 255, 0.06);
      color: var(--fg);
      border-radius: 999px;
      cursor: pointer;
      display: grid;
      place-items: center;
      font-family: "Syne", sans-serif;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0;
      padding: 0;
      transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .more-info:hover,
    .more-info:focus-visible {
      background: rgba(124, 92, 255, 0.28);
      border-color: rgba(124, 92, 255, 0.7);
      box-shadow: 0 0 16px rgba(124, 92, 255, 0.35);
      outline: none;
    }

    .detail-panel {
      background: rgba(5, 3, 12, 0.62);
    }
    .wish-card {
      position: relative;
      overflow: hidden;
      text-align: center;
      width: min(100%, 400px);
      max-height: min(100%, calc(100dvh - 1.5rem));
      padding: 1.55rem 1.35rem 1.2rem;
      border-radius: 1.35rem;
      border: 1px solid rgba(255, 210, 122, 0.22);
      background:
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(255, 184, 77, 0.18), transparent 55%),
        linear-gradient(168deg, rgba(22, 14, 42, 0.94), rgba(8, 5, 20, 0.9));
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 80px rgba(255, 184, 77, 0.12),
        0 28px 64px rgba(0, 0, 0, 0.45);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .panel.open .wish-card {
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 90px rgba(255, 184, 77, 0.2),
        0 0 60px rgba(124, 92, 255, 0.18),
        0 28px 64px rgba(0, 0, 0, 0.45);
    }
    .wish-card-glow {
      position: absolute;
      inset: -40% -20% auto;
      height: 70%;
      background:
        radial-gradient(circle at 50% 40%, rgba(255, 210, 122, 0.28), transparent 42%),
        radial-gradient(circle at 35% 55%, rgba(255, 79, 216, 0.12), transparent 40%),
        radial-gradient(circle at 65% 55%, rgba(124, 92, 255, 0.14), transparent 42%);
      pointer-events: none;
      animation: wishGlow 5.5s ease-in-out infinite;
    }
    .wish-card-star {
      position: relative;
      z-index: 1;
      font-size: 1.35rem;
      color: #ffd27a;
      text-shadow: 0 0 28px rgba(255, 210, 122, 0.75);
      margin-bottom: 0.35rem;
      flex-shrink: 0;
      animation: icoPulse 2.4s ease-in-out infinite;
    }
    .wish-card-kicker {
      position: relative;
      z-index: 1;
      font-size: 0.64rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: rgba(255, 210, 122, 0.78);
      font-weight: 300;
      margin-bottom: 0.75rem;
      flex-shrink: 0;
    }
    .wish-card-wish {
      position: relative;
      z-index: 1;
      margin: 0 0 0.65rem;
      font-family: "Syne", sans-serif;
      font-size: clamp(1.15rem, 3.8vw, 1.65rem);
      font-weight: 600;
      letter-spacing: -0.02em;
      line-height: 1.25;
      color: #fff6e8;
      text-wrap: balance;
      quotes: none;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .wish-card-msg {
      position: relative;
      z-index: 1;
      margin: 0 auto 0.9rem;
      max-width: 30ch;
      font-weight: 300;
      font-size: 0.9rem;
      line-height: 1.45;
      color: rgba(247, 243, 255, 0.72);
      text-wrap: pretty;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .wish-card-msg[hidden] { display: none; }
    .wish-card-foot {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.2rem;
      margin-bottom: 0.15rem;
      flex-shrink: 0;
    }
    .wish-card-from {
      font-size: 0.92rem;
      font-weight: 400;
      color: rgba(247, 243, 255, 0.88);
    }
    .wish-card-date {
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      color: var(--muted);
      font-variant-numeric: tabular-nums;
    }
    .wish-card-actions {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1fr;
      gap: 0.45rem;
      align-items: stretch;
      flex-shrink: 0;
    }
    .wish-card-actions .btn {
      width: 100%;
      padding: 0.8rem 0.7rem;
      font-size: 0.8rem;
    }
    @keyframes wishGlow {
      0%, 100% { opacity: 0.75; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.04); }
    }

    .pay-panel-inner {
      position: relative;
      width: min(100%, 380px);
      max-width: 100%;
      overflow: hidden;
      overflow-x: hidden;
      border: 1px solid rgba(61, 231, 255, 0.22);
      background:
        radial-gradient(ellipse 90% 55% at 50% -12%, rgba(61, 231, 255, 0.14), transparent 58%),
        radial-gradient(ellipse 50% 40% at 10% 100%, rgba(124, 92, 255, 0.14), transparent 50%),
        linear-gradient(168deg, rgba(14, 18, 40, 0.97), rgba(8, 5, 20, 0.94));
      padding: 1.15rem 1rem 1rem;
    }
    .pay-glow {
      position: absolute;
      inset: -40% -20% auto;
      height: 55%;
      pointer-events: none;
      background:
        radial-gradient(circle at 50% 40%, rgba(61, 231, 255, 0.2), transparent 42%),
        radial-gradient(circle at 60% 55%, rgba(124, 92, 255, 0.16), transparent 45%);
      animation: wishGlow 5.5s ease-in-out infinite;
    }
    .pay-star {
      position: relative;
      z-index: 1;
      font-size: 1.15rem;
      color: #7ef0ff;
      text-shadow: 0 0 22px rgba(61, 231, 255, 0.65);
      margin-bottom: 0.2rem;
      animation: icoPulse 2.4s ease-in-out infinite;
    }
    .pay-kicker {
      position: relative;
      z-index: 1;
      font-size: 0.62rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(61, 231, 255, 0.78);
      margin-bottom: 0.35rem !important;
    }
    .pay-panel-inner h2 {
      position: relative;
      z-index: 1;
      margin-bottom: 0.35rem;
    }
    .pay-hint {
      position: relative;
      z-index: 1;
      color: var(--muted);
      font-weight: 300;
      font-size: 0.82rem;
      line-height: 1.4;
      margin-bottom: 0.35rem !important;
      max-width: 30ch;
      margin-left: auto;
      margin-right: auto;
    }
    .pay-price {
      position: relative;
      z-index: 1;
      display: grid;
      justify-items: center;
      gap: 0.2rem;
      margin: 0.55rem auto 0.85rem;
      padding: 0.75rem 0.9rem 0.8rem;
      width: min(100%, 240px);
      border: 1px solid rgba(61, 231, 255, 0.28);
      border-radius: 1rem;
      background:
        linear-gradient(165deg, rgba(61, 231, 255, 0.1), rgba(124, 92, 255, 0.08)),
        rgba(0, 0, 0, 0.22);
      box-shadow: 0 0 28px rgba(61, 231, 255, 0.08);
    }
    .pay-price-label {
      font-size: 0.6rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: rgba(61, 231, 255, 0.8);
    }
    .pay-price-value {
      font-family: "Syne", sans-serif;
      font-size: clamp(1.45rem, 5vw, 1.75rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: #e8fbff;
      text-shadow: 0 0 24px rgba(61, 231, 255, 0.35);
      line-height: 1.1;
    }
    .pay-price-note {
      font-size: 0.68rem;
      font-weight: 300;
      color: var(--muted);
    }
    .pay-form {
      position: relative;
      z-index: 1;
      text-align: center;
      width: 100%;
      max-width: 100%;
      overflow: hidden;
    }
    .pay-error {
      min-height: 0.95rem;
      margin: 0 0 0.45rem;
      font-size: 0.72rem;
      color: #ff7ab8;
      text-align: center;
    }
    .paytr-frame-wrap {
      display: none;
      position: relative;
      z-index: 1;
      margin-top: 0.35rem;
      max-height: min(42dvh, 320px);
      overflow: hidden;
      border-radius: 0.75rem;
    }
    .paytr-frame-wrap.show { display: block; }
    #paytrIframe {
      width: 100%;
      max-width: 100%;
      height: min(38dvh, 300px);
      border: 1px solid var(--line);
      border-radius: 0.75rem;
      background: #0a0614;
    }
    .pay-form-block.hide { display: none; }
    .pay-abort-row {
      margin-top: 0.55rem;
      grid-template-columns: 1fr;
    }

    .flash {
      position: fixed;
      inset: 0;
      pointer-events: none;
      background: radial-gradient(circle at 50% 45%, rgba(255, 79, 216, 0.2), transparent 42%);
      opacity: 0;
      transition: opacity 0.6s ease;
      z-index: 25;
    }
    .flash.on { opacity: 1; }

    .empty-sky {
      position: absolute;
      left: 50%;
      top: 48%;
      transform: translate(-50%, -50%);
      color: var(--muted);
      font-weight: 300;
      text-align: center;
      pointer-events: none;
      z-index: 4;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(14px); }
      to { opacity: 1; transform: none; }
    }

    @media (prefers-reduced-motion: reduce) {
      #sky { opacity: 0.85; }
      .choice, .panel-inner, .tooltip, .wish-card-glow, .wish-card-star,
      .compose-glow, .compose-star, .compose-name-wrap, .pay-glow, .pay-star {
        transition: none !important;
        animation: none !important;
      }
      .panel.open .panel-inner { animation: none !important; }
    }

    /* Premium refinements */
    .brand-kicker {
      margin-bottom: 0.85rem;
      opacity: 0.9;
    }
    .lang-switch {
      display: inline-flex;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.04);
      backdrop-filter: blur(8px);
      overflow: hidden;
    }
    .lang-btn {
      appearance: none;
      border: none;
      background: transparent;
      color: var(--muted);
      font-family: "Syne", sans-serif;
      font-size: 0.65rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      padding: 0.4rem 0.55rem;
      cursor: pointer;
    }
    .lang-btn.active {
      color: var(--fg);
      background: rgba(124, 92, 255, 0.28);
    }
    .field-label {
      display: block;
      text-align: left;
      font-size: 0.62rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 0 0 0.2rem;
    }
    .field {
      margin-bottom: 1.1rem;
      text-align: left;
    }
    .choice {
      border-radius: 2px;
    }
    .home-stats {
      width: min(100%, 340px);
      border: 1px solid rgba(247, 243, 255, 0.1);
      background: rgba(10, 6, 24, 0.35);
      backdrop-filter: blur(10px);
      padding: 0.55rem 0.25rem;
    }
    @media (max-width: 900px) {
      .panel,
      .panel-inner,
      .wish-compose,
      .pay-panel-inner,
      .wish-card,
      .tooltip,
      .home-stats,
      .nav-dot,
      .lang-switch {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
      }
      .spark-burst { display: none; }
    }

    @media (max-width: 520px) {
      .app {
        padding-left: 1rem;
        padding-right: 1rem;
      }
      .nav-actions { gap: 0.3rem; }
      .panel {
        padding: 0.5rem;
        place-items: center;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
      }
      .panel-inner,
      .wish-compose,
      .pay-panel-inner,
      .wish-card {
        width: min(100%, 100%);
        max-width: 100%;
        padding: 1rem 0.85rem 0.9rem;
        max-height: calc(100dvh - 1rem);
      }
      .compose-actions,
      .pay-actions,
      .wish-card-actions {
        grid-template-columns: 1fr;
      }
      .panel-x,
      .wish-card-x {
        top: 0.55rem;
        right: 0.55rem;
      }
      h1 { margin-bottom: 1.75rem; }
      .sky-ui {
        padding-left: 1rem;
        padding-right: 1rem;
      }
    }

    @media (max-height: 760px) {
      .wish-card {
        padding: 1rem 1rem 0.9rem;
      }
      .wish-card-star { font-size: 1.05rem; margin-bottom: 0.15rem; }
      .wish-card-kicker { margin-bottom: 0.4rem; }
      .wish-card-wish {
        font-size: clamp(1rem, 3vw, 1.3rem);
        -webkit-line-clamp: 2;
        margin-bottom: 0.35rem;
      }
      .wish-card-msg {
        font-size: 0.8rem;
        margin-bottom: 0.55rem;
        -webkit-line-clamp: 2;
      }
      .wish-card-foot { margin-bottom: 0.65rem; }
      .wish-compose h2,
      .pay-panel-inner h2 { font-size: clamp(1.15rem, 3.6vw, 1.45rem); }
      .compose-star,
      .pay-star { font-size: 1rem; }
      .compose-wish {
        height: 2.55rem;
        max-height: 2.55rem;
        min-height: 2.55rem;
      }
      .compose-msg {
        height: 2.7rem;
        max-height: 2.7rem;
        min-height: 2.7rem;
      }
      .compose-lead { margin-bottom: 0.5rem !important; font-size: 0.74rem; }
      .pay-hint { font-size: 0.76rem; }
      .pay-price { margin-bottom: 0.65rem; padding: 0.65rem 0.8rem; }
    }
    @media (min-width: 521px) and (max-width: 900px) {
      .stage { width: min(100%, 640px); }
      .panel-inner { width: min(100%, 400px); }
    }

    @keyframes panelIn {
      from { opacity: 0; transform: translateY(16px) scale(0.96); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .kicker-dot {
      display: inline-block;
      width: 6px;
      height: 6px;
      margin-right: 0.35rem;
      border-radius: 50%;
      background: var(--glow-c);
      box-shadow: 0 0 12px rgba(61, 231, 255, 0.9);
      vertical-align: middle;
      animation: icoPulse 2s ease-in-out infinite;
    }
    .title-ico {
      display: inline-block;
      margin-right: 0.15rem;
      color: #d7cbff;
      text-shadow: 0 0 18px rgba(124, 92, 255, 0.7);
    }
    .stat-ico {
      display: block;
      font-size: 0.75rem;
      color: rgba(215, 203, 255, 0.75);
      margin-bottom: 0.15rem;
      text-shadow: 0 0 12px rgba(124, 92, 255, 0.55);
    }
    .btn {
      transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
      display: inline-flex;
      justify-content: center;
      align-items: center;
      gap: 0.45rem;
    }
    .btn:hover,
    .btn:focus-visible {
      transform: translateY(-1px);
      box-shadow: 0 0 28px rgba(247, 243, 255, 0.18);
      outline: none;
    }
    .btn.ghost:hover,
    .btn.ghost:focus-visible {
      border-color: rgba(124, 92, 255, 0.55);
      box-shadow: 0 0 24px rgba(124, 92, 255, 0.2);
    }
    .thanks-inner { position: relative; overflow: hidden; }
    .thanks-burst {
      position: absolute;
      top: 1rem;
      right: 1.1rem;
      font-size: 1.4rem;
      color: #ffd27a;
      opacity: 0.85;
      animation: thanksSpin 4s linear infinite;
      pointer-events: none;
    }
    .spark-burst {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 26;
      opacity: 0;
      background:
        radial-gradient(circle at 50% 42%, rgba(255, 210, 122, 0.28), transparent 28%),
        radial-gradient(circle at 42% 48%, rgba(124, 92, 255, 0.22), transparent 34%),
        radial-gradient(circle at 58% 48%, rgba(255, 79, 216, 0.18), transparent 32%);
      transition: opacity 0.55s ease;
    }
    .spark-burst.on { opacity: 1; }

    @keyframes icoPulse {
      0%, 100% { transform: scale(1); opacity: 0.85; }
      50% { transform: scale(1.08); opacity: 1; }
    }
    @keyframes thanksSpin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
