/* ============================== tokens ============================== */
:root {
  --bg: #07070b;
  --bg-soft: #0b0b11;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: #101017;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f7;
  --muted: #9a9aa9;
  --muted-2: #6f6f80;
  --accent: #ff7a45;
  --accent-2: #ff3d8b;
  --accent-3: #8b5cf6;
  --ok: #3ddc97;
  --warn: #ffc857;
  --danger: #ff5a6a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: rgba(255, 61, 139, 0.35);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #08080d;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  border: 2px solid #08080d;
}

/* ============================== backdrop ============================== */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 12% -5%, rgba(255, 122, 69, 0.16), transparent 62%),
    radial-gradient(50% 42% at 88% 2%, rgba(139, 92, 246, 0.16), transparent 65%),
    radial-gradient(55% 45% at 55% 108%, rgba(255, 61, 139, 0.1), transparent 60%);
}

.bg-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 20%, transparent 100%);
}

/* ============================== layout ============================== */
.header-inner,
.view,
.footer-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.view {
  min-height: 62vh;
  padding-top: 36px;
  padding-bottom: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 7, 11, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ff8a3d, #ff3d8b 55%, #8b5cf6);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 61, 139, 0.35);
}

.brand-text {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.18s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.18s ease;
}

.balance-pill:hover {
  border-color: var(--line-strong);
}

/* ============================== buttons ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease, opacity 0.16s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ff8a3d, #ff3d8b 55%, #a855f7);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 61, 139, 0.22);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 38px rgba(255, 61, 139, 0.32);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
}

.btn-danger {
  background: linear-gradient(135deg, #ff6b57, #ff3d5a);
  color: #fff;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.arrow {
  font-size: 1.05em;
  transition: transform 0.18s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  color: var(--muted);
}

.icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.linkish {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.22);
  text-underline-offset: 3px;
}

.linkish:hover {
  color: var(--text);
}

/* ============================== cards ============================== */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 24px;
}

.panel h2 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.panel-sub {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

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

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.8rem;
}

.right {
  text-align: right;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
}

.positive {
  color: var(--ok);
}

.negative {
  color: #ff6b7a;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
}

.pill--accent {
  border-color: rgba(255, 122, 69, 0.45);
  background: rgba(255, 122, 69, 0.12);
  color: #ffb28f;
}

/* ============================== typography ============================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffa16f;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(255, 61, 139, 0.8);
}

.grad-text {
  background: linear-gradient(100deg, #ffc08a 0%, #ff5c9d 45%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.fineprint {
  color: var(--muted-2);
  font-size: 0.76rem;
  line-height: 1.65;
}

/* ============================== hero ============================== */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
  padding: 42px 0 58px;
}

.hero h1 {
  margin: 20px 0;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 780;
}

.hero .lede {
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted-2);
  font-size: 0.8rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-visual {
  position: relative;
  padding: 12px 0;
}

.demo-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #000;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 122, 69, 0.08),
    0 0 80px rgba(255, 61, 139, 0.12);
}

.demo-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.demo-chip {
  position: absolute;
  z-index: 2;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.demo-chip--ai {
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

.demo-chip--cc {
  right: 14px;
  bottom: 14px;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 14, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  animation: float 7s ease-in-out infinite;
}

.float-card--a {
  right: -14px;
  top: 34px;
}

.float-card--b {
  left: -20px;
  bottom: 26px;
  animation-delay: -3.2s;
}

.float-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.float-card strong {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.float-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

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

/* ============================== stats ============================== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.stats-strip > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 24px;
  background: var(--bg);
}

.stats-strip strong {
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.stats-strip span {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ============================== sections ============================== */
.section {
  margin-top: 96px;
}

.section--tight {
  margin-top: 80px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  letter-spacing: -0.03em;
}

.section-head p {
  color: var(--muted);
  line-height: 1.7;
}

.section-note {
  margin-top: 22px;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.8rem;
}

/* ============================== pricing ============================== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.price-card--featured {
  border-color: rgba(255, 122, 69, 0.45);
  box-shadow: 0 26px 70px rgba(255, 61, 139, 0.12);
}

.price-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.price-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.price-card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.price-sub {
  color: var(--muted);
  font-size: 0.84rem;
}

.price-amount {
  margin-top: 8px;
  font-size: 2.5rem;
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-amount span {
  margin-left: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.price-est {
  color: var(--muted-2);
  font-size: 0.8rem;
}

.price-list {
  margin: 6px 0 18px;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--muted);
  font-size: 0.86rem;
}

.price-list li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--ok);
  font-size: 0.8em;
}

.price-card .btn {
  margin-top: auto;
}

/* ============================== steps ============================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.step-num {
  display: block;
  margin-bottom: 22px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.step p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ============================== faq ============================== */
.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 4px 22px;
  max-width: 720px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ============================== cta band ============================== */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 96px;
  padding: 44px 46px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(255, 122, 69, 0.2), transparent 60%),
    radial-gradient(80% 140% at 100% 100%, rgba(139, 92, 246, 0.22), transparent 62%),
    rgba(255, 255, 255, 0.03);
}

.cta-band h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.03em;
}

.cta-band p {
  color: var(--muted);
}

/* ============================== forms ============================== */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field > span,
.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

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

.field-head > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.field-head strong {
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.char-count {
  font-size: 0.74rem;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.optional {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted-2);
  margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(255, 122, 69, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.12);
  background: rgba(0, 0, 0, 0.34);
}

textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.65;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 90, 106, 0.35);
  background: rgba(255, 90, 106, 0.1);
  color: #ffb3ba;
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.form-hint.warn {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 200, 87, 0.28);
  background: rgba(255, 200, 87, 0.08);
  color: #ffd98a;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent-2);
  flex: 0 0 auto;
}

.check-links {
  margin: -8px 0 0 26px;
  color: var(--muted-2);
  font-size: 0.8rem;
}

.check-links .linkish {
  font-size: 0.8rem;
}

.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-form input {
  flex: 1;
}

/* ============================== auth ============================== */
.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 440px) 280px;
  gap: 56px;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 30px 0;
}

.auth-card {
  padding: 34px;
}

.auth-head {
  margin-bottom: 24px;
}

.auth-head h1 {
  margin: 10px 0 8px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.auth-head p {
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-switch {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-switch a {
  color: #ffa16f;
  font-weight: 600;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.auth-point {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.auth-point strong {
  font-size: 1.15rem;
}

.auth-point span {
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-note {
  color: var(--muted-2);
  font-size: 0.75rem;
  line-height: 1.6;
}

/* ============================== studio ============================== */
.studio-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.studio-head h1 {
  margin: 8px 0 6px;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.studio-head p {
  color: var(--muted);
  font-size: 0.9rem;
}

.studio-balance {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.84rem;
  color: var(--muted);
  flex: 0 0 auto;
}

.studio-balance strong {
  color: var(--text);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.studio-grid {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.studio-grid--simple {
  grid-template-columns: 460px minmax(0, 1fr);
}

.simple-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-dot {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(255, 61, 139, 0.25);
}

.simple-head strong {
  display: block;
  font-size: 0.95rem;
}

.simple-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.framebox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.upload--compact {
  width: 100%;
  min-height: 84px;
  flex-direction: column;
  gap: 6px;
}

.upload-plus {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--muted);
}

.upload--compact img {
  max-height: 150px;
}

.avatar-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px;
}

.avatar-card {
  display: flex;
  flex: 0 0 82px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.avatar-card img {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
}

.avatar-card > span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.72rem;
}

.avatar-card.selected {
  border-color: rgba(255, 122, 69, 0.65);
  box-shadow: 0 0 0 2px rgba(255, 122, 69, 0.14);
}

.avatar-card--add {
  justify-content: center;
  min-height: 104px;
  border-style: dashed;
  color: var(--muted);
}

.avatar-card--add span {
  font-size: 1.2rem;
}

.avatar-card--add small {
  font-size: 0.72rem;
}

.avatar-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.avatar-empty > span:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.2rem;
}

.avatar-empty strong {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
}

.avatar-empty small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.72rem;
}

.avatar-loading {
  color: var(--muted-2);
  font-size: 0.78rem;
}

input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
}

.advanced {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.advanced summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

.advanced summary::-webkit-details-marker {
  display: none;
}

.advanced summary em {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--muted-2);
}

.advanced summary::before {
  content: "＋";
  order: 2;
  color: var(--muted);
  font-weight: 400;
}

.advanced[open] summary::before {
  content: "－";
}

.advanced-summary {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 500;
  text-align: right;
}

.advanced-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 14px 16px;
}

.cost-row--simple {
  padding: 16px;
  border: 1px solid rgba(255, 122, 69, 0.2);
  border-radius: 14px;
  background: rgba(255, 122, 69, 0.05);
}

.generate-hint {
  margin-top: -4px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.active-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 200, 87, 0.28);
  border-radius: 16px;
  background: rgba(255, 200, 87, 0.07);
}

.active-banner strong {
  display: block;
  font-size: 0.92rem;
}

.active-banner p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.spinner--sm {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.progress--determinate i {
  width: 0;
  animation: none;
  transition: width 0.4s ease;
}

.composer {
  position: sticky;
  top: 88px;
  padding: 22px;
}

.composer textarea {
  min-height: 128px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

.chips--wrap {
  flex-wrap: wrap;
}

.chip {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.chip.selected {
  color: #fff;
  border-color: rgba(255, 122, 69, 0.6);
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.22), rgba(255, 61, 139, 0.18));
}

.chip--soft {
  background: transparent;
  border-style: dashed;
  font-weight: 500;
}

.model-grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.model-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 13px 15px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.model-card:hover {
  border-color: var(--line-strong);
}

.model-card.selected {
  border-color: rgba(255, 122, 69, 0.6);
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.12), rgba(255, 61, 139, 0.08));
}

.model-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.model-sub {
  grid-column: 1;
  color: var(--muted-2);
  font-size: 0.74rem;
}

.model-price {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.model-price em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted-2);
}

.model-badge {
  position: absolute;
  top: -7px;
  right: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.control-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.control-row .chips {
  flex-wrap: wrap;
}

input[type="range"] {
  width: 100%;
  height: 26px;
  accent-color: var(--accent-2);
  cursor: pointer;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: -4px;
  color: var(--muted-2);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.switch-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.switch-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.switch-copy strong {
  font-size: 0.86rem;
  font-weight: 650;
}

.switch-copy small {
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1.5;
}

.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  transition: background 0.18s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.switch-row input:checked + .switch {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.switch-row input:checked + .switch::after {
  transform: translateX(18px);
}

.switch-row input:focus-visible + .switch {
  outline: 2px solid rgba(255, 122, 69, 0.7);
  outline-offset: 2px;
}

.upload {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease;
  overflow: hidden;
}

.upload:hover {
  border-color: rgba(255, 122, 69, 0.5);
  background: rgba(255, 122, 69, 0.04);
}

.upload-hint {
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.6;
}

.upload img {
  width: 100%;
  max-height: 170px;
  object-fit: cover;
  border-radius: 9px;
}

.cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cost-row > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.cost-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.cost-row strong {
  font-size: 1.42rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.cost-row small {
  color: var(--muted-2);
  font-size: 0.72rem;
  text-align: right;
}

.notice {
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.notice--warn {
  margin-bottom: 20px;
  border-color: rgba(255, 200, 87, 0.3);
  background: rgba(255, 200, 87, 0.07);
  color: #ffe1a0;
}

.notice--ok {
  margin-bottom: 20px;
  border-color: rgba(61, 220, 151, 0.3);
  background: rgba(61, 220, 151, 0.07);
  color: #a8f0cf;
}

/* ============================== results ============================== */
.results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.results-head h2 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.results-head p {
  color: var(--muted-2);
  font-size: 0.8rem;
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.job {
  padding: 18px;
}

.job-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  min-width: 0;
}

.job-meta {
  color: var(--muted-2);
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-top time {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 0.72rem;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 650;
  border: 1px solid transparent;
}

.status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status--queued {
  color: #d8c2ff;
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.12);
}

.status--running {
  color: #ffd08a;
  border-color: rgba(255, 200, 87, 0.35);
  background: rgba(255, 200, 87, 0.1);
}

.status--running i {
  animation: pulse 1.2s ease-in-out infinite;
}

.status--ok {
  color: #8cf3c6;
  border-color: rgba(61, 220, 151, 0.3);
  background: rgba(61, 220, 151, 0.1);
}

.status--fail {
  color: #ffb3ba;
  border-color: rgba(255, 90, 106, 0.3);
  background: rgba(255, 90, 106, 0.1);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 200, 87, 0.4);
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 0 4px rgba(255, 200, 87, 0);
  }
}

.job-prompt {
  margin-bottom: 12px;
  color: #d7d7e0;
  font-size: 0.88rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.job-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.ai-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.66rem;
  font-weight: 650;
  color: #fff;
  pointer-events: none;
}

.job-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 20px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
  background:
    radial-gradient(60% 70% at 50% 40%, rgba(255, 122, 69, 0.07), transparent 70%),
    #08080d;
}

.job-placeholder--error {
  color: #ffb3ba;
  background: rgba(255, 90, 106, 0.04);
}

.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent-2);
  animation: spin 0.9s linear infinite;
}

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

.progress {
  width: min(240px, 70%);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  animation: slide 1.5s ease-in-out infinite;
}

@keyframes slide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

.job-error {
  margin-top: 10px;
  color: #ffa3ac;
  font-size: 0.78rem;
  line-height: 1.55;
}

.job-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.job-cost {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.job-actions {
  display: flex;
  gap: 8px;
}

.btn.danger {
  color: #ff9aa5;
}

.empty-state {
  padding: 46px 26px;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
  font-size: 1.4rem;
}

.empty-state h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.empty-state p {
  color: var(--muted);
  font-size: 0.86rem;
}

.empty-examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.empty-line {
  padding: 22px 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-list span {
  display: block;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.03)
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ============================== account ============================== */
.account-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.balance-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.balance-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -50px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 61, 139, 0.25), transparent 70%);
  pointer-events: none;
}

.balance-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.balance-value {
  display: block;
  margin: 8px 0 10px;
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.balance-card p {
  margin-bottom: 20px;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.ledger-panel {
  padding-bottom: 10px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.data-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.data-table th.num {
  text-align: right;
}

/* ============================== admin ============================== */
.admin-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 5px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-tab {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.admin-tab:hover {
  color: var(--text);
}

.admin-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.admin-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.stat-card strong {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tips {
  margin: 12px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.tips code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78em;
}

.code-output {
  width: 100%;
  min-height: 220px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #d8ffe9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  resize: vertical;
}

/* ============================== modal ============================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 3, 6, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade 0.16s ease;
}

.modal {
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: #101017;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  animation: rise 0.2s ease;
}

.modal--wide {
  max-width: 720px;
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
  background: #101017;
}

.modal-head h2 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.modal-body {
  padding: 0 22px 22px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 22px 22px;
}

.modal-sub {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.modal-sub strong {
  color: var(--text);
}

.legal {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.8;
}

.legal h3 {
  margin: 20px 0 6px;
  color: var(--text);
  font-size: 0.95rem;
}

.legal p,
.legal ul {
  margin: 0 0 8px;
}

.legal ul {
  padding-left: 20px;
}

.legal li {
  margin-bottom: 5px;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

/* ============================== toast ============================== */
.toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  max-width: 360px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(16, 16, 23, 0.95);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.5;
  animation: toast-in 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.toast--success {
  border-color: rgba(61, 220, 151, 0.35);
}

.toast--error {
  border-color: rgba(255, 90, 106, 0.4);
}

.toast--out {
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ============================== footer ============================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  margin-bottom: 8px;
  font-weight: 700;
}

.footer-note,
.footer-meta {
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  font-size: 0.82rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.noscript {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 14px;
  text-align: center;
  background: #2a1c05;
  color: #ffe1a0;
  font-size: 0.85rem;
}

/* ============================== responsive ============================== */
@media (max-width: 1080px) {
  .hero {
    gap: 40px;
  }
  .float-card--a {
    right: 4px;
  }
  .float-card--b {
    left: 4px;
  }
  .studio-grid {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 20px;
  }
  .studio-grid--simple {
    grid-template-columns: 1fr;
  }
  .composer {
    position: static;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 24px;
  }
  .hero-visual {
    max-width: 640px;
  }
  .auth-wrap {
    grid-template-columns: minmax(0, 460px);
  }
  .auth-aside {
    display: none;
  }
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .studio-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .account-grid {
    grid-template-columns: 1fr;
  }
  .price-grid,
  .steps {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-meta {
    grid-column: 1 / -1;
    text-align: left;
    flex-direction: row;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .view,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .header-inner {
    gap: 16px;
    height: 60px;
  }
  .main-nav {
    gap: 14px;
    font-size: 0.86rem;
  }
  .main-nav a:first-child {
    display: none;
  }
  .brand-text {
    display: none;
  }
  .hide-sm {
    display: none;
  }
  .balance-pill {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .btn-sm {
    padding: 6px 11px;
    font-size: 0.8rem;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }
  .hero-meta {
    gap: 10px;
  }
  .float-card {
    display: none;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-strip > div {
    padding: 20px 18px;
  }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
  }
  .section {
    margin-top: 64px;
  }
  .studio-balance {
    width: 100%;
    justify-content: space-between;
  }
  .control-row {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-card strong {
    font-size: 1.25rem;
  }
  .job-top {
    flex-wrap: wrap;
    gap: 8px;
  }
  .job-top time {
    margin-left: 0;
    width: 100%;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .toast-root {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .toast {
    max-width: none;
  }
  .modal-backdrop {
    padding: 12px;
    align-items: end;
  }
  .modal {
    max-height: 88vh;
  }
  .auth-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
