/* ═══════ Match-Tab — App-style Toolbar ═══════ */
.app-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 0 var(--ph-pad-sm);
}
.at-left, .at-right { display: flex; gap: calc(var(--ph-gap) * 0.8); }
.at-btn {
  width: calc(28px * var(--ph-scale)); height: calc(28px * var(--ph-scale));
  background: transparent;
  border: none;
  color: var(--accent-bright);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 8px rgba(0, 230, 255, 0.5));
}
.at-btn svg { width: calc(20px * var(--ph-scale)); height: calc(20px * var(--ph-scale)); }
.at-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: calc(3px * var(--ph-scale));
  padding: calc(4px * var(--ph-scale)) calc(7px * var(--ph-scale));
  background: var(--surface-2);
  border: 1.5px solid var(--accent);
  border-radius: calc(7px * var(--ph-scale));
  color: var(--accent-bright);
  cursor: pointer;
}
.at-pill svg { width: calc(13px * var(--ph-scale)); height: calc(13px * var(--ph-scale)); }
.at-pill { font-size: 0; }
.at-pill svg { color: var(--accent-bright); }
.atp-arrow { opacity: 0.7; }
.at-pill-purple {
  background: linear-gradient(135deg, #6F2A99, #44007a);
  border-color: var(--c-magenta);
}
.at-pill-purple svg { color: #fff; }

/* ═══════ Season Selector ═══════ */
.app-season {
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(7px * var(--ph-scale)) calc(11px * var(--ph-scale));
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: var(--ph-fs-sm); font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
}
.as-icon { display: inline-flex; align-items: center; gap: calc(7px * var(--ph-scale)); }
.as-icon svg { opacity: 0.9; width: var(--ph-icon-sm); height: var(--ph-icon-sm); }
.as-value { color: var(--accent-bright); font-weight: 800; }

/* ═══════ Filter Chips ═══════ */
.app-filters {
  display: flex; gap: calc(4px * var(--ph-scale));
  overflow-x: auto;
  scrollbar-width: none;
}
.app-filters::-webkit-scrollbar { display: none; }
.af-chip {
  display: inline-flex; align-items: center; gap: calc(3px * var(--ph-scale));
  padding: calc(4px * var(--ph-scale)) calc(7px * var(--ph-scale));
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: calc(6px * var(--ph-scale));
  font-family: var(--mono);
  font-size: var(--ph-fs-xs); font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  white-space: nowrap;
  flex-shrink: 0;
}
.af-chip i { font-style: normal; opacity: 0.7; font-weight: 600; margin-left: 2px; }
.af-chip svg { margin-right: 2px; }

/* ═══════ Section Header (crown) ═══════ */
.app-section-h {
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(7px * var(--ph-scale)) calc(11px * var(--ph-scale));
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: 7px;
  margin-top: 2px;
}
.ash-crown {
  display: inline-flex; align-items: center; gap: calc(7px * var(--ph-scale));
  font-family: var(--display);
  font-size: var(--ph-fs-md); font-weight: 800;
  color: var(--accent-bright);
  letter-spacing: -0.005em;
}
.ash-crown svg { color: var(--accent-bright); flex-shrink: 0; width: var(--ph-icon-sm); height: var(--ph-icon-sm); }
.ash-arrow { color: var(--accent-bright); font-size: var(--ph-fs-sm); }

/* ═══════ Anime Card with Cyan+Magenta Border ═══════ */
.app-anime-card {
  position: relative;
  flex: 1;
  border-radius: 14px;
  padding: 2px;
  background:
    linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-bright) 25%,
      var(--c-magenta) 75%,
      var(--c-rose) 100%);
  margin-top: 4px;
  box-shadow: 0 0 28px rgba(0, 230, 255, 0.35), 0 0 18px rgba(196, 79, 230, 0.2);
  animation: cardBorderPulse 4s ease-in-out infinite;
}
@keyframes cardBorderPulse {
  0%, 100% { box-shadow: 0 0 28px rgba(0, 230, 255, 0.35), 0 0 18px rgba(196, 79, 230, 0.2); }
  50%      { box-shadow: 0 0 38px rgba(0, 230, 255, 0.5), 0 0 26px rgba(196, 79, 230, 0.3); }
}
.aac-cover {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-3);
  isolation: isolate;
}
.aac-bg {
  position: absolute; inset: 0;
  background:
    /* Manga speed-lines diagonal from top-right */
    repeating-linear-gradient(115deg,
      transparent 0,
      transparent 14px,
      rgba(255, 255, 255, 0.06) 14px,
      rgba(255, 255, 255, 0.06) 16px,
      transparent 16px,
      transparent 32px
    ),
    /* Halftone dots */
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.12) 1.5px, transparent 2px),
    /* Soft glow corners */
    radial-gradient(ellipse at top right, rgba(0, 230, 255, 0.5), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(196, 79, 230, 0.4), transparent 60%),
    /* Base gradient */
    linear-gradient(135deg, #001a3d 0%, #002a5e 30%, #0066CC 65%, #00D9FF 100%);
  background-size:
    auto, 8px 8px, auto, auto, auto;
}
.aac-bg::before {
  /* Action sparks */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.7) 0.5px, transparent 2px),
    radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 0.4) 0.4px, transparent 1.5px),
    radial-gradient(circle at 65% 55%, rgba(255, 255, 255, 0.5) 0.5px, transparent 2px),
    radial-gradient(circle at 15% 75%, rgba(255, 215, 0, 0.6) 0.6px, transparent 2px);
}
.aac-bg::after {
  /* Center character silhouette suggestion */
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 70%; height: 75%;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
}
.aac-glyph {
  position: absolute; left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  font-size: calc(96px * var(--ph-scale));
  color: rgba(255, 255, 255, 0.95);
  font-weight: 900;
  text-shadow:
    0 0 40px rgba(0, 230, 255, 0.8),
    0 0 12px rgba(0, 230, 255, 0.5),
    0 18px 36px rgba(0, 0, 0, 0.7),
    -2px 2px 0 rgba(255, 51, 77, 0.4),
    2px -2px 0 rgba(0, 230, 255, 0.4);
  letter-spacing: -0.02em;
}
.aac-score {
  position: absolute; top: calc(8px * var(--ph-scale)); left: calc(8px * var(--ph-scale));
  display: inline-flex; align-items: center; gap: calc(4px * var(--ph-scale));
  padding: calc(3px * var(--ph-scale)) calc(8px * var(--ph-scale));
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--c-gold);
  border-radius: 100px;
  z-index: 3;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
  animation: scorePulse 2.2s ease-in-out infinite;
}
.aac-score span { color: var(--c-gold); font-size: var(--ph-fs-sm); }
.aac-score b {
  font-family: var(--display);
  font-size: var(--ph-fs-sm); font-weight: 800;
  color: var(--c-gold);
}
.aac-comment {
  position: absolute; top: calc(8px * var(--ph-scale)); right: calc(8px * var(--ph-scale));
  width: calc(26px * var(--ph-scale)); height: calc(26px * var(--ph-scale));
  border-radius: 50%;
  background: rgba(13, 26, 38, 0.9);
  border: 1px solid var(--accent);
  color: var(--accent-bright);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.aac-comment svg { width: calc(12px * var(--ph-scale)); height: calc(12px * var(--ph-scale)); }

.aac-watch {
  position: absolute; left: 50%; top: 65%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: calc(5px * var(--ph-scale));
  padding: calc(6px * var(--ph-scale)) calc(13px * var(--ph-scale));
  background: rgba(13, 26, 38, 0.9);
  border: 1px solid var(--accent-bright);
  border-radius: 100px;
  color: var(--accent-bright);
  font-family: var(--display);
  font-size: var(--ph-fs-sm); font-weight: 800;
  cursor: pointer;
  z-index: 4;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.aac-watch svg { color: var(--accent-bright); width: calc(12px * var(--ph-scale)); height: calc(12px * var(--ph-scale)); }

.aac-dislike, .aac-like {
  position: absolute; bottom: calc(14px * var(--ph-scale));
  width: calc(34px * var(--ph-scale)); height: calc(34px * var(--ph-scale));
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}
.aac-dislike svg, .aac-like svg { width: calc(15px * var(--ph-scale)); height: calc(15px * var(--ph-scale)); }
.aac-dislike {
  left: calc(14px * var(--ph-scale));
  background: linear-gradient(135deg, #FF334D, #CC2940);
  color: #fff;
}
.aac-like {
  right: calc(14px * var(--ph-scale));
  background: linear-gradient(135deg, #00CC55, #00A040);
  color: #fff;
}

/* ═══════ Sammlung — [SYSTEM] COLLECTION ═══════ */
.app-system-h {
  text-align: center;
  padding: calc(4px * var(--ph-scale)) 0 calc(6px * var(--ph-scale));
  border-bottom: 1px solid var(--border-2);
}
.ash-tag {
  display: block;
  font-family: var(--mono);
  font-size: var(--ph-fs-xs); font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-bright);
  opacity: 0.8;
  margin-bottom: 2px;
}
.app-system-h strong {
  font-family: var(--display);
  font-size: var(--ph-fs-h); font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--accent-bright);
  text-shadow: 0 0 24px rgba(0, 230, 255, 0.6), 0 0 4px rgba(0, 230, 255, 0.4);
}
.app-system-h-glow strong {
  text-shadow: 0 0 28px rgba(0, 230, 255, 0.9), 0 0 8px rgba(0, 230, 255, 0.6);
}
.ash-glow {
  text-shadow: 0 0 16px rgba(0, 230, 255, 0.6);
}

/* Search Bar */
.app-searchbar {
  display: flex; align-items: center; gap: var(--ph-pad-sm);
  padding: calc(8px * var(--ph-scale)) var(--ph-pad);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: calc(8px * var(--ph-scale));
  font-family: var(--mono);
  font-size: var(--ph-fs-sm);
  color: var(--text-3);
}
.app-searchbar svg { color: var(--accent-bright); flex-shrink: 0; width: var(--ph-icon-sm); height: var(--ph-icon-sm); }
.app-searchbar > span { flex: 1; }
.app-searchbar > svg:last-child { color: var(--accent-bright); }

/* ANIME / LIKED + SORT/SCORE/LIST */
.app-coll-filters, .app-coll-actions {
  display: flex; gap: calc(5px * var(--ph-scale));
  margin-top: 2px;
}
.acf-tab {
  display: inline-flex; align-items: center; gap: calc(4px * var(--ph-scale));
  padding: calc(5px * var(--ph-scale)) calc(9px * var(--ph-scale));
  background: var(--bg-3);
  border: 1.5px solid var(--accent);
  border-radius: calc(6px * var(--ph-scale));
  font-family: var(--mono);
  font-size: var(--ph-fs-xs); font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
  cursor: pointer;
}
.acf-tab svg { width: calc(11px * var(--ph-scale)); height: calc(11px * var(--ph-scale)); }
.acf-tab.active {
  background: rgba(0, 179, 255, 0.12);
  box-shadow: 0 0 12px rgba(0, 230, 255, 0.4);
}
.acf-tab.acf-liked {
  border-color: var(--c-green);
  color: var(--c-green);
}
.acf-tab.acf-list { margin-left: auto; }

/* Anime Cards in List */
.app-coll-list {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 2px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.app-coll-list::-webkit-scrollbar { display: none; }
.acl-row {
  display: flex; gap: calc(12px * var(--ph-scale)); align-items: center;
  padding: calc(8px * var(--ph-scale));
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: calc(10px * var(--ph-scale));
}
.acl-cover {
  position: relative;
  width: calc(56px * var(--ph-scale)); height: calc(78px * var(--ph-scale));
  border-radius: calc(6px * var(--ph-scale));
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 10px -3px rgba(0, 0, 0, 0.5);
  background: var(--bg-3);
}
.acl-cover-bg { position: absolute; inset: 0; }
.acl-cover-grid {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, transparent 0, transparent 5px, rgba(255,255,255,0.06) 5px, rgba(255,255,255,0.06) 6px, transparent 6px, transparent 12px),
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.12) 1px, transparent 1.5px);
  background-size: auto, 5px 5px;
  mix-blend-mode: overlay;
}
.acl-cover-glyph {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: calc(28px * var(--ph-scale));
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  text-shadow:
    0 0 18px rgba(0, 230, 255, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.7);
  z-index: 1;
}
.acl-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
.acl-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: calc(8px * var(--ph-scale));
}
.acl-info strong {
  font-family: var(--mono);
  font-size: calc(13px * var(--ph-scale)); font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acl-pills {
  display: flex; gap: calc(5px * var(--ph-scale)); flex-wrap: wrap;
}
.acl-pill {
  padding: calc(3px * var(--ph-scale)) calc(8px * var(--ph-scale));
  border-radius: 100px;
  font-family: var(--mono);
  font-size: calc(8.5px * var(--ph-scale)); font-weight: 800;
  letter-spacing: 0.12em;
  border: 1.5px solid;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: calc(4px * var(--ph-scale));
}
.acl-pill-anime {
  background: rgba(0, 179, 255, 0.05);
  border-color: var(--accent);
  color: var(--accent-bright);
}
.acl-pill-liked {
  background: rgba(0, 204, 85, 0.05);
  border-color: var(--c-green);
  color: var(--c-green);
}
.acl-pill-score {
  background: rgba(255, 215, 0, 0.05);
  border-color: var(--c-gold);
  color: var(--c-gold);
}
.acl-pill-empty {
  background: transparent;
}

/* ═══════ Profile — [SYSTEM] STATUS WINDOW ═══════ */
.app-action-row {
  display: flex; gap: calc(5px * var(--ph-scale));
  padding: calc(3px * var(--ph-scale)) 0 0;
}
.apr-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: calc(4px * var(--ph-scale));
  padding: calc(6px * var(--ph-scale)) calc(7px * var(--ph-scale));
  background: var(--bg-3);
  border: 1.5px solid var(--text-3);
  border-radius: calc(6px * var(--ph-scale));
  font-family: var(--mono);
  font-size: var(--ph-fs-xs); font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text);
  cursor: pointer;
}
.apr-btn svg { width: calc(10px * var(--ph-scale)); height: calc(10px * var(--ph-scale)); }
.apr-btn-danger {
  border-color: #FF334D;
  color: #FF334D;
}

/* Hunter Profile Frame with Bracket Corners */
.app-frame {
  position: relative;
  padding: calc(12px * var(--ph-scale)) calc(12px * var(--ph-scale)) calc(11px * var(--ph-scale));
  background: rgba(13, 26, 38, 0.4);
  border: 1px solid rgba(0, 230, 255, 0.4);
  border-radius: 4px;
  margin-top: 2px;
}
.app-frame-hunter {
  border: 1px solid rgba(0, 230, 255, 0.6);
}
/* L-shaped bracket corners */
.app-frame::before, .app-frame::after,
.app-frame > .afh-line:first-child::before,
.app-frame > .afh-line:first-child::after {
  /* corner brackets via pseudo-elements not supported nested — handled by app-frame variant below */
}
.app-frame {
  background-image:
    linear-gradient(90deg, var(--accent-neon), var(--accent-neon)),
    linear-gradient(90deg, var(--accent-neon), var(--accent-neon)),
    linear-gradient(0deg, var(--accent-neon), var(--accent-neon)),
    linear-gradient(0deg, var(--accent-neon), var(--accent-neon)),
    linear-gradient(90deg, var(--accent-neon), var(--accent-neon)),
    linear-gradient(90deg, var(--accent-neon), var(--accent-neon)),
    linear-gradient(0deg, var(--accent-neon), var(--accent-neon)),
    linear-gradient(0deg, var(--accent-neon), var(--accent-neon));
  background-position:
    0 0, 0 0,
    0 0, 0 0,
    100% 0, 100% 100%,
    100% 0, 0 100%;
  background-size:
    14px 2px, 2px 14px,
    14px 2px, 2px 14px,
    14px 2px, 14px 2px,
    2px 14px, 2px 14px;
  background-repeat: no-repeat;
  border: none;
}

.afh-line {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: calc(6px * var(--ph-scale));
}
.afh-tag {
  font-family: var(--mono);
  font-size: var(--ph-fs-sm); font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent-bright);
  display: inline-flex; align-items: center; gap: calc(5px * var(--ph-scale));
}
.afh-tag svg { color: var(--c-gold); width: calc(10px * var(--ph-scale)); height: calc(10px * var(--ph-scale)); }
.afh-coins {
  display: inline-flex; align-items: center; gap: calc(5px * var(--ph-scale));
  padding: calc(2px * var(--ph-scale)) calc(8px * var(--ph-scale));
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--c-gold);
  border-radius: 100px;
  font-family: var(--display);
  font-size: var(--ph-fs-sm); font-weight: 800;
  color: var(--c-gold);
}
.afhc-icon {
  width: calc(13px * var(--ph-scale)); height: calc(13px * var(--ph-scale));
  background: var(--c-gold);
  color: var(--bg);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: calc(9px * var(--ph-scale)); font-weight: 900;
}

.afh-avatar {
  display: flex; justify-content: center;
  margin: calc(6px * var(--ph-scale)) 0;
}
.afh-av-img {
  width: calc(58px * var(--ph-scale)); height: calc(58px * var(--ph-scale));
  border-radius: 50%;
  background: linear-gradient(135deg, #5A4530, #3a2a1a);
  border: 2.5px solid var(--accent-bright);
  box-shadow: 0 0 22px rgba(0, 230, 255, 0.5), inset 0 0 14px rgba(0,0,0,0.4);
}

.afh-name {
  text-align: center;
  font-family: var(--mono);
  font-size: var(--ph-fs-md); font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  margin-bottom: calc(6px * var(--ph-scale));
}
.afh-name span { color: var(--text-3); }
.afh-name strong { color: var(--accent-bright); }

.afh-status {
  display: inline-flex; align-items: center; gap: calc(6px * var(--ph-scale));
  padding: calc(4px * var(--ph-scale)) calc(11px * var(--ph-scale));
  background: rgba(0,179,255,0.08);
  border: 1.5px solid var(--accent);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: var(--ph-fs-xs); font-weight: 600;
  color: var(--accent-bright);
  margin: 0 auto calc(6px * var(--ph-scale));
}
.afhs-dot {
  width: calc(6px * var(--ph-scale)); height: calc(6px * var(--ph-scale));
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-bright);
}
.afh-status { display: flex; }

.afh-bio {
  text-align: center;
  font-family: var(--mono);
  font-size: var(--ph-fs-sm);
  margin-bottom: calc(6px * var(--ph-scale));
}
.afh-bio-h {
  display: block;
  color: var(--text-3);
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 2px;
  font-size: var(--ph-fs-xs);
}
.afh-bio-text {
  color: var(--accent-bright);
  font-size: var(--ph-fs-sm);
  font-weight: 700;
}

.afh-tags {
  display: flex; gap: calc(5px * var(--ph-scale)); justify-content: center;
  margin-bottom: calc(6px * var(--ph-scale));
}
.afht {
  padding: calc(2px * var(--ph-scale)) calc(11px * var(--ph-scale));
  background: rgba(0,179,255,0.08);
  border: 1.5px solid var(--accent);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: var(--ph-fs-sm); font-weight: 700;
  color: var(--accent-bright);
}

.afh-meta {
  display: flex; flex-direction: column; gap: calc(3px * var(--ph-scale));
  font-family: var(--mono);
  font-size: var(--ph-fs-xs);
  color: var(--text-3);
}
.afh-meta div { display: flex; align-items: center; gap: 6px; }
.afh-meta div span:first-child { color: var(--accent-bright); }
.afh-meta b {
  color: var(--accent-bright);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.afh-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
}

.afh-empty {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  text-align: left;
}

.afh-edit {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  cursor: pointer;
}

.afh-fav {
  display: flex; gap: calc(9px * var(--ph-scale)); align-items: center;
  padding: calc(5px * var(--ph-scale));
  background: var(--bg-3);
  border: 1px solid var(--accent);
  border-radius: calc(7px * var(--ph-scale));
  margin-top: calc(5px * var(--ph-scale));
}
.afhf-cover {
  position: relative;
  width: calc(42px * var(--ph-scale)); height: calc(58px * var(--ph-scale));
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.95);
  font-size: 22px; font-weight: 900;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 230, 255, 0.2);
  text-shadow: 0 0 10px rgba(255,255,255,0.6), 0 4px 8px rgba(0,0,0,0.7);
}
.afhf-cover::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(115deg,
      transparent 0, transparent 5px,
      rgba(255,255,255,0.05) 5px, rgba(255,255,255,0.05) 6px,
      transparent 6px, transparent 12px),
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.12) 1px, transparent 1.5px);
  background-size: auto, 4px 4px;
}
.afhf-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
}
.afhf-cover > span { position: relative; z-index: 1; }
.afhf-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.afhf-info strong {
  font-family: var(--display);
  font-size: var(--ph-fs-md); font-weight: 700;
  color: var(--accent-bright);
}
.afhf-info span {
  font-family: var(--mono);
  font-size: var(--ph-fs-xs);
  color: var(--text-3);
}

/* ═══════ Chats — [SOCIAL SYSTEM] ═══════ */
.app-social-h {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: calc(2px * var(--ph-scale)) var(--ph-pad);
}
.ash-line { display: flex; flex-direction: column; gap: 2px; }
.app-social-h .ash-tag { color: var(--accent-bright); font-size: var(--ph-fs-xs); }
.app-social-h strong {
  font-family: var(--display);
  font-size: var(--ph-fs-h); font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--accent-bright);
  text-shadow: 0 0 18px rgba(0, 230, 255, 0.6);
  margin-top: -2px;
}
.ash-actions { display: flex; gap: calc(4px * var(--ph-scale)); }
.at-btn-sm {
  width: calc(26px * var(--ph-scale)); height: calc(26px * var(--ph-scale));
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: calc(5px * var(--ph-scale));
  color: var(--accent-bright);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.at-btn-sm svg { width: calc(11px * var(--ph-scale)); height: calc(11px * var(--ph-scale)); }

.app-story-add {
  display: flex; flex-direction: column; align-items: center; gap: calc(3px * var(--ph-scale));
  width: fit-content;
  margin: calc(4px * var(--ph-scale)) 0 0 var(--ph-pad);
}
.asa-avatar {
  position: relative;
  width: calc(48px * var(--ph-scale)); height: calc(48px * var(--ph-scale));
  border-radius: 50%;
  background: linear-gradient(135deg, #FF5C8A, #C44FE6);
}
.asa-plus {
  position: absolute; bottom: -2px; right: -2px;
  width: calc(18px * var(--ph-scale)); height: calc(18px * var(--ph-scale));
  border-radius: 50%;
  background: var(--accent-bright);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--ph-fs-md); font-weight: 700;
  border: 2px solid var(--bg-3);
}
.asa-label {
  font-family: var(--display);
  font-size: var(--ph-fs-sm); font-weight: 700;
  color: var(--accent-bright);
}

.app-chat-tabs {
  display: flex; gap: calc(3px * var(--ph-scale));
  padding: calc(3px * var(--ph-scale));
  background: rgba(13,26,38,0.5);
  border-radius: calc(8px * var(--ph-scale));
  margin: calc(3px * var(--ph-scale)) var(--ph-pad) 0;
}
.act {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: calc(3px * var(--ph-scale));
  padding: calc(7px * var(--ph-scale)) calc(5px * var(--ph-scale));
  border: 1.5px solid transparent;
  border-radius: calc(6px * var(--ph-scale));
  font-family: var(--mono);
  font-size: var(--ph-fs-xs); font-weight: 700;
  color: var(--text-3);
  cursor: pointer;
}
.act svg { width: calc(11px * var(--ph-scale)); height: calc(11px * var(--ph-scale)); }
.act svg { color: var(--text-3); }
.act.active {
  background: var(--bg-3);
  border-color: var(--accent);
  color: var(--accent-bright);
}
.act.active svg { color: var(--accent-bright); }
.act i {
  font-style: normal;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-bright);
  color: var(--bg-3);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800;
}

.app-chat-filters {
  display: flex; gap: calc(4px * var(--ph-scale));
  padding: calc(3px * var(--ph-scale)) var(--ph-pad);
  overflow-x: auto;
  scrollbar-width: none;
}
.app-chat-filters::-webkit-scrollbar { display: none; }
.acf {
  padding: calc(4px * var(--ph-scale)) calc(9px * var(--ph-scale));
  background: transparent;
  border: 1.5px solid var(--text-3);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: var(--ph-fs-xs); font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}
.acf.active {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.app-chats-h {
  font-family: var(--mono);
  font-size: var(--ph-fs-xs); font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--accent-bright);
  margin: calc(5px * var(--ph-scale)) var(--ph-pad) 0;
}

.app-chat-list {
  display: flex; flex-direction: column; gap: calc(5px * var(--ph-scale));
  margin: 0 var(--ph-pad);
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.app-chat-list::-webkit-scrollbar { display: none; }
.acl-chat {
  display: flex; gap: calc(9px * var(--ph-scale)); align-items: center;
  padding: calc(5px * var(--ph-scale)) calc(7px * var(--ph-scale));
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: calc(7px * var(--ph-scale));
}
.acl-chat-av {
  width: calc(34px * var(--ph-scale)); height: calc(34px * var(--ph-scale));
  border-radius: calc(5px * var(--ph-scale));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-bright);
  flex-shrink: 0;
  border: 1px solid var(--border-2);
}
.acl-chat-av svg { width: calc(13px * var(--ph-scale)); height: calc(13px * var(--ph-scale)); }
.acl-chat-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.acl-chat-info strong {
  font-family: var(--display);
  font-size: var(--ph-fs-md); font-weight: 800;
  color: var(--accent-bright);
}
.acl-chat-info span {
  font-family: var(--mono);
  font-size: var(--ph-fs-xs);
  color: var(--text-3);
}

/* ═══════ Floating Tab Bar (5 tabs, pill-bg) ═══════ */
.proto-tabbar {
  position: absolute;
  left: calc(8px * var(--ph-scale));
  right: calc(8px * var(--ph-scale));
  bottom: calc(8px * var(--ph-scale));
  padding: calc(5px * var(--ph-scale)) calc(4px * var(--ph-scale));
  background: rgba(13, 26, 38, 0.95);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  backdrop-filter: blur(14px);
  display: flex; justify-content: space-around;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5);
  z-index: 5;
}
.proto-tab-indicator { display: none; }
.ptab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: calc(2px * var(--ph-scale));
  padding: calc(5px * var(--ph-scale)) calc(2px * var(--ph-scale));
  background: transparent;
  border: none;
  color: var(--text-3);
  font-family: var(--display);
  font-size: var(--ph-fs-xs); font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  border-radius: 100px;
  transition: color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.ptab svg { color: var(--text-3); width: calc(18px * var(--ph-scale)); height: calc(18px * var(--ph-scale)); }
.ptab:hover { color: var(--accent-bright); }
.ptab:hover svg { color: var(--accent-bright); }
.ptab.is-active {
  background: rgba(0, 230, 255, 0.16);
  color: var(--accent-neon);
  box-shadow: 0 0 18px rgba(0, 230, 255, 0.35);
}
.ptab.is-active svg {
  color: var(--accent-neon);
  filter: drop-shadow(0 0 6px var(--accent-neon));
  transform: none;
}
.ptab-badge { display: none; }

/* ═══════ FEED Page ═══════ */
.app-feed-tabs {
  display: flex; gap: calc(5px * var(--ph-scale));
  margin: 0 var(--ph-pad-sm);
  padding: 0;
}
.aft {
  flex: 1; text-align: center;
  padding: calc(5px * var(--ph-scale)) calc(8px * var(--ph-scale));
  background: transparent;
  border: 1.5px solid var(--text-3);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: var(--ph-fs-xs); font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-3);
  cursor: pointer;
}
.aft.active {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: rgba(0, 179, 255, 0.06);
}

.app-feed-list {
  display: flex; flex-direction: column;
  gap: calc(8px * var(--ph-scale));
  margin: calc(4px * var(--ph-scale)) var(--ph-pad-sm) 0;
}
.afp {
  background: rgba(13, 26, 38, 0.5);
  border: 1px solid var(--accent);
  border-radius: calc(10px * var(--ph-scale));
  overflow: hidden;
}
.afp-h {
  display: flex; align-items: center; gap: calc(8px * var(--ph-scale));
  padding: calc(8px * var(--ph-scale)) calc(10px * var(--ph-scale));
  border-bottom: 1px solid var(--border-soft);
}
.afp-av {
  width: calc(28px * var(--ph-scale)); height: calc(28px * var(--ph-scale));
  border-radius: 50%; flex-shrink: 0;
}
.afp-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.afp-meta strong {
  font-family: var(--display);
  font-size: var(--ph-fs-md); font-weight: 800;
  color: var(--accent-bright);
  letter-spacing: -0.005em;
}
.afp-meta span {
  font-family: var(--mono);
  font-size: var(--ph-fs-xs);
  color: var(--text-3);
}
.afp-more {
  font-size: var(--ph-fs-md);
  color: var(--text-3);
  letter-spacing: 1px;
}
.afp-card {
  display: flex; gap: calc(10px * var(--ph-scale));
  padding: calc(10px * var(--ph-scale));
}
.afp-card-cover {
  position: relative;
  width: calc(48px * var(--ph-scale)); height: calc(66px * var(--ph-scale));
  border-radius: calc(5px * var(--ph-scale));
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-3);
}
.afp-card-cover .acl-cover-glyph { font-size: calc(22px * var(--ph-scale)); }
.afp-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(3px * var(--ph-scale)); }
.afp-card-body strong {
  font-family: var(--mono);
  font-size: var(--ph-fs-sm); font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
}
.afp-card-rating {
  font-family: var(--display);
  font-size: var(--ph-fs-xs); font-weight: 700;
  color: var(--c-gold);
  letter-spacing: 0.04em;
}
.afp-card-rating b {
  margin-left: calc(4px * var(--ph-scale));
  font-weight: 800;
}
.afp-card-body p {
  font-family: var(--body);
  font-size: var(--ph-fs-xs);
  line-height: 1.4;
  color: var(--text-2);
  margin: calc(2px * var(--ph-scale)) 0 0;
}
.afp-actions {
  display: flex; gap: calc(14px * var(--ph-scale));
  padding: calc(7px * var(--ph-scale)) calc(12px * var(--ph-scale));
  border-top: 1px solid var(--border-soft);
}
.afp-act {
  display: inline-flex; align-items: center; gap: calc(4px * var(--ph-scale));
  font-family: var(--mono);
  font-size: var(--ph-fs-xs); font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.afp-act i {
  font-style: normal;
  font-size: calc(11px * var(--ph-scale));
  color: var(--accent-bright);
}

/* ═══════ Tab-Bar — Final consolidated rules ═══════ */
.proto-tabbar {
  /* Compact 5-tab bar fixed at phone bottom */
  padding: calc(6px * var(--ph-scale)) calc(3px * var(--ph-scale)) !important;
  gap: 0 !important;
}
.proto-tabbar .ptab {
  padding: calc(4px * var(--ph-scale)) calc(2px * var(--ph-scale)) !important;
  gap: calc(2px * var(--ph-scale)) !important;
  font-size: calc(8px * var(--ph-scale)) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  min-width: 0;
  overflow: hidden;
}
.proto-tabbar .ptab svg {
  width: calc(16px * var(--ph-scale)) !important;
  height: calc(16px * var(--ph-scale)) !important;
}
.proto-tabbar .ptab span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.proto-tabbar .ptab.is-active {
  background: rgba(0, 230, 255, 0.18);
  color: var(--accent-neon);
}

/* ═══════════════════════════════════════════════════════════════
   PROTOTYPE DISCLAIMER QUOTE
   ═══════════════════════════════════════════════════════════════ */
.proto-disclaimer {
  position: relative;
  max-width: clamp(240px, 90%, 340px);
  margin: 18px auto 0;
  padding: 16px 18px 14px 44px;
  background: linear-gradient(135deg,
    rgba(13, 26, 38, 0.7),
    rgba(20, 31, 46, 0.55));
  border: 1px solid rgba(0, 230, 255, 0.22);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 12px 28px -10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.proto-disclaimer::before {
  content: ""; position: absolute;
  top: 0; left: 18px; right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-neon), transparent);
  opacity: 0.5;
}
.pd-quote {
  position: absolute;
  top: 14px; left: 14px;
  color: var(--accent-bright);
  opacity: 0.7;
  filter: drop-shadow(0 0 8px rgba(0, 230, 255, 0.4));
}
.proto-disclaimer blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
  letter-spacing: -0.005em;
}
.proto-disclaimer blockquote em {
  font-style: italic;
  color: var(--accent-bright);
  font-weight: 500;
}
.proto-disclaimer figcaption {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(0, 230, 255, 0.15);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: right;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL PERFORMANCE — GPU hints, no visual changes
   ═══════════════════════════════════════════════════════════════ */

/* GPU-promote expensive blur layers + isolate them from page reflows */
.aurora,
.aurora-blob,
.global-squares,
.gs-glow,
.bg-noise {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

/* Limit composite costs — these layers don't need to repaint on scroll.
   `contain: strict` prevents any internal repaint from invalidating
   surrounding boxes, and lets the browser skip layout/paint work
   inside these containers when nothing internal changed.            */
.aurora { contain: strict; }
.global-squares {
  contain: strict;
  /* Width/height required for `contain: strict` to take effect on a
     fixed-positioned container. inset:0 already implies size, but
     making it explicit lets Chromium activate the size containment
     fast-path.                                                       */
  width: 100%; height: 100%;
}
.bg-noise { contain: strict; }
/* Each hex isolates from the others — internal compositor changes
   on one hexagon won't trigger reflow checks on its neighbors. */
.gs-hex { contain: layout style; }

/* Section-level paint containment — sections only repaint themselves */
.section,
.hero,
.stats,
.outro,
.footer,
.section-spots {
  contain: layout style;
}

/* Off-screen sections skip layout/paint entirely until scrolled near */
section,
header.hero,
.outro,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
/* Hero must always render (above-fold) */
.hero {
  content-visibility: visible;
}

/* Phone & prototype: GPU layer + isolate */
.proto-phone,
.proto-screen,
.hero-prototype {
  transform: translateZ(0);
  will-change: transform;
}
.proto-screen { contain: layout style paint; }
.proto-page { contain: layout style; }

/* Reduce expensive backdrop-filters during fast scroll
   (browsers can keep last-rendered state) */
.proto-tabbar,
.nav,
.beta-spots,
.app-toolbar,
.proto-disclaimer {
  will-change: transform;
}

/* Bento + cards: paint containment (cells repaint independently) */
.bento-cell,
.value-card,
.ar-card,
.rm-card,
.faq details,
.stat-item,
.afp,
.acl-row {
  contain: layout style paint;
}

/* Disable heavy hover-tilt animations during scroll
   — browser keeps focus on scroll perf when user actively scrolls */
@media (prefers-reduced-motion: no-preference) {
  html.is-scrolling .bento-cell:hover,
  html.is-scrolling .ar-card:hover,
  html.is-scrolling .rm-card:hover {
    transform: none !important;
    transition: none !important;
  }
  html.is-scrolling .aurora-blob,
  html.is-scrolling .gs-hex,
  html.is-scrolling .gs-spark,
  html.is-scrolling .gs-glow {
    animation-play-state: paused;
  }
}

/* Pause atmospheric animations when hero is out of view (set by JS).
   The hexagons sit in a fixed background, but the user can't see them
   change once they've scrolled past the hero — so paint cycles for
   their breath/spin animations are pure waste. */
html.hero-hidden .aurora-blob,
html.hero-hidden .gs-hex,
html.hero-hidden .gs-spark,
html.hero-hidden .gs-glow,
html.hero-hidden .hp-dot {
  animation-play-state: paused;
}

/* During active scroll, pause every box-shadow pulse and other paint-
   heavy animations on cards. box-shadow can't run on the compositor,
   so each frame triggers a full paint of the card. The cards still
   render — they just don't pulse while the user is scrolling.       */
@media (prefers-reduced-motion: no-preference) {
  html.is-scrolling .ss-score-badge,
  html.is-scrolling .aac-name,
  html.is-scrolling [class*="border-pulse"],
  html.is-scrolling [class*="-pulse"] {
    animation-play-state: paused;
  }
}

/* Pause everything decorative when the tab is hidden (set by JS) */
html.tab-hidden .aurora-blob,
html.tab-hidden .gs-hex,
html.tab-hidden .gs-spark,
html.tab-hidden .gs-glow,
html.tab-hidden .hp-dot,
html.tab-hidden .voice-wave .vw-bar,
html.tab-hidden .hero-cycler .hc-word {
  animation-play-state: paused !important;
}

/* Trim will-change on layers we promoted but rarely re-paint.
   Excessive will-change wastes GPU memory. We keep it on the
   actively-animated parallax targets only. */
.aurora { will-change: auto; }
.bg-noise { will-change: auto; }
.proto-tabbar,
.nav,
.beta-spots,
.app-toolbar,
.proto-disclaimer { will-change: auto; }

/* During active scroll, drop expensive backdrop-filter on chrome layers.
   The backdrop is invisible while the page is scrolling fast anyway,
   and re-blurring the entire page underneath each composited layer is
   one of the biggest scroll-jank sources on Chromium/Safari.          */
@media (prefers-reduced-motion: no-preference) {
  html.is-scrolling .nav,
  html.is-scrolling .proto-tabbar,
  html.is-scrolling .beta-spots,
  html.is-scrolling .app-toolbar,
  html.is-scrolling .proto-disclaimer,
  html.is-scrolling .stats,
  html.is-scrolling .footer,
  html.is-scrolling .form-glass,
  html.is-scrolling .hud-bar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MICRO-ANIMATIONS — Lottie-style polish details (CSS-only)
   Heart-burst, sparkle-pop, count-up-glow. Triggered by hover or
   data-attributes from JS, all GPU-only (transform + opacity).
   ═══════════════════════════════════════════════════════════════ */

/* Heart burst: any element with .micro-heart on hover gets a pulse
   + tiny particle burst at corners. Used on .btn-primary, .nav-cta. */
.micro-heart {
  position: relative;
  isolation: isolate;
}
.micro-heart::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: radial-gradient(
    circle at center,
    rgba(255, 92, 138, 0.35) 0%,
    rgba(0, 230, 255, 0.20) 40%,
    transparent 70%
  );
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: -1;
  pointer-events: none;
}
.micro-heart:hover::before {
  opacity: 1;
  transform: scale(1.2);
}

/* Sparkle pop — corners flash gold particles on hover.
   Implemented as 4 tiny dots that scale-out + fade. */
.micro-sparkle {
  position: relative;
}
.micro-sparkle::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 2px at 10% 10%, rgba(255, 215, 0, 0.9), transparent 60%),
    radial-gradient(circle 2px at 90% 15%, rgba(0, 230, 255, 0.9), transparent 60%),
    radial-gradient(circle 2px at 15% 85%, rgba(196, 79, 230, 0.9), transparent 60%),
    radial-gradient(circle 2px at 85% 90%, rgba(255, 92, 138, 0.9), transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.35s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  border-radius: inherit;
}
.micro-sparkle:hover::after {
  opacity: 1;
  transform: scale(1);
  animation: sparkleTwinkle 1.4s ease-in-out infinite;
}
@keyframes sparkleTwinkle {
  0%, 100% { filter: brightness(1) hue-rotate(0deg); }
  50% { filter: brightness(1.4) hue-rotate(30deg); }
}

/* Glow-on-count-up: stat number pulses cyan when its value changes
   (JS toggles .is-bumped class). */
@keyframes statGlow {
  0%   { text-shadow: 0 0 0 transparent; transform: scale(1); }
  40%  { text-shadow: 0 0 28px rgba(0, 230, 255, 0.7); transform: scale(1.04); }
  100% { text-shadow: 0 0 0 transparent; transform: scale(1); }
}
[data-stat-num].is-bumped {
  animation: statGlow 0.6s ease-out;
}

/* Floating sparkle particles for the beta-spots bar — appears
   briefly after a fresh registration drops in. */
@keyframes floatUpFade {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-40px) scale(1.1); }
}
.bs-fill.is-pulsing::before {
  content: "✦ ✧ ✦";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--accent-bright);
  letter-spacing: 2px;
  animation: floatUpFade 1.6s ease-out;
}

/* Activity-feed "fresh" row animation — replaces the simple flash
   with a more anime-like cyan sweep. */
.af-row.af-fresh {
  position: relative;
  overflow: hidden;
}
.af-row.af-fresh::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(0, 230, 255, 0.18) 35%,
    rgba(0, 230, 255, 0.35) 50%,
    rgba(0, 230, 255, 0.18) 65%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: freshSweep 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  pointer-events: none;
}
@keyframes freshSweep {
  to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .micro-heart::before,
  .micro-sparkle::after,
  .af-row.af-fresh::after,
  .bs-fill.is-pulsing::before { animation: none !important; transition: none !important; }
  [data-stat-num].is-bumped { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   EXIT-INTENT POPUP (E1)
   ═══════════════════════════════════════════════════════════════ */
.exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 10500;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2, 6, 13, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 16px;
}
.exit-overlay.is-shown { opacity: 1; pointer-events: auto; }
.exit-card {
  position: relative;
  max-width: 480px;
  width: 100%;
  background: linear-gradient(180deg, rgba(13, 26, 38, 0.96), rgba(10, 18, 32, 1));
  border: 1px solid rgba(0, 230, 255, 0.35);
  border-radius: var(--r-lg);
  padding: 36px 32px 30px;
  text-align: center;
  box-shadow:
    0 60px 120px -20px rgba(0, 0, 0, 0.85),
    0 0 80px -10px rgba(0, 230, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: scale(0.92);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.exit-overlay.is-shown .exit-card { transform: scale(1); }
.exit-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-bright);
  margin-bottom: 14px;
  padding: 4px 10px;
  background: rgba(0, 230, 255, 0.08);
  border: 1px solid rgba(0, 230, 255, 0.28);
  border-radius: 100px;
}
.exit-title {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  color: var(--text);
  margin: 0 0 12px;
}
.exit-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-bright);
}
.exit-sub {
  color: var(--text-2);
  font-size: 15px;
  line-height: var(--lh-normal);
  margin: 0 0 26px;
}
.exit-actions {
  display: flex; gap: 10px;
  justify-content: center; flex-wrap: wrap;
}
.exit-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.exit-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #001020;
  box-shadow: 0 0 32px -8px rgba(0, 230, 255, 0.6);
}
.exit-btn-primary:hover { transform: translateY(-1px); }
.exit-btn-ghost {
  background: transparent;
  color: var(--text-3);
  border-color: rgba(255, 255, 255, 0.12);
}
.exit-btn-ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }
.exit-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  border-radius: 50%;
  color: var(--text-3);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.exit-close:hover { color: var(--accent-bright); border-color: var(--accent-bright); }

/* ═══════════════════════════════════════════════════════════════
   SOCIAL-PROOF LIVE-PILL (E5)
   ═══════════════════════════════════════════════════════════════ */
.sp-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 230, 255, 0.08);
  border: 1px solid rgba(0, 230, 255, 0.28);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-bright);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.45s, transform 0.45s;
}
.sp-pill.is-loaded { opacity: 1; transform: translateY(0); }
.sp-pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 8px var(--c-green);
  animation: spPulse 2s ease-in-out infinite;
}
@keyframes spPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

/* ═══════════════════════════════════════════════════════════════
   PARTICLE-BURST ON CLICK (F1)
   ═══════════════════════════════════════════════════════════════ */
.particle-burst {
  position: fixed;
  pointer-events: none;
  width: 0; height: 0;
  z-index: 11500;
}
.particle-burst i {
  position: absolute;
  left: 0; top: 0;
  width: 6px; height: 6px;
  margin-left: -3px; margin-top: -3px;
  border-radius: 50%;
  background: var(--c, var(--accent-neon));
  box-shadow: 0 0 6px var(--c, var(--accent-neon));
  opacity: 1;
  animation: pBurst 0.7s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes pBurst {
  to {
    transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.4);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════
   F4 — Per-Page Theme-Tint (subtle: only magic-circle color shift)
   ═══════════════════════════════════════════════════════════════ */
body[data-page="features"] .gs-glow { filter: blur(50px) hue-rotate(0deg) saturate(1.1); }
body[data-page="werte"] .gs-glow    { filter: blur(50px) hue-rotate(90deg) saturate(1.1); }
body[data-page="archetype"] .gs-glow { filter: blur(50px) hue-rotate(180deg) saturate(1.2); }
body[data-page="founder"] .gs-glow  { filter: blur(50px) hue-rotate(40deg) saturate(0.65) brightness(0.95) opacity(0.7); }
body[data-page="roadmap"] .gs-glow  { filter: blur(50px) hue-rotate(220deg) saturate(0.8) opacity(0.75); }
body[data-page="faq"] .gs-glow      { filter: blur(50px) hue-rotate(140deg) saturate(1); }
body[data-page="beta"] .gs-glow     { filter: blur(50px) hue-rotate(280deg) saturate(1.1); }

/* Also tint the page-hero aura color so the page identity carries
   into the title-area, not only the deep background.               */
body[data-page="werte"] .page-hero-aura {
  background: radial-gradient(ellipse at center,
    rgba(0, 255, 140, 0.10) 0%, rgba(0, 255, 140, 0.05) 30%, transparent 65%);
}
body[data-page="archetype"] .page-hero-aura {
  background: radial-gradient(ellipse at center,
    rgba(196, 79, 230, 0.10) 0%, rgba(196, 79, 230, 0.05) 30%, transparent 65%);
}
body[data-page="founder"] .page-hero-aura {
  background: radial-gradient(ellipse at center,
    rgba(255, 215, 0, 0.06) 0%, rgba(255, 215, 0, 0.025) 30%, transparent 65%);
}
body[data-page="roadmap"] .page-hero-aura {
  background: radial-gradient(ellipse at center,
    rgba(110, 130, 255, 0.06) 0%, rgba(110, 130, 255, 0.025) 30%, transparent 65%);
}
body[data-page="faq"] .page-hero-aura {
  background: radial-gradient(ellipse at center,
    rgba(0, 220, 200, 0.10) 0%, rgba(0, 220, 200, 0.05) 30%, transparent 65%);
}
body[data-page="beta"] .page-hero-aura {
  background: radial-gradient(ellipse at center,
    rgba(255, 92, 138, 0.10) 0%, rgba(255, 92, 138, 0.05) 30%, transparent 65%);
}

@media (prefers-reduced-motion: reduce) {
  .exit-overlay, .exit-card, .particle-burst i, .sp-pill::before {
    transition: none !important;
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   F2 — Achievement Toasts + Panel
   ═══════════════════════════════════════════════════════════════ */
.ach-toast {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 9000;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  min-width: 290px;
  max-width: 380px;
  background: linear-gradient(135deg, rgba(10, 18, 40, 0.96), rgba(20, 30, 60, 0.96));
  border: 1px solid rgba(0, 230, 255, 0.4);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(0, 230, 255, 0.15),
              0 0 32px rgba(0, 230, 255, 0.18);
  color: #f0f4ff;
  opacity: 0;
  transform: translateX(120%);
  transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.22, 1.4, 0.32, 1);
  backdrop-filter: blur(10px);
}
.ach-toast-in  { opacity: 1; transform: translateX(0); }
.ach-toast-out { opacity: 0; transform: translateY(20px); }
.ach-toast-emoji {
  font-size: 2.1em;
  filter: drop-shadow(0 0 12px rgba(0, 230, 255, 0.55));
}
.ach-toast-body { display: flex; flex-direction: column; gap: 2px; }
.ach-toast-eyebrow {
  font-size: 0.65em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #00E6FF;
  font-weight: 700;
}
.ach-toast-title { font-size: 1.02em; font-weight: 800; color: #fff; }
.ach-toast-desc  { font-size: 0.82em; color: rgba(220, 230, 255, 0.7); line-height: 1.35; }

.ach-panel {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ach-panel-in { opacity: 1; }
.ach-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, 0.7);
  backdrop-filter: blur(8px);
}
.ach-panel-card {
  position: relative;
  width: min(520px, 92vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(10, 14, 30, 0.98), rgba(18, 22, 42, 0.98));
  border: 1px solid rgba(0, 230, 255, 0.35);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(0, 230, 255, 0.15);
  overflow: hidden;
  color: #f0f4ff;
}
.ach-panel-head {
  padding: 22px 26px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}
.ach-panel-head .ach-eyebrow {
  display: block;
  font-size: 0.65em;
  letter-spacing: 0.18em;
  color: #00E6FF;
  font-weight: 700;
  margin-bottom: 6px;
}
.ach-panel-head h2 {
  margin: 0;
  font-size: 1.18em;
  font-weight: 800;
}
.ach-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f0f4ff;
  font-size: 1.4em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease;
}
.ach-close:hover { background: rgba(255, 80, 110, 0.2); }
.ach-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.ach-progress i {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #00E6FF, #C44FE6);
  box-shadow: 0 0 12px rgba(0, 230, 255, 0.5);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.ach-list {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  overflow-y: auto;
  flex: 1;
}
.ach-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 4px;
  transition: background 0.18s ease;
}
.ach-item:hover { background: rgba(0, 230, 255, 0.05); }
.ach-item .ach-emoji {
  font-size: 1.7em;
  width: 44px;
  flex-shrink: 0;
  text-align: center;
}
.ach-item .ach-meta { display: flex; flex-direction: column; gap: 2px; }
.ach-item .ach-meta strong { font-size: 0.95em; font-weight: 700; }
.ach-item .ach-meta span  { font-size: 0.78em; color: rgba(220, 230, 255, 0.65); }
.ach-got .ach-emoji { filter: drop-shadow(0 0 10px rgba(0, 230, 255, 0.5)); }
.ach-locked { opacity: 0.42; filter: grayscale(0.5); }
.ach-panel-foot {
  padding: 12px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78em;
  color: rgba(220, 230, 255, 0.55);
}
.ach-panel-foot kbd {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(0, 230, 255, 0.12);
  border: 1px solid rgba(0, 230, 255, 0.35);
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700;
  color: #00E6FF;
}

/* ═══════════════════════════════════════════════════════════════
   F3 — Archetype Quiz (mounted on /archetype above the grid)
   ═══════════════════════════════════════════════════════════════ */
.archetype-quiz {
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.85), rgba(18, 24, 48, 0.85));
  border: 1px solid rgba(0, 230, 255, 0.25);
  border-radius: 18px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(0, 230, 255, 0.1);
}
.qz-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-bottom: 16px;
  overflow: hidden;
}
.qz-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00E6FF, #C44FE6);
  border-radius: 999px;
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(0, 230, 255, 0.55);
}
.qz-step-meta {
  font-size: 0.78em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 230, 255, 0.85);
  margin-bottom: 14px;
  font-weight: 700;
}
.qz-question {
  font-size: 1.42em;
  font-weight: 800;
  margin: 0 0 22px;
  line-height: 1.35;
  color: #f0f4ff;
}
.qz-opts { display: flex; flex-direction: column; gap: 10px; }
.qz-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #f0f4ff;
  font-size: 0.95em;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
}
.qz-opt:hover {
  transform: translateX(4px);
  background: rgba(0, 230, 255, 0.08);
  border-color: rgba(0, 230, 255, 0.4);
}
.qz-opt-marker {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: rgba(0, 230, 255, 0.15);
  border: 1px solid rgba(0, 230, 255, 0.4);
  border-radius: 8px;
  font-weight: 800;
  color: #00E6FF;
  font-size: 0.85em;
}
.qz-result { display: flex; flex-direction: column; gap: 22px; }
.qz-result-head { text-align: center; }
.qz-eyebrow {
  display: block;
  font-size: 0.7em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ac);
  font-weight: 800;
  margin-bottom: 12px;
}
.qz-result-emoji {
  font-size: 4.6em;
  filter: drop-shadow(0 0 30px var(--ac));
  margin-bottom: 8px;
}
.qz-result-name {
  font-size: 1.85em;
  font-weight: 900;
  margin: 0 0 12px;
  color: #fff;
}
.qz-result-desc {
  font-size: 0.98em;
  line-height: 1.55;
  color: rgba(220, 230, 255, 0.85);
  margin: 0;
}
.qz-result-secondary {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  font-size: 0.92em;
}
.qz-secondary-label { color: rgba(220, 230, 255, 0.6); }
.qz-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.qz-share-label {
  width: 100%;
  text-align: center;
  font-size: 0.78em;
  letter-spacing: 0.1em;
  color: rgba(220, 230, 255, 0.55);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.qz-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 230, 255, 0.35);
  border-radius: 999px;
  color: #f0f4ff;
  font-size: 0.85em;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.2s ease;
}
.qz-share-btn:hover { transform: translateY(-2px); background: rgba(0, 230, 255, 0.12); }
.qz-twitter:hover  { border-color: rgba(0, 172, 237, 0.8); }
.qz-whatsapp:hover { border-color: rgba(37, 211, 102, 0.8); }
.qz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.qz-retry {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #f0f4ff;
  font-family: inherit;
  font-size: 0.92em;
  cursor: pointer;
  transition: background 0.18s ease;
}
.qz-retry:hover { background: rgba(255, 255, 255, 0.06); }

/* ═══════════════════════════════════════════════════════════════
   F5 — Custom Cursors per element type (desktop only)
   On touch devices, system pointer is unchanged.
   ═══════════════════════════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
  /* Sword on buttons / CTAs */
  .btn-primary, .nav-cta, .qz-share-btn, .qz-retry, .exit-btn-primary, button.kpi-card {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><defs><filter id='g' x='-30%25' y='-30%25' width='160%25' height='160%25'><feGaussianBlur stdDeviation='0.7'/></filter></defs><g filter='url(%23g)' opacity='0.45'><path d='M3 25 L18 10 L22 14 L7 23 Z' fill='%2300E6FF'/></g><path d='M3 25 L18 10 L22 14 L7 23 Z' fill='none' stroke='%2300E6FF' stroke-width='1.4' stroke-linejoin='round'/><path d='M17 9 L23 15 L20 18 L14 12 Z' fill='%23F0F4FF' stroke='%2300E6FF' stroke-width='1.2' stroke-linejoin='round'/><circle cx='5' cy='23' r='1.5' fill='%23C44FE6'/></svg>") 4 24, pointer;
  }
  /* Bookmark on cards */
  .ar-card, .feature-card, .archetype-quiz {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M6 3 L18 3 L18 21 L12 16 L6 21 Z' fill='%23C44FE6' stroke='%23F0F4FF' stroke-width='1.2' stroke-linejoin='round' opacity='0.95'/></svg>") 12 4, pointer;
  }
  /* Spell glyph on logos / glow elements */
  .nav-brand, .footer-brand, .preloader-logo, .magic-circle, .gs-glow {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><circle cx='14' cy='14' r='10' fill='none' stroke='%2300E6FF' stroke-width='1.2' opacity='0.65'/><circle cx='14' cy='14' r='6' fill='none' stroke='%23C44FE6' stroke-width='1' opacity='0.85'/><circle cx='14' cy='14' r='2' fill='%2300E6FF'/><path d='M14 4 L14 8 M14 20 L14 24 M4 14 L8 14 M20 14 L24 14' stroke='%23F0F4FF' stroke-width='1' opacity='0.5'/></svg>") 14 14, crosshair;
  }
  /* Heart on the prereg form-submit */
  .form-submit, .cookie-btn-primary {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M12 21 C12 21 4 14.5 4 9 C4 6 6 4 8.5 4 C10 4 11.5 5 12 6.5 C12.5 5 14 4 15.5 4 C18 4 20 6 20 9 C20 14.5 12 21 12 21 Z' fill='%23FF5C8A' stroke='%23F0F4FF' stroke-width='1.2' stroke-linejoin='round'/></svg>") 12 12, pointer;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ach-toast, .ach-panel, .qz-progress i {
    transition: none !important;
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   V2 — Hero animated data-stream + grid-mesh
   Simulates the matching-algo "computing" without needing video.
   ═══════════════════════════════════════════════════════════════ */
.hero-datastream {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 90%);
}
.ds-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 255, 0.6), transparent);
  width: 200px;
  animation: dsSlide 6s linear infinite;
  filter: blur(0.5px);
}
.ds-line-1 { top: 18%; animation-delay: 0s;   animation-duration: 5.4s; }
.ds-line-2 { top: 32%; animation-delay: 1.2s; animation-duration: 6.8s; background: linear-gradient(90deg, transparent, rgba(196, 79, 230, 0.55), transparent); }
.ds-line-3 { top: 48%; animation-delay: 2.5s; animation-duration: 5.0s; }
.ds-line-4 { top: 65%; animation-delay: 0.8s; animation-duration: 7.2s; background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.45), transparent); }
.ds-line-5 { top: 80%; animation-delay: 3.4s; animation-duration: 6.2s; }
@keyframes dsSlide {
  0%   { left: -220px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% + 20px); opacity: 0; }
}

.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 230, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 0%, transparent 80%);
  animation: heroMeshDrift 22s linear infinite;
}
@keyframes heroMeshDrift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 60px 60px, 60px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-line, .hero-mesh { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   AI1 — AI-Recommendations Demo (Client-side, /features page)
   ═══════════════════════════════════════════════════════════════ */
.section-ai-demo { padding-top: clamp(48px, 6vw, 88px); }
.ai-demo {
  max-width: 920px;
  margin: 28px auto 0;
  padding: 28px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.85), rgba(18, 24, 48, 0.85));
  border: 1px solid rgba(0, 230, 255, 0.25);
  border-radius: 18px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(0, 230, 255, 0.1);
}
.ai-demo-h {
  margin: 0 0 6px;
  font-size: 1.18em;
  font-weight: 800;
  color: var(--text);
}
.ai-demo-hint {
  margin: 0 0 18px;
  font-size: 0.88em;
  color: var(--text-3);
}
.ai-demo-foot {
  margin: 16px 0 0;
  font-size: 0.82em;
  color: var(--text-3);
  font-style: italic;
  line-height: 1.55;
}

.ai-anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.ai-anime-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s, border-color 0.18s;
}
.ai-anime-card:hover {
  transform: translateY(-2px);
  background: rgba(0, 230, 255, 0.06);
  border-color: rgba(0, 230, 255, 0.3);
}
.ai-anime-card.is-selected {
  background: linear-gradient(135deg, rgba(0, 230, 255, 0.18), rgba(196, 79, 230, 0.12));
  border-color: rgba(0, 230, 255, 0.6);
  box-shadow: 0 0 24px rgba(0, 230, 255, 0.2);
}
.ai-anime-emoji { font-size: 1.7em; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); }
.ai-anime-title { font-size: 0.85em; font-weight: 700; text-align: center; line-height: 1.25; }
.ai-anime-year  { font-size: 0.7em; color: var(--text-3); font-family: monospace; }
.ai-anime-check {
  position: absolute;
  top: 6px; right: 8px;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #00E6FF, #C44FE6);
  color: var(--text-inv);
  border-radius: 50%;
  font-size: 0.7em;
  font-weight: 800;
}

.ai-demo-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text-2);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, border-color 0.18s, opacity 0.18s;
}
.ai-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }
.ai-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ai-btn-primary {
  background: linear-gradient(135deg, #00E6FF, #C44FE6);
  border: 0;
  color: var(--text-inv);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 230, 255, 0.25);
}
.ai-btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 230, 255, 0.35); }
.ai-btn-ghost {
  background: transparent;
  font-weight: 600;
}

.ai-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.ai-vector-viz {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 140px;
  padding: 0 8px 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 2px;
}
.ai-vec-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 100%;
  cursor: help;
}
.ai-vec-bar i {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, #00E6FF, #C44FE6);
  border-radius: 4px 4px 0 0;
  margin-top: auto;
  min-height: 4px;
  box-shadow: 0 -2px 12px rgba(0, 230, 255, 0.3);
  animation: aiBarGrow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: bottom;
}
@keyframes aiBarGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.ai-vec-bar span {
  position: absolute;
  bottom: -22px;
  font-size: 0.62em;
  color: var(--text-3);
  white-space: nowrap;
  transform: rotate(-30deg);
  transform-origin: top left;
}

.ai-matches {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-match {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.6), rgba(18, 24, 48, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s;
  animation: aiMatchSlide 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ai-match:hover { transform: translateX(4px); border-color: rgba(0, 230, 255, 0.3); }
.ai-match[data-rank="1"] { border-color: rgba(255, 215, 0, 0.4); }
.ai-match[data-rank="2"] { border-color: rgba(192, 192, 192, 0.3); }
.ai-match[data-rank="3"] { border-color: rgba(205, 127, 50, 0.3); }
@keyframes aiMatchSlide {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ai-match-rank {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.4em;
  color: var(--accent-bright);
  min-width: 36px;
}
.ai-match[data-rank="1"] .ai-match-rank { color: #FFD700; }
.ai-match-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ai-match-info strong { color: var(--text); font-size: 1em; }
.ai-match-info span { color: var(--text-3); font-size: 0.8em; }

.ai-match-score-ring {
  --p: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    conic-gradient(
      from -90deg,
      #00E6FF 0%,
      #C44FE6 calc(var(--p) * 1%),
      rgba(255, 255, 255, 0.08) calc(var(--p) * 1%),
      rgba(255, 255, 255, 0.08) 100%
    );
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}
.ai-match-score-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--bg, #050D1F);
  border-radius: 50%;
}
.ai-match-score-ring span {
  position: relative;
  z-index: 1;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.78em;
  color: var(--text);
}

@media (max-width: 479px) {
  .ai-anime-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ai-anime-card { padding: 12px 8px; }
  .ai-anime-title { font-size: 0.78em; }
  .ai-vector-viz { height: 100px; padding-bottom: 22px; }
  .ai-vec-bar span { font-size: 0.55em; }
  .ai-match-rank { font-size: 1.2em; min-width: 28px; }
  .ai-match-score-ring { width: 48px; height: 48px; }
}

/* ═══════════════════════════════════════════════════════════════
   V5 — Lottie-style Micro-Animations (CSS-only)
   Reusable utility classes for delightful interactive feedback.
   ═══════════════════════════════════════════════════════════════ */

/* "Confetti-burst" — small particles fan out from element on .anim-celebrate */
.anim-celebrate {
  position: relative;
}
.anim-celebrate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle 3px at 20% 30%,  #00E6FF 99%, transparent 100%),
    radial-gradient(circle 2px at 80% 20%,  #C44FE6 99%, transparent 100%),
    radial-gradient(circle 3px at 50% 80%,  #FFD700 99%, transparent 100%),
    radial-gradient(circle 2px at 15% 70%,  #FF5C8A 99%, transparent 100%),
    radial-gradient(circle 2px at 90% 65%,  #00CC55 99%, transparent 100%);
  opacity: 0;
  animation: animConfetti 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes animConfetti {
  0%   { opacity: 0; transform: scale(0.3); }
  25%  { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(2.4); }
}

/* "Wave" — gentle horizontal wave when an element appears */
.anim-wave-in {
  animation: animWaveIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes animWaveIn {
  0%   { transform: translateY(8px) scale(0.96); opacity: 0; filter: blur(4px); }
  60%  { transform: translateY(-2px) scale(1.02); opacity: 1; filter: blur(0); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* "Bounce-on-hover" — soft squish-stretch for icons / emojis */
.anim-bounce-hover {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.22, 1.4, 0.32, 1);
}
.anim-bounce-hover:hover {
  animation: animBounceY 0.6s cubic-bezier(0.22, 1.4, 0.32, 1);
}
@keyframes animBounceY {
  0%, 100% { transform: translateY(0) scale(1); }
  30%      { transform: translateY(-8px) scale(1.08); }
  60%      { transform: translateY(2px) scale(0.96); }
}

/* "Glow-pulse" — soft alternating box-shadow for emphasis */
.anim-pulse-glow {
  animation: animPulseGlow 2.4s ease-in-out infinite;
}
@keyframes animPulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 255, 0); }
  50%      { box-shadow: 0 0 28px 6px rgba(0, 230, 255, 0.35); }
}

/* "Typewriter" — appears letter-by-letter via mask */
.anim-typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent-bright, #00E6FF);
  animation: animTypeIn 2s steps(28, end), animTypeBlink 0.7s step-end infinite;
}
@keyframes animTypeIn {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes animTypeBlink {
  50% { border-color: transparent; }
}

/* "Float" — slow vertical drift for hero-elements */
.anim-float {
  animation: animFloat 5s ease-in-out infinite;
}
@keyframes animFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* "Tilt" — subtle 3d-tilt on hover */
.anim-tilt {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  perspective: 800px;
}
.anim-tilt:hover {
  transform: rotateX(2deg) rotateY(-4deg) translateZ(2px);
}

/* "Underline-grow" — animated underline for links on hover */
.anim-link-grow {
  position: relative;
  display: inline-block;
}
.anim-link-grow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00E6FF, #C44FE6);
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-link-grow:hover::after { width: 100%; }

/* "Press" — depress button feedback on active */
.anim-press {
  transition: transform 0.08s ease-out;
}
.anim-press:active { transform: scale(0.96); }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .anim-celebrate::after,
  .anim-wave-in,
  .anim-bounce-hover:hover,
  .anim-pulse-glow,
  .anim-typewriter,
  .anim-float,
  .anim-tilt:hover {
    animation: none !important;
    transform: none !important;
  }
}

/* Auto-apply some micro-anims to existing classes */
.ph-title { /* hero title types in subtly */ }
.btn-primary { /* press feedback */ }
.btn-primary:active { transform: scale(0.97); transition: transform 0.08s ease-out; }
.kpi-card { transition: transform 0.25s cubic-bezier(0.22, 1.4, 0.32, 1); }
.kpi-card:hover { transform: translateY(-4px); }
.ar-card { will-change: transform; }
.ar-card:hover .ar-emoji {
  animation: animBounceY 0.6s cubic-bezier(0.22, 1.4, 0.32, 1);
}

/* ═══════════════════════════════════════════════════════════════
   K2 — Multi-Step Pre-Registration Form
   ═══════════════════════════════════════════════════════════════ */
.step-progress {
  margin-bottom: 24px;
}
.step-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}
.step-progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00E6FF, #C44FE6);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 10px rgba(0, 230, 255, 0.5);
}
.step-progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78em;
  color: var(--text-3);
}
.step-label {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}
.step-label .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 0.85em;
  color: var(--text-3);
  transition: background 0.25s, color 0.25s;
}
.step-label.is-active { color: var(--text); }
.step-label.is-active .step-num {
  background: linear-gradient(135deg, #00E6FF, #C44FE6);
  color: var(--text-inv);
  box-shadow: 0 0 12px rgba(0, 230, 255, 0.5);
}
.step-label.is-done .step-num {
  background: rgba(0, 204, 85, 0.25);
  color: #00FF88;
}
.step-label.is-done .step-num::before {
  content: "✓";
}
.step-label.is-done .step-num > * { display: none; }

.form-step {
  animation: stepIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.form-step[hidden] { display: none; }

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.step-nav .step-prev,
.step-nav .step-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text-2);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, border-color 0.2s;
}
.step-nav .step-prev:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); }
.step-nav .step-next.btn-primary {
  background: linear-gradient(135deg, #00E6FF, #C44FE6);
  border: 0;
  color: var(--text-inv);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 230, 255, 0.25);
}
.step-nav .step-next.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 230, 255, 0.35); }
/* When only next-button (no prev), push right */
.form-step-1 .step-nav { justify-content: flex-end; }

/* Step-3 summary preview */
.step-summary {
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(0, 230, 255, 0.05), rgba(10, 18, 40, 0.4));
  border: 1px solid rgba(0, 230, 255, 0.2);
  border-radius: 12px;
  margin-bottom: 18px;
  position: relative;
}
.step-summary-h {
  margin: 0 0 12px;
  font-size: 0.78em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 700;
}
.step-summary-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92em;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.step-summary-row:last-child { border-bottom: 0; }
.step-summary-row dt { color: var(--text-3); margin: 0; }
.step-summary-row dd { color: var(--text); margin: 0; font-family: monospace; font-size: 0.92em; text-align: right; }
.step-edit {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid rgba(0, 230, 255, 0.3);
  border-radius: 6px;
  color: var(--accent-bright);
  font-size: 0.78em;
  font-weight: 600;
  cursor: pointer;
}
.step-edit:hover { background: rgba(0, 230, 255, 0.1); }

/* Hide multi-step UI on mobile when phone is short → reflow */
@media (max-width: 479px) {
  .step-progress-labels { font-size: 0.7em; gap: 4px; }
  .step-label .step-num { width: 18px; height: 18px; font-size: 0.72em; }
  .step-summary-row dd { font-size: 0.85em; }
  .step-edit { font-size: 0.7em; padding: 3px 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   V4 — Skeleton-Loading shimmer (reusable utility)
   ═══════════════════════════════════════════════════════════════ */
.skeleton, .skeleton-line, .skeleton-box {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.04) 100%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.skeleton-line { height: 12px; margin: 4px 0; }
.skeleton-box  { height: 60px; }
@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════
   Roadmap Vote-Results Live-Ranking
   ═══════════════════════════════════════════════════════════════ */
.vote-results {
  max-width: 900px;
  margin: 32px auto 0;
  padding: 22px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.7), rgba(18, 24, 50, 0.5));
  border: 1px solid rgba(0, 230, 255, 0.18);
  border-radius: 14px;
}
.vote-results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.vote-results-head h3 { margin: 0; font-size: 1.1em; color: var(--text, #F5FAFF); }
.vote-results-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
  color: var(--text-3, #92AECC);
}
.vote-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vr-row {
  display: grid;
  grid-template-columns: 36px 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background 0.15s;
}
.vr-row[data-rank="1"] { border-left-color: #FFD700; }
.vr-row[data-rank="2"] { border-left-color: #C0C0C0; }
.vr-row[data-rank="3"] { border-left-color: #CD7F32; }
.vr-row:hover { background: rgba(0, 230, 255, 0.06); }
.vr-rank {
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  color: var(--text-3, #92AECC);
  font-size: 0.88em;
}
.vr-row[data-rank="1"] .vr-rank { color: #FFD700; }
.vr-emoji { font-size: 1.2em; text-align: center; }
.vr-bar-wrap { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vr-bar-wrap strong {
  font-size: 0.88em;
  color: var(--text, #F5FAFF);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vr-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.vr-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00E6FF, #C44FE6);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 8px rgba(0, 230, 255, 0.4);
}
.vr-counts { text-align: right; }
.vr-count {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 1em;
  color: var(--accent-bright, #00E6FF);
  font-variant-numeric: tabular-nums;
}
.vr-share {
  font-size: 0.7em;
  color: var(--text-3, #92AECC);
}

/* ═══════════════════════════════════════════════════════════════
   Tech-Showcase (/tech)
   ═══════════════════════════════════════════════════════════════ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.tech-card {
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.7), rgba(18, 24, 48, 0.5));
  border: 1px solid rgba(0, 230, 255, 0.18);
  border-radius: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.tech-card:hover { border-color: rgba(0, 230, 255, 0.4); transform: translateY(-2px); }
.tech-card-wide { grid-column: 1 / -1; }
.tech-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.tech-emoji { font-size: 1.7em; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); }
.tech-card-head h2 {
  margin: 0;
  font-size: 1.1em;
  font-weight: 800;
  color: var(--text, #F5FAFF);
}
.tech-body {
  margin: 0 0 14px;
  font-size: 0.92em;
  line-height: 1.6;
  color: var(--text-2, #C2D4E8);
}
.tech-body strong { color: var(--text, #F5FAFF); }
.tech-stack-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tag {
  padding: 4px 10px;
  background: rgba(0, 230, 255, 0.08);
  border: 1px solid rgba(0, 230, 255, 0.25);
  border-radius: 999px;
  font-size: 0.78em;
  color: var(--accent-bright, #00E6FF);
  font-family: "JetBrains Mono", monospace;
}
.tech-perf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.tech-perf {
  text-align: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}
.tech-perf b {
  display: block;
  font-size: 1.4em;
  font-family: "JetBrains Mono", monospace;
  color: var(--accent-bright, #00E6FF);
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}
.tech-perf span {
  font-size: 0.75em;
  color: var(--text-3, #92AECC);
}

/* ═══════════════════════════════════════════════════════════════
   Sound-Toggle Button (below lang-toggle)
   ═══════════════════════════════════════════════════════════════ */
.sound-toggle {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  top: 176px;
  z-index: 5000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 26, 38, 0.7);
  border: 1px solid rgba(0, 230, 255, 0.3);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.sound-toggle:hover { transform: scale(1.08); background: rgba(0, 230, 255, 0.15); }
html[data-theme="light"] .sound-toggle {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(11, 20, 36, 0.15);
}
@media (max-width: 479px) {
  .sound-toggle { top: 158px; right: 14px; width: 36px; height: 36px; font-size: 0.9em; }
}

/* ═══════════════════════════════════════════════════════════════
   Print-CSS (für /press, /faq, /datenschutz, /impressum)
   ═══════════════════════════════════════════════════════════════ */
@media print {
  /* Hide noise: aurora, magic-circle, nav, footer, cookies, animations */
  .aurora, .global-squares, .bg-noise, .preloader,
  .cursor-wrap, .nav, .nav-cta, .nav-search-btn,
  .footer, .sticky-cta, .cookie-banner, .cookie-modal,
  .theme-toggle, .lang-toggle, .sound-toggle,
  .fb-launch, .ach-toast, .footer-live-pill, .footer-ach-pill,
  .ref-share-card, .pos-card, .push-invite, .exit-overlay,
  .ach-panel-card, .sp-overlay, .confetti-canvas {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .page-hero, .section, .page-cta-strip {
    page-break-inside: avoid;
    background: white !important;
  }
  .ph-title, .section-h2, h1, h2, h3 { color: black !important; }
  .ph-sub, p, li, dd { color: #333 !important; }
  .ph-eyebrow, .section-eyebrow { color: #666 !important; }
  /* Show URL after links */
  a[href^="http"]:after, a[href^="/"]:after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #888;
    font-family: monospace;
  }
  /* Strip backgrounds + shadows */
  *, *::before, *::after {
    text-shadow: none !important;
    box-shadow: none !important;
    background: white !important;
    background-image: none !important;
  }
  .faq details { border: 1px solid #ccc; margin-bottom: 8px; padding: 8px; }
  .faq details summary { font-weight: bold; cursor: default; }
  .faq details[open] { padding-bottom: 12px; }
  .faq details > div { margin-top: 6px; padding: 8px; }
  .press-card, .tech-card {
    border: 1px solid #ddd !important;
    padding: 12px !important;
    page-break-inside: avoid;
  }
  .press-quote {
    border-left: 3px solid #666 !important;
    padding: 8px 14px !important;
  }
  .press-list strong, .press-text strong, .tech-body strong { color: black !important; }
  /* Force serif for body */
  body, p, li, dd { font-family: Georgia, "Times New Roman", serif !important; }
  h1, h2, h3, .ph-title, .section-h2 { font-family: "Helvetica Neue", Helvetica, sans-serif !important; }
}

/* ═══════════════════════════════════════════════════════════════
   Animated Nav-Brand Logo (hover-animation)
   ═══════════════════════════════════════════════════════════════ */
.nav-brand svg path { transition: stroke-dashoffset 0.6s ease, transform 0.5s ease; }
.nav-brand svg circle { transition: r 0.3s ease, fill 0.3s ease; }
.nav-brand:hover svg path {
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
  animation: navDraw 1.2s ease-out forwards;
}
.nav-brand:hover svg circle {
  r: 4;
  fill: var(--accent-bright, #00E6FF);
}
@keyframes navDraw {
  0%   { stroke-dashoffset: 60; }
  100% { stroke-dashoffset: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   Tracker Export/Import Section
   ═══════════════════════════════════════════════════════════════ */
.tracker-io {
  margin-top: 28px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 230, 255, 0.18);
  border-radius: 12px;
}
.trk-io-h {
  margin: 0 0 12px;
  font-size: 0.92em;
  font-weight: 700;
  color: var(--accent-bright, #00E6FF);
}
.trk-io-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.trk-import-label { cursor: pointer; }

/* ═══════════════════════════════════════════════════════════════
   Newsletter Archive
   ═══════════════════════════════════════════════════════════════ */
.newsletter-list {
  max-width: 720px;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nl-mail {
  padding: 24px 28px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.7), rgba(18, 24, 48, 0.5));
  border: 1px solid rgba(0, 230, 255, 0.18);
  border-radius: 12px;
}
.nl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.nl-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nl-badge-welcome { background: rgba(0, 230, 255, 0.15); color: #00E6FF; border: 1px solid rgba(0, 230, 255, 0.35); }
.nl-badge-drip3   { background: rgba(255, 215, 0, 0.15); color: #FFD700; border: 1px solid rgba(255, 215, 0, 0.35); }
.nl-badge-drip7   { background: rgba(196, 79, 230, 0.15); color: #D88FF0; border: 1px solid rgba(196, 79, 230, 0.35); }
.nl-badge-drip14  { background: rgba(0, 204, 85, 0.15); color: #80F0AC; border: 1px solid rgba(0, 204, 85, 0.35); }
.nl-when {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78em;
  color: var(--text-3, #92AECC);
}
.nl-subject {
  margin: 0 0 14px;
  font-size: 1.15em;
  font-weight: 800;
  color: var(--text, #F5FAFF);
}
.nl-body { color: var(--text-2, #C2D4E8); line-height: 1.65; font-size: 0.94em; }
.nl-body p { margin: 0 0 12px; }
.nl-body ul { margin: 0 0 12px; padding-left: 20px; }
.nl-body code {
  background: rgba(0, 230, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
  color: var(--accent-bright, #00E6FF);
}
.nl-body a { color: var(--accent-bright, #00E6FF); }
.nl-info {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px;
  background: rgba(255, 215, 0, 0.06);
  border-left: 3px solid rgba(255, 215, 0, 0.4);
  border-radius: 10px;
}
.nl-info h3 {
  margin: 0 0 10px;
  font-size: 1em;
  color: #FFD700;
}
.nl-info p { margin: 0 0 8px; font-size: 0.9em; color: var(--text-2, #C2D4E8); line-height: 1.6; }
.nl-info p:last-child { margin-bottom: 0; }
.nl-info code { font-family: monospace; font-size: 0.85em; color: var(--accent-bright, #00E6FF); }

/* ═══════════════════════════════════════════════════════════════
   Wallpapers Grid
   ═══════════════════════════════════════════════════════════════ */
.wallpapers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}
.wp-card {
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.7), rgba(18, 24, 48, 0.5));
  border: 1px solid rgba(0, 230, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
}
.wp-preview {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.wp-preview img { width: 100%; height: 100%; object-fit: cover; }
.wp-info { padding: 16px; }
.wp-info h3 { margin: 0 0 10px; font-size: 1.02em; }
.wp-palette { display: flex; gap: 6px; margin-bottom: 12px; }
.wp-swatch {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.wp-sizes { display: flex; flex-direction: column; gap: 6px; }
.wp-dl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: 0.85em;
}
.wp-dl small {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7em;
  color: var(--text-3, #92AECC);
}

/* ═══════════════════════════════════════════════════════════════
   Anime-Calendar
   ═══════════════════════════════════════════════════════════════ */
.cal-wrap { max-width: 1300px; margin: 0 auto; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
@media (max-width: 980px) {
  .cal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .cal-grid { grid-template-columns: 1fr; }
}
.cal-col {
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  min-height: 240px;
}
.cal-col.is-today {
  background: linear-gradient(180deg, rgba(0, 230, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(0, 230, 255, 0.4);
  box-shadow: 0 0 24px rgba(0, 230, 255, 0.1);
}
.cal-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cal-day-head strong { font-size: 0.95em; color: var(--text, #F5FAFF); }
.cal-today-badge {
  padding: 2px 8px;
  background: linear-gradient(135deg, #00E6FF, #C44FE6);
  color: var(--text-inv, #050D1F);
  border-radius: 999px;
  font-size: 0.65em;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.cal-day-list { display: flex; flex-direction: column; gap: 8px; }
.cal-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: background 0.15s, transform 0.15s;
}
.cal-item:hover { background: rgba(0, 230, 255, 0.06); transform: translateX(2px); }
.cal-emoji { font-size: 1.2em; flex-shrink: 0; }
.cal-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cal-info strong {
  font-size: 0.82em;
  font-weight: 700;
  color: var(--text, #F5FAFF);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-meta {
  font-size: 0.7em;
  color: var(--accent-bright, #00E6FF);
  font-family: "JetBrains Mono", monospace;
}
.cal-studio {
  font-size: 0.66em;
  color: var(--text-3, #92AECC);
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   Episode-Tracker (/tracker)
   ═══════════════════════════════════════════════════════════════ */
.tracker-wrap { max-width: 1100px; margin: 0 auto; }
.tracker-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.tracker-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex: 1;
  min-width: 280px;
}
.trk-stat {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 230, 255, 0.15);
  border-radius: 10px;
  text-align: center;
}
.trk-stat b {
  display: block;
  font-size: 1.6em;
  font-family: "JetBrains Mono", monospace;
  color: var(--accent-bright, #00E6FF);
  font-variant-numeric: tabular-nums;
}
.trk-stat span {
  font-size: 0.68em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3, #92AECC);
}
.tracker-filters {
  display: flex;
  gap: 4px;
  align-items: center;
}
.trk-filter {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-2, #C2D4E8);
  font-family: inherit;
  font-size: 0.85em;
  cursor: pointer;
  transition: background 0.15s;
}
.trk-filter:hover { background: rgba(0, 230, 255, 0.1); }
.trk-filter.is-active {
  background: linear-gradient(135deg, rgba(0, 230, 255, 0.18), rgba(196, 79, 230, 0.12));
  border-color: rgba(0, 230, 255, 0.5);
  color: var(--text, #F5FAFF);
}
.tracker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.trk-card {
  padding: 14px;
  background: linear-gradient(180deg, rgba(10, 20, 38, 0.6), rgba(18, 24, 48, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border-left: 3px solid rgba(255, 255, 255, 0.1);
}
.trk-card-watching  { border-left-color: #00E6FF; }
.trk-card-completed { border-left-color: #00CC55; }
.trk-card-planned   { border-left-color: #FFD700; }
.trk-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.trk-emoji { font-size: 1.8em; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); }
.trk-info { flex: 1; min-width: 0; }
.trk-title {
  display: block;
  font-size: 0.95em;
  color: var(--text, #F5FAFF);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trk-year {
  font-size: 0.72em;
  color: var(--text-3, #92AECC);
  font-family: "JetBrains Mono", monospace;
}
.trk-remove {
  background: rgba(255, 80, 110, 0.1);
  border: 0;
  color: #FFB0B8;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 1em;
  cursor: pointer;
  line-height: 1;
}
.trk-remove:hover { background: rgba(255, 80, 110, 0.3); }
.trk-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.trk-bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.trk-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00E6FF, #C44FE6);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.trk-progress-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78em;
  color: var(--text-3, #92AECC);
  font-variant-numeric: tabular-nums;
}
.trk-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trk-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0, 230, 255, 0.15);
  border: 1px solid rgba(0, 230, 255, 0.3);
  color: var(--accent-bright, #00E6FF);
  font-size: 1.2em;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s, background 0.18s;
}
.trk-btn:hover { transform: scale(1.08); background: rgba(0, 230, 255, 0.28); }
.trk-status {
  flex: 1;
  text-align: center;
  font-size: 0.78em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.trk-status-watching  { background: rgba(0, 230, 255, 0.12); color: #00E6FF; }
.trk-status-completed { background: rgba(0, 204, 85, 0.12); color: #80F0AC; }
.trk-status-planned   { background: rgba(255, 215, 0, 0.12); color: #FFD700; }

.tracker-add {
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(0, 230, 255, 0.25);
  border-radius: 12px;
  margin-bottom: 20px;
}
.trk-add-h {
  margin: 0 0 12px;
  font-size: 0.92em;
  font-weight: 700;
  color: var(--accent-bright, #00E6FF);
}
.trk-add-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.trk-add-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-2, #C2D4E8);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, background 0.18s, border-color 0.18s;
}
.trk-add-card:hover {
  transform: translateY(-2px);
  background: rgba(0, 230, 255, 0.08);
  border-color: rgba(0, 230, 255, 0.4);
}
.trk-add-title { font-size: 0.78em; font-weight: 700; text-align: center; }
.trk-add-meta { font-size: 0.68em; color: var(--text-3, #92AECC); font-family: monospace; }

/* ═══════════════════════════════════════════════════════════════
   Roadmap-Voting Grid
   ═══════════════════════════════════════════════════════════════ */
.section-roadmap-votes { padding-top: clamp(40px, 5vw, 80px); }
.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 24px auto 0;
}
.vote-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(10, 20, 38, 0.6), rgba(18, 24, 48, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.18s;
}
.vote-item.is-voted {
  border-color: rgba(0, 230, 255, 0.5);
  background: linear-gradient(180deg, rgba(0, 230, 255, 0.1), rgba(18, 24, 48, 0.4));
}
.vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 52px;
  flex-shrink: 0;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 230, 255, 0.25);
  border-radius: 10px;
  color: var(--text, #F5FAFF);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s, background 0.18s;
}
.vote-btn:hover { transform: scale(1.06); background: rgba(0, 230, 255, 0.12); }
.vote-item.is-voted .vote-btn {
  background: linear-gradient(135deg, rgba(0, 230, 255, 0.25), rgba(196, 79, 230, 0.18));
  border-color: rgba(0, 230, 255, 0.6);
}
.vote-icon { font-size: 1.3em; line-height: 1; }
.vote-count {
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 0.78em;
  color: var(--accent-bright, #00E6FF);
}
.vote-text { flex: 1; min-width: 0; }
.vote-text strong { display: block; font-size: 0.92em; color: var(--text, #F5FAFF); margin-bottom: 2px; }
.vote-text small { font-size: 0.78em; color: var(--text-3, #92AECC); }

/* ═══════════════════════════════════════════════════════════════
   Studios Grid (/studios)
   ═══════════════════════════════════════════════════════════════ */
.studios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}
.studio-card {
  padding: 20px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.7), rgba(18, 24, 48, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  border-top: 3px solid var(--studio-color, #00B3FF);
  transition: transform 0.2s, border-color 0.2s;
}
.studio-card:hover { transform: translateY(-2px); }
.studio-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.studio-head h2 {
  margin: 0;
  font-size: 1.15em;
  color: var(--studio-color, #00B3FF);
  font-weight: 800;
}
.studio-year {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78em;
  color: var(--text-3, #92AECC);
}
.studio-style {
  margin: 0 0 12px;
  font-size: 0.88em;
  color: var(--text-2, #C2D4E8);
  font-style: italic;
  line-height: 1.5;
}
.studio-works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.studio-works li {
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  font-size: 0.82em;
  color: var(--text-2, #C2D4E8);
  border-left: 2px solid var(--studio-color, #00B3FF);
}

/* ═══════════════════════════════════════════════════════════════
   Achievement-Counter Footer Pill
   ═══════════════════════════════════════════════════════════════ */
.footer-ach-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin-right: 14px;
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 999px;
  font-size: 0.78em;
  color: var(--text-2, #C2D4E8);
  font-family: "JetBrains Mono", monospace;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.footer-ach-pill:hover {
  background: rgba(255, 215, 0, 0.14);
  border-color: rgba(255, 215, 0, 0.45);
}
.fap-icon { font-size: 1em; }

/* ═══════════════════════════════════════════════════════════════
   Beta-Countdown Banner (Homepage hero)
   ═══════════════════════════════════════════════════════════════ */
.beta-countdown {
  display: inline-block;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(0, 230, 255, 0.1), rgba(196, 79, 230, 0.06));
  border: 1px solid rgba(0, 230, 255, 0.3);
  border-radius: 12px;
  margin-bottom: 22px;
  text-align: center;
}
.bcd-label {
  display: block;
  font-size: 0.7em;
  letter-spacing: 0.18em;
  color: var(--accent-bright, #00E6FF);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.bcd-emoji { font-size: 1.6em; vertical-align: middle; }
.bcd-blocks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
}
.bcd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 42px;
}
.bcd-block b {
  font-size: 1.4em;
  font-weight: 900;
  color: var(--text, #F5FAFF);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bcd-block small {
  font-size: 0.55em;
  letter-spacing: 0.1em;
  color: var(--text-3, #92AECC);
  text-transform: uppercase;
  margin-top: 2px;
}
.bcd-sep {
  font-size: 1.2em;
  color: var(--text-4, #6A87A8);
  font-weight: 700;
  padding-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   Footer-Live-Stats Pill
   ═══════════════════════════════════════════════════════════════ */
.footer-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin-right: 14px;
  background: rgba(0, 230, 255, 0.08);
  border: 1px solid rgba(0, 230, 255, 0.25);
  border-radius: 999px;
  font-size: 0.78em;
  color: var(--text-2, #C2D4E8);
  font-family: "JetBrains Mono", monospace;
}
.flp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00CC55;
  box-shadow: 0 0 8px #00CC55;
  animation: flpPulse 2s ease-in-out infinite;
}
@keyframes flpPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ═══════════════════════════════════════════════════════════════
   Glossar Page
   ═══════════════════════════════════════════════════════════════ */
.glossar-search-wrap {
  max-width: 920px;
  margin: 0 auto 28px;
}
.glossar-search {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 230, 255, 0.25);
  border-radius: 10px;
  color: var(--text, #F5FAFF);
  font-family: inherit;
  font-size: 1em;
  outline: none;
  margin-bottom: 14px;
}
.glossar-search:focus { border-color: rgba(0, 230, 255, 0.6); }
.glossar-az-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.gl-az-link {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.82em;
  transition: background 0.15s;
}
.gl-az-active { background: rgba(0, 230, 255, 0.12); color: var(--accent-bright, #00E6FF); }
.gl-az-active:hover { background: rgba(0, 230, 255, 0.25); }
.gl-az-inactive { color: var(--text-5, #4D6680); cursor: default; }

.glossar-list {
  max-width: 920px;
  margin: 0 auto;
}
.glossar-group { margin-bottom: 32px; scroll-margin-top: 80px; }
.glossar-letter {
  font-family: "Instrument Serif", serif;
  font-size: 3em;
  font-weight: 400;
  color: var(--accent-bright, #00E6FF);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 230, 255, 0.15);
}
.glossar-defs { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.glossar-term {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 2px solid rgba(0, 230, 255, 0.25);
}
.glossar-term dt {
  font-weight: 800;
  color: var(--text, #F5FAFF);
  font-size: 0.98em;
  margin-bottom: 3px;
}
.glossar-term dd {
  margin: 0;
  font-size: 0.92em;
  color: var(--text-2, #C2D4E8);
  line-height: 1.55;
}
.glossar-term mark {
  background: rgba(255, 215, 0, 0.25);
  color: #FFD700;
  padding: 0 2px;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   Q1 — Anime Trivia Game (/trivia)
   ═══════════════════════════════════════════════════════════════ */
.trivia-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.85), rgba(18, 24, 50, 0.7));
  border: 1px solid rgba(0, 230, 255, 0.22);
  border-radius: 18px;
}
.trivia-screen { animation: trvFade 0.32s ease; }
@keyframes trvFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.trivia-hero-icon { font-size: 4em; text-align: center; filter: drop-shadow(0 0 24px rgba(0, 230, 255, 0.4)); margin-bottom: 14px; }
.trivia-h { text-align: center; margin-bottom: 8px; }
.trivia-rules-list {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.trivia-rules-list li {
  padding: 10px 14px;
  background: rgba(0, 230, 255, 0.06);
  border: 1px solid rgba(0, 230, 255, 0.18);
  border-radius: 10px;
  font-size: 0.92em;
  color: var(--text-2, #C2D4E8);
}
@media (max-width: 540px) { .trivia-rules-list { grid-template-columns: 1fr; } }
.trivia-start-btn {
  display: flex;
  margin: 0 auto;
  padding: 14px 28px;
}

/* Question screen */
.trivia-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.88em;
}
.trivia-progress-text { color: var(--text-3, #92AECC); font-family: "JetBrains Mono", monospace; }
.trivia-score-live { color: var(--text-2, #C2D4E8); }
.trivia-score-live strong { color: var(--accent-bright, #00E6FF); font-family: "JetBrains Mono", monospace; }
.trivia-timer {
  padding: 4px 10px;
  background: rgba(0, 204, 85, 0.15);
  border: 1px solid rgba(0, 204, 85, 0.35);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: #80F0AC;
  transition: all 0.25s ease;
}
.trivia-timer.trivia-timer-warn  { background: rgba(255, 215, 0, 0.18); border-color: rgba(255, 215, 0, 0.4); color: #FFD700; }
.trivia-timer.trivia-timer-danger { background: rgba(255, 80, 110, 0.2); border-color: rgba(255, 80, 110, 0.5); color: #FF6B85; animation: trvPulse 0.4s ease infinite alternate; }
@keyframes trvPulse { to { transform: scale(1.08); } }

.trivia-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  margin-bottom: 18px;
  overflow: hidden;
}
.trivia-progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00E6FF, #C44FE6);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.trivia-diff-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.06);
}
.trivia-diff-badge[data-diff="easy"]   { background: rgba(0, 204, 85, 0.18); color: #80F0AC; }
.trivia-diff-badge[data-diff="medium"] { background: rgba(255, 215, 0, 0.18); color: #FFD700; }
.trivia-diff-badge[data-diff="hard"]   { background: rgba(255, 159, 28, 0.18); color: #FFB877; }
.trivia-diff-badge[data-diff="expert"] { background: rgba(255, 80, 110, 0.18); color: #FFB0B8; }

.trivia-question {
  font-size: 1.32em;
  font-weight: 800;
  margin: 0 0 22px;
  line-height: 1.4;
  color: var(--text, #F5FAFF);
}
.trivia-options { display: flex; flex-direction: column; gap: 10px; }
.trivia-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text, #F5FAFF);
  font-family: inherit;
  font-size: 0.95em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s;
}
.trivia-opt:hover:not(:disabled) { transform: translateX(4px); background: rgba(0, 230, 255, 0.08); border-color: rgba(0, 230, 255, 0.4); }
.trivia-opt:disabled { cursor: default; opacity: 0.7; }
.trivia-opt-correct {
  background: rgba(0, 204, 85, 0.18) !important;
  border-color: rgba(0, 204, 85, 0.5) !important;
  color: #80F0AC !important;
}
.trivia-opt-wrong {
  background: rgba(255, 80, 110, 0.18) !important;
  border-color: rgba(255, 80, 110, 0.5) !important;
  color: #FFB0B8 !important;
  animation: trvShake 0.35s ease;
}
@keyframes trvShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.trivia-opt-marker {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: rgba(0, 230, 255, 0.18);
  border-radius: 8px;
  font-weight: 800;
  color: var(--accent-bright, #00E6FF);
}
.trivia-opt-correct .trivia-opt-marker { background: rgba(0, 204, 85, 0.4); color: #80F0AC; }
.trivia-opt-wrong .trivia-opt-marker { background: rgba(255, 80, 110, 0.4); color: #FFB0B8; }

/* Result screen */
.trivia-result {
  text-align: center;
}
.trivia-result-emoji {
  font-size: 4.5em;
  filter: drop-shadow(0 0 30px rgba(0, 230, 255, 0.5));
  margin-bottom: 12px;
}
.trivia-result-h {
  font-size: 1.6em;
  font-weight: 900;
  margin: 0 0 10px;
  background: linear-gradient(135deg, #00E6FF, #C44FE6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.trivia-result-score {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
  margin: 8px 0 16px;
  font-family: "JetBrains Mono", monospace;
}
.trsv-num {
  font-size: 3.5em;
  font-weight: 900;
  color: var(--text, #F5FAFF);
  letter-spacing: -0.02em;
}
.trsv-of { font-size: 1em; color: var(--text-3, #92AECC); }
.trivia-result-msg {
  margin: 0 0 22px;
  color: var(--text-2, #C2D4E8);
  font-size: 1em;
  line-height: 1.55;
}
.trivia-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.trs-cell {
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.trs-cell b {
  display: block;
  font-size: 1.8em;
  font-family: "JetBrains Mono", monospace;
  color: var(--accent-bright, #00E6FF);
  margin-bottom: 2px;
}
.trs-cell span {
  font-size: 0.75em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3, #92AECC);
}
.trivia-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   Q1 — Trivia Leaderboard + Submit
   ═══════════════════════════════════════════════════════════════ */
.trivia-submit {
  margin: 18px 0;
  padding: 14px 18px;
  background: rgba(0, 230, 255, 0.06);
  border: 1px solid rgba(0, 230, 255, 0.25);
  border-radius: 10px;
}
.trivia-submit-hint {
  margin: 0 0 8px;
  font-size: 0.88em;
  color: var(--text-2, #C2D4E8);
}
.trivia-submit-row {
  display: flex;
  gap: 8px;
}
.trivia-submit-row input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text, #F5FAFF);
  font-family: inherit;
  font-size: 0.92em;
  outline: none;
  min-width: 0;
}
.trivia-submit-row input:focus { border-color: rgba(0, 230, 255, 0.6); }
.trivia-submit-row button { white-space: nowrap; }
.trivia-submit-status {
  margin: 8px 0 0;
  font-size: 0.85em;
}
.trivia-submit-ok  { color: #80F0AC; }
.trivia-submit-err { color: #FFB0B8; }

.trivia-leaderboard-wrap {
  max-width: 680px;
  margin: 26px auto 0;
  padding: 22px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.7), rgba(18, 24, 50, 0.5));
  border: 1px solid rgba(0, 230, 255, 0.18);
  border-radius: 14px;
}
.trivia-lb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.trivia-lb-head h3 {
  margin: 0;
  font-size: 1.1em;
  color: var(--text, #F5FAFF);
}
.trivia-lb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tl-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background 0.15s;
}
.tl-row:hover { background: rgba(0, 230, 255, 0.06); }
.tl-rank-1 { border-left-color: #FFD700; }
.tl-rank-2 { border-left-color: #C0C0C0; }
.tl-rank-3 { border-left-color: #CD7F32; }
.tl-medal {
  font-size: 1.4em;
  text-align: center;
}
.tl-rank-num {
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  color: var(--text-3, #92AECC);
  font-size: 0.92em;
}
.tl-name {
  font-weight: 700;
  color: var(--text, #F5FAFF);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tl-country {
  font-size: 0.78em;
  color: var(--text-3, #92AECC);
  font-family: "JetBrains Mono", monospace;
}
.tl-score {
  font-family: "JetBrains Mono", monospace;
  font-weight: 900;
  font-size: 1.1em;
  color: var(--accent-bright, #00E6FF);
  font-variant-numeric: tabular-nums;
}
.tl-rank-1 .tl-score { color: #FFD700; }

/* ═══════════════════════════════════════════════════════════════
   Q2 — Daily Anime Quote (Hero-Inset)
   ═══════════════════════════════════════════════════════════════ */
.daily-quote {
  margin: 28px 0 0;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(0, 230, 255, 0.06), rgba(196, 79, 230, 0.04));
  border-left: 3px solid rgba(0, 230, 255, 0.5);
  border-radius: 8px;
  max-width: 560px;
}
.dq-eyebrow {
  display: block;
  font-size: 0.66em;
  letter-spacing: 0.18em;
  color: var(--accent-bright, #00E6FF);
  font-weight: 700;
  margin-bottom: 8px;
}
.dq-text {
  margin: 0;
  font-family: var(--serif, "Instrument Serif", serif);
  font-style: italic;
  font-size: 1.08em;
  line-height: 1.55;
  color: var(--text, #F5FAFF);
}
.dq-source {
  display: block;
  margin-top: 8px;
  font-size: 0.85em;
  color: var(--text-3, #92AECC);
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════════════
   Nav Search-Button (auto-injected, Cmd+K trigger)
   ═══════════════════════════════════════════════════════════════ */
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px 7px 12px;
  margin-right: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-2, #C2D4E8);
  font-family: inherit;
  font-size: 0.82em;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.nav-search-btn:hover { background: rgba(0, 230, 255, 0.08); border-color: rgba(0, 230, 255, 0.4); color: var(--text, #F5FAFF); }
.nav-search-btn kbd {
  padding: 1px 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78em;
  color: var(--accent-bright, #00E6FF);
}
@media (max-width: 880px) {
  .nav-search-btn kbd { display: none; }
  .nav-search-btn { padding: 7px; }
}

/* ═══════════════════════════════════════════════════════════════
   Mood-Share-Buttons (unter Mood-Result)
   ═══════════════════════════════════════════════════════════════ */
.mood-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ms-label {
  font-size: 0.78em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3, #92AECC);
}
.ms-btn {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 230, 255, 0.3);
  border-radius: 999px;
  color: var(--text-2, #C2D4E8);
  font-size: 0.85em;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.18s;
}
.ms-btn:hover { transform: translateY(-1px); background: rgba(0, 230, 255, 0.12); }

/* ═══════════════════════════════════════════════════════════════
   Showcase Detail Modal
   ═══════════════════════════════════════════════════════════════ */
.sc-read-more {
  background: transparent;
  border: 0;
  color: var(--accent-bright, #00E6FF);
  font-family: inherit;
  font-size: 0.85em;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-weight: 700;
}
.sc-read-more:hover { text-decoration: underline; }
.sc-card.is-expandable { cursor: pointer; }
.sc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9300;
  background: rgba(2, 6, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sc-modal-overlay.sc-modal-in { opacity: 1; }
.sc-modal-card {
  position: relative;
  width: min(640px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 30px 34px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.98), rgba(18, 24, 50, 0.96));
  border: 1px solid rgba(0, 230, 255, 0.35);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  color: var(--text, #F5FAFF);
}
.sc-modal-close {
  position: absolute;
  right: 16px; top: 16px;
  width: 32px; height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text, #F5FAFF);
  font-size: 1.3em;
  cursor: pointer;
}
.sc-modal-close:hover { background: rgba(255, 80, 110, 0.18); }
.sc-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  color: var(--text-3, #92AECC);
  margin-bottom: 10px;
}
.sc-modal-type {
  padding: 3px 10px;
  background: rgba(0, 230, 255, 0.12);
  border-radius: 999px;
  color: var(--accent-bright, #00E6FF);
  font-weight: 700;
}
.sc-modal-h {
  margin: 0 0 16px;
  font-size: 1.3em;
  font-weight: 800;
}
.sc-modal-country { color: var(--text-3, #92AECC); font-weight: 500; font-size: 0.78em; }
.sc-modal-msg {
  margin: 0 0 16px;
  font-family: var(--serif, "Instrument Serif", serif);
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-2, #C2D4E8);
  white-space: pre-wrap;
}
.sc-modal-link {
  display: inline-block;
  padding: 10px 16px;
  background: rgba(0, 230, 255, 0.1);
  border: 1px solid rgba(0, 230, 255, 0.3);
  border-radius: 8px;
  color: var(--accent-bright, #00E6FF);
  text-decoration: none;
  font-family: monospace;
  font-size: 0.85em;
  word-break: break-all;
}
.sc-modal-link:hover { background: rgba(0, 230, 255, 0.18); }

/* ═══════════════════════════════════════════════════════════════
   AI4 — Mood-Search Demo (/mood)
   ═══════════════════════════════════════════════════════════════ */
.mood-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.7), rgba(18, 24, 48, 0.5));
  border: 1px solid rgba(0, 230, 255, 0.2);
  border-radius: 18px;
}
.mood-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}
.mood-chip {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text, #F5FAFF);
  font-family: inherit;
  font-size: 0.92em;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.mood-chip:hover { transform: translateY(-1px); background: rgba(0, 230, 255, 0.08); }
.mood-chip.is-selected {
  background: linear-gradient(135deg, rgba(0, 230, 255, 0.22), rgba(196, 79, 230, 0.16));
  border-color: rgba(0, 230, 255, 0.65);
  box-shadow: 0 0 16px rgba(0, 230, 255, 0.25);
  color: #fff;
  font-weight: 700;
}
.mood-actions { display: flex; justify-content: flex-end; }
.mood-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.mood-list { display: flex; flex-direction: column; gap: 10px; }
.mood-result {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.6), rgba(18, 24, 48, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: transform 0.18s, border-color 0.2s;
  position: relative;
  overflow: hidden;
  animation: moodSlide 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mood-result:hover { transform: translateX(4px); border-color: rgba(0, 230, 255, 0.3); }
.mood-result[data-rank="1"] { border-color: rgba(255, 215, 0, 0.5); }
@keyframes moodSlide {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
.mood-rank {
  font-family: "JetBrains Mono", monospace;
  font-weight: 900;
  font-size: 1.4em;
  color: var(--accent-bright, #00E6FF);
  min-width: 36px;
}
.mood-result[data-rank="1"] .mood-rank { color: #FFD700; }
.mood-emoji { font-size: 1.8em; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)); }
.mood-info { display: flex; flex-direction: column; gap: 2px; }
.mood-info strong { font-size: 1em; color: var(--text, #F5FAFF); }
.mood-info span { font-size: 0.82em; color: var(--text-3, #92AECC); }
.mood-bar {
  grid-column: 1 / -1;
  margin-top: 6px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.mood-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00E6FF, #C44FE6);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(0, 230, 255, 0.5);
  animation: moodBarFill 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes moodBarFill {
  from { width: 0 !important; }
}

/* ═══════════════════════════════════════════════════════════════
   SITE-SEARCH (Cmd/Ctrl+K Palette)
   ═══════════════════════════════════════════════════════════════ */
.sp-overlay {
  position: fixed;
  inset: 0;
  z-index: 9400;
  background: rgba(2, 6, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 24px;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.sp-overlay.sp-in { opacity: 1; }
.sp-panel {
  width: min(620px, 100%);
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.98), rgba(18, 24, 50, 0.96));
  border: 1px solid rgba(0, 230, 255, 0.4);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.sp-input {
  display: block;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text, #F5FAFF);
  font-family: inherit;
  font-size: 1em;
  outline: none;
}
.sp-input::placeholder { color: var(--text-3, #92AECC); }
.sp-results {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 380px;
  overflow-y: auto;
}
.sp-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.sp-result strong { color: var(--text, #F5FAFF); font-size: 0.96em; }
.sp-result span {
  color: var(--text-3, #92AECC);
  font-size: 0.82em;
  grid-column: 1;
}
.sp-result code {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: "JetBrains Mono", monospace;
  color: var(--accent-bright, #00E6FF);
  font-size: 0.78em;
}
.sp-result.is-selected { background: rgba(0, 230, 255, 0.12); }
.sp-result:hover { background: rgba(0, 230, 255, 0.08); }
.sp-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-3, #92AECC);
  font-size: 0.92em;
}
.sp-foot {
  padding: 8px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78em;
  color: var(--text-4, #6A87A8);
  background: rgba(0, 0, 0, 0.18);
}

/* ═══════════════════════════════════════════════════════════════
   P3 — Showcase-Grid (public approved submissions)
   ═══════════════════════════════════════════════════════════════ */
.section-showcase { padding-top: clamp(40px, 5vw, 80px); }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  max-width: 1200px;
  margin: 20px auto 0;
}
.sc-card {
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.7), rgba(18, 24, 48, 0.5));
  border: 1px solid rgba(0, 230, 255, 0.18);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: scFadeIn 0.4s ease-out;
}
@keyframes scFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.sc-card.sc-cosplay  { border-color: rgba(196, 79, 230, 0.3); }
.sc-card.sc-quote    { border-color: rgba(255, 215, 0, 0.3); }
.sc-card.sc-review   { border-color: rgba(0, 204, 85, 0.3); }
.sc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78em;
}
.sc-type { color: var(--text, #F5FAFF); font-weight: 700; }
.sc-date { color: var(--text-3, #92AECC); }
.sc-msg {
  margin: 0;
  color: var(--text-2, #C2D4E8);
  font-size: 0.94em;
  line-height: 1.55;
  white-space: pre-wrap;
}
.sc-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78em;
  color: var(--accent-bright, #00E6FF);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-link:hover { text-decoration: underline; }
.sc-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  font-size: 0.78em;
  color: var(--text-3, #92AECC);
}

/* ═══════════════════════════════════════════════════════════════
   P3 — Community-Showcase Submission Form
   ═══════════════════════════════════════════════════════════════ */
.community-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .community-grid { grid-template-columns: 1fr; }
}
.community-form-wrap, .community-rules {
  padding: 28px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.7), rgba(18, 24, 48, 0.5));
  border: 1px solid rgba(0, 230, 255, 0.18);
  border-radius: 14px;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .cf-row { grid-template-columns: 1fr; }
}
.cf-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.cf-label span {
  font-size: 0.78em;
  font-weight: 700;
  color: var(--text-3, #92AECC);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cf-label input, .cf-label textarea, .cf-label select {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text, #F5FAFF);
  font-family: inherit;
  font-size: 0.94em;
  outline: none;
  resize: vertical;
}
.cf-label input:focus, .cf-label textarea:focus, .cf-label select:focus {
  border-color: rgba(0, 230, 255, 0.55);
}
.cf-actions { margin-top: 8px; }
.cf-foot {
  margin-top: 14px;
  font-size: 0.78em;
  color: var(--text-4, #6A87A8);
  line-height: 1.55;
}
.cf-result {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.92em;
}
.cf-result-ok  { background: rgba(0, 204, 85, 0.1); border-left: 3px solid #00CC55; color: #80F0AC; }
.cf-result-err { background: rgba(255, 80, 110, 0.1); border-left: 3px solid #FF334D; color: #FFB0B8; }

.section-sub-soft {
  color: var(--text-3, #92AECC);
  font-size: 0.92em;
  margin: 4px 0 14px;
}
.community-rules .cmp-h3 {
  margin: 22px 0 8px;
  font-size: 1em;
  font-weight: 800;
  color: var(--text, #F5FAFF);
}
.press-list-dim li { color: var(--text-3, #92AECC); }

/* ═══════════════════════════════════════════════════════════════
   P4 — Comparison-Table (/compare)
   ═══════════════════════════════════════════════════════════════ */
.compare-wrap { max-width: 1200px; margin: 0 auto; }
.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.7), rgba(18, 24, 48, 0.5));
  border: 1px solid rgba(0, 230, 255, 0.18);
  border-radius: 16px;
  padding: 4px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
  min-width: 760px;
}
.compare-table thead {
  background: rgba(0, 230, 255, 0.06);
  border-bottom: 1px solid rgba(0, 230, 255, 0.2);
}
.compare-table thead th {
  padding: 14px 12px;
  text-align: center;
  font-size: 0.82em;
  color: var(--text-2, #C2D4E8);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.compare-table thead th.cmp-feat-col { text-align: left; }
.compare-table thead th.cmp-us {
  background: linear-gradient(180deg, rgba(0, 230, 255, 0.18), rgba(196, 79, 230, 0.1));
  color: var(--text, #F5FAFF);
}
.compare-table thead th.cmp-us strong {
  display: block;
  font-size: 1.05em;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.compare-table thead th.cmp-us span {
  display: block;
  font-size: 0.74em;
  color: var(--accent-bright, #00E6FF);
  margin-top: 2px;
}
.compare-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
}
.compare-table tbody tr:hover { background: rgba(0, 230, 255, 0.03); }
.compare-table td {
  padding: 12px;
  text-align: center;
  vertical-align: middle;
  font-size: 0.92em;
}
.compare-table td.cmp-cat {
  text-align: left;
  font-weight: 700;
  color: var(--text, #F5FAFF);
  font-size: 0.92em;
}
.compare-table td.cmp-us {
  background: rgba(0, 230, 255, 0.04);
  color: var(--accent-bright, #00E6FF);
  font-weight: 700;
}
.compare-table td.cmp-us span {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00E6FF, #C44FE6);
  color: var(--text-inv, #050D1F);
  font-weight: 900;
  font-size: 0.9em;
  line-height: 22px;
  margin-right: 4px;
}
.cmp-yes { color: #80F0AC; font-weight: 700; }
.cmp-partial { color: #FFD700; font-weight: 600; }
.cmp-no { color: rgba(255, 80, 110, 0.7); }
.compare-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 22px 0;
  font-size: 0.84em;
  color: var(--text-3, #92AECC);
}
.compare-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cmp-yes-mark, .cmp-partial-mark, .cmp-no-mark {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.9em;
}
.cmp-yes-mark { background: rgba(0, 204, 85, 0.18); color: #80F0AC; }
.cmp-partial-mark { background: rgba(255, 215, 0, 0.18); color: #FFD700; }
.cmp-no-mark { background: rgba(255, 80, 110, 0.18); color: #FFB0B8; }

.compare-bottom-note {
  margin-top: 28px;
  padding: 24px 26px;
  background: linear-gradient(180deg, rgba(0, 230, 255, 0.06), rgba(10, 18, 40, 0.4));
  border-left: 4px solid rgba(0, 230, 255, 0.5);
  border-radius: 12px;
}
.compare-bottom-note h3 {
  margin: 0 0 10px;
  font-size: 1.05em;
  color: var(--accent-bright, #00E6FF);
}
.compare-bottom-note p {
  margin: 0 0 10px;
  color: var(--text-2, #C2D4E8);
  line-height: 1.65;
  font-size: 0.94em;
}
.compare-bottom-note p:last-child { margin-bottom: 0; }
.compare-bottom-note strong { color: var(--text, #F5FAFF); }
@media (max-width: 600px) {
  .compare-table { font-size: 0.78em; }
  .compare-table td, .compare-table th { padding: 8px 6px; }
}

/* ═══════════════════════════════════════════════════════════════
   B5 — Press-Kit Page (/press)
   ═══════════════════════════════════════════════════════════════ */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.press-card {
  padding: 26px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.7), rgba(18, 24, 48, 0.5));
  border: 1px solid rgba(0, 230, 255, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.press-card-wide { grid-column: 1 / -1; }
.press-card h2 {
  margin: 0 0 14px;
  font-size: 1.18em;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.press-card .press-h3 {
  margin: 0 0 12px;
  font-size: 1.02em;
  color: var(--accent-bright);
  font-weight: 700;
}
.press-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.press-list li {
  font-size: 0.92em;
  color: var(--text-2);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.press-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-bright);
  font-weight: 700;
}
.press-list strong { color: var(--text); }
.press-text {
  color: var(--text-2);
  font-size: 0.95em;
  line-height: 1.65;
  margin: 0 0 12px;
}
.press-text:last-child { margin-bottom: 0; }
.press-text a { color: var(--accent-bright); }
.press-quote {
  margin: 0;
  padding: 18px 22px;
  background: rgba(0, 230, 255, 0.06);
  border-left: 4px solid rgba(0, 230, 255, 0.5);
  border-radius: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text);
}
.press-downloads {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.press-downloads a {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(0, 230, 255, 0.08);
  border: 1px solid rgba(0, 230, 255, 0.3);
  border-radius: 8px;
  color: var(--accent-bright);
  font-size: 0.88em;
  text-decoration: none;
  transition: background 0.18s;
}
.press-downloads a:hover { background: rgba(0, 230, 255, 0.16); }
.press-color {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin: 0 4px 0 8px;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   P5 — Status Page (/status)
   ═══════════════════════════════════════════════════════════════ */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.status-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.7), rgba(18, 24, 48, 0.5));
  border: 1px solid rgba(0, 230, 255, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.status-card-major { grid-column: 1 / -1; border-color: rgba(0, 204, 85, 0.4); }
.status-card-wide  { grid-column: 1 / -1; }
.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--text);
}
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-green, #00CC55);
  box-shadow: 0 0 12px var(--c-green, #00CC55);
}
.status-dot.status-ok    { background: #00CC55; box-shadow: 0 0 12px #00CC55; }
.status-dot.status-warn  { background: #FFD700; box-shadow: 0 0 12px #FFD700; }
.status-dot.status-error { background: #FF334D; box-shadow: 0 0 12px #FF334D; }
.status-sub {
  margin: 8px 0 0;
  color: var(--text-3);
  font-size: 0.88em;
}
.status-label {
  display: block;
  font-size: 0.65em;
  letter-spacing: 0.18em;
  color: var(--accent-bright);
  font-weight: 700;
  margin-bottom: 10px;
}
.status-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}
.status-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00E6FF, #C44FE6);
  box-shadow: 0 0 10px rgba(0, 230, 255, 0.5);
  width: 0;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.status-value {
  display: block;
  font-size: 1.85em;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}
.status-meta {
  margin: 6px 0 0;
  font-size: 0.85em;
  color: var(--text-3);
}
.status-uptime-row {
  display: grid;
  gap: 8px;
}
.status-uptime-row > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  color: var(--text-2);
}
.status-incidents { display: flex; flex-direction: column; gap: 14px; }
.status-incident {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: rgba(0, 204, 85, 0.06);
  border-left: 3px solid #00CC55;
  border-radius: 8px;
}
.status-incident strong { display: block; color: var(--text); margin-bottom: 4px; }
.status-incident p { margin: 0; color: var(--text-3); font-size: 0.88em; }

/* ═══════════════════════════════════════════════════════════════
   V1 — Light Mode Theme (opt-in via [data-theme="light"] on <html>)
   The dark theme remains the default brand-fit. Light mode is a
   secondary read-only option (no animations dimmed differently).
   ═══════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
  --bg:           #F4F8FF;
  --bg-2:         #EAEFF7;
  --bg-3:         #DEE5F0;
  --bg-4:         #CFD8E5;
  --bg-5:         #BFC9D8;
  --surface:      rgba(255, 255, 255, 0.85);
  --surface-2:    rgba(245, 248, 255, 0.95);
  --glass:        rgba(255, 255, 255, 0.9);
  --glass-light:  rgba(240, 246, 255, 0.95);

  --text:         #0B1424;
  --text-2:       #25344C;
  --text-3:       #4A5C78;
  --text-4:       #6E809A;
  --text-5:       #94A3BA;
  --text-inv:     #FFFFFF;

  --border:       rgba(0, 110, 220, 0.25);
  --border-2:     rgba(0, 140, 200, 0.4);
  --border-soft:  rgba(11, 20, 36, 0.1);
  --border-strong:rgba(11, 20, 36, 0.18);
}
html[data-theme="light"] body { background: var(--bg); color: var(--text); }
html[data-theme="light"] .aurora { opacity: 0.35; }
html[data-theme="light"] .bg-noise { opacity: 0.04; }
html[data-theme="light"] .page-hero-inner::before,
html[data-theme="light"] .page-cta-inner::before,
html[data-theme="light"] .section-header::before,
html[data-theme="light"] .hero-content::before {
  background: radial-gradient(ellipse at center,
    rgba(244, 248, 255, 0.85),
    rgba(244, 248, 255, 0.55) 50%,
    transparent 85%);
}
html[data-theme="light"] .founder-v2-text > .founder-v2-body,
html[data-theme="light"] .rs-intro {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(245, 250, 255, 0.55));
  border-color: rgba(11, 20, 36, 0.08);
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  top: 80px;
  z-index: 5000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 26, 38, 0.7);
  border: 1px solid rgba(0, 230, 255, 0.3);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2em;
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { transform: scale(1.08); background: rgba(0, 230, 255, 0.15); }
html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(11, 20, 36, 0.15);
}

@media (max-width: 479px) {
  .theme-toggle { top: 70px; right: 14px; width: 36px; height: 36px; font-size: 1.05em; }
}

/* I1 — Language Toggle (sits next to theme-toggle) */
.lang-toggle {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  top: 130px;
  z-index: 5000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 26, 38, 0.7);
  border: 1px solid rgba(0, 230, 255, 0.3);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.lang-toggle:hover { transform: scale(1.08); background: rgba(0, 230, 255, 0.15); }
html[data-theme="light"] .lang-toggle {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(11, 20, 36, 0.15);
}
@media (max-width: 479px) {
  .lang-toggle { top: 116px; right: 14px; width: 36px; height: 36px; font-size: 0.72em; }
}

/* ═══════════════════════════════════════════════════════════════
   K6 — Push-Subscription Invite Card
   ═══════════════════════════════════════════════════════════════ */
.push-invite {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(90px, calc(env(safe-area-inset-bottom) + 90px));
  z-index: 8200;
  width: min(380px, calc(100vw - 40px));
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.98), rgba(18, 24, 50, 0.96));
  border: 1px solid rgba(0, 230, 255, 0.4);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(0, 230, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  color: #f0f4ff;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.22, 1.4, 0.32, 1);
}
.push-invite.push-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.push-invite.push-success {
  border-color: rgba(0, 204, 85, 0.5);
}
.push-invite-icon {
  font-size: 1.6em;
  filter: drop-shadow(0 0 12px rgba(0, 230, 255, 0.55));
}
.push-invite-text { display: flex; flex-direction: column; gap: 2px; }
.push-invite-text strong { font-size: 0.95em; color: var(--text, #f0f4ff); }
.push-invite-text small  { font-size: 0.78em; color: var(--text-3, #92AECC); line-height: 1.45; }

.push-invite-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.push-invite-actions button {
  padding: 7px 14px;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.84em;
  font-weight: 600;
  cursor: pointer;
}
.push-yes {
  background: linear-gradient(135deg, #00E6FF, #C44FE6);
  color: var(--text-inv, #050D1F);
}
.push-no {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text-2, #C2D4E8);
}
.push-yes:hover { transform: translateY(-1px); }
@media (max-width: 479px) {
  .push-invite { right: 12px; left: 12px; width: auto; bottom: 80px; }
}

/* ═══════════════════════════════════════════════════════════════
   B2 — Feedback Widget (floating button + modal)
   ═══════════════════════════════════════════════════════════════ */
.fb-launch {
  position: fixed;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 7000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: linear-gradient(135deg, #00B3FF, #C44FE6);
  color: var(--text-inv, #050D1F);
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.86em;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 230, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.25s;
}
.fb-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 230, 255, 0.45);
}
.fb-launch svg { stroke: currentColor; }
@media (max-width: 479px) {
  .fb-launch { padding: 10px 14px; font-size: 0.78em; }
  .fb-launch span { display: none; }
  .fb-launch { gap: 0; padding: 11px; }
}

.fb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9300;
  background: rgba(2, 6, 18, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.fb-overlay.fb-in { opacity: 1; }
.fb-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.98), rgba(18, 24, 50, 0.96));
  border: 1px solid rgba(0, 230, 255, 0.35);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(0, 230, 255, 0.15);
  color: #f0f4ff;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.22, 1.4, 0.32, 1);
}
.fb-overlay.fb-in .fb-modal { transform: scale(1); }

.fb-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f0f4ff;
  font-size: 1.4em;
  cursor: pointer;
  line-height: 1;
}
.fb-close:hover { background: rgba(255, 80, 110, 0.18); }

.fb-title {
  margin: 0 0 6px;
  font-size: 1.32em;
  font-weight: 800;
  color: var(--text, #f0f4ff);
}
.fb-sub {
  margin: 0 0 18px;
  font-size: 0.88em;
  color: var(--text-3, #92AECC);
}

.fb-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.fb-cat {
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-2, #C2D4E8);
  font-family: inherit;
  font-size: 0.88em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.fb-cat:hover { background: rgba(0, 230, 255, 0.08); }
.fb-cat.is-active {
  background: linear-gradient(135deg, rgba(0, 230, 255, 0.2), rgba(196, 79, 230, 0.15));
  border-color: rgba(0, 230, 255, 0.6);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 230, 255, 0.2);
}

.fb-rating {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}
.fb-star {
  background: transparent;
  border: 0;
  font-size: 1.8em;
  color: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 4px;
  transition: color 0.18s, transform 0.1s;
}
.fb-star:hover { transform: scale(1.15); }
.fb-star.is-filled { color: #FFD700; }

.fb-msg, .fb-email {
  display: block;
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text, #f0f4ff);
  font-family: inherit;
  font-size: 0.95em;
  margin-bottom: 12px;
  resize: vertical;
  outline: none;
  transition: border-color 0.18s;
}
.fb-msg:focus, .fb-email:focus { border-color: rgba(0, 230, 255, 0.55); }
.fb-msg.fb-msg-error { border-color: rgba(255, 80, 110, 0.6); animation: fbShake 0.4s ease-out; }
@keyframes fbShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

.fb-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}
.fb-cancel {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-2, #C2D4E8);
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  font-size: 0.92em;
}
.fb-send.btn-primary {
  padding: 10px 22px;
  background: linear-gradient(135deg, #00E6FF, #C44FE6);
  border: 0;
  color: var(--text-inv, #050D1F);
  border-radius: 10px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.92em;
  transition: transform 0.18s;
}
.fb-send.btn-primary:hover:not(:disabled) { transform: translateY(-1px); }
.fb-send.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.fb-foot {
  margin: 0;
  font-size: 0.74em;
  color: var(--text-4, #6A87A8);
  line-height: 1.55;
  text-align: center;
}

.fb-thanks {
  text-align: center;
  padding: 20px 0;
}
.fb-thanks-emoji { font-size: 3.5em; display: block; margin-bottom: 12px; filter: drop-shadow(0 0 20px rgba(0, 230, 255, 0.5)); }
.fb-thanks h3 { font-size: 1.4em; margin: 0 0 12px; color: var(--text, #f0f4ff); }
.fb-thanks p { color: var(--text-2, #C2D4E8); margin: 0 0 22px; }
.fb-thanks .btn-primary {
  padding: 10px 28px;
  background: linear-gradient(135deg, #00E6FF, #C44FE6);
  border: 0;
  color: var(--text-inv, #050D1F);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

/* ═══════════════════════════════════════════════════════════════
   K4 — Position Card (animated, shown after successful pre-reg)
   ═══════════════════════════════════════════════════════════════ */
.pos-card {
  position: fixed;
  left: 50%;
  top: 90px;
  transform: translateX(-50%) translateY(-30px);
  z-index: 8500;
  width: min(520px, calc(100vw - 30px));
  padding: 26px 28px;
  background:
    radial-gradient(ellipse at top, color-mix(in srgb, var(--tier-color, #00E6FF) 18%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(10, 18, 40, 0.98), rgba(18, 24, 50, 0.96));
  border: 1px solid var(--tier-color, rgba(0, 230, 255, 0.5));
  border-radius: 18px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px color-mix(in srgb, var(--tier-color, #00E6FF) 25%, transparent),
    0 0 60px color-mix(in srgb, var(--tier-color, #00E6FF) 35%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f0f4ff;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1.4, 0.32, 1);
}
.pos-card.pos-in { opacity: 1; transform: translateX(-50%) translateY(0); }
.pos-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f0f4ff;
  font-size: 1.3em;
  cursor: pointer;
  line-height: 1;
}
.pos-close:hover { background: rgba(255, 80, 110, 0.18); }

.pos-card-inner { text-align: center; }
.pos-eyebrow {
  display: block;
  font-size: 0.7em;
  letter-spacing: 0.22em;
  color: var(--tier-color, #00E6FF);
  font-weight: 800;
  margin-bottom: 10px;
}
.pos-number-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
  font-family: "JetBrains Mono", monospace;
}
.pos-hash {
  font-size: 1.6em;
  color: var(--tier-color, #00E6FF);
  font-weight: 700;
}
.pos-number {
  font-size: 4em;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  text-shadow: 0 0 30px color-mix(in srgb, var(--tier-color, #00E6FF) 45%, transparent);
  font-variant-numeric: tabular-nums;
}
.pos-of {
  font-size: 1em;
  color: rgba(220, 230, 255, 0.5);
  font-weight: 500;
  margin-left: 4px;
}

.pos-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.pos-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--tier-color, #00E6FF), #C44FE6);
  border-radius: 999px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--tier-color, #00E6FF) 50%, transparent);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.pos-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.pos-percentile {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.82em;
  font-weight: 700;
  color: var(--text-2, #C2D4E8);
}
.pos-tier {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid;
  background: rgba(255, 255, 255, 0.03);
}
.pos-tier strong { font-size: 0.88em; font-weight: 800; color: #fff; }
.pos-tier small  { font-size: 0.7em; color: rgba(220, 230, 255, 0.7); }

.pos-cta {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: rgba(0, 230, 255, 0.06);
  border-left: 3px solid rgba(0, 230, 255, 0.45);
  border-radius: 8px;
  font-size: 0.86em;
  line-height: 1.55;
  color: rgba(220, 230, 255, 0.85);
  text-align: left;
}
.pos-cta strong { color: var(--accent-bright, #00E6FF); }

@media (max-width: 479px) {
  .pos-card { top: 70px; padding: 20px 18px; }
  .pos-number { font-size: 3em; }
  .pos-cta { font-size: 0.78em; }
  .pos-meta { flex-direction: column; gap: 10px; }
}

/* ═══════════════════════════════════════════════════════════════
   K3 — Referral Share Card (after pre-reg success)
   ═══════════════════════════════════════════════════════════════ */
.ref-share-card {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(120%);
  z-index: 8000;
  width: min(540px, calc(100vw - 30px));
  padding: 24px 26px 22px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.98), rgba(18, 24, 50, 0.96));
  border: 1px solid rgba(0, 230, 255, 0.4);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(0, 230, 255, 0.15),
              0 0 40px rgba(0, 230, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f0f4ff;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1.4, 0.32, 1);
}
.ref-share-card.ref-in { opacity: 1; transform: translateX(-50%) translateY(0); }
.ref-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f0f4ff;
  font-size: 1.3em;
  cursor: pointer;
  line-height: 1;
}
.ref-close:hover { background: rgba(255, 80, 110, 0.18); }
.ref-eyebrow {
  display: block;
  font-size: 0.65em;
  letter-spacing: 0.18em;
  color: #00E6FF;
  font-weight: 700;
  margin-bottom: 8px;
}
.ref-h3 {
  margin: 0 0 6px;
  font-size: 1.15em;
  font-weight: 800;
}
.ref-sub {
  font-size: 0.85em;
  color: rgba(220, 230, 255, 0.7);
  margin: 0 0 14px;
  line-height: 1.5;
}
.ref-link-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.ref-link-input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #f0f4ff;
  font-family: monospace;
  font-size: 0.78em;
  min-width: 0;
}
.ref-copy-btn {
  padding: 10px 16px;
  background: linear-gradient(135deg, #00B3FF, #C44FE6);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85em;
  cursor: pointer;
  white-space: nowrap;
}
.ref-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ref-share-btn {
  flex: 1;
  text-align: center;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 230, 255, 0.3);
  border-radius: 8px;
  color: #f0f4ff;
  font-size: 0.82em;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.ref-share-btn:hover { background: rgba(0, 230, 255, 0.1); border-color: rgba(0, 230, 255, 0.6); }
@media (max-width: 479px) {
  .ref-share-card { padding: 18px 16px; bottom: 12px; }
  .ref-link-row { flex-direction: column; }
  .ref-copy-btn { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   Second-email field — only shown when platform="both"
   ═══════════════════════════════════════════════════════════════ */
.field-email-secondary {
  animation: secondaryFieldIn 0.36s cubic-bezier(0.22, 1.4, 0.32, 1);
}
.field-email-secondary .field-hint {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-3);
  padding: 8px 12px;
  background: rgba(0, 230, 255, 0.06);
  border-left: 3px solid rgba(0, 230, 255, 0.4);
  border-radius: 6px;
}
.field-email-secondary .field-hint strong { color: var(--text); }
.field-email-secondary .field-hint em { font-style: normal; color: var(--accent-bright); }
@keyframes secondaryFieldIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   READABLE-BACKDROP LAYER
   Provides subtle text-backgrounds for content that floats over
   animated backgrounds (aurora, magic-circle, page-hero-aura).
   Strategy:
     • Radial-vignette ::before pseudo behind text → invisible on
       dark areas, crisp contrast against bright animated tints
     • Soft "glass-band" for body-text paragraphs
     • Animation pause via .reduced-motion respected
   ═══════════════════════════════════════════════════════════════ */

/* Reusable readable-backdrop utility — apply class .has-readable-bg */
.has-readable-bg {
  position: relative;
  isolation: isolate;
}
.has-readable-bg::before {
  content: "";
  position: absolute;
  inset: -14px -22px;
  z-index: -1;
  background: radial-gradient(ellipse at center,
    rgba(5, 13, 31, 0.55) 0%,
    rgba(5, 13, 31, 0.35) 45%,
    rgba(5, 13, 31, 0) 78%);
  filter: blur(8px);
  pointer-events: none;
}

