/* ═════════════════════════════════════════
   Authentication and account center surfaces
   Authentication & Account Center
   ═════════════════════════════════════════ */

.auth-page { min-height: 100vh; }

.login-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  color: #2c2721;
  background: #fff;
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: none;
}

.login-topbar {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100vw - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 14px;
}

.login-brand,
.return-home-link {
  color: #2c2721;
  text-decoration: none;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.login-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.login-brand span {
  display: grid;
  gap: 2px;
}

.login-brand strong {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
}

.login-brand em {
  color: #6f675f;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
}

.return-home-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(58, 51, 43, 0.16);
  border-radius: 8px;
  color: #403932;
  background: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.return-home-link:hover,
.return-home-link:focus-visible {
  color: #0d6b61;
  background: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.auth-shell {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--space-4);
  min-height: 100vh;
  padding: var(--space-6);
}

.login-stage {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 64px));
  min-height: calc(100vh - 146px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(560px, 1fr);
  align-items: center;
  gap: 76px;
  padding: 36px 0 74px;
}

.login-panel {
  display: grid;
  align-content: center;
}

.login-panel .eyebrow {
  margin: 0 0 14px;
  color: #a55336;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.login-panel h1 {
  margin: 0;
  max-width: 420px;
  color: #211d19;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 54px;
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: 0;
}

.login-panel h1 span {
  display: block;
}

.login-lede {
  max-width: 380px;
  margin: 20px 0 28px;
  color: #6a6258;
  font-size: 16px;
  line-height: 1.85;
}

.auth-card {
  width: min(420px, 100%);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.login-card {
  width: 100%;
  padding: 26px;
  border: 1px solid rgba(58, 51, 43, 0.13);
  border-radius: 8px;
  color: #2c2721;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 24px 70px rgba(57, 48, 36, 0.12);
  backdrop-filter: blur(18px);
}

.login-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(58, 51, 43, 0.1);
  border-radius: 8px;
  background: rgba(91, 79, 65, 0.07);
}

.login-mode-tabs button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: #71675d;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 900;
}

.login-mode-tabs button:hover,
.login-mode-tabs button:focus-visible {
  color: #2c2721;
  background: rgba(255, 255, 255, 0.56);
}

.login-mode-tabs button.is-active {
  color: #f9f3ea;
  background: #1f3d37;
}

.login-mode-summary {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.login-mode-summary strong {
  color: #231f1b;
  font-size: 20px;
  line-height: 1.2;
}

.login-mode-summary span {
  color: #71675d;
  font-size: 13px;
  line-height: 1.6;
}

.login-card .form-field {
  color: #3f3933;
}

.login-card .form-field span {
  color: #3f3933;
}

.login-card .form-field input {
  min-height: 46px;
  border-color: rgba(58, 51, 43, 0.18);
  border-radius: 8px;
  color: #201c18;
  background: rgba(255, 255, 255, 0.72);
}

.login-card .form-field input:hover {
  border-color: rgba(58, 51, 43, 0.34);
}

.login-card .form-field input:focus {
  border-color: #0d6b61;
  box-shadow: 0 0 0 3px rgba(13, 107, 97, 0.15);
}

.login-card .auth-form button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: #fffaf2;
  background: #0d6b61;
  font-weight: 900;
}

.login-card .auth-form button:hover,
.login-card .auth-form button:focus-visible {
  background: #08524a;
}

.login-motion {
  min-width: 0;
}

.motion-frame {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(54, 48, 40, 0.11);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.5);
  box-shadow: 0 30px 86px rgba(42, 34, 23, 0.12);
}

.motion-window {
  overflow: hidden;
  border: 1px solid rgba(24, 29, 30, 0.58);
  border-radius: 8px;
  background: #0a0d0e;
  box-shadow: 0 26px 60px rgba(16, 19, 18, 0.28);
}

.motion-toolbar {
  min-height: 44px;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: #635c53;
  background: #f4f0e8;
  border-bottom: 1px solid rgba(36, 32, 28, 0.13);
}

.motion-progress {
  height: 3px;
  overflow: hidden;
  background: #ded6ca;
}

.motion-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #cf7455, #0d6b61, #8ce7cf);
  box-shadow: 0 0 16px rgba(13, 107, 97, 0.45);
  animation: motion-progress 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.motion-dots {
  display: inline-flex;
  gap: 7px;
}

.motion-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d9d2c8;
}

.motion-dots span:nth-child(1) { background: #d77657; }
.motion-dots span:nth-child(2) { background: #e5c56e; }
.motion-dots span:nth-child(3) { background: #71a894; }

.motion-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
}

.motion-title span,
.motion-actions span {
  color: #766d62;
}

.motion-title strong {
  min-width: 0;
  overflow: hidden;
  color: #2f2923;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.motion-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.motion-actions strong {
  padding: 3px 8px;
  border-radius: 6px;
  color: #fff8ef;
  background: #ca6d4d;
}

.motion-workspace {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 145px;
  min-height: 432px;
  background: #0a0d0e;
}

.motion-window .motion-progress span {
  animation: film-progress 16s linear infinite;
}

.motion-film {
  display: block;
  min-height: 432px;
}

.film-stage {
  position: relative;
  min-height: 432px;
  overflow: hidden;
  color: #fff8ef;
  background:
    radial-gradient(circle at 50% 34%, rgba(13, 107, 97, 0.28), transparent 36%),
    linear-gradient(180deg, rgba(245, 241, 233, 0.03), transparent 34%),
    #070a0c;
}

.film-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    linear-gradient(rgba(140, 231, 207, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 231, 207, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  transform: perspective(760px) rotateX(58deg) translateY(88px) scale(1.25);
  transform-origin: center bottom;
  animation: film-grid 16s ease-in-out infinite;
}

.film-stage::before,
.film-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.film-stage::before {
  inset: 64px 15% 74px;
  border: 1px solid rgba(140, 231, 207, 0.16);
  border-radius: 8px;
  box-shadow: inset 0 0 44px rgba(13, 107, 97, 0.12);
}

.film-stage::after {
  left: 50%;
  top: 50%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  opacity: 0.28;
  background: radial-gradient(circle, rgba(140, 231, 207, 0.46), transparent 62%);
  filter: blur(18px);
  transform: translate(-50%, -50%);
  animation: film-glow 16s ease-in-out infinite;
}

.film-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 56px 80px 88px;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  animation-duration: 16s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.scene-task { animation-name: film-scene-task; }
.scene-base { animation-name: film-scene-base; }
.scene-optimized { animation-name: film-scene-optimized; }
.scene-score { animation-name: film-scene-score; }

.film-kicker {
  color: #d57958;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.film-scene h2 {
  margin: 0;
  max-width: 520px;
  color: #fff8ef;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
}

.film-prompt-card,
.film-answer-card,
.film-score-card {
  width: min(520px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

.film-prompt-card {
  padding: 22px 24px;
  color: #2d2822;
  background: rgba(248, 241, 231, 0.96);
}

.film-prompt-card strong,
.film-answer-card strong {
  display: block;
  margin-bottom: 8px;
  color: #9a573f;
  font-size: 12px;
  font-weight: 900;
}

.film-prompt-card p,
.film-answer-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.film-answer-card {
  padding: 22px 24px;
}

.film-answer-card.is-base {
  color: #f7e8d9;
  background: rgba(63, 47, 40, 0.92);
}

.film-answer-card.is-optimized {
  color: #e5fff6;
  background: rgba(17, 82, 72, 0.94);
}

.film-answer-card.is-optimized strong {
  color: #8ce7cf;
}

.film-answer-card em {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: currentColor;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  opacity: 0.74;
}

.film-score-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 24px;
  color: #2d2822;
  background: rgba(248, 241, 231, 0.96);
}

.film-score-card div {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.film-score-card span {
  color: #806f60;
  font-size: 12px;
  font-weight: 900;
}

.film-score-card strong {
  color: #2d2822;
  font-size: 46px;
  line-height: 1;
}

.film-score-card div:last-child strong {
  color: #0d6b61;
}

.film-score-card i {
  width: 68px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cf7455, #0d6b61);
}

.film-caption {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 8px;
  transform: translateX(-50%);
}

.film-caption span {
  min-width: 72px;
  padding: 6px 9px;
  border: 1px solid rgba(140, 231, 207, 0.18);
  border-radius: 999px;
  color: rgba(225, 248, 240, 0.66);
  background: rgba(7, 10, 12, 0.68);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  animation-duration: 16s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.film-caption span:nth-child(1) { animation-name: film-caption-step1; }
.film-caption span:nth-child(2) { animation-name: film-caption-step2; }
.film-caption span:nth-child(3) { animation-name: film-caption-step3; }
.film-caption span:nth-child(4) { animation-name: film-caption-step4; }

.motion-brief,
.motion-controls {
  position: relative;
  z-index: 2;
  padding: 16px;
  color: #b9afa4;
  background: #f5f1e9;
}

.motion-brief {
  border-right: 1px solid rgba(36, 32, 28, 0.14);
}

.motion-controls {
  border-left: 1px solid rgba(36, 32, 28, 0.14);
  color: #d9d0c6;
  background: #101414;
}

.motion-controls .motion-kicker {
  color: #d57958;
}

.motion-kicker {
  display: block;
  margin-bottom: 8px;
  color: #9a573f;
  font-size: 11px;
  font-weight: 900;
}

.motion-brief p {
  margin-bottom: 16px;
  color: #342f2a;
  font-size: 13px;
  line-height: 1.55;
}

.motion-brief ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.motion-brief li {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: #4a433c;
  background: #ebe5db;
  font-size: 11px;
  font-weight: 800;
}

.motion-canvas {
  position: relative;
  min-height: 432px;
  overflow: hidden;
  color: #e7f6f1;
  background:
    linear-gradient(180deg, rgba(13, 107, 97, 0.1), transparent 48%),
    #070a0c;
}

.motion-canvas::after {
  content: "";
  position: absolute;
  inset: 16% 10%;
  z-index: 1;
  border-radius: 50%;
  opacity: 0.24;
  background:
    radial-gradient(circle at 50% 50%, rgba(140, 231, 207, 0.48), transparent 38%);
  filter: blur(16px);
  animation: canvas-glow 10s ease-in-out infinite;
}

.motion-canvas::before {
  content: "";
  position: absolute;
  inset: -26%;
  opacity: 0.34;
  background:
    linear-gradient(rgba(114, 235, 219, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 235, 219, 0.1) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(760px) rotateX(58deg) translateY(34px);
  transform-origin: center bottom;
  animation: grid-drift 12s ease-in-out infinite;
}

.canvas-grid {
  position: absolute;
  inset: 68px 12% 32px;
  border: 1px solid rgba(114, 235, 219, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(120deg, transparent 0 44%, rgba(114, 235, 219, 0.12) 45%, transparent 46%),
    linear-gradient(40deg, transparent 0 56%, rgba(114, 235, 219, 0.1) 57%, transparent 58%);
  animation: canvas-breathe 10s ease-in-out infinite;
}

.canvas-heading {
  position: absolute;
  top: 34px;
  left: 50%;
  z-index: 2;
  display: grid;
  gap: 2px;
  width: min(300px, 70%);
  text-align: center;
  transform: translateX(-50%);
}

.canvas-heading strong {
  color: #fffaf2;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.1;
}

.canvas-heading span {
  color: rgba(203, 225, 217, 0.68);
  font-size: 12px;
}

.pipeline-steps {
  position: absolute;
  left: 50%;
  top: 88px;
  z-index: 4;
  display: inline-flex;
  gap: 6px;
  transform: translateX(-50%);
}

.pipeline-steps span {
  min-width: 42px;
  padding: 4px 8px;
  border: 1px solid rgba(140, 231, 207, 0.2);
  border-radius: 999px;
  color: rgba(225, 248, 240, 0.68);
  background: rgba(7, 10, 12, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  animation: step-pulse 9s ease-in-out infinite;
}

.pipeline-steps span:nth-child(2) { animation-delay: 1.6s; }
.pipeline-steps span:nth-child(3) { animation-delay: 3.2s; }
.pipeline-steps span:nth-child(4) { animation-delay: 4.8s; }

.optimization-beam {
  position: absolute;
  left: 50%;
  top: 210px;
  z-index: 2;
  width: 46%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(207, 116, 85, 0), rgba(207, 116, 85, 0.7), rgba(140, 231, 207, 0.9), rgba(140, 231, 207, 0));
  box-shadow: 0 0 22px rgba(140, 231, 207, 0.48);
  transform: translateX(-50%);
  animation: beam-sweep 9s ease-in-out infinite;
}

.model-orbit {
  position: absolute;
  left: 50%;
  top: 55%;
  z-index: 2;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(140, 231, 207, 0.11);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbit-spin 14s linear infinite;
}

.model-orbit span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ce7cf;
  box-shadow: 0 0 14px rgba(140, 231, 207, 0.8);
}

.model-orbit span:nth-child(1) { left: 50%; top: -4px; }
.model-orbit span:nth-child(2) { right: 14px; bottom: 40px; background: #cf7455; }
.model-orbit span:nth-child(3) { left: 18px; bottom: 34px; background: #e5c56e; }

.prompt-object,
.baseline-object,
.optimized-object,
.score-object {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.prompt-object {
  top: 112px;
  left: 50%;
  width: min(370px, 82%);
  padding: 15px 17px;
  color: #2d2822;
  background: rgba(248, 241, 231, 0.97);
  transform: translateX(-50%);
  animation: prompt-cycle 10s ease-in-out infinite;
}

.prompt-object span,
.baseline-object span,
.optimized-object span,
.score-object span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 900;
}

.prompt-object span {
  color: #9a573f;
}

.prompt-object p {
  color: #332d26;
  font-size: 13px;
  line-height: 1.55;
}

.baseline-object,
.optimized-object {
  width: 190px;
  min-height: 138px;
  padding: 14px;
}

.baseline-object {
  left: 6%;
  top: 228px;
  color: #efe4d8;
  background: rgba(64, 48, 42, 0.82);
  animation: baseline-cycle 10s ease-in-out infinite;
}

.optimized-object {
  right: 6%;
  top: 218px;
  color: #e6fff6;
  background: rgba(18, 76, 66, 0.92);
  opacity: 0.72;
  animation: optimized-cycle 10s ease-in-out infinite;
}

.baseline-object span {
  color: #e09a7f;
}

.optimized-object span {
  color: #8ce7cf;
}

.baseline-object p,
.optimized-object p {
  font-size: 12px;
  line-height: 1.55;
}

.baseline-object i,
.optimized-object i {
  display: block;
  height: 7px;
  margin: 12px 0 9px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.18;
  transform-origin: left center;
  animation: response-line 10s ease-in-out infinite;
}

.baseline-object small,
.optimized-object small {
  display: block;
  color: currentColor;
  font-size: 11px;
  opacity: 0.72;
}

.optimized-object::before {
  content: "";
  position: absolute;
  inset: -16px auto auto -62px;
  width: 74px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(140, 231, 207, 0.78));
  transform: rotate(-14deg);
  animation: rewrite-link 10s ease-in-out infinite;
}

.score-object {
  left: 50%;
  bottom: 28px;
  width: min(280px, 72%);
  padding: 14px 16px;
  color: #2e2923;
  background: rgba(248, 241, 231, 0.96);
  transform: translateX(-50%);
  animation: score-cycle 10s ease-in-out infinite;
}

.score-object span {
  color: #9a573f;
}

.score-object div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.score-object strong {
  color: #0d6b61;
  font-size: 30px;
  line-height: 1;
}

.score-object em {
  color: #3d352d;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.score-object p {
  color: #6a5f54;
  font-size: 12px;
  line-height: 1.5;
}

.receipt-object,
.voucher-object,
.compare-object,
.feedback-object {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(245, 239, 229, 0.95);
  color: #29251f;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.receipt-object {
  left: 11%;
  top: 130px;
  width: 245px;
  min-height: 188px;
  padding: 16px;
  transform: rotate(-2deg);
  animation: receipt-cycle 18s ease-in-out infinite;
}

.receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.receipt-head span {
  color: #302a24;
  font-size: 13px;
  font-weight: 900;
}

.receipt-head em {
  padding: 2px 7px;
  border-radius: 999px;
  color: #0b6b61;
  background: rgba(13, 107, 97, 0.12);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.receipt-line {
  height: 8px;
  width: 66%;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #d9d0c4;
}

.receipt-line.is-long {
  width: 92%;
}

.receipt-field {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e2d8ca;
  font-size: 12px;
}

.receipt-field span {
  color: #8a7a6a;
}

.receipt-field strong {
  color: #352e27;
  overflow-wrap: anywhere;
}

.scan-beam {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 42px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(17, 155, 139, 0.28), transparent);
  animation: scan-pass 18s ease-in-out infinite;
}

.voucher-object {
  right: 11%;
  top: 168px;
  width: 230px;
  padding: 15px;
  animation: voucher-cycle 18s ease-in-out infinite;
}

.voucher-object > span,
.compare-object > span,
.feedback-object > span {
  display: block;
  margin-bottom: 10px;
  color: #9a573f;
  font-size: 11px;
  font-weight: 900;
}

.voucher-object div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #e3d9ca;
  font-size: 12px;
}

.voucher-object strong {
  color: #312a23;
}

.voucher-object em {
  color: #0d6b61;
  font-style: normal;
  font-weight: 900;
}

.compare-object {
  left: 50%;
  bottom: 42px;
  width: min(430px, 78%);
  padding: 15px;
  transform: translateX(-50%);
  animation: compare-cycle 18s ease-in-out infinite;
}

.compare-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.compare-columns div {
  min-height: 92px;
  padding: 12px;
  border-radius: 8px;
  background: #eee7dc;
}

.compare-columns div:last-child {
  background: #dff1eb;
}

.compare-columns em {
  display: block;
  margin-bottom: 6px;
  color: #6e6256;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.compare-columns p,
.feedback-object p {
  color: #342e27;
  font-size: 12px;
  line-height: 1.55;
}

.feedback-object {
  right: 8%;
  bottom: 118px;
  width: 245px;
  padding: 14px;
  animation: feedback-cycle 18s ease-in-out infinite;
}

.metric-row {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.metric-row span {
  color: #d9d0c6;
  font-size: 12px;
  font-weight: 900;
}

.metric-row i {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #252d2c;
}

.metric-row i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--metric);
  border-radius: inherit;
  background: #0d6b61;
  transform: scaleX(0.24);
  transform-origin: left center;
  animation: metric-fill 10s ease-in-out infinite;
}

.motion-knob {
  width: 74px;
  height: 74px;
  margin: 26px auto 0;
  border: 1px solid rgba(217, 208, 198, 0.24);
  border-radius: 50%;
  background:
    conic-gradient(from 40deg, #0d6b61 0 70%, #e2dacf 70% 100%);
  box-shadow: inset 0 0 0 18px #101414;
  animation: knob-cycle 10s ease-in-out infinite;
}

@keyframes grid-drift {
  0%, 100% { transform: perspective(760px) rotateX(58deg) translateY(34px) translateX(0); }
  50% { transform: perspective(760px) rotateX(58deg) translateY(24px) translateX(-18px); }
}

@keyframes film-scene-task {
  0%, 20% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  25%, 100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
  }
}

@keyframes film-scene-base {
  0%, 24% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  28%, 45% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50%, 100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
  }
}

@keyframes film-scene-optimized {
  0%, 49% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  53%, 70% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  75%, 100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
  }
}

@keyframes film-scene-score {
  0%, 74% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  78%, 95% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
  }
}

@keyframes film-caption-step1 {
  0%, 20% {
    color: #04201b;
    border-color: rgba(140, 231, 207, 0.82);
    background: #8ce7cf;
    box-shadow: 0 0 18px rgba(140, 231, 207, 0.34);
  }
  25%, 100% {
    color: rgba(225, 248, 240, 0.66);
    border-color: rgba(140, 231, 207, 0.18);
    background: rgba(7, 10, 12, 0.68);
    box-shadow: none;
  }
}

@keyframes film-caption-step2 {
  0%, 24%, 50%, 100% {
    color: rgba(225, 248, 240, 0.66);
    border-color: rgba(140, 231, 207, 0.18);
    background: rgba(7, 10, 12, 0.68);
    box-shadow: none;
  }
  28%, 45% {
    color: #04201b;
    border-color: rgba(140, 231, 207, 0.82);
    background: #8ce7cf;
    box-shadow: 0 0 18px rgba(140, 231, 207, 0.34);
  }
}

@keyframes film-caption-step3 {
  0%, 49%, 75%, 100% {
    color: rgba(225, 248, 240, 0.66);
    border-color: rgba(140, 231, 207, 0.18);
    background: rgba(7, 10, 12, 0.68);
    box-shadow: none;
  }
  53%, 70% {
    color: #04201b;
    border-color: rgba(140, 231, 207, 0.82);
    background: #8ce7cf;
    box-shadow: 0 0 18px rgba(140, 231, 207, 0.34);
  }
}

@keyframes film-caption-step4 {
  0%, 74%, 100% {
    color: rgba(225, 248, 240, 0.66);
    border-color: rgba(140, 231, 207, 0.18);
    background: rgba(7, 10, 12, 0.68);
    box-shadow: none;
  }
  78%, 95% {
    color: #04201b;
    border-color: rgba(140, 231, 207, 0.82);
    background: #8ce7cf;
    box-shadow: 0 0 18px rgba(140, 231, 207, 0.34);
  }
}

@keyframes film-progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(240%); }
}

@keyframes film-grid {
  0%, 100% { transform: perspective(760px) rotateX(58deg) translateY(88px) scale(1.25); }
  50% { transform: perspective(760px) rotateX(58deg) translateY(62px) scale(1.3); }
}

@keyframes film-glow {
  0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.88); }
  50% { opacity: 0.42; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes motion-progress {
  0% { transform: translateX(-105%); }
  45%, 60% { transform: translateX(72%); }
  100% { transform: translateX(250%); }
}

@keyframes canvas-glow {
  0%, 100% { opacity: 0.2; transform: scale(0.86); }
  45%, 68% { opacity: 0.42; transform: scale(1.08); }
}

@keyframes step-pulse {
  0%, 24%, 100% {
    color: rgba(225, 248, 240, 0.56);
    border-color: rgba(140, 231, 207, 0.18);
    background: rgba(7, 10, 12, 0.72);
    box-shadow: none;
  }
  7%, 18% {
    color: #04201b;
    border-color: rgba(140, 231, 207, 0.82);
    background: #8ce7cf;
    box-shadow: 0 0 18px rgba(140, 231, 207, 0.42);
  }
}

@keyframes beam-sweep {
  0%, 18% { opacity: 0.18; transform: translateX(-54%) scaleX(0.28); }
  36%, 62% { opacity: 1; transform: translateX(-50%) scaleX(1); }
  100% { opacity: 0.18; transform: translateX(-46%) scaleX(0.36); }
}

@keyframes orbit-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes canvas-breathe {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.025); }
}

@keyframes receipt-cycle {
  0%, 30%, 100% { opacity: 1; transform: translateY(0) rotate(-2deg) scale(1); }
  44%, 84% { opacity: 0.28; transform: translateY(10px) rotate(-2deg) scale(0.95); }
}

@keyframes scan-pass {
  0% { opacity: 0; transform: translateY(0); }
  6%, 24% { opacity: 1; }
  28%, 100% { opacity: 0; transform: translateY(110px); }
}

@keyframes voucher-cycle {
  0%, 17% { opacity: 0; transform: translateY(22px) scale(0.96); }
  25%, 53% { opacity: 1; transform: translateY(0) scale(1); }
  65%, 100% { opacity: 0.22; transform: translateY(-8px) scale(0.97); }
}

@keyframes compare-cycle {
  0%, 36% { opacity: 0; transform: translateX(-50%) translateY(26px) scale(0.96); }
  48%, 76% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  90%, 100% { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(0.98); }
}

@keyframes feedback-cycle {
  0%, 59% { opacity: 0; transform: translateY(20px) scale(0.96); }
  70%, 90% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-10px) scale(0.98); }
}

@keyframes metric-fill {
  0%, 42% { transform: scaleX(0.28); }
  58%, 92% { transform: scaleX(1); }
  100% { transform: scaleX(0.28); }
}

@keyframes knob-cycle {
  0%, 100% { transform: rotate(-18deg); }
  54%, 86% { transform: rotate(18deg); }
}

@keyframes prompt-cycle {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.92; transform: translateX(-50%) translateY(-6px); }
}

@keyframes baseline-cycle {
  0%, 32% { opacity: 1; transform: translateY(0) scale(1); }
  48%, 100% { opacity: 0.42; transform: translateY(10px) scale(0.96); }
}

@keyframes optimized-cycle {
  0%, 18% { opacity: 0.72; transform: translateY(12px) scale(0.97); }
  34%, 88% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0.72; transform: translateY(-8px) scale(0.98); }
}

@keyframes score-cycle {
  0%, 42% { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.96); }
  56%, 92% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(0.98); }
}

@keyframes response-line {
  0%, 36% { transform: scaleX(0.28); }
  48%, 88% { transform: scaleX(1); }
  100% { transform: scaleX(0.28); }
}

@keyframes rewrite-link {
  0%, 22% { opacity: 0.22; transform: translateX(-18px) rotate(-14deg); }
  36%, 78% { opacity: 1; transform: translateX(0) rotate(-14deg); }
  100% { opacity: 0; transform: translateX(14px) rotate(-14deg); }
}

.cinematic-workspace {
  display: block;
  min-height: 480px;
  background: #070a0c;
}

.cinematic-stage {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  color: #f8fbf8;
  background:
    radial-gradient(circle at 50% 42%, rgba(140, 231, 207, 0.26), transparent 28%),
    radial-gradient(circle at 16% 22%, rgba(207, 116, 85, 0.18), transparent 26%),
    linear-gradient(140deg, #06090b 0%, #0b1011 48%, #071b19 100%);
  isolation: isolate;
}

.cinematic-stage::before,
.cinematic-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cinematic-stage::before {
  inset: 20px;
  z-index: 1;
  border: 1px solid rgba(140, 231, 207, 0.14);
  border-radius: 8px;
  box-shadow:
    inset 0 0 46px rgba(13, 107, 97, 0.12),
    0 0 38px rgba(13, 107, 97, 0.08);
}

.cinematic-stage::after {
  inset: -26% -20%;
  z-index: 0;
  opacity: 0.4;
  background:
    linear-gradient(110deg, transparent 0 42%, rgba(140, 231, 207, 0.15) 44%, transparent 47%),
    linear-gradient(62deg, transparent 0 54%, rgba(207, 116, 85, 0.12) 56%, transparent 58%);
  animation: cinematic-sweep 7s ease-in-out infinite;
}

.cinematic-grid {
  position: absolute;
  inset: -34% -18%;
  z-index: 0;
  opacity: 0.36;
  background:
    linear-gradient(rgba(140, 231, 207, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 231, 207, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(820px) rotateX(62deg) translateY(90px) scale(1.28);
  transform-origin: center bottom;
  animation: cinematic-grid-flow 8s linear infinite;
}

.cinematic-aurora {
  position: absolute;
  inset: 8% 16%;
  z-index: 0;
  border-radius: 50%;
  opacity: 0.44;
  background:
    radial-gradient(circle at 40% 46%, rgba(140, 231, 207, 0.42), transparent 36%),
    radial-gradient(circle at 62% 54%, rgba(207, 116, 85, 0.2), transparent 32%);
  filter: blur(22px);
  animation: cinematic-aurora 6s ease-in-out infinite;
}

.cinematic-heading {
  position: absolute;
  left: 50%;
  top: 34px;
  z-index: 4;
  display: grid;
  gap: 3px;
  width: min(360px, 72%);
  text-align: center;
  transform: translateX(-50%);
}

.cinematic-heading span {
  color: #d57958;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cinematic-heading strong {
  color: #fff8ef;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
}

.cinematic-panel,
.rubric-panel {
  position: absolute;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.cinematic-panel span,
.rubric-panel > span {
  display: block;
  margin-bottom: 7px;
  color: #d57958;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cinematic-panel strong {
  display: block;
  margin-bottom: 6px;
  color: currentColor;
  font-size: 14px;
  line-height: 1.35;
}

.cinematic-panel p,
.rubric-panel p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.cinematic-panel em {
  display: inline-flex;
  margin-top: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.intake-panel {
  left: 7%;
  top: 116px;
  width: 230px;
  padding: 16px;
  color: #2f2922;
  background: rgba(248, 241, 231, 0.96);
  animation: cinematic-intake 6s ease-in-out infinite;
}

.scan-line {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 42px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(13, 107, 97, 0.34), transparent);
  animation: cinematic-scan 2.8s ease-in-out infinite;
}

.base-panel {
  left: 8%;
  bottom: 116px;
  width: 188px;
  padding: 14px;
  color: #f6e6d8;
  background: rgba(63, 47, 40, 0.82);
  animation: cinematic-base-answer 6s ease-in-out infinite;
}

.optimized-panel {
  right: 7%;
  top: 128px;
  width: 238px;
  padding: 15px;
  color: #e9fff7;
  background: rgba(16, 78, 69, 0.88);
  animation: cinematic-optimized-answer 6s ease-in-out infinite;
}

.optimized-panel span,
.optimized-panel em {
  color: #8ce7cf;
}

.rubric-panel {
  right: 9%;
  bottom: 96px;
  width: 218px;
  padding: 15px;
  color: #2d2822;
  background: rgba(248, 241, 231, 0.96);
  animation: cinematic-rubric 6s ease-in-out infinite;
}

.score-swap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 2px 0 7px;
}

.score-swap strong {
  color: #493e34;
  font-size: 34px;
  line-height: 1;
}

.score-swap strong:last-child {
  color: #0d6b61;
  animation: cinematic-score-pop 6s ease-in-out infinite;
}

.score-swap i {
  width: 36px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cf7455, #0d6b61);
  animation: cinematic-score-link 6s ease-in-out infinite;
}

.model-core {
  position: absolute;
  left: 50%;
  top: 53%;
  z-index: 4;
  width: 214px;
  height: 214px;
  transform: translate(-50%, -50%);
}

.model-core::before,
.model-core::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 231, 207, 0.32), transparent 64%);
  filter: blur(14px);
  animation: cinematic-core-glow 4s ease-in-out infinite;
}

.model-core::after {
  inset: 58px;
  background: radial-gradient(circle, rgba(207, 116, 85, 0.22), transparent 68%);
  animation-delay: -1.7s;
}

.core-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(140, 231, 207, 0.24);
  border-radius: 50%;
}

.ring-one {
  animation: cinematic-ring-spin 10s linear infinite;
}

.ring-two {
  inset: 22px;
  border-color: rgba(207, 116, 85, 0.24);
  transform: rotateX(62deg);
  animation: cinematic-ring-spin-reverse 8s linear infinite;
}

.ring-three {
  inset: 48px;
  border-color: rgba(229, 197, 110, 0.28);
  animation: cinematic-ring-pulse 3.2s ease-in-out infinite;
}

.core-ring::before,
.core-ring::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ce7cf;
  box-shadow: 0 0 18px rgba(140, 231, 207, 0.92);
}

.core-ring::before { left: 50%; top: -4px; }
.core-ring::after { right: 18px; bottom: 28px; background: #d57958; }

.core-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(140, 231, 207, 0.34);
  border-radius: 50%;
  color: #eafff7;
  background:
    radial-gradient(circle at 50% 38%, rgba(140, 231, 207, 0.24), transparent 56%),
    rgba(5, 18, 18, 0.88);
  box-shadow:
    inset 0 0 22px rgba(140, 231, 207, 0.14),
    0 0 34px rgba(13, 107, 97, 0.34);
  transform: translate(-50%, -50%);
  animation: cinematic-core-breathe 3.2s ease-in-out infinite;
}

.core-center span {
  color: rgba(234, 255, 247, 0.64);
  font-size: 11px;
  font-weight: 900;
}

.core-center strong {
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}

.data-stream {
  position: absolute;
  z-index: 3;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(140, 231, 207, 0.42), transparent);
  transform-origin: left center;
}

.stream-a {
  left: 31%;
  top: 47%;
  width: 24%;
  transform: rotate(7deg);
}

.stream-b {
  left: 54%;
  top: 51%;
  width: 23%;
  transform: rotate(-9deg);
}

.data-stream span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8ce7cf;
  box-shadow: 0 0 16px rgba(140, 231, 207, 0.84);
  transform: translate(-50%, -50%);
  animation: cinematic-packet 2.6s linear infinite;
}

.data-stream span:nth-child(2) { animation-delay: 0.45s; }
.data-stream span:nth-child(3) { animation-delay: 0.9s; }
.data-stream span:nth-child(4) { animation-delay: 1.35s; }
.data-stream span:nth-child(5) { animation-delay: 1.8s; }

.stream-b span {
  background: #d57958;
  box-shadow: 0 0 16px rgba(207, 116, 85, 0.78);
  animation-duration: 2.25s;
}

.metric-stack {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(620px, calc(100% - 64px));
  transform: translateX(-50%);
}

.metric-stack div {
  padding: 9px 10px;
  border: 1px solid rgba(140, 231, 207, 0.13);
  border-radius: 8px;
  background: rgba(7, 10, 12, 0.66);
}

.metric-stack span {
  display: block;
  margin-bottom: 7px;
  color: rgba(234, 255, 247, 0.74);
  font-size: 11px;
  font-weight: 900;
}

.metric-stack i {
  position: relative;
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(234, 255, 247, 0.1);
}

.metric-stack i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--metric-width);
  border-radius: inherit;
  background: linear-gradient(90deg, #d57958, #8ce7cf);
  transform: scaleX(0.22);
  transform-origin: left center;
  animation: cinematic-meter-fill 6s ease-in-out infinite;
}

@keyframes cinematic-sweep {
  0%, 100% { opacity: 0.22; transform: translateX(-4%) translateY(0); }
  50% { opacity: 0.54; transform: translateX(4%) translateY(-2%); }
}

@keyframes cinematic-grid-flow {
  0% { background-position: 0 0, 0 0; transform: perspective(820px) rotateX(62deg) translateY(98px) scale(1.28); }
  100% { background-position: 0 68px, 68px 0; transform: perspective(820px) rotateX(62deg) translateY(68px) scale(1.32); }
}

@keyframes cinematic-aurora {
  0%, 100% { opacity: 0.32; transform: scale(0.9) rotate(-4deg); }
  50% { opacity: 0.58; transform: scale(1.08) rotate(5deg); }
}

@keyframes cinematic-intake {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(0.5deg); }
}

@keyframes cinematic-scan {
  0% { opacity: 0; transform: translateY(0); }
  16%, 76% { opacity: 1; }
  100% { opacity: 0; transform: translateY(96px); }
}

@keyframes cinematic-base-answer {
  0%, 26% { opacity: 1; transform: translateY(0) scale(1); }
  46%, 100% { opacity: 0.5; transform: translateY(9px) scale(0.96); }
}

@keyframes cinematic-optimized-answer {
  0%, 18% { opacity: 0.72; transform: translateY(14px) scale(0.96); }
  36%, 82% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0.8; transform: translateY(-6px) scale(0.98); }
}

@keyframes cinematic-rubric {
  0%, 38% { opacity: 0.7; transform: translateY(16px) scale(0.96); }
  54%, 92% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0.78; transform: translateY(-4px) scale(0.98); }
}

@keyframes cinematic-score-pop {
  0%, 42% { transform: scale(0.82); opacity: 0.58; }
  58%, 100% { transform: scale(1); opacity: 1; }
}

@keyframes cinematic-score-link {
  0%, 42% { transform: scaleX(0.28); opacity: 0.4; }
  58%, 100% { transform: scaleX(1); opacity: 1; }
}

@keyframes cinematic-core-glow {
  0%, 100% { opacity: 0.55; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes cinematic-ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes cinematic-ring-spin-reverse {
  to { transform: rotateX(62deg) rotate(-360deg); }
}

@keyframes cinematic-ring-pulse {
  0%, 100% { opacity: 0.42; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes cinematic-core-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.96); }
  50% { transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes cinematic-packet {
  0% { left: 0; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  12%, 82% { opacity: 1; }
  100% { left: 100%; opacity: 0; transform: translate(-50%, -50%) scale(1.12); }
}

@keyframes cinematic-meter-fill {
  0%, 28% { transform: scaleX(0.22); }
  54%, 100% { transform: scaleX(1); }
}

.showreel-workspace {
  display: block;
  min-height: 500px;
  background: #07090a;
}

.showreel-stage {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  color: #f8f3ea;
  background:
    radial-gradient(circle at 52% 42%, rgba(137, 226, 204, 0.18), transparent 30%),
    radial-gradient(circle at 20% 24%, rgba(205, 111, 80, 0.16), transparent 30%),
    linear-gradient(145deg, #060809 0%, #0c1112 52%, #061614 100%);
  isolation: isolate;
}

.showreel-stage::before,
.showreel-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.showreel-stage::before {
  inset: 22px;
  z-index: 4;
  border: 1px solid rgba(226, 241, 234, 0.08);
  border-radius: 8px;
  box-shadow:
    inset 0 0 52px rgba(137, 226, 204, 0.08),
    0 0 44px rgba(9, 16, 16, 0.44);
}

.showreel-stage::after {
  inset: -20% -28%;
  z-index: 1;
  opacity: 0.32;
  background:
    linear-gradient(110deg, transparent 0 42%, rgba(137, 226, 204, 0.13) 45%, transparent 48%),
    linear-gradient(55deg, transparent 0 56%, rgba(205, 111, 80, 0.12) 58%, transparent 60%);
  filter: blur(1px);
  animation: showreel-light-sweep 12s ease-in-out infinite;
}

.showreel-light {
  position: absolute;
  inset: 5% 12%;
  z-index: 0;
  border-radius: 50%;
  opacity: 0.56;
  background:
    radial-gradient(circle at 42% 48%, rgba(137, 226, 204, 0.34), transparent 34%),
    radial-gradient(circle at 62% 46%, rgba(205, 111, 80, 0.16), transparent 32%);
  filter: blur(24px);
  animation: showreel-light-breathe 10s ease-in-out infinite;
}

.showreel-camera {
  position: absolute;
  inset: 0;
  z-index: 2;
  perspective: 1050px;
}

.showreel-world {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 980px;
  height: 540px;
  transform-style: preserve-3d;
  animation: showreel-camera-move 15s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.showreel-floor {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 16px;
  height: 270px;
  opacity: 0.36;
  background:
    linear-gradient(rgba(137, 226, 204, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 226, 204, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: rotateX(68deg);
  transform-origin: center bottom;
  animation: showreel-floor-drift 8s linear infinite;
}

.showreel-subject {
  position: absolute;
  transform-style: preserve-3d;
}

.receipt-subject {
  left: 72px;
  top: 122px;
  width: 260px;
  height: 260px;
  animation: showreel-receipt-focus 15s ease-in-out infinite;
}

.paper-stack {
  position: absolute;
  left: 32px;
  top: 24px;
  width: 178px;
  height: 224px;
  transform: rotateZ(-4deg) rotateY(-8deg);
}

.paper-sheet {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(62, 53, 44, 0.12);
  border-radius: 8px;
  background: rgba(247, 241, 231, 0.96);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
}

.sheet-shadow {
  transform: translate(18px, 16px) rotate(5deg);
  opacity: 0.52;
}

.receipt-sheet {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  color: #2d2822;
}

.receipt-sheet span,
.voucher-sheet span {
  color: #9a573f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.receipt-sheet i {
  display: block;
  height: 8px;
  width: 64%;
  border-radius: 999px;
  background: #d7cec1;
}

.receipt-sheet i.long {
  width: 92%;
}

.receipt-sheet div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #e3d9cc;
}

.receipt-sheet em {
  color: #806f60;
  font-style: normal;
  font-weight: 900;
}

.receipt-sheet strong {
  font-size: 20px;
}

.lens-scan {
  position: absolute;
  left: 30px;
  top: 42px;
  width: 184px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(13, 107, 97, 0.36), transparent);
  box-shadow: 0 0 28px rgba(137, 226, 204, 0.28);
  transform: rotateZ(-4deg);
  animation: showreel-scan-line 3.4s ease-in-out infinite;
}

.field-chip {
  position: absolute;
  min-width: 52px;
  padding: 5px 9px;
  border: 1px solid rgba(137, 226, 204, 0.24);
  border-radius: 999px;
  color: #e9fff7;
  background: rgba(8, 26, 24, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  animation: showreel-chip-lift 3.4s ease-in-out infinite;
}

.chip-amount { left: 154px; top: 110px; }
.chip-purpose { left: 196px; top: 154px; animation-delay: 0.28s; }
.chip-period { left: 122px; top: 196px; animation-delay: 0.56s; }

.model-subject {
  left: 386px;
  top: 130px;
  width: 238px;
  height: 262px;
  animation: showreel-model-focus 15s ease-in-out infinite;
}

.model-sphere {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
}

.model-sphere::before,
.model-sphere::after {
  content: "";
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(137, 226, 204, 0.34), transparent 66%);
  filter: blur(16px);
  animation: showreel-core-light 4s ease-in-out infinite;
}

.model-sphere::after {
  inset: 64px;
  background: radial-gradient(circle, rgba(205, 111, 80, 0.2), transparent 70%);
  animation-delay: -1.6s;
}

.sphere-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(137, 226, 204, 0.24);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.sphere-ring::before,
.sphere-ring::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #89e2cc;
  box-shadow: 0 0 18px rgba(137, 226, 204, 0.86);
}

.sphere-ring::before { left: 50%; top: -4px; }
.sphere-ring::after { right: 22px; bottom: 34px; background: #cd6f50; }

.ring-a { animation: showreel-ring-a 9s linear infinite; }
.ring-b {
  inset: 20px;
  border-color: rgba(205, 111, 80, 0.26);
  animation: showreel-ring-b 7s linear infinite;
}
.ring-c {
  inset: 48px;
  border-color: rgba(229, 197, 110, 0.28);
  animation: showreel-ring-c 3.2s ease-in-out infinite;
}

.model-sphere strong {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(137, 226, 204, 0.32);
  border-radius: 50%;
  color: #f1fff9;
  background: rgba(3, 17, 17, 0.86);
  box-shadow:
    inset 0 0 24px rgba(137, 226, 204, 0.16),
    0 0 34px rgba(13, 107, 97, 0.32);
  font-size: 22px;
  transform: translate(-50%, -50%);
  animation: showreel-core-breathe 3s ease-in-out infinite;
}

.packet-path {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(137, 226, 204, 0.46), transparent);
}

.path-in {
  left: -116px;
  top: 118px;
  width: 174px;
  transform: rotate(7deg);
}

.path-out {
  left: 166px;
  top: 120px;
  width: 178px;
  transform: rotate(-8deg);
}

.packet-path i {
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #89e2cc;
  box-shadow: 0 0 16px rgba(137, 226, 204, 0.84);
  transform: translate(-50%, -50%);
  animation: showreel-packet 2.4s linear infinite;
}

.packet-path i:nth-child(2) { animation-delay: 0.45s; }
.packet-path i:nth-child(3) { animation-delay: 0.9s; }
.packet-path i:nth-child(4) { animation-delay: 1.35s; }

.path-out i {
  background: #cd6f50;
  box-shadow: 0 0 16px rgba(205, 111, 80, 0.76);
  animation-duration: 2.1s;
}

.result-subject {
  left: 666px;
  top: 116px;
  width: 266px;
  height: 250px;
  animation: showreel-result-focus 15s ease-in-out infinite;
}

.answer-ghost,
.voucher-sheet,
.review-board,
.score-dial {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
}

.answer-ghost {
  position: absolute;
  left: 18px;
  top: 70px;
  width: 150px;
  min-height: 128px;
  padding: 15px;
  background: rgba(63, 47, 40, 0.58);
  opacity: 0.56;
  transform: translateX(-18px) rotate(-2deg);
}

.answer-ghost span,
.answer-ghost i {
  display: block;
  height: 8px;
  margin-bottom: 11px;
  border-radius: 999px;
  background: rgba(247, 231, 218, 0.2);
}

.answer-ghost span { width: 52%; background: rgba(205, 111, 80, 0.46); }
.answer-ghost i { width: 86%; }
.answer-ghost i.short { width: 58%; }

.voucher-sheet {
  position: absolute;
  left: 60px;
  top: 28px;
  width: 214px;
  min-height: 188px;
  padding: 16px;
  color: #2d2822;
  background: rgba(247, 241, 231, 0.96);
  transform: rotate(1.2deg);
  animation: showreel-voucher-rise 15s ease-in-out infinite;
}

.voucher-sheet div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #e1d7ca;
  font-size: 12px;
}

.voucher-sheet em {
  color: #0d6b61;
  font-style: normal;
  font-weight: 900;
}

.voucher-sheet strong {
  overflow: hidden;
  color: #302a24;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voucher-sheet b {
  color: #0d6b61;
  font-weight: 900;
}

.voucher-sheet p {
  height: 8px;
  width: 82%;
  margin: 13px 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #cd6f50, #89e2cc);
  transform-origin: left center;
  animation: showreel-voucher-line 15s ease-in-out infinite;
}

.review-subject {
  left: 612px;
  top: 326px;
  width: 318px;
  height: 150px;
  animation: showreel-review-focus 15s ease-in-out infinite;
}

.score-dial {
  position: absolute;
  left: 0;
  top: 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  width: 126px;
  height: 72px;
  padding: 12px;
  color: #f7f1e8;
  background:
    linear-gradient(145deg, rgba(248, 241, 231, 0.14), rgba(137, 226, 204, 0.09)),
    rgba(7, 10, 12, 0.72);
  animation: showreel-dial 15s ease-in-out infinite;
}

.score-dial::before {
  content: "";
  grid-column: 2;
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(205, 111, 80, 0.7), rgba(137, 226, 204, 0.86));
  box-shadow: 0 0 12px rgba(137, 226, 204, 0.28);
}

.score-dial span,
.score-dial strong {
  font-size: 30px;
  line-height: 1;
}

.score-dial span {
  color: rgba(247, 231, 218, 0.48);
  grid-column: 1;
  transform: translateY(0) scale(0.86);
  animation: showreel-old-score 15s ease-in-out infinite;
}

.score-dial strong {
  grid-column: 3;
  color: #89e2cc;
  transform: translateY(0);
  animation: showreel-new-score 15s ease-in-out infinite;
}

.review-board {
  position: absolute;
  left: 148px;
  top: 18px;
  display: grid;
  gap: 13px;
  width: 156px;
  padding: 18px;
  background: rgba(7, 10, 12, 0.68);
}

.review-board i {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(247, 241, 231, 0.1);
}

.review-board i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  border-radius: inherit;
  background: linear-gradient(90deg, #cd6f50, #89e2cc);
  transform: scaleX(0.16);
  transform-origin: left center;
  animation: showreel-review-bar 15s ease-in-out infinite;
}

.showreel-hud {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 6;
  display: grid;
  grid-template-columns: 8px 70px 8px 70px 8px 70px 8px;
  align-items: center;
  justify-content: center;
  width: min(380px, calc(100% - 54px));
  transform: translateX(-50%);
}

.showreel-hud span {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(137, 226, 204, 0.4);
  border-radius: 50%;
  background: rgba(7, 10, 12, 0.9);
  animation: showreel-hud-dot 15s ease-in-out infinite;
}

.showreel-hud span:nth-of-type(2) { animation-delay: 3.75s; }
.showreel-hud span:nth-of-type(3) { animation-delay: 7.5s; }
.showreel-hud span:nth-of-type(4) { animation-delay: 11.25s; }

.showreel-hud i {
  height: 1px;
  background: linear-gradient(90deg, rgba(137, 226, 204, 0.3), rgba(137, 226, 204, 0.08));
}

@keyframes showreel-camera-move {
  0% { transform: translate(-42%, -53%) scale(1.18) rotateX(2deg) rotateY(2deg); }
  12% { transform: translate(-44%, -52.5%) scale(1.14) rotateX(3deg) rotateY(1deg); }
  24% { transform: translate(-49%, -52%) scale(1.05) rotateX(7deg) rotateY(0deg); }
  38% { transform: translate(-51%, -52.5%) scale(1.02) rotateX(8deg) rotateY(-1deg); }
  52% { transform: translate(-57%, -52%) scale(1.12) rotateX(4deg) rotateY(-3deg); }
  66% { transform: translate(-60%, -51.5%) scale(1.07) rotateX(5deg) rotateY(-2deg); }
  80% { transform: translate(-54%, -54%) scale(0.96) rotateX(8deg) rotateY(0deg); }
  92% { transform: translate(-49%, -56%) scale(0.88) rotateX(9deg) rotateY(1deg); }
  100% { transform: translate(-42%, -53%) scale(1.18) rotateX(2deg) rotateY(2deg); }
}

@keyframes showreel-light-sweep {
  0%, 100% { opacity: 0.2; transform: translateX(-4%) translateY(0); }
  50% { opacity: 0.5; transform: translateX(5%) translateY(-2%); }
}

@keyframes showreel-light-breathe {
  0%, 100% { opacity: 0.36; transform: scale(0.92) rotate(-3deg); }
  50% { opacity: 0.66; transform: scale(1.08) rotate(4deg); }
}

@keyframes showreel-floor-drift {
  to { background-position: 0 68px, 68px 0; }
}

@keyframes showreel-receipt-focus {
  0%, 18% { opacity: 1; filter: saturate(1.08) brightness(1.06); transform: translateZ(72px) scale(1); }
  25%, 100% { opacity: 0.56; filter: saturate(0.8) brightness(0.82); transform: translateZ(0) scale(0.94); }
}

@keyframes showreel-model-focus {
  0%, 18% { opacity: 0.72; filter: brightness(0.86); transform: translateZ(0) scale(0.96); }
  25%, 43% { opacity: 1; filter: brightness(1.12); transform: translateZ(80px) scale(1.03); }
  50%, 100% { opacity: 0.84; filter: brightness(0.95); transform: translateZ(0) scale(0.98); }
}

@keyframes showreel-result-focus {
  0%, 43% { opacity: 0.66; filter: brightness(0.84); transform: translateZ(0) scale(0.96); }
  50%, 69% { opacity: 1; filter: brightness(1.08); transform: translateZ(82px) scale(1.02); }
  78%, 100% { opacity: 0.86; filter: brightness(0.96); transform: translateZ(0) scale(0.98); }
}

@keyframes showreel-review-focus {
  0%, 69% { opacity: 0.64; filter: brightness(0.84); transform: translateZ(0) scale(0.96); }
  78%, 100% { opacity: 1; filter: brightness(1.08); transform: translateZ(76px) scale(1.03); }
}

@keyframes showreel-scan-line {
  0% { opacity: 0; transform: translateY(0) rotateZ(-4deg); }
  12%, 76% { opacity: 1; }
  100% { opacity: 0; transform: translateY(142px) rotateZ(-4deg); }
}

@keyframes showreel-chip-lift {
  0%, 28% { opacity: 0; transform: translateY(10px) scale(0.82); }
  42%, 78% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-18px) scale(0.88); }
}

@keyframes showreel-core-light {
  0%, 100% { opacity: 0.48; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes showreel-ring-a {
  to { transform: rotate(360deg); }
}

@keyframes showreel-ring-b {
  to { transform: rotateX(68deg) rotate(-360deg); }
}

@keyframes showreel-ring-c {
  0%, 100% { opacity: 0.38; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes showreel-core-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.96); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes showreel-packet {
  0% { left: 0; opacity: 0; transform: translate(-50%, -50%) scale(0.65); }
  12%, 82% { opacity: 1; }
  100% { left: 100%; opacity: 0; transform: translate(-50%, -50%) scale(1.14); }
}

@keyframes showreel-voucher-rise {
  0%, 44% { opacity: 0.42; transform: translateY(16px) rotate(1.2deg) scale(0.96); }
  52%, 100% { opacity: 1; transform: translateY(0) rotate(1.2deg) scale(1); }
}

@keyframes showreel-voucher-line {
  0%, 48% { transform: scaleX(0.18); }
  60%, 100% { transform: scaleX(1); }
}

@keyframes showreel-dial {
  0%, 72% { opacity: 0.64; transform: translateY(8px) scale(0.96); }
  82%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes showreel-old-score {
  0%, 60% { opacity: 0.78; transform: translateY(0) scale(0.96); }
  78%, 100% { opacity: 0.38; transform: translateY(0) scale(0.84); }
}

@keyframes showreel-new-score {
  0%, 66% { opacity: 0.36; transform: translateY(0) scale(0.84); }
  82%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes showreel-review-bar {
  0%, 72% { transform: scaleX(0.16); }
  82%, 100% { transform: scaleX(1); }
}

@keyframes showreel-hud-dot {
  0%, 16%, 100% {
    background: rgba(7, 10, 12, 0.9);
    box-shadow: none;
  }
  5%, 12% {
    background: #89e2cc;
    box-shadow: 0 0 18px rgba(137, 226, 204, 0.72);
  }
}

/* Showreel v5: keep the active subject centered so the animation reads as a video. */
.showreel-world {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  animation: showreel-camera-move 16s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.receipt-subject,
.model-subject,
.result-subject,
.review-subject {
  left: 50%;
  top: 50%;
  opacity: 0;
  filter: none;
}

.receipt-subject {
  width: 320px;
  height: 300px;
  animation: showreel-shot-receipt 16s ease-in-out infinite;
}

.model-subject {
  width: 300px;
  height: 300px;
  animation: showreel-shot-model 16s ease-in-out infinite;
}

.result-subject {
  width: 330px;
  height: 280px;
  animation: showreel-shot-result 16s ease-in-out infinite;
}

.review-subject {
  width: 360px;
  height: 170px;
  animation: showreel-shot-review 16s ease-in-out infinite;
}

.paper-stack {
  left: 44px;
  top: 26px;
  width: 190px;
  height: 236px;
}

.lens-scan {
  left: 42px;
  top: 48px;
  width: 198px;
}

.chip-amount { left: 180px; top: 112px; }
.chip-purpose { left: 226px; top: 158px; }
.chip-period { left: 142px; top: 206px; }

.model-sphere {
  width: 240px;
  height: 240px;
}

.path-in {
  left: -120px;
  top: 132px;
  width: 190px;
}

.path-out {
  left: 218px;
  top: 130px;
  width: 190px;
}

.answer-ghost {
  left: 22px;
  top: 82px;
}

.voucher-sheet {
  left: 86px;
  top: 36px;
  width: 224px;
}

.score-dial {
  left: 8px;
  top: 44px;
}

.review-board {
  left: 166px;
  top: 44px;
  width: 158px;
}

.showreel-hud {
  bottom: 34px;
}

@keyframes showreel-camera-move {
  0% { transform: scale(1.03) translate3d(0, 0, 0); }
  18% { transform: scale(1.1) translate3d(1.4%, -1.2%, 0); }
  25% { transform: scale(0.98) translate3d(0, 0, 0); }
  43% { transform: scale(1.08) translate3d(-1.2%, 0.8%, 0); }
  50% { transform: scale(0.99) translate3d(0, 0, 0); }
  68% { transform: scale(1.09) translate3d(1.2%, 1%, 0); }
  76% { transform: scale(0.98) translate3d(0, 0, 0); }
  94% { transform: scale(1.08) translate3d(-1%, -1%, 0); }
  100% { transform: scale(1.03) translate3d(0, 0, 0); }
}

@keyframes showreel-shot-receipt {
  0% { opacity: 0; transform: translate(-50%, -46%) scale(0.9) rotate(-2deg); }
  6%, 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotate(-1deg); }
  25%, 100% { opacity: 0; transform: translate(-50%, -55%) scale(1.16) rotate(1deg); }
}

@keyframes showreel-shot-model {
  0%, 23% { opacity: 0; transform: translate(-50%, -46%) scale(0.88); }
  30%, 44% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  50%, 100% { opacity: 0; transform: translate(-50%, -54%) scale(1.2); }
}

@keyframes showreel-shot-result {
  0%, 48% { opacity: 0; transform: translate(-50%, -46%) scale(0.9) rotate(-1deg); }
  55%, 70% { opacity: 1; transform: translate(-50%, -50%) scale(1.06) rotate(0deg); }
  76%, 100% { opacity: 0; transform: translate(-50%, -54%) scale(1.14) rotate(1deg); }
}

@keyframes showreel-shot-review {
  0%, 74% { opacity: 0; transform: translate(-50%, -44%) scale(0.9); }
  82%, 96% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
  100% { opacity: 0; transform: translate(-50%, -54%) scale(1.1); }
}

.auth-card h1 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

.auth-form {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.inline-alert {
  border-radius: var(--radius-md);
}

/* ── Account center ── */
.account-center-shell {
  display: grid;
  gap: var(--space-5);
  min-height: 100vh;
  padding: var(--space-6);
}

.account-center-hero {
  display: grid;
  gap: var(--space-1);
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.account-center-hero h1 { font-size: var(--text-3xl); }
.account-center-hero p:last-child {
  max-width: 760px;
  color: var(--ink-secondary);
  font-size: var(--text-sm);
}

.account-center-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) repeat(2, minmax(260px, 1fr));
  gap: var(--space-4);
  width: min(1120px, 100%);
  margin: 0 auto;
}
.account-center-grid .auth-card {
  width: auto;
  padding: var(--space-5);
  box-shadow: none;
}
.account-center-grid .auth-card h2 {
  font-size: var(--text-xl);
  margin: 4px 0 var(--space-2);
}

.account-facts {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}
.account-facts div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
}
.account-facts dt {
  color: var(--ink-secondary);
  font-weight: 500;
  font-size: var(--text-sm);
}
.account-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.account-policy-note {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  color: var(--primary-strong);
  background: var(--primary-light);
  border: 1px solid var(--primary-soft);
}
.account-policy-note span {
  color: var(--ink-secondary);
  font-size: var(--text-sm);
}

.login-hint {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(58, 51, 43, 0.12);
  color: #766d62;
  font-size: var(--text-sm);
}

.login-hint strong {
  color: #2c2721;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  width: min(420px, 100%);
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  text-align: center;
}

.login-footer {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 0 0 26px;
  color: #8b8176;
}

.login-footer a {
  color: #0d6b61;
  text-decoration: none;
}

.login-footer a:hover {
  color: #115e59;
}

.subtle-link {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}
.subtle-link:hover {
  color: var(--primary-strong);
  background: var(--primary-light);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .login-topbar {
    width: calc(100vw - 32px);
    padding: 18px 0;
  }

  .login-stage {
    width: calc(100vw - 32px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 0 46px;
  }

  .login-panel h1 {
    max-width: 520px;
    font-size: 40px;
  }

  .login-lede {
    margin: 14px 0 22px;
  }

  .login-card {
    padding: 24px;
  }

  .motion-frame {
    padding: 12px;
  }

  .motion-toolbar {
    grid-template-columns: 60px minmax(0, 1fr) auto;
  }

  .motion-actions span {
    display: none;
  }

  .motion-workspace {
    grid-template-columns: 1fr;
    min-height: 440px;
  }

  .motion-film,
  .film-stage {
    min-height: 440px;
  }

  .motion-brief,
  .motion-controls {
    display: none;
  }

  .motion-canvas {
    min-height: 440px;
  }

  .login-footer {
    width: calc(100vw - 32px);
    padding-bottom: 22px;
  }

  .account-center-grid { grid-template-columns: 1fr; }
  .account-center-shell { padding: var(--space-4); }
  .account-facts div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 520px) {
  .return-home-link {
    display: none;
  }

  .login-brand strong {
    font-size: 15px;
  }

  .login-panel h1 {
    font-size: 34px;
  }

  .login-card {
    padding: 20px;
  }

  .login-mode-tabs {
    grid-template-columns: 1fr;
  }

  .motion-toolbar {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .motion-actions {
    display: none;
  }

  .motion-workspace,
  .motion-canvas,
  .motion-film,
  .film-stage {
    min-height: 620px;
  }

  .film-scene {
    padding: 58px 28px 98px;
  }

  .film-scene h2 {
    font-size: 24px;
  }

  .film-prompt-card,
  .film-answer-card,
  .film-score-card {
    width: 100%;
  }

  .film-score-card {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .film-score-card i {
    width: 100%;
  }

  .film-caption {
    width: calc(100% - 32px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .film-caption span {
    min-width: 0;
  }

  .canvas-heading {
    top: 28px;
  }

  .canvas-heading strong {
    font-size: 21px;
  }

  .pipeline-steps {
    top: 74px;
    gap: 4px;
  }

  .pipeline-steps span {
    min-width: auto;
    padding: 3px 7px;
    font-size: 10px;
  }

  .optimization-beam {
    top: 284px;
    width: 74%;
    transform: translateX(-50%) rotate(90deg);
  }

  .model-orbit {
    width: 180px;
    height: 180px;
  }

  .prompt-object {
    top: 108px;
    width: 86%;
  }

  .baseline-object,
  .optimized-object {
    left: 50%;
    right: auto;
    width: 82%;
    transform: translateX(-50%);
  }

  .baseline-object {
    top: 188px;
    animation: baseline-cycle-mobile 18s ease-in-out infinite;
  }

  .optimized-object {
    top: 312px;
    animation: optimized-cycle-mobile 18s ease-in-out infinite;
  }

  .optimized-object::before {
    inset: -34px auto auto 50%;
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, transparent, rgba(140, 231, 207, 0.78));
    transform: translateX(-50%);
    animation: rewrite-link-mobile 10s ease-in-out infinite;
  }

  .score-object {
    bottom: 28px;
    width: 82%;
  }

  .receipt-object {
    left: 7%;
    top: 120px;
    width: 220px;
  }

  .voucher-object {
    right: 7%;
    top: 184px;
    width: 202px;
  }

  .compare-object {
    bottom: 36px;
    width: 86%;
  }

  .compare-columns {
    grid-template-columns: 1fr;
  }

  .compare-columns div {
    min-height: 68px;
  }

  .feedback-object {
    right: 6%;
    bottom: 166px;
    width: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-canvas::before,
  .motion-canvas::after,
  .motion-progress span,
  .film-backdrop,
  .film-stage::after,
  .film-scene,
  .film-caption span,
  .pipeline-steps span,
  .optimization-beam,
  .model-orbit,
  .canvas-grid,
  .prompt-object,
  .baseline-object,
  .optimized-object,
  .optimized-object::before,
  .score-object,
  .baseline-object i,
  .optimized-object i,
  .receipt-object,
  .scan-beam,
  .voucher-object,
  .compare-object,
  .feedback-object,
  .metric-row i::after,
  .motion-knob {
    animation: none;
  }

  .film-scene {
    opacity: 0;
    transform: none;
  }

  .scene-optimized {
    opacity: 1;
  }

  .voucher-object,
  .compare-object,
  .feedback-object,
  .baseline-object,
  .optimized-object,
  .score-object {
    opacity: 1;
  }

  .metric-row i::after,
  .baseline-object i,
  .optimized-object i {
    transform: scaleX(1);
  }
}

@keyframes baseline-cycle-mobile {
  0%, 32% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  48%, 100% { opacity: 0.42; transform: translateX(-50%) translateY(10px) scale(0.96); }
}

@keyframes optimized-cycle-mobile {
  0%, 18% { opacity: 0.72; transform: translateX(-50%) translateY(12px) scale(0.97); }
  34%, 88% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  100% { opacity: 0.72; transform: translateX(-50%) translateY(-8px) scale(0.98); }
}

@keyframes rewrite-link-mobile {
  0%, 22% { opacity: 0.22; transform: translateX(-50%) translateY(-10px); }
  36%, 78% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* Showreel v7: restore stronger camera movement with crisp scene handoffs. */
.showreel-world {
  animation: showreel-camera-move-v7 12s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  will-change: transform;
}

.showreel-subject {
  animation-fill-mode: both;
  backface-visibility: hidden;
  will-change: opacity, transform, filter;
}

.showreel-light {
  animation-duration: 6s;
}

.showreel-stage::after {
  animation-duration: 6s;
}

.receipt-subject {
  animation: showreel-shot-receipt-v7 12s ease-in-out infinite;
}

.model-subject {
  animation: showreel-shot-model-v7 12s ease-in-out infinite;
}

.result-subject {
  animation: showreel-shot-result-v7 12s ease-in-out infinite;
}

.review-subject {
  animation: showreel-shot-review-v7 12s ease-in-out infinite;
}

.lens-scan {
  animation-duration: 2.2s;
}

.packet-path i {
  animation-duration: 1.75s;
}

.path-out i {
  animation-duration: 1.6s;
}

.sphere-ring {
  animation-duration: 5.5s;
}

.ring-b {
  animation-duration: 4.8s;
}

.voucher-sheet {
  animation: showreel-voucher-rise-v7 12s ease-in-out infinite;
}

.voucher-sheet p {
  animation: showreel-voucher-line-v7 12s ease-in-out infinite;
}

.score-dial {
  animation: showreel-dial-v7 12s ease-in-out infinite;
}

.score-dial span {
  animation: showreel-old-score-v7 12s ease-in-out infinite;
}

.score-dial strong {
  animation: showreel-new-score-v7 12s ease-in-out infinite;
}

.review-board i::after {
  animation: showreel-review-bar-v7 12s ease-in-out infinite;
}

.showreel-hud span {
  animation: showreel-hud-dot-v7 12s ease-in-out infinite;
}

.showreel-hud span:nth-of-type(2) { animation-delay: 3s; }
.showreel-hud span:nth-of-type(3) { animation-delay: 6s; }
.showreel-hud span:nth-of-type(4) { animation-delay: 9s; }

@keyframes showreel-camera-move-v7 {
  0% { transform: scale(1.08) translate3d(2.6%, 1.2%, 0) rotateZ(-0.4deg); }
  14% { transform: scale(1.2) translate3d(-1.4%, -1.4%, 0) rotateZ(0.5deg); }
  24% { transform: scale(0.98) translate3d(0, 0, 0) rotateZ(0deg); }
  39% { transform: scale(1.18) translate3d(1.6%, -1.2%, 0) rotateZ(-0.5deg); }
  49% { transform: scale(0.99) translate3d(0, 0, 0) rotateZ(0deg); }
  64% { transform: scale(1.17) translate3d(-1.8%, 1.1%, 0) rotateZ(0.4deg); }
  75% { transform: scale(0.98) translate3d(0, 0, 0) rotateZ(0deg); }
  91% { transform: scale(1.14) translate3d(1.4%, -1.1%, 0) rotateZ(-0.35deg); }
  100% { transform: scale(1.08) translate3d(2.6%, 1.2%, 0) rotateZ(-0.4deg); }
}

@keyframes showreel-shot-receipt-v7 {
  0%, 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(-1deg); filter: blur(0) brightness(1.08); }
  22%, 100% { opacity: 0; transform: translate(-43%, -56%) scale(1.24) rotate(2deg); filter: blur(3px) brightness(0.78); }
}

@keyframes showreel-shot-model-v7 {
  0%, 22% { opacity: 0; transform: translate(-56%, -44%) scale(0.84); filter: blur(2px) brightness(0.78); }
  25%, 45% { opacity: 1; transform: translate(-50%, -50%) scale(1.16); filter: blur(0) brightness(1.12); }
  48%, 100% { opacity: 0; transform: translate(-44%, -55%) scale(1.28); filter: blur(3px) brightness(0.82); }
}

@keyframes showreel-shot-result-v7 {
  0%, 47% { opacity: 0; transform: translate(-56%, -44%) scale(0.84) rotate(-2deg); filter: blur(2px) brightness(0.8); }
  50%, 70% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(0deg); filter: blur(0) brightness(1.08); }
  73%, 100% { opacity: 0; transform: translate(-44%, -55%) scale(1.2) rotate(2deg); filter: blur(3px) brightness(0.82); }
}

@keyframes showreel-shot-review-v7 {
  0%, 72% { opacity: 0; transform: translate(-56%, -44%) scale(0.84); filter: blur(2px) brightness(0.78); }
  75%, 96% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); filter: blur(0) brightness(1.08); }
  99%, 100% { opacity: 0; transform: translate(-43%, -55%) scale(1.16); filter: blur(3px) brightness(0.78); }
}

@keyframes showreel-voucher-rise-v7 {
  0%, 49% { opacity: 0.34; transform: translateY(22px) rotate(1.2deg) scale(0.94); }
  55%, 100% { opacity: 1; transform: translateY(0) rotate(1.2deg) scale(1); }
}

@keyframes showreel-voucher-line-v7 {
  0%, 52% { transform: scaleX(0.12); }
  62%, 100% { transform: scaleX(1); }
}

@keyframes showreel-dial-v7 {
  0%, 75% { opacity: 0.58; transform: translateY(14px) scale(0.92); }
  84%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes showreel-old-score-v7 {
  0%, 72% { opacity: 0.78; transform: translateY(0) scale(0.96); }
  84%, 100% { opacity: 0.38; transform: translateY(0) scale(0.84); }
}

@keyframes showreel-new-score-v7 {
  0%, 76% { opacity: 0.36; transform: translateY(0) scale(0.84); }
  86%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes showreel-review-bar-v7 {
  0%, 78% { transform: scaleX(0.16); }
  88%, 100% { transform: scaleX(1); }
}

@keyframes showreel-hud-dot-v7 {
  0%, 19%, 100% {
    background: rgba(7, 10, 12, 0.9);
    box-shadow: none;
  }
  5%, 14% {
    background: #89e2cc;
    box-shadow: 0 0 18px rgba(137, 226, 204, 0.72);
  }
}

/* Edge follows the Windows reduced-motion preference. base.css intentionally
   collapses global animation in that mode, but this login showreel is the
   primary product demonstration, so it keeps a bounded, page-local motion loop. */
@media (prefers-reduced-motion: reduce) {
  .login-page .motion-progress span {
    animation: film-progress 16s linear infinite !important;
  }

  .login-page .showreel-world {
    animation: showreel-camera-move-v7 12s cubic-bezier(0.65, 0, 0.35, 1) infinite !important;
  }

  .login-page .showreel-light {
    animation: showreel-light-breathe 6s ease-in-out infinite !important;
  }

  .login-page .showreel-stage::after {
    animation: showreel-light-sweep 6s ease-in-out infinite !important;
  }

  .login-page .showreel-floor {
    animation: showreel-floor-drift 8s linear infinite !important;
  }

  .login-page .receipt-subject {
    animation: showreel-shot-receipt-v7 12s ease-in-out infinite !important;
  }

  .login-page .model-subject {
    animation: showreel-shot-model-v7 12s ease-in-out infinite !important;
  }

  .login-page .result-subject {
    animation: showreel-shot-result-v7 12s ease-in-out infinite !important;
  }

  .login-page .review-subject {
    animation: showreel-shot-review-v7 12s ease-in-out infinite !important;
  }

  .login-page .lens-scan {
    animation: showreel-scan-line 2.2s ease-in-out infinite !important;
  }

  .login-page .field-chip {
    animation: showreel-chip-lift 1.75s ease-in-out infinite !important;
  }

  .login-page .model-sphere::before,
  .login-page .model-sphere::after {
    animation: showreel-core-light 1.6s ease-in-out infinite !important;
  }

  .login-page .ring-a {
    animation: showreel-ring-a 5.5s linear infinite !important;
  }

  .login-page .ring-b {
    animation: showreel-ring-b 4.8s linear infinite !important;
  }

  .login-page .ring-c {
    animation: showreel-ring-c 3.2s ease-in-out infinite !important;
  }

  .login-page .packet-path i {
    animation: showreel-packet 2.1s linear infinite !important;
  }

  .login-page .voucher-sheet {
    animation: showreel-voucher-rise-v7 12s ease-in-out infinite !important;
  }

  .login-page .voucher-sheet p {
    animation: showreel-voucher-line-v7 12s ease-in-out infinite !important;
  }

  .login-page .score-dial {
    animation: showreel-dial-v7 12s ease-in-out infinite !important;
  }

  .login-page .score-dial span {
    animation: showreel-old-score-v7 12s ease-in-out infinite !important;
  }

  .login-page .score-dial strong {
    animation: showreel-new-score-v7 12s ease-in-out infinite !important;
  }

  .login-page .review-board i::after {
    animation: showreel-review-bar-v7 12s ease-in-out infinite !important;
  }

  .login-page .showreel-hud span {
    animation: showreel-hud-dot-v7 12s ease-in-out infinite !important;
  }
}

/* 20260627: match the homepage's warm Claude-like canvas without a grid. */
.login-page {
  background: linear-gradient(180deg, #FAF9F5 0%, #fbf6e6 100%);
}

.login-page::before {
  background: none;
  background-image: none;
  mask-image: none;
}

/* 20260627: remove the outer presentation card; keep only the Mac-style window. */
.login-page .motion-frame {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
