: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);
}

.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: min(122px, 35vw);
  --first-result-source-size: min(128px, 37vw);
  margin: 0 auto 8px;
  max-width: 296px;
  padding: 6px;
  display: grid;
  gap: 5px;
  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-grid {
  display: grid;
  grid-template-columns: repeat(2, var(--first-result-source-size));
  justify-content: center;
  gap: 6px;
}

.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 {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 34%, rgba(20, 119, 255, .14), transparent 48%),
    #050712;
}

.first-result-source img {
  object-position: center center;
}

.first-result-output img {
  object-position: center center;
}

.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-outcomes-title {
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 1000;
}

.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);
}

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

.first-result-video-card-main {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.first-result-video-card-main video {
  object-fit: cover;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 163, 255, .16), transparent 48%),
    #050712;
}

.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.first-result-video-card-main video {
  object-fit: cover;
  object-position: center center;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 163, 255, .16), transparent 48%),
    #050712;
}

.first-result-video-card span {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 7px;
  z-index: 2;
  color: white;
  font-size: 12px;
  line-height: 1;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
}

.first-result-video-card-main span {
  left: 8px;
  right: 8px;
  bottom: 7px;
  font-size: clamp(12px, 3.6vw, 16px);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, .88),
    2px 0 0 rgba(0, 0, 0, .7),
    -2px 0 0 rgba(0, 0, 0, .7),
    0 8px 18px rgba(0, 0, 0, .9);
}

.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);
}

.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;
}

.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-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.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: preview-pan 9s ease-in-out infinite alternate;
}

.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: audio-bars 1s ease-in-out infinite alternate;
}

.motion-paint::after {
  background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .28), transparent 10%);
  animation: paint-dot 2.4s ease-in-out infinite;
}

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

.category {
  margin-top: 12px;
}

.category.hidden .template-grid {
  display: 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 .small-link {
  display: none;
}

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

.tools-screen .tools-category .category-title {
  display: none;
}

.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: 230px;
  display: grid;
  grid-template-rows: 154px auto 38px;
  background: #101827;
}

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

.template-video {
  position: relative;
  z-index: 0;
  display: none;
  width: 100%;
  height: 154px;
  object-fit: contain;
  background: #05060a;
}

.template-video-fallback {
  display: block;
  width: 100%;
  height: 154px;
  object-fit: contain;
  background: #101119;
}

.template-card-video.video-ready .template-video {
  display: block;
}

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

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

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

.template-card-video .template-text {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  padding: 8px 9px 4px;
}

.template-open-btn {
  position: relative;
  z-index: 2;
  min-height: 38px;
  margin: 0 8px 8px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: white;
  font-weight: 900;
}

.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 .selected-template-video {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: min(58vh, 360px);
  object-fit: contain;
  background: #05060a;
}

.selected-template-video-fallback {
  display: none;
  width: 100%;
  height: min(58vh, 360px);
  object-fit: contain;
  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-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;
}

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);
}

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

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

.bulk-upload-head {
  display: block;
}

.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 {
  min-height: 120px;
  border: 1px dashed #3d4050;
  border-radius: var(--radius);
  background: #101119;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 12px;
  text-align: center;
  color: var(--muted);
}

.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);
}

.upload-title {
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
}

.upload-meta {
  font-size: 12px;
}

.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;
}

.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;
}

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

.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;
}

.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 {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #05060a;
}

.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;
}

.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: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-bottom: 14px;
}

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

.wallet-back-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #f4f7ff;
  font-size: 26px;
  line-height: 1;
}

.wallet-method-note {
  margin: 0 36px 0 0;
  color: #ffffff;
  text-align: center;
  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;
}

.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: contain;
  border-radius: var(--radius);
  background: #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;
  }
}
