:root {
  color-scheme: dark;
  --bg: #05050a;
  --panel: #0c0c14;
  --panel-2: #11111b;
  --line: rgba(255, 255, 255, .1);
  --text: #f8fafc;
  --muted: #ffffff;
  --soft: #ffffff;
  --primary: #004dff;
  --primary-2: #151b6d;
  --primary-soft: rgba(0, 77, 255, .2);
  --action-blue: #062cff;
  --action-blue-dark: #03034d;
  --action-gradient: linear-gradient(90deg, #03034d 0%, #0014c8 28%, #062cff 50%, #0014c8 72%, #03034d 100%);
  --title-gradient: linear-gradient(90deg, #0632ff 0%, #4f76ff 48%, #0632ff 100%);
  --heading-shine-gradient: linear-gradient(105deg, #8fb2ff 0%, #ffffff 18%, #0b4dff 38%, #dbe7ff 56%, #154cff 76%, #ffffff 100%);
  --action-border: rgba(45, 86, 255, .72);
  --action-glow: rgba(6, 44, 255, .34);
  --purple: var(--primary);
  --purple-2: var(--primary-2);
  --cyan: #00a3ff;
  --green: #54d680;
  --amber: #f2b84b;
  --red: #ff6464;
  --radius: 22px;
  --bottom: 74px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #05050a;
  color: var(--text);
  font-family: Inter, Arial, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 50% -12%, rgba(112, 22, 180, .16), transparent 30%),
    linear-gradient(180deg, #08080f 0%, #05050a 50%, #05050a 100%);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04);
}

.app-loader {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.app-loader-spinner {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, .18);
  border-top-color: #5b8cff;
  border-radius: 50%;
  animation: app-loader-spin .8s linear infinite;
}

@keyframes app-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-loader-spinner {
    animation-duration: 1.6s;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px 10px;
  background: rgba(7, 7, 12, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.topbar-tools {
  grid-template-columns: 1fr;
}

.topbar-tools .brand {
  justify-self: start;
  width: auto;
}

.topbar-tools .brand-copy {
  justify-content: flex-start;
}

.brand {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(107, 139, 255, .72);
  box-shadow: 0 0 0 2px rgba(6, 44, 255, .18), 0 0 16px rgba(6, 44, 255, .36);
}

.brand-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}

.brand-title {
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  display: none;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.icon-btn,
.coin-pill {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111019;
  color: var(--text);
  display: inline-grid;
  place-items: center;
}

.icon-btn {
  position: relative;
  width: 40px;
  padding: 0;
  border-color: rgba(255, 255, 255, .1);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 20px rgba(0, 0, 0, .18);
}

.icon-btn svg {
  width: 21px;
  height: 21px;
  display: block;
}

.telegram-btn {
  border-color: rgba(42, 171, 238, .48);
  background: linear-gradient(180deg, #37b8f3 0%, #168acd 100%);
}

.telegram-btn svg {
  width: 22px;
  height: 22px;
  transform: translateX(-1px);
  fill: currentColor;
}

.gift-btn {
  border-color: rgba(255, 255, 255, .18);
  background: linear-gradient(145deg, #ffc645 0%, #9333ea 100%);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 20px rgba(147, 51, 234, .24);
}

.language-btn {
  border-color: rgba(20, 119, 255, .54);
  background: var(--action-gradient);
  color: white;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.language-btn:disabled {
  opacity: .62;
  cursor: wait;
}

.language-picker {
  position: relative;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 35;
  width: min(190px, calc(100vw - 20px));
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(72, 94, 170, .72);
  border-radius: 18px;
  background: rgba(5, 8, 25, .96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .34), 0 0 22px rgba(6, 44, 255, .2);
  backdrop-filter: blur(18px);
}

.language-option {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: 36px minmax(92px, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  background: rgba(255, 255, 255, .04);
  color: white;
  text-align: left;
}

.language-option span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 24px;
  border-radius: 999px;
  background: var(--action-gradient);
  font-size: 11px;
  font-weight: 1000;
}

.language-option strong {
  min-width: 0;
  font-size: 13px;
  font-weight: 900;
  white-space: normal;
  overflow-wrap: anywhere;
}

.language-option.active {
  border-color: var(--action-border);
  background: rgba(6, 44, 255, .2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.notification-btn {
  border-color: rgba(20, 119, 255, .5);
  background: linear-gradient(180deg, #123a75 0%, #0c2348 100%);
}

.coin-pill {
  grid-auto-flow: column;
  gap: 7px;
  min-width: 88px;
  padding: 0 8px 0 9px;
  font-weight: 900;
  border-color: rgba(245, 158, 11, .5);
  background: linear-gradient(180deg, #261b0b 0%, #16110b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 20px rgba(0, 0, 0, .18);
}

.coin-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, .22));
}

.coin-icon svg {
  width: 25px;
  height: 25px;
  display: block;
}

.coin-balance {
  min-width: 18px;
  color: #fff7d6;
  font-size: 14px;
  line-height: 1;
  text-align: center;
}

.coin-plus {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #7dd3fc, var(--primary));
  color: white;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(20, 119, 255, .32);
}

.screen {
  display: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 14px 14px calc(var(--bottom) + 20px);
  overflow-x: hidden;
}

.screen.active {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 12px;
}

.home-head h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.home-create {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(20, 119, 255, .46);
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: white;
  font-weight: 900;
}

.first-result-feature {
  --first-result-card-size: clamp(124px, 38vw, 150px);
  --first-result-source-size: clamp(124px, 43vw, 148px);
  margin: 0 auto 8px;
  width: min(100%, 360px);
  max-width: 360px;
  padding: 7px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(72, 94, 170, .62);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(5, 9, 35, .94), rgba(3, 6, 22, .92)),
    var(--action-gradient);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 16px 36px rgba(0, 0, 0, .24);
}

.first-result-intro {
  display: grid;
  gap: 3px;
  padding: 4px 6px 2px;
  text-align: center;
}

.first-result-intro strong {
  color: #fff;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .04em;
}

.first-result-intro span {
  color: rgba(225, 232, 255, .88);
  font-size: 11px;
  line-height: 1.3;
}

.first-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  gap: 7px;
}

.first-result-card {
  position: relative;
  height: auto;
  min-height: 0;
  aspect-ratio: 9 / 13;
  overflow: hidden;
  border: 1px solid rgba(72, 94, 170, .52);
  border-radius: 16px;
  background: #080d22;
  isolation: isolate;
}

.first-result-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .76) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .08));
  pointer-events: none;
}

.first-result-card img,
.first-result-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  background:
    radial-gradient(circle at 50% 34%, rgba(20, 119, 255, .14), transparent 48%),
    #050712;
}

.first-result-source img {
  animation: none;
}

.first-result-output video {
  object-position: center 42%;
  animation: none;
}

.first-result-label {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  color: #fff;
  font-size: clamp(12px, 3.6vw, 16px);
  line-height: .95;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, .9),
    0 -1px 0 rgba(0, 0, 0, .62),
    2px 0 0 rgba(0, 0, 0, .72),
    -2px 0 0 rgba(0, 0, 0, .72),
    0 7px 20px rgba(0, 0, 0, .88);
}

.first-result-outcomes {
  display: grid;
  gap: 5px;
}

.first-result-flow-arrow {
  height: 12px;
  color: rgba(128, 177, 255, .92);
  font-size: 17px;
  line-height: 12px;
  text-align: center;
}

.first-result-ai-step {
  width: min(100%, 284px);
  margin: 0 auto;
  padding: 7px 10px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(70, 145, 255, .64);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6, 44, 255, .28), rgba(91, 33, 182, .22));
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 22px rgba(6, 44, 255, .14);
}

.first-result-ai-step strong {
  color: #fff;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .04em;
}

.first-result-ai-step span {
  color: rgba(225, 232, 255, .9);
  font-size: 10.5px;
  line-height: 1.25;
}

.first-result-combo {
  position: relative;
  width: var(--first-result-card-size);
  aspect-ratio: 9 / 13;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--action-border);
  border-radius: 16px;
  background: #080d22;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22), 0 0 22px rgba(6, 44, 255, .12);
  animation: none;
}

.first-result-video-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #080d22;
  isolation: isolate;
}

.first-result-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .82) 100%);
  pointer-events: none;
}

.first-result-video-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 42%;
}

.first-result-video-card span {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 7px;
  z-index: 2;
  color: #fff;
  font-size: clamp(12px, 3.5vw, 16px);
  line-height: .95;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, .9),
    2px 0 0 rgba(0, 0, 0, .7),
    -2px 0 0 rgba(0, 0, 0, .7),
    0 7px 20px rgba(0, 0, 0, .88);
}

.first-result-preserved {
  margin: 0 6px 2px;
  color: rgba(217, 226, 255, .84);
  font-size: 10.5px;
  line-height: 1.32;
  text-align: center;
}

.first-result-create-frame {
  padding: 3px;
  border: 1px solid var(--action-border);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)),
    rgba(1, 5, 28, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
}

.first-result-create {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 14px;
  background: var(--action-gradient);
  color: white;
  font-weight: 1000;
  font-size: 14px;
  box-shadow: 0 10px 22px var(--action-glow);
}

@keyframes firstResultPhotoDrift {
  from {
    transform: scale(1.04) translate3d(-1.5%, -1%, 0);
  }
  to {
    transform: scale(1.1) translate3d(1.5%, 1%, 0);
  }
}

@keyframes firstResultLift {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .first-result-source img,
  .first-result-output video,
  .first-result-combo {
    animation: none;
  }
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 10px;
}

.section-head h2,
.page-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  color: #ffffff;
}

.brand-title {
  color: #dbe7ff;
  background: var(--heading-shine-gradient);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(79, 118, 255, .22);
  animation: heading-shine 5.4s ease-in-out infinite;
}

.page-title {
  margin-bottom: 14px;
  color: #ffffff;
  text-shadow: none;
}

.page-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  min-width: 0;
}

.page-title-row .page-title {
  margin-bottom: 0;
  min-width: 0;
  flex: 1;
}

.page-back-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid rgba(20, 119, 255, .44);
  border-radius: 999px;
  background: var(--primary-soft);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  appearance: none;
  cursor: pointer;
}

.trends-category .trends-title,
.trend-group-title,
.trends-grid .trend-card .template-title {
  background: none;
  background-size: auto;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  animation: none;
}

.trends-category .trends-title,
.trend-group-title {
  color: #ffffff;
  text-shadow: none;
}

.trends-grid .trend-card .template-title {
  color: #fff;
}

.small-link {
  border: 1px solid var(--line);
  background: #141620;
  color: var(--muted);
  border-radius: 999px;
  min-height: 32px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
}

.back-link {
  width: auto;
  margin-bottom: 12px;
  color: white;
  border-color: rgba(20, 119, 255, .44);
  background: var(--primary-soft);
}

.service-grid,
.template-grid,
.package-grid,
.method-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.compact-grid,
.template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.trends-category {
  margin-top: 14px;
}
.trends-helper {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.trends-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 1000;
  letter-spacing: 0;
}

.trend-group-list {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)),
    rgba(8, 7, 16, .86);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}

.trend-group {
  border-top: 1px solid rgba(255, 255, 255, .075);
}

.trend-group:first-child {
  border-top: 0;
}

.trend-group-head {
  width: 100%;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.trend-group.open .trend-group-head {
  background: rgba(168, 85, 247, .055);
}

.trend-group-title {
  min-width: 0;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

.trend-toggle-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--action-border);
  border-radius: 999px;
  background: var(--action-gradient);
  color: white;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.trend-toggle-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.trend-group.open .trend-toggle-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.trends-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 12px 14px;
}

.trends-grid .trend-card {
  min-height: 214px;
  aspect-ratio: 1 / 1.16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
  border-radius: 26px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

.trends-grid .trend-card::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .22) 42%, rgba(0, 0, 0, .84) 100%);
}

.trends-grid .trend-card .template-img {
  object-fit: cover;
}

.trends-grid .trend-card .template-text {
  left: 11px;
  right: 11px;
  bottom: 11px;
}

.trends-grid .trend-card .template-title {
  font-size: 15px;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .95);
}

@media (max-width: 360px) {
  .trend-group-title {
    font-size: 20px;
  }

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

.service-card,
.template-card,
.package-card,
.method-card,
.job-card,
.profile-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}

.template-card,
.service-card,
.outcome-card,
.selected-template-card,
.example-card,
.reference-example {
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

.service-card {
  min-height: 150px;
  padding: 10px;
  text-align: left;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  position: relative;
  isolation: isolate;
  background-color: #151722;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.service-card::before,
.example-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .78));
}

.service-card.has-service-video::before {
  z-index: 1;
}

.service-preview-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: #151722;
  pointer-events: none;
}

.service-card.video-failed .service-preview-video {
  display: none;
}

.service-card.active {
  border-color: var(--purple);
  box-shadow: inset 0 0 0 1px rgba(20, 119, 255, .42);
}

.service-label {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.08;
  text-transform: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .74);
}

.service-hint {
  display: none;
}

.motion-pan {
  animation: none;
}

.motion-video::after,
.motion-dance::after,
.motion-paint::after,
.motion-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.motion-video::after {
  background: linear-gradient(110deg, transparent 0 40%, rgba(255, 255, 255, .2) 48%, transparent 56% 100%);
  animation: preview-scan 2.7s ease-in-out infinite;
}

.motion-dance::after {
  background:
    radial-gradient(circle at 35% 34%, rgba(255, 255, 255, .2), transparent 12%),
    radial-gradient(circle at 66% 46%, rgba(20, 119, 255, .26), transparent 16%),
    linear-gradient(120deg, transparent 0 35%, rgba(255, 255, 255, .16) 45%, transparent 58% 100%);
  animation: preview-dance 1.25s ease-in-out infinite alternate;
}

.motion-audio::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 52px;
  height: 34px;
  z-index: 1;
  opacity: .8;
  background:
    linear-gradient(90deg, transparent 0 6%, rgba(255, 255, 255, .75) 6% 10%, transparent 10% 18%, rgba(20, 119, 255, .75) 18% 23%, transparent 23% 33%, rgba(41, 199, 232, .75) 33% 39%, transparent 39% 49%, rgba(255, 255, 255, .65) 49% 55%, transparent 55% 64%, rgba(20, 119, 255, .65) 64% 70%, transparent 70% 80%, rgba(41, 199, 232, .65) 80% 86%, transparent 86%);
  transform-origin: bottom;
  animation: none;
}

.motion-paint::after {
  background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .18), transparent 10%);
  animation: none;
}

.motion-shine::after {
  background: none;
  animation: none;
}

.category {
  margin-top: 12px;
}

.category.hidden .template-grid {
  display: grid;
  max-height: 1px;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 16px 0 9px;
}

.category-title h3 {
  margin: 0;
  font-size: 20px;
  color: #ffffff;
}
.category-title-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.category-toggle-pill {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--action-border);
  border-radius: 999px;
  background: var(--action-gradient);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 77, 255, .24);
}

.category-toggle-pill:active,
.category-toggle-pill:hover {
  border-color: rgba(255, 255, 255, .34);
  filter: brightness(1.06);
}

.category-title .small-link {
  display: none;
}

.tools-screen .tools-category {
  margin-top: 0;
}

.tools-screen .tools-category .category-title {
  display: none;
}
.tools-screen .service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tools-screen .service-card {
  min-height: 116px;
  border-radius: 18px;
}

.tools-format-section {
  margin-top: 18px;
}

.tools-format-title {
  margin-bottom: 10px;
}

.format-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.format-tool-card {
  min-width: 0;
  min-height: 154px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)),
    #101119;
  color: #fff;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.format-tool-preview {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 42%, rgba(41, 199, 232, .16), transparent 62%),
    rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
}

.format-tool-frame {
  display: block;
  border: 2px solid rgba(255, 255, 255, .94);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 119, 255, .92), rgba(41, 199, 232, .72));
  box-shadow: 0 10px 24px rgba(20, 119, 255, .28);
}

.format-tool-ratio {
  min-height: 24px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--action-gradient);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 77, 255, .18);
}

.format-tool-card strong {
  max-width: 100%;
  color: #fff;
  font-size: 15px;
  line-height: 1.08;
  font-weight: 900;
}

.format-tool-card small {
  max-width: 100%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}


@media (max-width: 380px) {
  .tools-screen .service-grid,
  .format-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.face-video-feature {
  margin-top: 0;
}

.face-video-feature .category-title {
  align-items: flex-start;
}

.face-video-feature .category-title h3 {
  max-width: 250px;
  font-size: 22px;
  line-height: 1.08;
}

.face-video-card {
  width: 100%;
  min-height: 132px;
  border: 1px solid rgba(20, 119, 255, .42);
  border-radius: var(--radius);
  padding: 16px;
  color: white;
  text-align: left;
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at 84% 20%, rgba(41, 199, 232, .38), transparent 30%),
    linear-gradient(135deg, rgba(20, 119, 255, .3), rgba(11, 12, 20, .96) 58%),
    #101827;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.face-video-copy {
  display: grid;
  gap: 6px;
}

.face-video-copy strong {
  font-size: 24px;
  line-height: 1.05;
}

.face-video-copy span {
  max-width: 300px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.face-video-action {
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  font-weight: 900;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #dbeafe;
  background: var(--primary-soft);
  font-size: 11px;
  font-weight: 800;
}

.template-card {
  min-height: 224px;
  text-align: left;
  color: white;
  position: relative;
  isolation: isolate;
  background-color: #101119;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.template-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .78));
}

.template-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #101119;
  display: block;
}

.template-card-video {
  min-height: 310px;
  display: block;
  cursor: pointer;
  background: #05060a;
}

.template-card-video::before {
  display: block;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .62) 74%, rgba(0, 0, 0, .9) 100%);
  pointer-events: none;
}

.template-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: contain;
  object-position: center;
  background: #05060a;
  transition: opacity .12s ease;
}

.template-video-fallback {
  display: none;
  width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  min-height: 252px;
  max-height: min(58vh, 420px);
  object-fit: contain;
  object-position: center;
  background: #101119;
}

.template-card-video.video-ready .template-video {
  opacity: 1;
}

.template-card-video .template-video {
  opacity: 1;
}

.template-card-video .template-video-fallback {
  display: none;
}

.template-card-video.video-ready .template-video-fallback {
  display: none;
}

.template-card-video.video-failed .template-video {
  opacity: 0;
}

.template-card-video.video-failed .template-video-fallback {
  display: block;
}

.template-card-video .template-text {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 0;
}

.template-card-video .template-title {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .92);
}

.price-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(10, 10, 12, .78);
  color: #ffe5a3;
  font-size: 12px;
  font-weight: 800;
}

.template-text {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
}

.template-title {
  font-size: 15px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: none;
  color: #ffffff;
}

.template-sub {
  display: none;
}

.selected-template-card {
  min-height: 360px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: #151722;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.selected-template-card-video {
  min-height: 0;
}

.selected-template-card-video:not(.selected-template-trend) {
  width: min(100%, 340px);
  margin: 0 auto 12px;
}

.selected-template-face-video {
  width: min(100%, 300px) !important;
}

.selected-template-media {
  position: relative;
  min-height: min(56vh, 440px);
  overflow: hidden;
  background: #05060a;
}

.selected-template-card-video .selected-template-video {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: min(56vh, 440px);
  object-fit: contain;
  object-position: center;
  background: #05060a;
}

.selected-template-video-fallback {
  display: none;
  width: 100%;
  height: min(56vh, 440px);
  object-fit: contain;
  object-position: center;
  background: #101119;
}

.selected-template-card-video.video-failed .selected-template-video {
  display: none;
}

.selected-template-card-video.video-failed .selected-template-video-fallback {
  display: block;
}

.selected-template-card-video .selected-template-overlay {
  min-height: 0;
  background: linear-gradient(180deg, #121827 0%, #0c111d 100%);
}

.selected-template-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #101119;
  display: block;
}
.selected-template-trend {
  min-height: min(78vh, 520px);
}

.selected-template-overlay {
  position: relative;
  z-index: 1;
  min-height: 360px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .86) 78%);
}

.selected-template-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: auto;
}

.selected-template-meta span {
  min-height: 24px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(10, 10, 12, .7);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-template-overlay strong {
  margin-top: 14px;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .85);
}

.selected-template-overlay p {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.32;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .82);
}

.selected-template-overlay .secondary-btn {
  width: auto;
  align-self: flex-start;
  margin-top: 12px;
  min-height: 34px;
  padding: 0 12px;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.mini-label {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.flag-text-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flag-text-counter {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.flag-text-counter.is-limit {
  color: #fbbf24;
}

.flag-preview {
  display: grid;
  gap: 7px;
  padding: 10px 12px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #11131b;
}

.flag-preview-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.flag-preview-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 14px 14px 14px 32px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 3px);
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 184, 92, .42), transparent 28%),
    linear-gradient(160deg, #2a2543 0%, #914b68 54%, #e68b65 100%);
}

.flag-preview-stage::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 25px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c6c9d2, #ffffff 48%, #777d8d);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .46);
}

.flag-preview-cloth {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 260px);
  aspect-ratio: 2.15 / 1;
  padding: 10%;
  overflow: hidden;
  color: #ffffff;
  background: #050506;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .38);
}

.flag-preview-cloth::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 22%, rgba(255, 255, 255, .07) 34%, transparent 48%),
    linear-gradient(75deg, transparent 0 58%, rgba(255, 255, 255, .045) 70%, transparent 84%);
}

.flag-preview-cloth span {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(13px, 4vw, 18px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .02em;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.flag-preview-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.flag-preview-empty.is-hidden {
  display: none;
}

select,
input,
textarea {
  width: 100%;
  color: var(--text);
  background: #11131b;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 46px;
  padding: 11px 13px;
  font-size: 17px;
  outline: none;
}

textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.35;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(20, 119, 255, .14);
}

button:disabled {
  cursor: default;
  opacity: .72;
}

.upload-grid {
  display: grid;
  gap: 10px;
}

.slot-upload-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 10px;
}

.upload-slot-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.bulk-upload-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0;
}
.bulk-upload-copy {
  display: grid;
  gap: 4px;
}

.bulk-upload-copy strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.1;
}

.bulk-upload-copy span,
.bulk-upload-format {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.upload-role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.upload-role-chips span {
  max-width: 100%;
  min-height: 26px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}


.bulk-upload-head {
  display: grid;
  gap: 6px;
}

.bulk-upload-head strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.15;
}

.bulk-upload-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.bulk-upload-button {
  position: relative;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 77, 255, .22);
}

.bulk-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.bulk-upload-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.bulk-upload-counter {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.bulk-upload-item {
  position: relative;
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(5, 6, 10, .52);
  display: grid;
  gap: 5px;
}

.bulk-upload-item.error {
  border-color: rgba(255, 78, 109, .55);
}

.bulk-upload-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 11px;
  overflow: hidden;
  background: #1d2030;
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 900;
}

.bulk-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bulk-upload-name,
.bulk-upload-status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bulk-upload-name {
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.bulk-upload-status {
  color: var(--muted);
  font-size: 11px;
}

.bulk-upload-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .68);
  color: #fff;
  font-weight: 900;
}

.upload-box {
  position: relative;
  min-height: 158px;
  border: 1px dashed rgba(41, 199, 232, .48);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(20, 119, 255, .1), rgba(41, 199, 232, .04)),
    #101119;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.upload-box.ready {
  border-style: solid;
  border-color: rgba(34, 197, 94, .7);
  background:
    linear-gradient(180deg, rgba(34, 197, 94, .12), rgba(20, 119, 255, .04)),
    #101119;
}

.upload-preview {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: #1d2030;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #101119;
  display: block;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.upload-title {
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.15;
}

.upload-meta {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  background: #101119;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.segmented button {
  border: 0;
  min-height: 36px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segmented button.active {
  color: white;
  background: #242634;
}

.voice-samples {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101119;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.voice-samples-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.voice-samples-head strong {
  font-size: 15px;
}

.voice-samples-head span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.voice-sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.voice-card {
  border: 1px solid #252838;
  border-radius: var(--radius);
  background: #151722;
  padding: 9px;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.voice-card.active {
  border-color: rgba(20, 119, 255, .82);
  box-shadow: 0 0 0 2px rgba(20, 119, 255, .14);
}

.voice-main {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  text-align: left;
  align-items: center;
}

.voice-avatar {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: white;
  font-weight: 900;
}

.voice-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.voice-copy strong {
  font-size: 14px;
  line-height: 1.15;
}

.voice-copy span,
.voice-best {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.voice-phrase {
  margin: 0;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.32;
  min-height: 44px;
  overflow-wrap: anywhere;
}

.voice-play {
  min-height: 32px;
  border: 1px solid #34384a;
  border-radius: 14px;
  background: #202332;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.client-guide {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101119;
  padding: 12px;
  display: grid;
  gap: 12px;
}

.reference-guide {
  display: grid;
  gap: 14px;
}

.reference-warning {
  border: 1px solid rgba(234, 179, 8, .72);
  border-radius: var(--radius);
  background: rgba(234, 179, 8, .12);
  color: #facc15;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.36;
  font-weight: 700;
}
.face-video-warning {
  border-color: rgba(20, 119, 255, .58);
  background: rgba(20, 119, 255, .13);
  color: #dbeafe;
}

.trend-detail-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trend-detail-step {
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
  padding: 10px;
  display: grid;
  align-content: center;
  gap: 7px;
}

.trend-detail-step span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.trend-detail-step strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.18;
  letter-spacing: 0;
}

.reference-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reference-row-head strong {
  font-size: 16px;
}

.animal-guide {
  border: 0;
  background: transparent;
  color: #38bdf8;
  font-size: 14px;
  font-weight: 800;
  padding: 0;
  white-space: nowrap;
}

.reference-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 10px) / 2);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x mandatory;
}

.reference-example {
  height: clamp(214px, 58vw, 246px);
  border: 0;
  border-radius: var(--radius);
  background-color: #202332;
  color: white;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

.reference-img,
.outcome-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-position: center;
  display: block;
}

.reference-img {
  object-fit: contain;
  background: #101119;
}

.outcome-img {
  object-fit: cover;
  background: #101119;
}

.reference-example::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .82));
}

.reference-example span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  font-size: 13px;
  line-height: 1.18;
  font-weight: 900;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
}

.outcome-examples {
  display: grid;
  gap: 10px;
}

.outcome-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.outcome-head strong {
  font-size: 17px;
}

.outcome-head span {
  color: var(--muted);
  font-size: 13px;
}

.outcome-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(198px, 62%);
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 0 2px 8px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.outcome-strip::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.outcome-card {
  min-height: 330px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #161824;
  color: white;
  padding: 12px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  scroll-snap-align: start;
}

.outcome-card.active {
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 2px rgba(41, 199, 232, .42);
}

.outcome-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, .86) 100%);
  pointer-events: none;
}

.outcome-copy,
.outcome-badge {
  position: relative;
  z-index: 3;
}

.outcome-copy {
  display: grid;
  gap: 4px;
}

.outcome-copy strong {
  font-size: 19px;
  line-height: 1.12;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .84);
}

.outcome-copy span {
  display: block;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .84);
}

.outcome-badge {
  align-self: flex-start;
  margin-bottom: auto;
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
  color: white;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.outcome-card.has-compare .outcome-badge {
  display: none;
}

.outcome-compare-label {
  position: absolute;
  top: 10px;
  z-index: 4;
  min-height: 24px;
  min-width: 48px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(8, 10, 18, .78);
  border: 1px solid rgba(255, 255, 255, .18);
  color: white;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.outcome-compare-before {
  left: 10px;
}

.outcome-compare-after {
  right: 10px;
}

.guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guide-head strong {
  font-size: 15px;
}

.guide-head span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.guide-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.guide-columns div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius);
  padding: 9px;
  background: #151722;
  display: grid;
  gap: 6px;
}

.guide-columns b {
  font-size: 13px;
}

.guide-columns span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.example-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.example-card {
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: white;
  padding: 9px;
  text-align: left;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #101119;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.example-title {
  position: relative;
  z-index: 2;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 900;
  text-transform: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .84);
}

.example-sub {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .84);
}

.primary-btn,
.secondary-btn,
.danger-btn {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  color: white;
}

.primary-btn {
  background: var(--action-gradient);
  box-shadow: 0 10px 22px var(--action-glow);
}

.secondary-btn {
  background: var(--action-gradient);
  border: 1px solid var(--action-border);
  box-shadow: 0 8px 18px rgba(6, 44, 255, .18);
}

.profile-card .primary-btn,
.profile-card .secondary-btn {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.danger-btn {
  background: #42191d;
  border: 1px solid #7f1d1d;
}

.notice {
  border: 1px solid rgba(242, 184, 75, .32);
  background: rgba(242, 184, 75, .12);
  color: #f8e2b0;
  border-radius: var(--radius);
  padding: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.gift-screen .page-title {
  margin-bottom: 12px;
}

.gift-card {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 28px;
  padding: 16px;
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 198, 69, .24), transparent 28%),
    radial-gradient(circle at 8% 0%, rgba(0, 163, 255, .2), transparent 34%),
    linear-gradient(180deg, rgba(17, 24, 57, .98), rgba(7, 10, 28, .98));
  box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
  display: grid;
  gap: 12px;
}

.gift-mark {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #ffc645, #9333ea);
  box-shadow: 0 12px 24px rgba(147, 51, 234, .32);
}

.gift-mark svg {
  width: 31px;
  height: 31px;
}

.gift-card p {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.38;
}

.gift-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gift-choice {
  min-width: 0;
  min-height: 112px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  padding: 12px;
  background: rgba(255, 255, 255, .06);
  display: grid;
  align-content: end;
  gap: 6px;
}

.gift-choice strong {
  color: white;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 1000;
}

.gift-choice span {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.25;
}

.result-box,
.chat-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  min-height: 92px;
  padding: 12px;
}

.result-box:empty {
  display: none;
}

.bank-transfer-result {
  display: grid;
  gap: 12px;
}

.bank-transfer-amount {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.bank-transfer-details {
  display: grid;
  gap: 8px;
}

.bank-transfer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, .035);
}

.bank-transfer-row > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.bank-transfer-row > strong {
  min-width: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  user-select: text;
}

.bank-copy-btn {
  border: 0;
  border-radius: 9px;
  padding: 7px 9px;
  background: rgba(45, 107, 255, .2);
  color: #bcd0ff;
  font-size: 11px;
  font-weight: 800;
}

.bank-transfer-warning {
  margin: 0;
  border-radius: 12px;
  padding: 10px;
  background: rgba(245, 158, 11, .12);
  color: #fde68a;
  font-size: 13px;
  line-height: 1.4;
}

.wallet-bank-account-field {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.wallet-bank-account-field input {
  width: 100%;
}

.history-retention-note {
  margin: -6px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.result-box img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.generation-status-card {
  display: grid;
  gap: 10px;
}

.generation-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}

.generation-status-head strong {
  font-size: 16px;
}

.generation-status-head span {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 900;
}

.result-image-btn {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  display: block;
}

.media-actions,
.viewer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.viewer-actions {
  grid-template-columns: 1fr;
}

.media-actions.compact {
  margin-top: 8px;
}

.media-action-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
}

.result-audio,
.job-audio {
  width: 100%;
  min-width: 0;
}

.result-video,
.job-result-video {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #05060a;
}

.result-video {
  display: block;
  max-height: min(58vh, 440px);
  object-fit: contain;
}

.job-result-video {
  display: block;
  margin-top: 8px;
  max-height: 240px;
  object-fit: cover;
}

.media-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: min(100vw, 460px);
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(5, 6, 10, .98);
  padding: 12px;
}

.viewer-top {
  min-height: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.viewer-top strong {
  font-size: 17px;
}

.viewer-top .icon-btn {
  font-size: 28px;
  line-height: 1;
}

.viewer-body {
  display: grid;
  place-items: center;
  min-height: 0;
}

.viewer-media {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border-radius: var(--radius);
  object-fit: contain;
}

video.viewer-media {
  width: 100%;
  height: calc(100vh - 150px);
  object-fit: contain;
  background: #05060a;
}

.viewer-audio {
  width: 100%;
}

.viewer-frame {
  width: 100%;
  height: calc(100vh - 150px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  height: var(--bottom);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  background: rgba(8, 7, 13, .97);
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-radius: 24px 24px 0 0;
  backdrop-filter: blur(18px);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}

.nav-btn {
  height: 58px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .58);
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 800;
  min-width: 0;
}

.nav-btn span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-btn .nav-ico {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.nav-btn .nav-ico svg,
.nav-generate svg {
  width: 24px;
  height: 24px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .26));
}

.nav-btn.active {
  color: white;
}

.nav-generate {
  width: 56px;
  height: 46px;
  border-radius: 20px;
  background: var(--action-gradient);
  color: white;
  margin: 0 auto;
  font-size: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px var(--action-glow);
}

@keyframes preview-pan {
  from {
    background-position: 45% 45%;
  }
  to {
    background-position: 58% 52%;
  }
}

@keyframes heading-shine {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes preview-scan {
  from {
    transform: translateX(-90%);
  }
  to {
    transform: translateX(90%);
  }
}

@keyframes preview-dance {
  from {
    transform: translate3d(-4px, 2px, 0) rotate(-1deg);
  }
  to {
    transform: translate3d(4px, -2px, 0) rotate(1deg);
  }
}

@keyframes audio-bars {
  from {
    transform: scaleY(.64);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes paint-dot {
  0% {
    transform: translate(-18px, 28px);
  }
  50% {
    transform: translate(-42px, 72px);
  }
  100% {
    transform: translate(-8px, 104px);
  }
}

.package-card,
.method-card,
.profile-card,
.job-card {
  padding: 12px;
}

.package-card.active,
.method-card.active {
  border-color: var(--purple);
}

.package-card strong,
.method-card strong,
.profile-card strong {
  display: block;
  font-size: 15px;
}

.wallet-lead {
  margin: -2px 0 18px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.45;
  max-width: 640px;
}

.wallet-balance-card {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  background: #171821;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.wallet-balance-card span {
  color: #ffffff;
  font-size: 14px;
}

.wallet-balance-card strong {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
}

.wallet-step-title {
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 14px;
}

.wallet-method-list,
.wallet-package-list {
  display: grid;
  gap: 12px;
}

.wallet-method-card,
.wallet-package-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  background: #171821;
  color: var(--text);
  text-align: left;
}

.wallet-method-card {
  min-height: 74px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 10px;
}

.wallet-method-card.active {
  border-color: rgba(45, 107, 255, .92);
  background: #171821;
  box-shadow: inset 0 0 0 1px rgba(45, 107, 255, .34);
}

.wallet-method-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #222430;
  font-size: 21px;
}

.wallet-method-main {
  min-width: 0;
}

.wallet-method-main strong {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
}

.wallet-method-main small {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 13px;
}

.wallet-method-badge {
  justify-self: end;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(21, 128, 61, .34);
  color: #6df0a4;
  font-size: 12px;
  font-weight: 900;
}

.wallet-method-arrow {
  color: #d8dded;
  font-size: 26px;
  line-height: 1;
}

.wallet-tariff-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.wallet-title-copy {
  min-width: 0;
  flex: 1;
}

.wallet-tariff-head .wallet-step-title {
  margin: 0 0 4px 0;
}

.wallet-back-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid rgba(20, 119, 255, .44);
  border-radius: 999px;
  background: var(--primary-soft);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.wallet-method-note {
  margin: 0;
  color: #ffffff;
  text-align: left;
  font-size: 12px;
}

.wallet-method-note-label {
  color: #ffffff;
  font-weight: 900;
}

.wallet-package-card {
  min-height: 104px;
  padding: 16px 20px;
  display: grid;
  align-content: center;
  gap: 7px;
}

.wallet-package-card.active,
.wallet-package-card:hover {
  transform: translateY(-1px);
}

.wallet-package-standard {
  border-color: rgba(234, 179, 8, .64);
  background: linear-gradient(90deg, rgba(75, 61, 14, .48), #171821 65%);
}

.wallet-package-premium {
  border-color: rgba(14, 165, 233, .72);
  background: linear-gradient(90deg, rgba(8, 47, 73, .6), #171821 68%);
}

.wallet-package-ultimate {
  border-color: rgba(239, 68, 68, .7);
  background: linear-gradient(90deg, rgba(82, 21, 31, .62), #171821 68%);
}

.wallet-package-name {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}

.wallet-package-coins {
  color: #f6f0d5;
  font-size: 14px;
  font-weight: 800;
}

.wallet-package-coins em {
  display: inline-block;
  margin-left: 8px;
  border-radius: 7px;
  padding: 3px 7px;
  background: rgba(21, 128, 61, .4);
  color: #6df0a4;
  font-style: normal;
  font-weight: 900;
}

.wallet-package-price {
  color: #b129ff;
  font-size: 21px;
  font-weight: 950;
}

.wallet-buy-submit {
  margin-top: 18px;
}

.wallet-legal-consents {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  background: #171821;
}

.wallet-consent-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.42;
}

.wallet-consent-row input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  accent-color: #2d6bff;
}

.wallet-consent-row a {
  color: #9fc1ff;
  text-underline-offset: 2px;
}

.wallet-buy-submit:disabled {
  cursor: not-allowed;
  opacity: .48;
  box-shadow: none;
  transform: none;
}

.muted {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.35;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  background: #141620;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.stat-value {
  font-size: 22px;
  font-weight: 900;
}

.stat-label {
  margin-top: 4px;
  color: #ffffff;
  font-size: 12px;
}

.job-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  align-items: center;
}

.job-preview {
  width: 76px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #101119;
}

.job-video-poster {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.job-video-poster > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-video-poster.has-poster .job-video-fallback {
  display: none;
}

.job-video-fallback {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
}

.job-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(4, 7, 18, .72);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .34);
  transform: translate(-50%, -50%);
}

.job-video-poster:not(.has-poster) .job-video-play {
  position: static;
  margin-top: 5px;
  transform: none;
}
.job-preview-pending {
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  color: #fff;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(20, 119, 255, .28), rgba(41, 199, 232, .14)),
    #101119;
}

.audio-preview {
  display: grid;
  place-items: center;
  color: #93c5fd;
  font-size: 30px;
  font-weight: 900;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(147, 197, 253, .72) 12% 18%, transparent 18% 28%, rgba(41, 199, 232, .72) 28% 35%, transparent 35% 47%, rgba(255, 255, 255, .72) 47% 53%, transparent 53% 64%, rgba(147, 197, 253, .62) 64% 72%, transparent 72%),
    #202332;
}

.job-title {
  font-weight: 900;
  font-size: 14px;
}

.job-meta {
  color: #ffffff;
  font-size: 12px;
  margin-top: 4px;
}

.job-audio {
  display: block;
  margin-top: 8px;
  height: 34px;
}

.job-link {
  display: inline-flex;
  margin-top: 8px;
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.status {
  display: inline-flex;
  margin-top: 8px;
  min-height: 22px;
  padding: 0 8px;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  background: #202332;
}

.status.completed {
  color: #b9fbc9;
}

.status.failed {
  color: #fecaca;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.tab-pill {
  white-space: nowrap;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #11131b;
  color: var(--muted);
  font-weight: 800;
}

.tab-pill.active {
  color: white;
  border-color: var(--purple);
  background: var(--primary-soft);
}

.row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.row > * {
  flex: 1;
}

.payment-history-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.payment-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.payment-history-main {
  min-width: 0;
}

.payment-history-main strong,
.payment-history-main small {
  display: block;
}

.payment-history-main strong {
  font-size: 14px;
  line-height: 1.25;
}

.payment-history-main small {
  margin-top: 3px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.3;
}

.payment-status {
  min-width: 94px;
  padding: 6px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}

.payment-status-paid {
  color: #b9fbc9;
  background: rgba(34, 197, 94, 0.14);
}

.payment-status-pending {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
}

.payment-status-failed {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
}

.payment-status-neutral {
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.14);
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #ffffff;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

@media (max-width: 360px) {
  .package-grid,
  .method-grid,
  .gift-choice-grid,
  .guide-columns,
  .example-strip,
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .topbar {
    gap: 6px;
    padding: 10px 10px 8px;
  }

  .brand {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand-copy {
    min-height: 34px;
  }

  .top-actions {
    gap: 4px;
    min-width: 0;
  }

  .icon-btn,
  .coin-pill {
    min-width: 34px;
    height: 36px;
  }

  .icon-btn {
    width: 36px;
  }

  .coin-pill {
    min-width: 68px;
    padding: 0 5px;
    gap: 4px;
  }

  .coin-icon,
  .coin-icon svg {
    width: 21px;
    height: 21px;
  }

  .coin-balance {
    font-size: 13px;
  }

  .coin-plus {
    width: 16px;
    height: 16px;
    font-size: 12px;
  }

  .screen {
    padding-left: 12px;
    padding-right: 12px;
  }

  .service-grid,
  .template-grid,
  .compact-grid {
    gap: 8px;
  }

  .service-card {
    min-height: 142px;
  }

  .service-label,
  .template-title {
    overflow-wrap: anywhere;
  }

  .bottom-nav {
    padding-left: 4px;
    padding-right: 4px;
  }

  .nav-btn {
    font-size: 10px;
  }

  .nav-generate {
    width: 52px;
    height: 44px;
  }
}


.generation-format-section {
  display: grid;
  gap: 10px;
}

.generation-format-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.generation-format-head label {
  color: #fff;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 900;
}

.generation-format-head span {
  min-height: 24px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--action-gradient);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.generation-format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.generation-format-card {
  min-width: 0;
  min-height: 150px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)),
    #101119;
  color: #fff;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  text-align: center;
  cursor: pointer;
}

.generation-format-card.active {
  border-color: rgba(41, 199, 232, .78);
  box-shadow: inset 0 0 0 1px rgba(20, 119, 255, .5), 0 10px 26px rgba(0, 77, 255, .14);
}

.generation-format-card strong {
  max-width: 100%;
  color: #fff;
  font-size: 13px;
  line-height: 1.08;
  font-weight: 900;
}

.generation-format-card small {
  max-width: 100%;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

@media (max-width: 380px) {
  .generation-format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 20260703_full_cards_two_formats_v2 */
.template-card,
.trends-grid .trend-card {
  aspect-ratio: 9 / 16;
  min-height: clamp(280px, 62vw, 430px);
  background-color: #05060a;
  background-size: contain !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
}

.template-img,
.trends-grid .trend-card .template-img,
.template-video-fallback,
.selected-template-img,
.reference-img,
.outcome-img,
.first-result-card img,
.bulk-upload-thumb img,
.job-preview {
  object-fit: contain !important;
  object-position: center top !important;
  background: #05060a !important;
}

.template-video,
.selected-template-video,
video.viewer-media,
.result-video,
.job-result-video {
  object-fit: contain !important;
  object-position: center !important;
  background: #05060a !important;
}

.template-card::before,
.trends-grid .trend-card::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .03) 54%, rgba(0, 0, 0, .35) 76%, rgba(0, 0, 0, .86) 100%) !important;
  pointer-events: none;
}

.generation-format-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.trends-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.trends-strip .trend-card {
  min-height: clamp(154px, 41vw, 301px);
  border-radius: 18px;
}

.trends-strip .trend-card .template-text {
  left: 7px;
  right: 7px;
  bottom: 7px;
}

.trends-strip .trend-card .template-title {
  font-size: 11px;
  line-height: 1.08;
}

.category .template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.category .template-card {
  min-height: clamp(154px, 41vw, 301px);
  border-radius: 18px;
}

.category .template-card-video .template-video,
.category .template-card-video .template-video-fallback {
  min-height: 0;
  max-height: none;
}

.category .template-card .template-text {
  left: 7px;
  right: 7px;
  bottom: 7px;
}

.category .template-card .template-title {
  font-size: 11px;
  line-height: 1.08;
}

.category .template-card .price-badge {
  top: 6px;
  left: 6px;
  min-height: 18px;
  padding: 0 5px;
  font-size: 9px;
}

/* end 20260703_full_cards_two_formats_v2 */


/* 20260707_facevideo_clean_v1 */
.first-result-feature .first-result-source img {
  object-fit: cover !important;
  object-position: center center !important;
}

.first-result-feature .first-result-output video,
.first-result-feature .first-result-combo {
  animation: none !important;
  transform: none !important;
}

/* 20260707_hero_video_smooth_v1 */
.first-result-feature video[data-hero-video="true"] {
  opacity: 0;
  transition: opacity 90ms linear;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity;
}

.first-result-feature .hero-video-ready video[data-hero-video="true"],
.first-result-feature video[data-hero-video="true"].video-ready {
  opacity: 1;
}

/* 20260708_face_video_no_flash_v1 */
.selected-template-face-video .selected-template-video {
  opacity: 0;
  transition: opacity 90ms linear;
}

.selected-template-face-video.video-ready .selected-template-video,
.selected-template-face-video .selected-template-video.video-ready {
  opacity: 1;
}
/* 20260710_trends_fixed_square_v1 */
.trends-grid .trend-card,
.trends-strip .trend-card {
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  background: #05060a !important;
}

.trends-grid .trend-card .template-video,
.trends-strip .trend-card .template-video,
.trends-grid .trend-card .template-video-fallback,
.trends-strip .trend-card .template-video-fallback,
.trends-grid .trend-card .template-img,
.trends-strip .trend-card .template-img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #05060a !important;
}

.selected-template-trend.selected-template-card-video {
  aspect-ratio: 1 / 1;
  min-height: 0;
  margin-bottom: 0;
  background: #05060a;
}

.selected-template-trend .selected-template-media {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.selected-template-trend.selected-template-card-video .selected-template-video,
.selected-template-trend.selected-template-card-video .selected-template-video-fallback {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  max-height: none;
  object-fit: cover !important;
  object-position: center !important;
  background: #05060a !important;
}

.selected-template-trend.selected-template-card-video.selected-template-portrait-video {
  width: min(100%, 248px);
  max-height: 440px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
}

.selected-template-trend.selected-template-card-video.selected-template-portrait-video .selected-template-video,
.selected-template-trend.selected-template-card-video.selected-template-portrait-video .selected-template-video-fallback {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 9 / 16;
  object-fit: contain !important;
  object-position: center !important;
}

.selected-template-trend.selected-template-card-video.selected-template-landscape-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

.selected-template-trend.selected-template-card-video.selected-template-landscape-video .selected-template-video,
.selected-template-trend.selected-template-card-video.selected-template-landscape-video .selected-template-video-fallback {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 9;
  object-fit: contain !important;
  object-position: center !important;
}

.selected-template-trend .selected-template-overlay {
  display: none;
}

.trend-upload-panel {
  margin-top: 0;
}

.trend-upload-panel .upload-slot-grid {
  grid-template-columns: 1fr;
}
/* 20260710_faou_square_monthly_users_v1 */
.monthly-users-board {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 14px 10px;
  min-height: 18px;
}

.monthly-users-board span {
  display: inline-block;
  max-width: 100%;
  color: rgba(148, 163, 184, .88);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.template-card[data-template="trend-fa-ou-oa"],
.trend-card[data-template="trend-fa-ou-oa"] {
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #05060a !important;
}

.template-card[data-template="trend-fa-ou-oa"] .template-video,
.template-card[data-template="trend-fa-ou-oa"] .template-video-fallback,
.template-card[data-template="trend-fa-ou-oa"] .template-img,
.selected-template-card[data-template="trend-fa-ou-oa"] .selected-template-video,
.selected-template-card[data-template="trend-fa-ou-oa"] .selected-template-video-fallback,
.selected-template-card[data-template="trend-fa-ou-oa"] .selected-template-img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: #05060a !important;
}

.selected-template-card[data-template="trend-fa-ou-oa"].selected-template-card-video {
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

/* 20260711_wb_cards_icons_v7 */
.monthly-users-board {
  display: none !important;
}

.category .template-grid,
.trends-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  width: calc(100% + 8px) !important;
  margin-left: -4px !important;
  margin-right: -4px !important;
}

.trends-strip .trend-card,
.category .template-card {
  aspect-ratio: 3 / 4 !important;
  min-height: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #05060a !important;
}

.trends-strip .trend-card .template-video,
.trends-strip .trend-card .template-video-fallback,
.trends-strip .trend-card .template-img,
.category .template-card .template-video,
.category .template-card .template-video-fallback,
.category .template-card .template-img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center top !important;
  background: #05060a !important;
}

.trends-strip .trend-card .template-text,
.category .template-card .template-text {
  left: 8px !important;
  right: 8px !important;
  bottom: 8px !important;
}

.trends-strip .trend-card .template-title,
.category .template-card .template-title {
  font-size: 14px !important;
  line-height: 1.08 !important;
}

.category .template-card .price-badge {
  top: 7px !important;
  left: 7px !important;
  min-height: 19px !important;
  padding: 0 6px !important;
  font-size: 10px !important;
}

.top-actions {
  gap: 5px !important;
}

.topbar .icon-btn,
.topbar .coin-pill {
  min-width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
}

.topbar .icon-btn {
  width: 34px !important;
}

.topbar .icon-btn svg {
  width: 18px !important;
  height: 18px !important;
}

.topbar .telegram-btn svg {
  width: 19px !important;
  height: 19px !important;
}

.topbar .language-btn {
  font-size: 11px !important;
}

.topbar .coin-pill {
  min-width: 68px !important;
  padding: 0 6px !important;
  gap: 4px !important;
}

.topbar .coin-icon,
.topbar .coin-icon svg {
  width: 20px !important;
  height: 20px !important;
}

.topbar .coin-balance {
  font-size: 12px !important;
}

.topbar .coin-plus {
  width: 15px !important;
  height: 15px !important;
  font-size: 11px !important;
}

.nav-btn .nav-ico,
.nav-btn .nav-ico svg,
.nav-generate svg {
  width: 22px !important;
  height: 22px !important;
}

@media (max-width: 360px) {
  .category .template-grid,
  .trends-strip {
    gap: 6px !important;
    width: calc(100% + 6px) !important;
    margin-left: -3px !important;
    margin-right: -3px !important;
  }

  .trends-strip .trend-card .template-title,
  .category .template-card .template-title {
    font-size: 13px !important;
  }

  .top-actions {
    gap: 4px !important;
  }
}
/* end 20260711_wb_cards_icons_v7 */

/* Tools use the same stable portrait grid as the home catalog. */
.tools-screen .service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  width: calc(100% + 8px) !important;
  margin-left: -4px !important;
  margin-right: -4px !important;
}

.tools-screen .service-card {
  aspect-ratio: 3 / 4 !important;
  min-height: 0 !important;
  border-radius: 14px !important;
  background-size: cover !important;
  background-position: center top !important;
}

.tools-screen .service-label {
  max-width: 100%;
  font-size: 14px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.tools-screen .service-card::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .72) 100%);
}

/* Owner-only read-only purchase dashboard. */
.owner-admin-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-color: rgba(250, 204, 21, .42) !important;
  background: linear-gradient(135deg, rgba(250, 204, 21, .12), rgba(59, 130, 246, .12)) !important;
}

.owner-admin-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(250, 204, 21, .38);
  border-radius: 14px;
  background: rgba(10, 10, 18, .48);
  font-size: 22px;
}

.owner-admin-card .muted {
  margin: 6px 0 12px;
}

.admin-title-row {
  align-items: flex-start;
}

.admin-title-row .muted {
  margin: 3px 0 0;
}

.admin-periods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 8px;
}

.admin-periods .tab-pill {
  min-width: 0;
  padding: 9px 5px;
  white-space: nowrap;
}

.admin-refresh {
  width: 100%;
  margin-bottom: 12px;
}

.admin-generated-at {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.admin-metric-card {
  min-width: 0;
  padding: 13px 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
}

.admin-metric-value {
  color: #fff;
  font-size: clamp(18px, 4.8vw, 25px);
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.admin-metric-label {
  margin-top: 7px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  line-height: 1.25;
}

.admin-metric-card small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .5);
  font-size: 10px;
  line-height: 1.25;
}

.admin-section-card {
  margin-top: 12px;
}

.admin-section-card h2,
.admin-section-card h3 {
  margin: 0 0 8px;
  color: #fff;
}

.admin-section-card h2 {
  font-size: 16px;
}

.admin-section-card h3 {
  font-size: 13px;
}

.admin-revenue-grid,
.admin-inline-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.admin-inline-values > span {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}

.admin-inline-values strong,
.admin-inline-values small {
  display: block;
}

.admin-inline-values small {
  margin-top: 4px;
  color: rgba(255, 255, 255, .5);
}

.admin-nominal-card {
  border-color: rgba(245, 158, 11, .25) !important;
}

.admin-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-breakdown-list,
.admin-recent-list {
  display: grid;
  gap: 7px;
}

.admin-breakdown-row,
.admin-recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
}

.admin-breakdown-row > span,
.admin-recent-row > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-breakdown-row small,
.admin-recent-row small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .54);
  font-size: 11px;
}

.admin-package-row > strong,
.admin-breakdown-row > strong {
  flex: 0 0 auto;
}

.admin-usage-grid {
  margin: 0;
}

.admin-products-grid {
  margin-top: 12px;
}

.admin-products-grid > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.admin-quality-card {
  border-color: rgba(96, 165, 250, .22) !important;
}

.admin-warning-list {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding-left: 20px;
  color: #fde68a;
  font-size: 12px;
  line-height: 1.4;
}

.admin-quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.admin-quality-grid > span {
  min-width: 0;
  padding: 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
}

.admin-quality-grid small,
.admin-quality-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.admin-quality-grid small {
  min-height: 30px;
  color: rgba(255, 255, 255, .55);
  font-size: 10px;
  line-height: 1.25;
}

.admin-quality-grid strong {
  margin-top: 4px;
  font-size: 17px;
}

.admin-error {
  display: block;
}

@media (max-width: 560px) {
  .admin-metrics-grid,
  .admin-quality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-two-column,
  .admin-revenue-grid,
  .admin-inline-values {
    grid-template-columns: 1fr;
  }

  .admin-products-grid > div:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 360px) {
  .admin-periods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Client fixes: show a light poster immediately, then reveal the playable preview. */
.template-card-video .template-video-fallback {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  opacity: 1;
  transition: opacity .16s ease;
}

.template-card-video .template-video {
  opacity: 0;
}

.template-card-video.video-ready .template-video {
  opacity: 1;
}

.template-card-video.video-ready .template-video-fallback {
  display: block;
  opacity: 0;
  pointer-events: none;
}

.selected-template-card-video .selected-template-video-fallback {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity .16s ease;
}

.selected-template-card-video .selected-template-video {
  opacity: 0;
  transition: opacity .16s ease;
}

.selected-template-card-video.video-ready .selected-template-video,
.selected-template-card-video .selected-template-video.video-ready {
  opacity: 1;
}

.selected-template-card-video.video-ready .selected-template-video-fallback {
  opacity: 0;
  pointer-events: none;
}

.selected-template-result-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(5, 6, 10, .78);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  pointer-events: none;
}

.selected-template-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0 0 0 3px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(5, 6, 10, .78);
  color: #fff;
  font-size: 21px;
  line-height: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .34);
  transition: opacity .15s ease, transform .15s ease;
}

.selected-template-play:active {
  transform: translate(-50%, -50%) scale(.95);
}

.selected-template-card-video.video-playing .selected-template-play {
  opacity: 0;
  pointer-events: none;
}

.service-card.service-unavailable {
  cursor: not-allowed;
  filter: grayscale(.28);
  opacity: .72;
}

.service-availability {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
}

.admin-custom-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
  margin: 10px 0;
}

.admin-custom-range label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.admin-custom-range input {
  min-width: 0;
  min-height: 42px;
}

.admin-custom-range .secondary-btn {
  min-height: 42px;
  width: auto;
  margin: 0;
}

.admin-block-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}

.admin-block-filters::-webkit-scrollbar {
  display: none;
}

.admin-block-filters .tab-pill {
  flex: 0 0 auto;
}

.admin-economics-status {
  display: grid;
  gap: 5px;
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid rgba(255, 190, 72, .38);
  border-radius: 12px;
  background: rgba(255, 174, 45, .09);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}

.admin-economics-status.configured {
  border-color: rgba(76, 219, 132, .34);
  background: rgba(47, 177, 102, .09);
}

.admin-economics-status p {
  margin: 0;
  color: var(--muted);
}

.admin-operation-filters {
  display: grid;
  grid-template-columns: minmax(130px, .7fr) minmax(180px, 1.3fr) auto;
  gap: 8px;
  align-items: end;
  margin: 12px 0;
}

.admin-operation-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.admin-operation-filters select,
.admin-operation-filters .secondary-btn {
  min-width: 0;
  min-height: 42px;
  margin: 0;
}

.admin-pagination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.admin-pagination span {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.admin-pagination .secondary-btn {
  width: auto;
  min-height: 40px;
  margin: 0;
}

.admin-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-economics-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-economics-table th,
.admin-economics-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.admin-economics-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #171a25;
  color: var(--muted);
  font-size: 11px;
}

.admin-economics-table th:first-child,
.admin-economics-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 210px;
  text-align: left;
  background: #12141d;
}

.admin-economics-table th:first-child {
  z-index: 3;
  background: #171a25;
}

.admin-economics-table tr:last-child td {
  border-bottom: 0;
}

.admin-economics-table td strong,
.admin-economics-table td small {
  display: block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-economics-table td small {
  margin-top: 3px;
  color: var(--muted);
}

.admin-profit-positive { color: #76f0a6; font-weight: 800; }
.admin-profit-negative { color: #ff8585; font-weight: 800; }
.admin-profit-unknown { color: var(--muted); }

@media (max-width: 560px) {
  .admin-custom-range {
    grid-template-columns: 1fr 1fr;
  }

  .admin-custom-range .secondary-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .admin-operation-filters {
    grid-template-columns: 1fr 1fr;
  }

  .admin-operation-filters .secondary-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .admin-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .admin-pagination span {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .admin-pagination .secondary-btn {
    width: 100%;
  }
}

/* 20260726_hero_full_sync_v2 */
html,
body,
.app-shell {
  overscroll-behavior-y: none;
}

.first-result-feature {
  --first-result-card-size: clamp(96px, 29vw, 112px);
  width: min(68%, 244px);
  max-width: 244px;
  padding: 5px;
  gap: 4px;
  border-radius: 18px;
}

.first-result-grid {
  gap: 5px;
}

.first-result-card,
.first-result-combo {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

.first-result-feature .first-result-source img {
  object-fit: contain !important;
  object-position: center center !important;
}

.tools-screen .service-label {
  white-space: normal;
  overflow: visible;
  word-break: normal;
  padding-bottom: 1px;
}

.referral-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
}

.referral-tabs .tab-pill {
  width: 100%;
  min-width: 0;
  padding-inline: 6px;
  white-space: normal;
  line-height: 1.1;
}

.page-title {
  min-width: 0;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.selected-template-trend.selected-template-card-video .selected-template-video,
.selected-template-trend.selected-template-card-video .selected-template-video-fallback,
video.viewer-media,
.result-video,
.job-result-video {
  object-fit: contain !important;
  object-position: center center !important;
}

.first-result-output video,
.first-result-video-card video {
  position: relative;
  z-index: 0;
  object-fit: contain !important;
  object-position: center center !important;
}

.first-result-sync-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain !important;
  object-position: center center !important;
  background: #080d22;
  opacity: 1;
  transition: opacity 90ms linear;
}

.first-result-feature.hero-sync-ready .first-result-sync-poster {
  opacity: 0;
  pointer-events: none;
}

.first-result-label,
.first-result-video-card span {
  left: 4px;
  right: 4px;
  bottom: 5px;
  font-size: clamp(9px, 2.8vw, 11px);
}

.first-result-create-frame {
  padding: 2px;
  border-radius: 13px;
}

.first-result-create {
  min-height: 30px;
  padding: 4px 6px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.05;
}

.first-result-feature video[data-hero-video="true"] {
  opacity: 0 !important;
}

.first-result-feature.hero-sync-ready video[data-hero-video="true"] {
  opacity: 1 !important;
}

.template-card-video .template-video,
.template-card-video .template-video-fallback,
.selected-template-card-video .selected-template-video,
.selected-template-card-video .selected-template-video-fallback,
.job-result-video {
  object-fit: contain !important;
  object-position: center center !important;
}

.selected-template-card + .form-stack,
.selected-template-trend + .form-stack {
  margin-top: 16px;
}

.flag-preview-cloth span {
  display: block;
  overflow: visible;
  font-family: "DejaVu Sans", Arial, sans-serif;
  font-size: clamp(12px, 3.6vw, 17px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: .01em;
  white-space: pre-line;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-line-clamp: unset;
}

.wallet-method-card.unavailable {
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  cursor: not-allowed;
  opacity: .68;
}

.wallet-method-card.unavailable .wallet-method-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.wallet-method-card.unavailable .wallet-method-main {
  grid-column: 2;
  grid-row: 1;
}

.wallet-method-card.unavailable .wallet-method-status {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
}

.wallet-method-card.unavailable .wallet-method-arrow {
  display: none;
}

.wallet-method-card.unavailable:hover,
.wallet-method-card.unavailable:active {
  transform: none;
}
/* end 20260726_hero_full_sync_v2 */

/* 20260727_intrinsic_media_love_flag_v2 */
.first-result-feature {
  --first-result-card-size: min(45%, 170px);
  width: min(100%, 376px);
  max-width: 376px;
  padding: 7px;
  gap: 6px;
}

.first-result-grid {
  grid-template-columns: minmax(0, 1.216fr) minmax(0, 1fr);
  align-items: start;
  gap: 7px;
}

.first-result-card {
  align-self: start;
}

.first-result-source {
  aspect-ratio: 214 / 313;
}

.first-result-output,
.first-result-combo {
  aspect-ratio: 9 / 16;
}

.first-result-combo {
  width: var(--first-result-card-size);
}

.first-result-card.intrinsic-media-frame,
.first-result-combo.intrinsic-media-frame,
.template-card.intrinsic-media-frame,
.selected-template-card.intrinsic-media-frame,
.selected-template-media.intrinsic-media-frame,
.result-image-btn.intrinsic-media-frame {
  aspect-ratio: var(--media-aspect) !important;
}

.first-result-feature .first-result-source img,
.first-result-output video,
.first-result-video-card video,
.first-result-sync-poster {
  object-fit: contain !important;
  object-position: center center !important;
}

.selected-template-card-video .selected-template-media.intrinsic-media-frame {
  height: auto !important;
  min-height: 0;
}

.selected-template-card-video .selected-template-media.intrinsic-media-frame .selected-template-video,
.selected-template-card-video .selected-template-media.intrinsic-media-frame .selected-template-video-fallback {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
}

.selected-template-trend.selected-template-card-video.selected-template-portrait-video {
  width: min(100%, 320px);
  max-height: none;
}

.result-image-btn.intrinsic-media-frame {
  overflow: hidden;
}

.result-image-btn.intrinsic-media-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.result-video,
.job-result-video {
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}

video.viewer-media {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain !important;
}
/* end 20260727_intrinsic_media_love_flag_v2 */

/* 20260727_global_wheel_scroll_v1 */
html,
body,
.app-shell {
  overscroll-behavior-y: auto;
}

html,
body,
.app-shell,
.screen {
  overflow-x: clip;
}

body,
.app-shell,
.screen {
  overflow-y: visible;
}
/* end 20260727_global_wheel_scroll_v1 */

/* 20260727_uniform_phone_cards_v1 */
.template-media-fill,
.selected-template-media-fill {
  position: absolute;
  inset: -8%;
  width: 116% !important;
  height: 116% !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
  object-fit: cover !important;
  object-position: center center !important;
  filter: blur(13px) saturate(.9) brightness(.58);
  transform: scale(1.04);
  background: transparent !important;
  pointer-events: none;
}

.selected-template-media-fill {
  z-index: 0;
}

.selected-template-img,
.selected-template-video-fallback,
.selected-template-card-video .selected-template-video {
  z-index: 1;
  object-fit: contain !important;
  background: transparent !important;
}

.selected-template-overlay {
  position: relative;
  z-index: 3;
}
/* end 20260727_uniform_phone_cards_v1 */

/* 20260727_creation_hero_two_stage_v7 */
.first-result-feature {
  --first-result-card-size: min(42vw, 152px);
  width: min(100%, 410px);
  max-width: 410px;
  row-gap: 6px;
}

.first-result-grid {
  display: grid;
  grid-template-columns: repeat(2, var(--first-result-card-size));
  justify-content: center;
  align-items: start;
  gap: 7px;
}

.first-result-outcomes {
  display: grid;
  justify-items: center;
  width: 100%;
  gap: 0;
}

.first-result-feature .first-result-card,
.first-result-feature .first-result-card.intrinsic-media-frame,
.first-result-feature .first-result-combo,
.first-result-feature .first-result-combo.intrinsic-media-frame {
  width: 100%;
  margin: 0;
  aspect-ratio: 9 / 16 !important;
  border-radius: 14px;
}

.first-result-feature .first-result-card,
.first-result-feature .first-result-combo {
  width: var(--first-result-card-size);
}

.first-result-create-frame {
  width: 100%;
}

.first-result-feature img.first-result-media-fill {
  position: absolute !important;
  inset: -8% !important;
  z-index: 0 !important;
  width: 116% !important;
  height: 116% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  filter: blur(12px) saturate(.92) brightness(.58);
  transform: scale(1.04);
  background: transparent !important;
  pointer-events: none;
}

.first-result-media-main {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
}

.first-result-card::after,
.first-result-video-card::after {
  z-index: 2;
}

.first-result-label,
.first-result-video-card span {
  z-index: 3;
}

@media (max-width: 340px) {
  .first-result-feature {
    --first-result-card-size: min(41vw, 132px);
    gap: 4px;
    padding: 5px;
  }
}
/* end 20260727_creation_hero_two_stage_v7 */

/* 20260728_original_cards_reels_v10 */
/* Keep the restored card design, but every selected video frame is Reels 9:16. */
.selected-template-card.selected-template-card-video[data-template] {
  width: min(100%, 320px) !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 auto 12px !important;
}

.selected-template-card.selected-template-card-video .selected-template-media {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 9 / 16 !important;
}

.selected-template-card.selected-template-card-video .selected-template-media .selected-template-video,
.selected-template-card.selected-template-card-video .selected-template-media .selected-template-video-fallback {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
}
/* end 20260728_original_cards_reels_v10 */
/* 20260728_full_bleed_cards_birthday_v11 */
/* Match the full-bleed Style & Fashion cards: no blurred duplicate layer. */
.template-media-fill,
.selected-template-media-fill {
  display: none !important;
}

.template-card[data-template] .template-video,
.template-card[data-template] .template-video-fallback,
.template-card[data-template] .template-img,
.selected-template-card[data-template] .selected-template-img,
.selected-template-card.selected-template-card-video[data-template] .selected-template-media .selected-template-video,
.selected-template-card.selected-template-card-video[data-template] .selected-template-media .selected-template-video-fallback {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: #05060a !important;
}
/* end 20260728_full_bleed_cards_birthday_v11 */
/* 20260728_detail_media_only_v12 */
.selected-template-card[data-template] > .selected-template-overlay {
  display: none !important;
}
/* end 20260728_detail_media_only_v12 */
/* 20260728_viewer_streaming_v15 */
.viewer-video-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 240px;
  max-height: calc(100vh - 150px);
}

.viewer-video-shell > .viewer-media {
  grid-area: 1 / 1;
}

.viewer-video-status {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(5, 6, 10, .82);
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  pointer-events: none;
}

.viewer-video-status[hidden] {
  display: none;
}
/* end 20260728_viewer_streaming_v15 */
/* 20260729_catalog_return_prices_v23 */
.price-badge {
  top: 7px !important;
  right: 7px !important;
  left: auto !important;
  z-index: 4 !important;
  min-height: 24px !important;
  max-width: calc(100% - 14px);
  padding: 0 9px 0 7px !important;
  gap: 6px !important;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(10, 18, 34, .93), rgba(7, 32, 50, .9)) !important;
  color: #f8fbff !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  letter-spacing: -.01em;
  white-space: nowrap;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(9px) saturate(1.2);
  -webkit-backdrop-filter: blur(9px) saturate(1.2);
  pointer-events: none;
}

.price-badge-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #eaffff 0 18%, #5fe7ff 23% 48%, #1477ff 72% 100%);
  box-shadow: 0 0 0 2px rgba(95, 231, 255, .12), 0 0 10px rgba(41, 199, 232, .42);
}

.service-card > .price-badge,
.face-video-card > .price-badge,
.selected-template-card > .price-badge {
  z-index: 5 !important;
}

.face-video-card,
.selected-template-card {
  position: relative;
}

.selected-template-card > .selected-price-badge {
  min-height: 28px !important;
  padding-inline: 9px 11px !important;
  font-size: 12px !important;
}

@media (max-width: 350px) {
  .price-badge {
    min-height: 22px !important;
    padding-inline: 6px 8px !important;
    gap: 5px !important;
    font-size: 9.5px !important;
  }

  .price-badge-dot {
    width: 9px;
    height: 9px;
    flex-basis: 9px;
  }
}
/* end 20260729_catalog_return_prices_v23 */
/* 20260729_payment_returns_v24 */
.payment-return-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 0 0 14px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 24, 39, .96), rgba(9, 14, 25, .92));
  box-shadow: 0 14px 36px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.payment-return-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 14px;
  color: #f8fafc;
  background: rgba(255, 255, 255, .08);
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
}

.payment-return-copy {
  min-width: 0;
}

.payment-return-copy strong {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
}

.payment-return-copy p,
.payment-return-copy small {
  display: block;
  margin: 6px 0 0;
  color: rgba(241, 245, 249, .78);
  font-size: 12.5px;
  line-height: 1.45;
}

.payment-return-copy small {
  color: rgba(226, 232, 240, .62);
  font-size: 11.5px;
}

.payment-return-card > .primary-btn,
.payment-return-card > .secondary-btn,
.payment-return-actions {
  grid-column: 1 / -1;
}

.payment-return-card > .primary-btn,
.payment-return-card > .secondary-btn,
.payment-return-actions .primary-btn,
.payment-return-actions .secondary-btn {
  min-height: 42px;
  margin: 0;
}

.payment-return-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.payment-return-actions a.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.payment-return-pending {
  border-color: rgba(56, 189, 248, .34);
  background: linear-gradient(145deg, rgba(8, 47, 73, .92), rgba(7, 22, 38, .96));
}

.payment-return-pending .payment-return-icon {
  color: #7dd3fc;
}

.payment-return-confirmed {
  border-color: rgba(52, 211, 153, .38);
  background: linear-gradient(145deg, rgba(6, 78, 59, .88), rgba(6, 35, 31, .97));
}

.payment-return-confirmed .payment-return-icon {
  color: #6ee7b7;
}

.payment-return-cancel {
  border-color: rgba(251, 191, 36, .34);
  background: linear-gradient(145deg, rgba(69, 45, 8, .9), rgba(31, 25, 13, .96));
}

.payment-return-cancel .payment-return-icon {
  color: #fcd34d;
}

.payment-return-failed {
  border-color: rgba(248, 113, 113, .36);
  background: linear-gradient(145deg, rgba(69, 10, 10, .9), rgba(34, 14, 18, .97));
}

.payment-return-failed .payment-return-icon {
  color: #fca5a5;
}

.payment-return-spinner {
  border-color: rgba(125, 211, 252, .25);
  border-top-color: #7dd3fc;
  border-radius: 50%;
  animation: payment-return-spin .9s linear infinite;
}

@keyframes payment-return-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 380px) {
  .payment-return-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .payment-return-spinner {
    animation-duration: 1.8s;
  }
}
/* end 20260729_payment_returns_v24 */
/* 20260729_price_overlay_v25 */
.price-badge,
.category .template-card .price-badge,
.catalog-category .template-card .price-badge {
  top: 7px !important;
  right: 7px !important;
  left: auto !important;
  min-height: 0 !important;
  max-width: calc(100% - 14px);
  padding: 0 !important;
  gap: 5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  font-weight: 850 !important;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 2px 8px rgba(0, 0, 0, .85);
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.price-badge-dot {
  width: 10px !important;
  height: 10px !important;
  flex: 0 0 10px !important;
  border: 0 !important;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #dff8ff 0 18%, #59ddff 24% 46%, #1683ff 68% 100%) !important;
  box-shadow: 0 0 0 1px rgba(89, 221, 255, .38), 0 1px 5px rgba(22, 131, 255, .72) !important;
}

.selected-template-card > .selected-price-badge {
  min-height: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
}

@media (max-width: 350px) {
  .price-badge,
  .category .template-card .price-badge,
  .catalog-category .template-card .price-badge {
    min-height: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
    font-size: 10px !important;
  }

  .price-badge-dot {
    width: 9px !important;
    height: 9px !important;
    flex-basis: 9px !important;
  }
}
/* end 20260729_price_overlay_v25 */

/* catalog-mobile-layout-contract */
.price-badge,
.category .template-card .price-badge,
.catalog-category .template-card .price-badge {
  color: #f7c75c !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .98), 0 2px 8px rgba(0, 0, 0, .9);
}

.first-result-feature {
  --first-result-card-size: min(26vw, 98px);
  width: min(100%, 300px);
  max-width: 300px;
  grid-template-columns: 1fr;
  justify-content: center;
  align-items: start;
  row-gap: 6px;
}

.first-result-grid {
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: repeat(2, var(--first-result-card-size));
  gap: 6px;
}

.first-result-outcomes {
  grid-column: 1;
  grid-row: 2;
  width: var(--first-result-card-size);
  justify-self: center;
  align-self: start;
}

.first-result-create-frame {
  grid-column: 1;
  grid-row: 3;
}

.template-card-uncropped .template-media-fill,
.selected-template-card-uncropped .selected-template-media-fill {
  display: block !important;
  z-index: 0 !important;
}

.template-card-uncropped .template-img,
.selected-template-card.selected-template-card-uncropped[data-template] .selected-template-img {
  position: relative !important;
  z-index: 1 !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
}

.category .catalog-strip .template-card[data-template="trend-home-dance"] .template-img,
.category .catalog-strip .template-card[data-template="trend-home-dance"] .template-video,
.category .catalog-strip .template-card[data-template="trend-home-dance"] .template-video-fallback,
.selected-template-card[data-template="trend-home-dance"] .selected-template-img,
.selected-template-card[data-template="trend-home-dance"] .selected-template-video,
.selected-template-card[data-template="trend-home-dance"] .selected-template-video-fallback {
  object-fit: contain !important;
  object-position: center center !important;
  background: #05060a !important;
  transform: scale(.94) !important;
}

@media (max-width: 340px) {
  .first-result-feature {
    --first-result-card-size: min(25vw, 86px);
    padding: 5px;
  }

  .first-result-grid {
    gap: 5px;
  }
}
/* end catalog-mobile-layout-contract */

/* 20260730_uniform_cards_gold_price_video_replay */
.first-result-feature {
  --first-result-card-size: min(29vw, 112px);
  width: min(100%, 340px);
  max-width: 340px;
}

.first-result-feature .first-result-media-fill {
  display: none !important;
}

.first-result-replay {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0 0 0 2px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(4, 9, 18, .62);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  transform: translate(-50%, -50%);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .38);
  transition: opacity .18s ease, transform .18s ease;
}

.first-result-feature.hero-sync-ready .first-result-replay {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.82);
}

.first-result-feature.hero-play-blocked .first-result-replay {
  opacity: 1;
  pointer-events: auto;
}

.price-badge,
.category .template-card .price-badge,
.catalog-category .template-card .price-badge {
  top: 7px !important;
  right: auto !important;
  left: 7px !important;
  gap: 4px !important;
  color: #ffd765 !important;
  text-shadow: 0 1px 2px rgba(34, 20, 0, .95), 0 0 7px rgba(255, 193, 53, .72) !important;
}

.price-badge > span:last-child {
  background: linear-gradient(115deg, #fff3a6 0%, #ffd65a 32%, #f2a817 58%, #ffe98b 82%, #ffc43a 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 3px rgba(255, 194, 48, .44));
}

.price-badge-dot {
  width: 7px !important;
  height: 7px !important;
  flex: 0 0 7px !important;
  background: radial-gradient(circle at 34% 28%, #fff8c7 0 18%, #ffe16f 24% 45%, #f5ae20 68% 100%) !important;
  box-shadow: 0 0 0 1px rgba(255, 224, 107, .46), 0 0 6px rgba(255, 183, 28, .72) !important;
}

@media (max-width: 350px) {
  .first-result-feature {
    --first-result-card-size: min(28vw, 98px);
  }

  .price-badge-dot {
    width: 6px !important;
    height: 6px !important;
    flex-basis: 6px !important;
  }
}
/* end 20260730_uniform_cards_gold_price_video_replay */

/* Catalog media clarity contract. */
.template-card-uncropped .template-media-fill,
.selected-template-card-uncropped .selected-template-media-fill {
  display: block !important;
  filter: none !important;
  opacity: 1 !important;
  transform: scale(1.02) !important;
  background: transparent !important;
}

.template-card-uncropped .template-img,
.template-card-uncropped .template-video,
.template-card-uncropped .template-video-fallback,
.selected-template-card-uncropped .selected-template-img,
.selected-template-card-uncropped .selected-template-video,
.selected-template-card-uncropped .selected-template-video-fallback {
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
  transform: none !important;
}

.template-card[data-template="trend-home-dance"] .template-img,
.template-card[data-template="trend-home-dance"] .template-video,
.template-card[data-template="trend-home-dance"] .template-video-fallback,
.selected-template-card[data-template="trend-home-dance"] .selected-template-img,
.selected-template-card[data-template="trend-home-dance"] .selected-template-video,
.selected-template-card[data-template="trend-home-dance"] .selected-template-video-fallback {
  object-fit: contain !important;
  background: transparent !important;
  transform: none !important;
}

/* Photo previews use their native 3:4 frame; motion previews stay Reels 9:16. */
.template-card.template-card-uncropped:not(.template-card-video),
.selected-template-card.selected-template-card-uncropped:not(.selected-template-card-video) {
  aspect-ratio: 3 / 4 !important;
}

.template-card.template-card-video {
  aspect-ratio: 9 / 16 !important;
}

.template-card.template-card-uncropped.intrinsic-media-frame,
.selected-template-card.selected-template-card-uncropped.intrinsic-media-frame {
  aspect-ratio: var(--media-aspect) !important;
}

.template-card-uncropped .template-media-fill,
.selected-template-card-uncropped .selected-template-media-fill {
  display: none !important;
}

/* 20260730_fullbleed_coin_restore_v31 */
.price-badge-coin {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(70, 34, 0, .72)) drop-shadow(0 0 4px rgba(255, 195, 44, .36));
}

.coin-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, .34));
}

.selected-template-card.selected-template-card-uncropped:not(.selected-template-card-video) .selected-template-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.selected-template-card.selected-template-card-uncropped[data-template="restore-photo"] {
  aspect-ratio: 24 / 43 !important;
}

@media (max-width: 350px) {
  .price-badge-coin {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }
}
/* end 20260730_fullbleed_coin_restore_v31 */

/* 20260730_zero_edge_crisp_prices_v32 */
.template-card,
.selected-template-card,
.service-card,
.face-video-card,
.first-result-card,
.first-result-combo,
.first-result-video-card,
.outcome-card,
.example-card,
.reference-example {
  border: 0 !important;
}

.template-card,
.selected-template-card,
.service-card,
.first-result-card,
.first-result-combo,
.first-result-video-card {
  background-color: transparent !important;
}

.template-card {
  padding: 0 !important;
  appearance: none;
  -webkit-appearance: none;
}

.price-badge,
.category .template-card .price-badge,
.catalog-category .template-card .price-badge {
  font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif !important;
  font-size: 12.5px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1, "kern" 1;
}

.price-badge > span:last-child {
  background: linear-gradient(180deg, #fff9c9 0%, #ffe989 18%, #ffd24c 43%, #f3a719 68%, #ffd65b 86%, #fff0a0 100%) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: .22px rgba(92, 46, 0, .82);
  text-shadow: 0 -1px 0 rgba(255, 252, 210, .42), 0 1px 0 rgba(91, 42, 0, .92), 0 2px 3px rgba(0, 0, 0, .76) !important;
  filter: none !important;
}

.selected-template-card > .selected-price-badge {
  font-size: 13.5px !important;
}

@media (max-width: 350px) {
  .price-badge,
  .category .template-card .price-badge,
  .catalog-category .template-card .price-badge {
    font-size: 11.5px !important;
  }

  .selected-template-card > .selected-price-badge {
    font-size: 12.5px !important;
  }
}
/* end 20260730_zero_edge_crisp_prices_v32 */

/* 20260730_full_birthday_hero_fill_v33 */
.first-result-feature .first-result-source .first-result-media-main,
.first-result-feature .first-result-output .first-result-media-main,
.first-result-feature .first-result-video-card .first-result-media-main,
.first-result-feature .first-result-output .first-result-sync-poster,
.first-result-feature .first-result-video-card .first-result-sync-poster {
  object-fit: cover !important;
  object-position: center center !important;
}
/* end 20260730_full_birthday_hero_fill_v33 */

/* 20260731_uncropped_uniform_hero_v34 */
.first-result-feature .first-result-media-fill {
  position: absolute !important;
  inset: -9% !important;
  z-index: 0 !important;
  display: block !important;
  width: 118% !important;
  height: 118% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  filter: blur(14px) saturate(.92) brightness(.58) !important;
  transform: scale(1.04) !important;
  opacity: .94;
  pointer-events: none;
}

.first-result-feature .first-result-source .first-result-media-main,
.first-result-feature .first-result-output .first-result-media-main,
.first-result-feature .first-result-video-card .first-result-media-main,
.first-result-feature .first-result-output .first-result-sync-poster,
.first-result-feature .first-result-video-card .first-result-sync-poster {
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
}

.first-result-feature video.first-result-media-main {
  z-index: 1 !important;
}

.first-result-feature .first-result-sync-poster {
  z-index: 2 !important;
  opacity: 1;
}

.first-result-feature.hero-sync-ready .first-result-sync-poster {
  opacity: 0;
  pointer-events: none;
}

.first-result-feature.hero-play-blocked .first-result-sync-poster,
.first-result-feature[data-sync-paused="buffering"] .first-result-sync-poster {
  opacity: 1;
}
/* end 20260731_uncropped_uniform_hero_v34 */

/* 20260731_uniform_selected_reels_v34 */
.selected-template-card[data-template],
.selected-template-card.selected-template-card-video[data-template],
.selected-template-card.selected-template-card-uncropped[data-template],
.selected-template-card.intrinsic-media-frame[data-template] {
  position: relative;
  width: min(100%, 320px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 9 / 16 !important;
  margin: 0 auto 12px !important;
  overflow: hidden;
  background: #111217 !important;
}

.selected-template-card[data-template] .selected-template-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 9 / 16 !important;
}

.selected-template-card[data-template] .selected-template-media-fill {
  position: absolute !important;
  inset: -9% !important;
  z-index: 0 !important;
  display: block !important;
  width: 118% !important;
  height: 118% !important;
  object-fit: cover !important;
  filter: blur(14px) saturate(.92) brightness(.56) !important;
  transform: scale(1.04) !important;
  opacity: .96;
}

.selected-template-card[data-template] .selected-template-img,
.selected-template-card[data-template] .selected-template-video,
.selected-template-card[data-template] .selected-template-video-fallback {
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
  transform: none !important;
}
/* end 20260731_uniform_selected_reels_v34 */


/* 20260731_uniform_selected_specificity_v35 */
#app .screen .selected-template-card[data-template],
#app .screen .selected-template-card.selected-template-card-video[data-template],
#app .screen .selected-template-card.selected-template-card-uncropped[data-template],
#app .screen .selected-template-card.intrinsic-media-frame[data-template] {
  position: relative !important;
  width: min(100%, 320px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 9 / 16 !important;
  overflow: hidden !important;
  background: #111217 !important;
}

#app .screen .selected-template-card[data-template] > .selected-template-media-fill,
#app .screen .selected-template-card[data-template] .selected-template-media > .selected-template-media-fill {
  display: block !important;
  position: absolute !important;
  inset: -9% !important;
  z-index: 0 !important;
  width: 118% !important;
  height: 118% !important;
  object-fit: cover !important;
  filter: blur(14px) saturate(.92) brightness(.56) !important;
  transform: scale(1.04) !important;
  opacity: .96 !important;
}

#app .screen .selected-template-card[data-template] > .selected-template-img,
#app .screen .selected-template-card[data-template] .selected-template-media > .selected-template-video,
#app .screen .selected-template-card[data-template] .selected-template-media > .selected-template-video-fallback {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
  transform: none !important;
}
/* end 20260731_uniform_selected_specificity_v35 */

/* 20260731_uncropped_safe_area_v37
 * The 9:16 frame stays identical everywhere. Foreground media is kept
 * clear of price/title overlays, so its top and bottom remain visible.
 */
#app .screen .selected-template-card[data-template] > .selected-template-img,
#app .screen .selected-template-card[data-template] .selected-template-media > .selected-template-img,
#app .screen .selected-template-card[data-template] .selected-template-media > .selected-template-video,
#app .screen .selected-template-card[data-template] .selected-template-media > .selected-template-video-fallback {
  inset: 22px 0 auto !important;
  width: 100% !important;
  height: calc(100% - 26px) !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
  transform: none !important;
}

#app .screen .selected-template-card[data-template] > .selected-template-media-fill,
#app .screen .selected-template-card[data-template] .selected-template-media > .selected-template-media-fill {
  filter: blur(10px) saturate(.96) brightness(.78) !important;
  opacity: 1 !important;
}

.first-result-feature .first-result-source .first-result-media-main,
.first-result-feature .first-result-output .first-result-media-main,
.first-result-feature .first-result-video-card .first-result-media-main,
.first-result-feature .first-result-output .first-result-sync-poster,
.first-result-feature .first-result-video-card .first-result-sync-poster {
  inset: 4px 0 auto !important;
  width: 100% !important;
  height: calc(100% - 22px) !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
}

.first-result-feature .first-result-media-fill {
  filter: blur(10px) saturate(.96) brightness(.78) !important;
  opacity: 1 !important;
}
/* end 20260731_uncropped_safe_area_v37 */

/* 20260731_full_photo_frame_v38
 * Photo files stay unchanged, but every source pixel is mapped into the
 * complete existing 9:16 photo frame. Video sizing remains untouched.
 */
#app .screen .selected-template-card[data-template] > .selected-template-img,
#app .screen .selected-template-card[data-template] .selected-template-media > .selected-template-img,
.first-result-feature .first-result-source .first-result-media-main {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: fill !important;
  object-position: center center !important;
  background: transparent !important;
  transform: none !important;
}
/* end 20260731_full_photo_frame_v38 */

/* 20260802_all_video_full_frame_v40
 * All published catalog/detail and creation-hero videos are native 9:16, so
 * they can fill their complete existing frames without changing geometry.
 */
#app .screen .selected-template-card.selected-template-card-video[data-template] .selected-template-media > .selected-template-video,
#app .screen .selected-template-card.selected-template-card-video[data-template] .selected-template-media > .selected-template-video-fallback,
.first-result-feature .first-result-output .first-result-media-main,
.first-result-feature .first-result-video-card .first-result-media-main,
.first-result-feature .first-result-output .first-result-sync-poster,
.first-result-feature .first-result-video-card .first-result-sync-poster {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
  transform: none !important;
}
/* end 20260802_all_video_full_frame_v40 */

/* 20260802_couple_illustration_full_rounded_v41
 * Keep the complete couple illustration edge-to-edge in its existing detail
 * frame and make the foreground layer follow the card rounding explicitly.
 */
#app .screen .selected-template-card[data-template="trend-couple-illustration"] {
  overflow: hidden !important;
  border-radius: 22px !important;
  isolation: isolate;
}

#app .screen .selected-template-card[data-template="trend-couple-illustration"] > .selected-template-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: fill !important;
  object-position: center center !important;
  border-radius: inherit !important;
  clip-path: inset(0 round 22px) !important;
  background: transparent !important;
  transform: none !important;
}
/* end 20260802_couple_illustration_full_rounded_v41 */

/* 20260802_exhibit_inner_padding_fill_v43
 * Remove the same visible source padding from the selected Exhibit preview
 * without changing the existing 9:16 detail frame.
 */
#app .screen .selected-template-card.selected-template-card-video[data-template="trend-home-dance"],
#app .screen .selected-template-card.selected-template-card-video[data-template="trend-home-dance"] .selected-template-media {
  overflow: hidden !important;
  border-radius: 22px !important;
  isolation: isolate;
}

#app .screen .selected-template-card.selected-template-card-video[data-template="trend-home-dance"] .selected-template-media > .selected-template-video,
#app .screen .selected-template-card.selected-template-card-video[data-template="trend-home-dance"] .selected-template-media > .selected-template-video-fallback {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: inherit !important;
  transform: scale(1.08) !important;
  transform-origin: center center !important;
}
/* end 20260802_exhibit_inner_padding_fill_v43 */

/* 20260803_wallet_confirm_hero_full_v44
 * Card and Stars use a dedicated confirmation step. All three home hero
 * blocks use a wider 16:9 frame and preserve the complete source media.
 */
.wallet-confirm-head {
  margin-bottom: 14px;
}

.wallet-confirm-card {
  display: grid;
  gap: 8px;
}

.wallet-confirm-caption,
.wallet-confirm-legal-title {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.wallet-confirm-package {
  display: grid;
  align-content: center;
  min-height: 112px;
  gap: 7px;
  padding: 16px 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: #171821;
}

.wallet-confirm-email-field {
  margin-top: 16px;
  margin-bottom: 0;
}

.wallet-confirm-legal-title {
  margin-top: 16px;
}

.wallet-confirm-legal-title + .wallet-legal-consents {
  margin-top: 0;
}

.first-result-feature .first-result-grid {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.first-result-feature .first-result-outcomes {
  width: 100% !important;
  max-width: 100% !important;
}

.first-result-feature .first-result-card,
.first-result-feature .first-result-card.intrinsic-media-frame,
.first-result-feature .first-result-combo,
.first-result-feature .first-result-combo.intrinsic-media-frame {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9 !important;
}

.first-result-feature .first-result-media-fill {
  display: none !important;
}

.first-result-feature .first-result-source .first-result-media-main,
.first-result-feature .first-result-output .first-result-media-main,
.first-result-feature .first-result-video-card .first-result-media-main,
.first-result-feature .first-result-output .first-result-sync-poster,
.first-result-feature .first-result-video-card .first-result-sync-poster {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
  transform: none !important;
}
/* end 20260803_wallet_confirm_hero_full_v44 */

/* 20260805_thoughtful_portrait_full_rounded_v45
 * Keep Thoughtful Portrait edge-to-edge in the unchanged detail frame and
 * make its foreground layer follow the card rounding explicitly.
 */
#app .screen .selected-template-card[data-template=photo-men-009] {
  overflow: hidden !important;
  border-radius: 22px !important;
  isolation: isolate;
}

#app .screen .selected-template-card[data-template=photo-men-009] > .selected-template-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: fill !important;
  object-position: center center !important;
  border-radius: inherit !important;
  clip-path: inset(0 round 22px) !important;
  background: transparent !important;
  transform: none !important;
}
/* end 20260805_thoughtful_portrait_full_rounded_v45 */

/* 20260805_thoughtful_portrait_natural_cover_v46
 * Match the Big Man presentation without stretching the 3:4 source.
 */
#app .screen .selected-template-card[data-template="photo-men-009"] > .selected-template-img {
  object-fit: cover !important;
  object-position: center center !important;
}
/* end 20260805_thoughtful_portrait_natural_cover_v46 */

/* selected_template_edge_to_edge_media_20260805
 * Match the catalog: one sharp layer fills each selected template preview,
 * with no duplicate blur and no letterboxing.
 */
#app .screen .selected-template-card[data-template] > .selected-template-media-fill,
#app .screen .selected-template-card[data-template] .selected-template-media > .selected-template-media-fill {
  display: none !important;
  opacity: 0 !important;
  filter: none !important;
  transform: none !important;
}

#app .screen .selected-template-card[data-template] > .selected-template-img,
#app .screen .selected-template-card[data-template] .selected-template-media > .selected-template-img,
#app .screen .selected-template-card.selected-template-card-video[data-template] .selected-template-media > .selected-template-video,
#app .screen .selected-template-card.selected-template-card-video[data-template] .selected-template-media > .selected-template-video-fallback {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: transparent !important;
  border-radius: inherit !important;
  clip-path: inset(0 round 22px) !important;
  filter: none !important;
  transform: none !important;
  transform-origin: center center !important;
}
/* end selected_template_edge_to_edge_media_20260805 */

/* video_creation_three_equal_cards_20260805
 * Restore one row of three equal Reels frames, slightly larger than the
 * previous three-card layout, while keeping one sharp edge-to-edge layer.
 */
.first-result-feature {
  width: min(100%, 376px) !important;
  max-width: 376px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  padding: 6px !important;
  gap: 5px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(145deg, rgba(31, 24, 48, .98), rgba(12, 10, 22, .98)) !important;
  box-shadow:
    0 14px 34px rgba(5, 3, 12, .34),
    inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

.first-result-feature .first-result-grid {
  grid-column: 1 / span 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

.first-result-feature .first-result-outcomes {
  grid-column: 3 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  align-self: start !important;
}

.first-result-feature .first-result-create-frame {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  width: 100% !important;
}

.first-result-feature .first-result-card,
.first-result-feature .first-result-card.intrinsic-media-frame,
.first-result-feature .first-result-combo,
.first-result-feature .first-result-combo.intrinsic-media-frame,
.first-result-feature .first-result-video-card {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 9 / 16 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  isolation: isolate;
}

.first-result-feature .first-result-source .first-result-media-main,
.first-result-feature .first-result-output .first-result-media-main,
.first-result-feature .first-result-video-card .first-result-media-main,
.first-result-feature .first-result-output .first-result-sync-poster,
.first-result-feature .first-result-video-card .first-result-sync-poster {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center 44% !important;
  border-radius: inherit !important;
  clip-path: inset(0 round 14px) !important;
  background: transparent !important;
  filter: none !important;
  transform: none !important;
}
/* end video_creation_three_equal_cards_20260805 */

/* video_creation_two_over_one_reference_20260806_v47
 * Match the user's reference geometry: two equal input blocks on top and one
 * larger full-width result block below. Existing media assets stay unchanged.
 */
.first-result-feature {
  width: min(100%, 376px) !important;
  max-width: 376px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  padding: 8px !important;
  gap: 8px !important;
  border-radius: 22px !important;
}

.first-result-feature .first-result-grid {
  grid-column: 1 !important;
  grid-row: 1 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.first-result-feature .first-result-outcomes {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 100% !important;
}

.first-result-feature .first-result-create-frame {
  grid-column: 1 !important;
  grid-row: 3 !important;
}

.first-result-feature .first-result-card,
.first-result-feature .first-result-card.intrinsic-media-frame {
  aspect-ratio: 4 / 5 !important;
  border-radius: 22px !important;
}

.first-result-feature .first-result-combo,
.first-result-feature .first-result-combo.intrinsic-media-frame,
.first-result-feature .first-result-video-card {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  isolation: isolate;
}
/* end video_creation_two_over_one_reference_20260806_v47 */

/* creation_hero_single_sharp_layer_20260806_v49
 * Remove the obsolete enlarged blurred duplicate from all three hero cards.
 * The existing foreground photo/video/poster remains the only visible layer.
 */
.first-result-feature .first-result-media-fill,
.first-result-feature img.first-result-media-fill {
  display: none !important;
  opacity: 0 !important;
  filter: none !important;
  transform: none !important;
}

.first-result-feature .first-result-media-main,
.first-result-feature .first-result-sync-poster,
.first-result-feature video.first-result-media-main {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
}
/* end creation_hero_single_sharp_layer_20260806_v49 */

/* result_cat_head_inside_frame_20260806_v53
 * Keep the original sharp cat background and unchanged square result frame.
 * Reposition only the result media so the complete head remains visible.
 */
.first-result-feature .first-result-video-card-main .first-result-media-main,
.first-result-feature .first-result-video-card-main .first-result-sync-poster,
.first-result-feature .first-result-video-card-main video.first-result-media-main {
  object-fit: cover !important;
  object-position: center 10% !important;
}
/* end result_cat_head_inside_frame_20260806_v53 */
