:root {
  color-scheme: dark;
  --bg: #08090d;
  --panel: #11121a;
  --panel-2: #181a24;
  --line: #292b38;
  --text: #f8fafc;
  --muted: #a8adbd;
  --soft: #74798b;
  --purple: #b000ff;
  --purple-2: #741bff;
  --cyan: #29c7e8;
  --green: #54d680;
  --amber: #f2b84b;
  --red: #ff6464;
  --radius: 8px;
  --bottom: 74px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 20% 0%, rgba(41, 199, 232, .12), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(176, 0, 255, .16), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: Inter, Arial, system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.app-shell {
  width: min(100vw, 460px);
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, #090a10 0%, #0b0b12 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(8, 9, 13, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.brand {
  min-width: 0;
}

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

.brand-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.notification-btn {
  border-color: rgba(176, 0, 255, .5);
  background: linear-gradient(180deg, #3a1858 0%, #251039 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, #f0abfc, #b000ff);
  color: white;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(176, 0, 255, .32);
}

.screen {
  display: none;
  padding: 14px 14px calc(var(--bottom) + 20px);
}

.screen.active {
  display: block;
}

.hero-action {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  padding: 18px;
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  color: white;
  background: linear-gradient(135deg, #8a00ff 0%, #d900ff 55%, #ffb84d 140%);
  box-shadow: 0 12px 34px rgba(176, 0, 255, .28);
}

.hero-action strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.hero-action span {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  opacity: .9;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .18);
  font-size: 26px;
}

.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: 22px;
  line-height: 1.1;
}

.page-title {
  margin-bottom: 14px;
  color: #d946ef;
}

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

.back-link {
  width: auto;
  margin-bottom: 12px;
  color: white;
  border-color: rgba(176, 0, 255, .44);
  background: rgba(176, 0, 255, .18);
}

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

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

.service-card {
  min-height: 162px;
  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: cover;
  background-position: center;
}

.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(176, 0, 255, .4);
}

.service-media {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  color: #262633;
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 2;
}

.service-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .18);
  color: inherit;
}

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

.service-hint {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, .76);
  font-size: 11px;
  line-height: 1.25;
  min-height: 28px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

.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(217, 70, 239, .24), 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(217, 70, 239, .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(217, 70, 239, .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: linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, .16) 48%, transparent 56% 100%);
  animation: preview-scan 3.4s ease-in-out infinite;
}

.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: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: #f5d0fe;
  background: rgba(176, 0, 255, .18);
  font-size: 10px;
  font-weight: 800;
}

.template-card {
  min-height: 172px;
  text-align: left;
  color: white;
  position: relative;
  isolation: isolate;
  background-color: #181a24;
  background-size: cover;
  background-position: center;
}

.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: cover;
  object-position: center;
  display: block;
}

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

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

.template-title {
  font-size: 13px;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
}

.template-sub {
  margin-top: 5px;
  color: rgba(255, 255, 255, .76);
  font-size: 11px;
  line-height: 1.25;
}

.selected-template-card {
  min-height: 286px;
  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-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.selected-template-overlay {
  position: relative;
  z-index: 1;
  min-height: 286px;
  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: rgba(255, 255, 255, .86);
  font-size: 10px;
  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: rgba(255, 255, 255, .82);
  font-size: 13px;
  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: #d9dce7;
  font-size: 12px;
  font-weight: 700;
}

select,
input,
textarea {
  width: 100%;
  color: var(--text);
  background: #11131b;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 42px;
  padding: 10px 12px;
  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(176, 0, 255, .14);
}

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

.upload-box {
  min-height: 112px;
  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-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #1d2030;
  display: grid;
  place-items: center;
  color: var(--green);
}

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

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

.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: 6px;
  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: 14px;
}

.voice-samples-head span {
  color: var(--muted);
  font-size: 11px;
  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(176, 0, 255, .82);
  box-shadow: 0 0 0 2px rgba(176, 0, 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: 8px;
  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: 13px;
  line-height: 1.15;
}

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

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

.voice-play {
  min-height: 32px;
  border: 1px solid #34384a;
  border-radius: 7px;
  background: #202332;
  color: white;
  font-size: 11px;
  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: 13px;
  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: 15px;
}

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

.reference-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 70px;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x mandatory;
}

.reference-example {
  height: 126px;
  border: 0;
  border-radius: 6px;
  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: cover;
}

.outcome-img {
  object-fit: contain;
  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: 6px;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  font-size: 9px;
  line-height: 1.15;
  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: 15px;
}

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

.outcome-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(188px, 68%);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2px;
}

.outcome-card {
  min-height: 324px;
  aspect-ratio: 9 / 14;
  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::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: 17px;
  line-height: 1.12;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .84);
}

.outcome-copy span {
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  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: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

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

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

.guide-head span {
  color: var(--muted);
  font-size: 11px;
  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: 12px;
}

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

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

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

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

.example-sub {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  color: rgba(255, 255, 255, .76);
  font-size: 10px;
  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: linear-gradient(135deg, var(--purple), #e000ff);
}

.secondary-btn {
  background: #202332;
  border: 1px solid var(--line);
}

.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: 12px;
  line-height: 1.35;
}

.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-audio,
.job-audio {
  width: 100%;
  min-width: 0;
}

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

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  transform: translateX(-50%);
  width: min(100vw, 460px);
  height: var(--bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: rgba(9, 10, 16, .94);
  border-top: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}

.nav-btn {
  height: 58px;
  border: 0;
  background: transparent;
  color: var(--soft);
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 800;
}

.nav-btn .nav-ico {
  font-size: 20px;
}

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

.nav-generate {
  width: 50px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple-2), var(--purple));
  color: white;
  margin: 0 auto;
  font-size: 23px;
  display: grid;
  place-items: center;
}

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

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

.muted {
  color: var(--muted);
  font-size: 12px;
  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: var(--muted);
  font-size: 11px;
}

.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: #222433;
}

.audio-preview {
  display: grid;
  place-items: center;
  color: #f0abfc;
  font-size: 30px;
  font-weight: 900;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(240, 171, 252, .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(240, 171, 252, .62) 64% 72%, transparent 72%),
    #202332;
}

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

.job-meta {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

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

.job-link {
  display: inline-flex;
  margin-top: 8px;
  color: #a5f3fc;
  font-size: 11px;
  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: 10px;
  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: rgba(176, 0, 255, .18);
}

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

.row > * {
  flex: 1;
}

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

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

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

  .hero-action strong {
    font-size: 20px;
  }
}
