/* ==========================================================================
 * HANHAI AI (瀚海AI) — Stage 2B + Stage 4 Page & Lifecycle Motion Stylesheet
 * Covers: Full Generation Lifecycle, /studio/, /lingbaoge/, /assets/,
 * /membership/ & Recharge Modals, /account/, /announcements/, /plugin/.
 * STRICT RULES:
 *  - GPU-only animations (transform / opacity / clip-path / filter).
 *  - ZERO catch-all transitions (explicit GPU properties only).
 *  - Strict dual-theme Night (Obsidian Gold) vs Day (Warm Ivory & Bronze).
 *  - All decorative overlays strictly `pointer-events: none`.
 *  - Full `@media (prefers-reduced-motion: reduce)` respect.
 * ========================================================================== */

@property --hh-beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --hh-p-gold-glow: rgba(243, 203, 122, 0.36);
  --hh-p-gold-soft: rgba(243, 203, 122, 0.14);
  --hh-p-gold-line: rgba(243, 203, 122, 0.44);
  --hh-p-holo-bg: linear-gradient(135deg, rgba(28, 22, 15, 0.94) 0%, rgba(44, 33, 20, 0.92) 50%, rgba(22, 18, 13, 0.96) 100%);
  --hh-p-holo-aurora: radial-gradient(65% 55% at 50% 45%, rgba(243, 203, 122, 0.22) 0%, rgba(216, 155, 60, 0.08) 52%, transparent 78%);
  --hh-p-holo-scan: linear-gradient(180deg, transparent 0%, rgba(243, 203, 122, 0.65) 50%, transparent 100%);
  --hh-p-pill-bg: rgba(243, 203, 122, 0.16);
  --hh-p-pill-border: rgba(243, 203, 122, 0.36);
  --hh-p-tip-bg: rgba(22, 18, 13, 0.95);
  --hh-p-tip-ink: #f5ebd6;
  --hh-p-switch-track: rgba(255, 245, 224, 0.14);
  --hh-p-switch-active: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%);
  --hh-p-switch-thumb: #fffdf8;
}

html[data-hhv-appearance^="day"],
html.hhd4-day {
  --hh-p-gold-glow: rgba(184, 130, 36, 0.24);
  --hh-p-gold-soft: rgba(184, 130, 36, 0.11);
  --hh-p-gold-line: rgba(184, 130, 36, 0.42);
  --hh-p-holo-bg: linear-gradient(135deg, #fffcf6 0%, #f7edd9 52%, #efe0c2 100%);
  --hh-p-holo-aurora: radial-gradient(65% 55% at 50% 45%, rgba(214, 160, 56, 0.22) 0%, rgba(255, 255, 255, 0.6) 52%, transparent 78%);
  --hh-p-holo-scan: linear-gradient(180deg, transparent 0%, rgba(184, 124, 26, 0.55) 50%, transparent 100%);
  --hh-p-pill-bg: rgba(184, 130, 36, 0.13);
  --hh-p-pill-border: rgba(184, 130, 36, 0.34);
  --hh-p-tip-bg: rgba(28, 22, 15, 0.92);
  --hh-p-tip-ink: #fffcf5;
  --hh-p-switch-track: rgba(139, 92, 20, 0.18);
  --hh-p-switch-active: linear-gradient(135deg, #d89b3c 0%, #b87c1a 100%);
  --hh-p-switch-thumb: #ffffff;
}

/* ==========================================================================
 * 1. FULL GENERATION LIFECYCLE (Ripple, Submitting Shimmer, Holo Scan, Aha Reveal)
 * ========================================================================== */

.hh-m-ripple-host {
  position: relative;
  overflow: hidden;
}
.hh-m-ripple-wave {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(circle, rgba(255, 245, 214, 0.65) 0%, rgba(243, 203, 122, 0.35) 55%, transparent 74%);
  transform: translate3d(-50%, -50%, 0) scale(0.08);
  opacity: 0.9;
  will-change: transform, opacity;
  animation: hhGenRipple 560ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
}
@keyframes hhGenRipple {
  0% { transform: translate3d(-50%, -50%, 0) scale(0.08); opacity: 0.85; }
  100% { transform: translate3d(-50%, -50%, 0) scale(1); opacity: 0; }
}

.hh-m-gen-press {
  transform: scale(0.95) !important;
  transition: transform 110ms var(--hh-ease-snappy, cubic-bezier(0.2, 0.9, 0.3, 1)) !important;
}

.hh-m-submitting {
  position: relative;
  overflow: hidden;
}
.hh-m-submitting::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 248, 228, 0.45) 50%, transparent 82%);
  transform: translate3d(-110%, 0, 0);
  will-change: transform;
  animation: hhGenSubmitSweep 1.15s var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)) infinite;
}
@keyframes hhGenSubmitSweep {
  0% { transform: translate3d(-110%, 0, 0); }
  100% { transform: translate3d(110%, 0, 0); }
}

/* Cinema Holographic Scan Card (Night & Day dual-theme) */
.hh-holo-scan {
  position: relative !important;
  overflow: hidden !important;
  background: var(--hh-p-holo-bg) !important;
  border: 1px solid var(--hh-p-gold-line) !important;
  border-radius: 14px;
}
.hh-holo-scan-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
  border-radius: inherit;
}
.hh-holo-aurora {
  position: absolute;
  inset: -25%;
  pointer-events: none;
  background: var(--hh-p-holo-aurora);
  will-change: transform, opacity;
  animation: hhHoloDrift 4.4s ease-in-out infinite alternate;
}
@keyframes hhHoloDrift {
  0% { transform: translate3d(-8%, -6%, 0) scale(0.96); opacity: 0.72; }
  100% { transform: translate3d(8%, 6%, 0) scale(1.08); opacity: 1; }
}
.hh-holo-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44px;
  pointer-events: none;
  background: var(--hh-p-holo-scan);
  transform: translate3d(0, -100%, 0);
  will-change: transform;
  animation: hhHoloBeam 2.1s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}
@keyframes hhHoloBeam {
  0% { transform: translate3d(0, -60px, 0); }
  100% { transform: translate3d(0, 320px, 0); }
}
.hh-holo-hud {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--hh-m-surface, rgba(24, 20, 15, 0.88));
  border: 1px solid var(--hh-m-border, rgba(224, 182, 94, 0.28));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--hh-m-ink, #f5ebd6);
  font: 600 12px/1.3 "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}
.hh-holo-stage {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hh-holo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--hh-m-gold, #f3cb7a);
  box-shadow: 0 0 8px var(--hh-p-gold-glow);
  animation: hhMotionBreath 1.5s ease-in-out infinite;
  will-change: transform, opacity;
}
.hh-holo-pct {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  color: var(--hh-m-gold, #f3cb7a);
  flex: 0 0 auto;
}
@keyframes hhMotionBreath {
  0%, 100% { opacity: 0.45; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.18); }
}

/* Aha Moment Reveal: Blur-to-sharp focus + warm-gold completion glint sweep */
.hh-aha-reveal {
  will-change: transform, opacity, filter;
  animation: hhAhaFocus 420ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)) both;
}
@keyframes hhAhaFocus {
  0% { opacity: 0.35; filter: blur(12px); transform: scale(1.04); }
  100% { opacity: 1; filter: blur(0px); transform: scale(1); }
}
.hh-aha-glint-wrap {
  position: relative;
  overflow: hidden;
}
.hh-aha-glint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  background: linear-gradient(112deg, transparent 22%, rgba(255, 244, 206, 0.56) 49%, rgba(243, 203, 122, 0.24) 56%, transparent 76%);
  transform: translate3d(-120%, 0, 0);
  will-change: transform, opacity;
  animation: hhAhaGlintSweep 680ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
}
@keyframes hhAhaGlintSweep {
  0% { transform: translate3d(-120%, 0, 0); opacity: 0.95; }
  100% { transform: translate3d(120%, 0, 0); opacity: 0; }
}

/* ==========================================================================
 * 2. STUDIO WORKSPACE (/studio/)
 * ========================================================================== */

/* Directional spring open on model/parameter menus & drawers */
.hhsw-filter-menu.is-open,
.hhsw-filter-menu.open,
.hh367-menu.is-open,
.hh367-menu.open,
.hhsw-popover.is-open,
.hhsw-dropdown.is-open {
  transform-origin: top left;
  animation: hhSpringPopIn 220ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)) both;
  will-change: transform, opacity;
}
@keyframes hhSpringPopIn {
  0% { opacity: 0; transform: translate3d(0, -6px, 0) scale(0.95); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* AI Prompt Polish warm-gold highlight sweep */
.hh-m-polish-host {
  position: relative;
}
.hh-m-polish-sweep {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 8;
  overflow: hidden;
}
.hh-m-polish-sweep::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 10%, rgba(243, 203, 122, 0.28) 46%, rgba(255, 245, 212, 0.44) 52%, transparent 84%);
  transform: translate3d(-110%, 0, 0);
  animation: hhAhaGlintSweep 720ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
}

/* Studio video result card hover zoom + smooth preview fade + breathing play icon */
.hhsw-media-tile,
.hhsw-task-preview {
  overflow: hidden;
}
.hhsw-media-tile img,
.hhsw-media-tile video,
.hhsw-task-preview img,
.hhsw-task-preview video {
  transition: transform 320ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)), opacity 220ms ease;
  will-change: transform;
}
.hhsw-media-tile:hover img,
.hhsw-media-tile:hover video,
.hhsw-task-preview:hover video {
  transform: scale(1.03);
}
.hhsw-gallery-play,
.hhsw-task .hhsw-play-badge {
  transition: transform 220ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)), opacity 200ms ease;
  will-change: transform, opacity;
}
.hhsw-asset-card:hover .hhsw-gallery-play,
.hhsw-media-tile:hover .hhsw-gallery-play {
  animation: hhPlayBreath 1.6s ease-in-out infinite;
}
@keyframes hhPlayBreath {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* ==========================================================================
 * 3. LINGBAOGE (/lingbaoge/) — Sliding Tab Pill, Staggered Reveal, Hover & Day Prompt Card
 * ========================================================================== */

.hlbg-categories,
.hlbg-subcategories,
.hlbg-skill-library-nav,
.hhsw-plan-tabs,
.hh-ann-filter-bar,
.hhp-mode-tabs {
  position: relative;
}
.hh-m-tab-pill {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: var(--hh-p-pill-bg);
  border: 1px solid var(--hh-p-pill-border);
  box-shadow: 0 4px 14px var(--hh-p-gold-soft);
  transition: transform 240ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)), width 240ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)), height 240ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)), opacity 160ms ease;
  will-change: transform, width, opacity;
}
.hh-m-tab-pill.is-ready {
  opacity: 1;
}

/* Staggered Reveal for Lingbaoge & Announcement cards */
.hh-m-stagger-in {
  animation: hhStaggerReveal 340ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)) both;
  animation-delay: var(--hh-stagger-delay, 0ms);
  will-change: transform, opacity;
}
@keyframes hhStaggerReveal {
  0% { opacity: 0; transform: translate3d(0, 12px, 0) scale(0.985); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* Lingbaoge masonry card warm-gold hover border + scale(1.035) image zoom */
body.hlbg-page #hlbg-results article,
body.hlbg-page #hlbg-results .hlbg-card {
  transition: transform 260ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)), border-color 220ms ease, box-shadow 260ms ease;
}
body.hlbg-page #hlbg-results article:hover,
body.hlbg-page #hlbg-results .hlbg-card:hover {
  border-color: var(--hh-m-border-strong, rgba(243, 203, 122, 0.56));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24), 0 0 0 1px var(--hh-p-gold-line);
}
html[data-hhv-appearance^="day"] body.hlbg-page #hlbg-results article:hover,
html.hhd4-day body.hlbg-page #hlbg-results article:hover {
  box-shadow: 0 12px 28px rgba(42, 29, 10, 0.12), 0 0 0 1px var(--hh-p-gold-line);
}
body.hlbg-page #hlbg-results article img,
body.hlbg-page #hlbg-results article video {
  transition: transform 340ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1));
  will-change: transform;
}
body.hlbg-page #hlbg-results article:hover img,
body.hlbg-page #hlbg-results article:hover video {
  transform: scale(1.035);
}

/* Warm Ivory Day-mode Lingbaoge prompt card perfection */
html[data-hhv-appearance^="day"] body.hlbg-page .hlbg-detail-prompt,
html.hhd4-day body.hlbg-page .hlbg-detail-prompt,
html[data-hhv-appearance^="day"] body.hlbg-page .hlbg-detail-box,
html.hhd4-day body.hlbg-page .hlbg-detail-box,
html[data-hhv-appearance^="day"] body.hlbg-page [class*="hlbg-prompt"],
html.hhd4-day body.hlbg-page [class*="hlbg-prompt"] {
  background: #fbf7ee !important;
  border-color: rgba(184, 130, 36, 0.24) !important;
  color: #1c160f !important;
}

/* ==========================================================================
 * 4. ASSETS (/assets/) — Hover Action Bar, Directional Tooltips, Batch Select
 * ========================================================================== */

.hhsw-asset-card {
  transition: border-color 200ms ease, box-shadow 240ms ease;
}
.hhsw-asset-card:hover {
  border-color: var(--hh-m-border-strong, rgba(243, 203, 122, 0.56));
}
.hhsw-asset-card .hhsw-asset-media img,
.hhsw-asset-card .hhsw-asset-media video {
  transition: transform 320ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1));
  will-change: transform;
}
.hhsw-asset-card:hover .hhsw-asset-media img,
.hhsw-asset-card:hover .hhsw-asset-media video {
  transform: scale(1.03);
}

/* Batch-selected asset card: luminous warm-gold border + spring checkmark */
.hhsw-asset-card.is-selected,
.hhsw-asset-card.selected,
.hhsw-asset-card[data-selected="1"],
.hhsw-asset-card:has(.hhsw-asset-select.is-selected),
.hhsw-asset-card:has(.hhsw-asset-select.selected),
.hhsw-asset-card:has(.hhsw-asset-select.active) {
  border-color: var(--hh-m-gold, #f3cb7a) !important;
  box-shadow: 0 0 0 2px var(--hh-p-gold-glow) !important;
}
.hhsw-asset-select {
  transition: transform 200ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)), opacity 160ms ease, background-color 180ms ease, border-color 180ms ease;
}
.hhsw-asset-select.is-selected,
.hhsw-asset-select.selected,
.hhsw-asset-select.active,
.hhsw-asset-select[aria-pressed="true"] {
  animation: hhCheckSpring 280ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes hhCheckSpring {
  0% { transform: scale(0.65); }
  60% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

/* Bottom floating batch bar spring slide-up */
.hhsw-bulk-bar,
.hhsw-batch-bar,
.hhsw-asset-bulk-bar {
  animation: hhBatchSlideUp 260ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)) both;
  will-change: transform, opacity;
}
@keyframes hhBatchSlideUp {
  0% { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.97); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* Directional GPU Tooltip (for hover action buttons on Assets / Studio) */
[data-hh-tip] {
  position: relative;
}
[data-hh-tip]::before {
  content: attr(data-hh-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translate3d(-50%, 4px, 0) scale(0.94);
  padding: 4px 8px;
  border-radius: 7px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  background: var(--hh-p-tip-bg);
  color: var(--hh-p-tip-ink);
  border: 1px solid var(--hh-m-border, rgba(224, 182, 94, 0.28));
  font: 600 11px/1.25 "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
  transition: transform 170ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)), opacity 140ms ease;
}
[data-hh-tip]:hover::before,
[data-hh-tip]:focus-visible::before {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
}

/* ==========================================================================
 * 5. MEMBERSHIP & RECHARGE (/membership/ & #hh-recharge-modal)
 * ========================================================================== */

.hhsw-plan-card {
  position: relative;
  transition: transform 260ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)), border-color 220ms ease, box-shadow 260ms ease;
  will-change: transform;
}
.hhsw-plan-card:hover {
  transform: translate3d(0, -4px, 0);
}

/* Featured plan Animated Rotating Border Beam (masked conic-gradient, GPU @property) */
.hhsw-plan-card.hh-m-featured-beam {
  isolation: isolate;
}
.hhsw-plan-card.hh-m-featured-beam::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  z-index: 2;
  background: conic-gradient(
    from var(--hh-beam-angle),
    transparent 0deg,
    rgba(243, 203, 122, 0.12) 55deg,
    #f3cb7a 95deg,
    #fff3c4 115deg,
    #d89b3c 135deg,
    transparent 185deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: hhBorderBeamSpin 4.2s linear infinite;
}
html[data-hhv-appearance^="day"] .hhsw-plan-card.hh-m-featured-beam::before,
html.hhd4-day .hhsw-plan-card.hh-m-featured-beam::before {
  background: conic-gradient(
    from var(--hh-beam-angle),
    transparent 0deg,
    rgba(184, 124, 26, 0.14) 55deg,
    #d89b3c 95deg,
    #f3cb7a 115deg,
    #9c650e 135deg,
    transparent 185deg,
    transparent 360deg
  );
}
@keyframes hhBorderBeamSpin {
  0% { --hh-beam-angle: 0deg; }
  100% { --hh-beam-angle: 360deg; }
}

/* Price rolling tabular numerals & badge highlight pop */
.hhsw-price,
.hhsw-plan-points,
.hh-recharge-plan {
  font-variant-numeric: tabular-nums;
}
.hh-m-badge-pop {
  animation: hhBadgePop 320ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes hhBadgePop {
  0% { transform: scale(0.86); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Night-mode high-contrast typography for /membership/ 生图月卡 (.hh28) tier titles & prices (leaves Day untouched) */
html:not(#_hh1):not(#_hh2):is([data-hhv-appearance="night"], .hhd4-night) .hh28 .card .name,
html:not(#_hh1):not(#_hh2):is([data-hhv-appearance="night"], .hhd4-night) .hh28 section.card .name {
  color: #f7efdf !important;
  -webkit-text-fill-color: #f7efdf !important;
}
html:not(#_hh1):not(#_hh2):is([data-hhv-appearance="night"], .hhd4-night) .hh28 .card .price,
html:not(#_hh1):not(#_hh2):is([data-hhv-appearance="night"], .hhd4-night) .hh28 section.card .price {
  color: #f0c975 !important;
  -webkit-text-fill-color: #f0c975 !important;
}
html:not(#_hh1):not(#_hh2):is([data-hhv-appearance="night"], .hhd4-night) .hh28 .card .price small,
html:not(#_hh1):not(#_hh2):is([data-hhv-appearance="night"], .hhd4-night) .hh28 section.card .price small {
  color: #d8c6a8 !important;
  -webkit-text-fill-color: #d8c6a8 !important;
}

/* Recharge plan card tactile hover */
.hh-recharge-plan {
  transition: transform 200ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)), border-color 180ms ease, box-shadow 200ms ease;
}
.hh-recharge-plan:hover {
  transform: translate3d(0, -2px, 0);
}
.hh-recharge-plan:active {
  transform: scale(0.97);
}

/* Payment success golden check + stardust ceremony */
.hh-pay-ceremony-badge {
  position: fixed;
  left: 50%;
  top: 44%;
  transform: translate3d(-50%, -50%, 0) scale(0.6);
  z-index: 2147483646;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--hh-m-surface, rgba(24, 20, 15, 0.94));
  border: 1px solid var(--hh-m-border-strong, rgba(243, 203, 122, 0.6));
  color: var(--hh-m-ink, #f5ebd6);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42), 0 0 28px var(--hh-p-gold-glow);
  font: 700 15px/1.3 "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  opacity: 0;
  animation: hhPayCeremonyPop 1.9s var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
}
.hh-pay-ceremony-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%);
  color: #181207;
  font-weight: 900;
  font-size: 15px;
}
@keyframes hhPayCeremonyPop {
  0% { opacity: 0; transform: translate3d(-50%, -42%, 0) scale(0.7); }
  16% { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1.04); }
  26% { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
  80% { opacity: 1; transform: translate3d(-50%, -52%, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(-50%, -62%, 0) scale(0.95); }
}

/* ==========================================================================
 * 6. ACCOUNT (/account/), ANNOUNCEMENTS (/announcements/), PLUGIN (/plugin/)
 * ========================================================================== */

/* Account avatar hover luminous gold halo */
.hhv-profile-avatar {
  position: relative;
  transition: transform 240ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)), box-shadow 240ms ease;
}
.hhv-profile-avatar::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  pointer-events: none;
  border: 1.5px solid var(--hh-m-gold, #f3cb7a);
  opacity: 0;
  transform: scale(0.92);
  transition: transform 260ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)), opacity 220ms ease;
}
.hhv-profile-avatar:hover {
  transform: scale(1.03);
  box-shadow: 0 0 22px var(--hh-p-gold-glow);
}
.hhv-profile-avatar:hover::after {
  opacity: 0.9;
  transform: scale(1);
}

/* Account subnav & tabs tactile gold feedback */
.hhv-profile-nav {
  position: relative;
  transition: transform 180ms var(--hh-ease-snappy, cubic-bezier(0.2, 0.9, 0.3, 1)), border-color 180ms ease, background-color 180ms ease;
}
.hhv-profile-nav:hover {
  transform: translate3d(0, -1.5px, 0);
}
.hhv-profile-nav:active {
  transform: scale(0.97);
}

/* Announcements: breathing unread dot + smooth expand + filter pill polish */
.hh-ann-unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
  pointer-events: none;
  background: var(--hh-m-gold, #f3cb7a);
  box-shadow: 0 0 0 3px var(--hh-p-gold-soft);
  animation: hhMotionBreath 1.8s ease-in-out infinite;
  will-change: transform, opacity;
}
.hh-ann-filter-pill {
  transition: transform 180ms var(--hh-ease-snappy, cubic-bezier(0.2, 0.9, 0.3, 1)), border-color 180ms ease, background-color 180ms ease;
}
.hh-ann-filter-pill:active {
  transform: scale(0.95);
}
.hhsw-announcement-history-card {
  transition: transform 240ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)), border-color 200ms ease, box-shadow 240ms ease;
}
.hhsw-announcement-history-card:hover {
  transform: translate3d(0, -2px, 0);
  border-color: var(--hh-m-border-strong, rgba(243, 203, 122, 0.56));
}
.hh-ann-expand-anim {
  animation: hhAnnExpand 260ms var(--hh-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)) both;
  will-change: transform, opacity;
}
@keyframes hhAnnExpand {
  0% { opacity: 0; transform: translate3d(0, -6px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Plugin (/plugin/): Apple-grade elastic switches & tactile pills */
body.hh-plugin-body .hhp-mode-tab,
body.hh-plugin-body .hhp-ttl-btn,
body.hh-plugin-body .hhp-subtab,
body.hh-plugin-body .hhp-client-pill,
body.hh-plugin-body .hhp-lockup-node {
  position: relative;
  z-index: 1;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}
body.hh-plugin-body .hhp-mode-tab:active,
body.hh-plugin-body .hhp-ttl-btn:active,
body.hh-plugin-body .hhp-subtab:active,
body.hh-plugin-body .hhp-client-pill:active,
body.hh-plugin-body .hhp-lockup-node:active {
  transform: scale(0.95);
}
body.hh-plugin-body input[type="checkbox"].hh-elastic-switch,
body.hh-plugin-body .hhp-switch input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--hh-p-switch-track);
  border: 1px solid var(--hh-m-border, rgba(224, 182, 94, 0.28));
  cursor: pointer;
  vertical-align: middle;
  transition: background-color 220ms ease, border-color 220ms ease;
}
body.hh-plugin-body input[type="checkbox"].hh-elastic-switch::after,
body.hh-plugin-body .hhp-switch input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hh-p-switch-thumb);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  transform: translate3d(0, 0, 0);
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
body.hh-plugin-body input[type="checkbox"].hh-elastic-switch:checked,
body.hh-plugin-body .hhp-switch input[type="checkbox"]:checked {
  background: var(--hh-p-switch-active);
  border-color: var(--hh-m-border-strong, rgba(243, 203, 122, 0.56));
}
body.hh-plugin-body input[type="checkbox"].hh-elastic-switch:checked::after,
body.hh-plugin-body .hhp-switch input[type="checkbox"]:checked::after {
  transform: translate3d(18px, 0, 0);
}
body.hh-plugin-body input[type="checkbox"].hh-elastic-switch:active::after {
  transform: scaleX(1.18);
}
body.hh-plugin-body input[type="checkbox"].hh-elastic-switch:checked:active::after {
  transform: translate3d(15px, 0, 0) scaleX(1.18);
}

/* ==========================================================================
 * 7. REDUCED MOTION RESPECT
 * ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hh-m-ripple-wave,
  .hh-m-submitting::after,
  .hh-holo-aurora,
  .hh-holo-scanline,
  .hh-holo-dot,
  .hh-aha-reveal,
  .hh-aha-glint,
  .hhsw-filter-menu.is-open,
  .hh367-menu.is-open,
  .hh-m-polish-sweep::before,
  .hhsw-asset-card:hover .hhsw-gallery-play,
  .hh-m-stagger-in,
  .hhsw-asset-select.is-selected,
  .hhsw-bulk-bar,
  .hhsw-plan-card.hh-m-featured-beam::before,
  .hh-m-badge-pop,
  .hh-pay-ceremony-badge,
  .hh-ann-unread-dot,
  .hh-ann-expand-anim {
    animation: none !important;
  }
  .hh-m-tab-pill,
  .hhsw-media-tile img,
  .hhsw-media-tile video,
  .hhsw-asset-card .hhsw-asset-media img,
  .hhsw-asset-card .hhsw-asset-media video,
  body.hlbg-page #hlbg-results article img,
  .hhsw-plan-card,
  .hh-recharge-plan,
  .hhv-profile-avatar,
  .hhv-profile-avatar::after,
  body.hh-plugin-body input[type="checkbox"].hh-elastic-switch::after {
    transition: none !important;
  }
}
