:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-2: rgba(255, 255, 255, 0.96);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 113, 227, 0.3);
  --accent: #0071e3;
  --accent-2: #0071e3;
  --green: #30d158;
  --orange: #ff9f0a;
  --rose: #ff453a;
  --blue: #0071e3;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  display: none;
}

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

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

button {
  cursor: pointer;
}

h1,
h2,
p {
  margin: 0;
}

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

.nav {
  width: min(1240px, calc(100vw - 32px));
  height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 8px 12px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  grid-column: 3;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #1d1d1f;
  color: #fff;
  font-weight: 860;
  box-shadow: none;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: #6e6e73;
  font-weight: 650;
}

.nav-links a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1d1d1f;
}

.nav-cta,
.primary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 40px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-cta,
.primary-link {
  border: none;
  background: #0071e3;
  color: #fff;
  box-shadow: none;
}

.nav-cta {
  padding: 0 15px;
}

.primary-link {
  padding: 0 18px;
}

.ghost-link {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: #1d1d1f;
  padding: 0 16px;
}

.ghost-link.small {
  min-height: 38px;
  font-size: 13px;
}

.wallet {
  min-width: 112px;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.login-button {
  min-height: 42px;
  border: none;
  border-radius: 980px;
  padding: 0 14px;
  background: #0071e3;
  color: #fff;
  font-weight: 820;
}

.login-button:hover {
  opacity: 0.85;
}

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

.wallet strong {
  font-size: 22px;
  line-height: 1;
}

.shell {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-footer {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0 0 30px;
  color: #86868b;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.icp-link {
  color: inherit;
  transition: color 0.2s ease;
}

.icp-link:hover,
.icp-link:focus-visible {
  color: #0071e3;
}

.landing-hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 42px;
  align-items: center;
  padding: 56px 38px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.landing-hero.ai-hero {
  width: 100vw;
  min-height: 100svh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -72px;
  display: grid;
  place-items: start center;
  grid-template-columns: 1fr;
  padding: min(22vh, 200px) 24px 68px;
  border: 0;
  border-radius: 0;
  background: #f5f5f7;
  position: relative;
  overflow: hidden;
}

.landing-hero.ai-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/home-ai-visual-bg.png?v=202605290045");
  background-image: image-set(
    url("/assets/home-ai-visual-bg.v2026053001.webp") type("image/webp"),
    url("/assets/home-ai-visual-bg.v2026053001.avif") type("image/avif"),
    url("/assets/home-ai-visual-bg.png?v=202605290045") type("image/png")
  );
  background-position: center center;
  background-size: cover;
  filter: brightness(0.95) saturate(0.9);
  z-index: 0;
}

.landing-hero.ai-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(245, 245, 247, 0.1) 0%, rgba(245, 245, 247, 0.3) 40%, rgba(245, 245, 247, 0.6) 100%);
  z-index: 1;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  z-index: 2;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  left: -200px;
  top: -150px;
  background: rgba(0, 113, 227, 0.06);
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  right: -180px;
  bottom: -160px;
  background: rgba(0, 113, 227, 0.04);
}

.hero-orb-3 {
  display: none;
}

.hero-grid-bg {
  display: none;
}

.landing-copy h1 span {
  display: inline-block;
  color: #0071e3;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-trust span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.landing-copy h1 {
  max-width: 760px;
  margin-top: 12px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #1d1d1f;
}

.ai-hero .landing-copy {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  z-index: 3;
}

.ai-hero .landing-copy h1 {
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  margin-top: 16px;
  font-size: clamp(54px, 7.8vw, 104px);
  line-height: 1.04;
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.landing-copy p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 22px;
  color: #6e6e73;
  font-size: 19px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.ai-hero .landing-copy p:not(.eyebrow) {
  max-width: 720px;
  font-size: clamp(16px, 2vw, 20px);
  color: #6e6e73;
}

.landing-copy h1 span {
  display: inline-block;
  color: #0071e3;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.landing-actions .primary-link {
  padding: 12px 28px;
  border-radius: 980px;
  background: #0071e3;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  transition: all 0.2s ease;
}

.landing-actions .primary-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.landing-actions .ghost-link {
  padding: 12px 24px;
  border-radius: 980px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1d1d1f;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}

.landing-actions .ghost-link:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.2);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.stats-item {
  position: relative;
  padding: 32px 24px;
  background: #fff;
  transition: background 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stats-item:hover {
  background: #fafafa;
}

.stats-icon {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 18px;
  opacity: 0.4;
}

.stats-band strong {
  display: block;
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0071e3;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

.stats-band span {
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.5;
}

.case-section,
.advantage-section {
  margin-top: 40px;
  padding: 40px 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.case-section::before,
.advantage-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
}

.case-section-decoration {
  display: none;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.section-head > div .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0071e3;
  opacity: 0.8;
  margin-bottom: 8px;
  display: block;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #1d1d1f;
}

.section-head .ghost-link.small {
  align-self: center;
  padding: 8px 16px;
  border-radius: 980px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #6e6e73;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}

.section-head .ghost-link.small:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
  color: #1d1d1f;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.advantage-card {
  padding: 24px 20px;
  background: #fff;
  transition: background 0.2s ease;
  position: relative;
}

.advantage-card::before,
.advantage-card::after {
  display: none;
}

.advantage-card:hover {
  background: #fafafa;
}

.advantage-icon {
  font-size: 24px;
  margin-bottom: 12px;
  display: inline-block;
}

.advantage-card:hover .advantage-icon {
  transform: none;
}

.advantage-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.advantage-card:hover strong {
  color: #1d1d1f;
}

.advantage-card p {
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.6;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.case-card {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s ease;
  position: relative;
}

.case-card::before {
  display: none;
}

.case-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
}

.case-visual {
  aspect-ratio: 4 / 5;
  min-height: 0;
  display: grid;
  align-items: end;
  padding: 16px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.case-visual img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.3s ease;
}

.case-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, 0.7) 100%);
}

.case-card:hover .case-visual img {
  transform: scale(1.03);
}

.case-visual span {
  width: max-content;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid rgba(0, 113, 227, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  color: #0071e3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  transition: border-color 0.2s ease;
}

.case-card:hover .case-visual span {
  border-color: rgba(0, 113, 227, 0.5);
}

.case-body {
  padding: 16px 16px 20px;
}

.case-body strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #1d1d1f;
  transition: color 0.2s ease;
}

.case-card:hover .case-body strong {
  color: #1d1d1f;
}

.case-body p {
  min-height: 44px;
  margin-top: 6px;
  color: #6e6e73;
  line-height: 1.6;
  font-size: 13px;
}

.case-body span {
  display: inline-flex;
  margin-top: 12px;
  color: #0071e3;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.case-card:hover .case-body span {
  opacity: 0.8;
}

/* ============================================
   NightCafe-inspired Homepage Styles
   ============================================ */

.nc-hero {
  width: 100vw;
  min-height: 100svh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -72px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: #f5f5f7;
}

.nc-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/assets/home-ai-visual-bg.png?v=202605290045");
  background-image: image-set(
    url("/assets/home-ai-visual-bg.v2026053001.webp") type("image/webp"),
    url("/assets/home-ai-visual-bg.v2026053001.avif") type("image/avif"),
    url("/assets/home-ai-visual-bg.png?v=202605290045") type("image/png")
  );
  background-position: center center;
  background-size: cover;
  filter: brightness(0.95) saturate(0.85);
  z-index: 0;
}

.nc-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 245, 247, 0.1) 0%, rgba(245, 245, 247, 0.6) 100%);
}

.nc-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
}

.nc-hero-title {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #1d1d1f;
  margin-bottom: 20px;
  white-space: nowrap;
}

.nc-hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  color: #6e6e73;
  max-width: 560px;
  margin: 0 auto 36px;
}

.nc-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.nc-btn-glow {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  border-radius: 980px;
  background: #0071e3;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.nc-btn-glow:hover {
  opacity: 0.85;
}

.nc-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 980px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1d1d1f;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nc-btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.2);
}

.nc-hero-trust {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.nc-hero-trust span {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.3);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Section headers */
.nc-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.nc-section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  margin-bottom: 12px;
}

.nc-section-header p {
  font-size: 17px;
  color: #6e6e73;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Usecase cards - NightCafe style */
.nc-usecases {
  padding: 80px 0;
}

.nc-usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.nc-usecase-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nc-usecase-card:hover {
  border-color: rgba(0, 113, 227, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nc-usecase-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.nc-usecase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nc-usecase-card:hover .nc-usecase-img img {
  transform: scale(1.03);
}

.nc-usecase-body {
  padding: 20px 22px 24px;
}

.nc-usecase-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 6px;
}

.nc-usecase-card:hover .nc-usecase-body h3 {
  color: #0071e3;
}

.nc-usecase-body p {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.5;
}

/* Model cards */
.nc-models {
  padding: 80px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.nc-model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.nc-model-card {
  padding: 28px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nc-model-card:hover {
  border-color: rgba(0, 113, 227, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nc-model-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0071e3;
  background: rgba(0, 113, 227, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  margin-bottom: 16px;
}

.nc-model-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.nc-model-card:hover h3 {
  color: #1d1d1f;
}

.nc-model-card p {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.5;
}

/* Gallery - masonry-like grid */
.nc-gallery {
  padding: 80px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.nc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  grid-auto-rows: 200px;
}

.nc-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.nc-gallery-tall {
  grid-row: span 2;
}

.nc-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nc-gallery-item:hover img {
  transform: scale(1.04);
}

.nc-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(255, 255, 255, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nc-gallery-item:hover .nc-gallery-overlay {
  opacity: 1;
}

.nc-gallery-overlay span {
  font-size: 12px;
  font-weight: 600;
  color: #0071e3;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Features */
.nc-features {
  padding: 80px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.nc-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.nc-feature-card {
  padding: 28px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nc-feature-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nc-feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.nc-feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.nc-feature-card:hover h3 {
  color: #1d1d1f;
}

.nc-feature-card p {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.6;
}

/* FAQ */
.nc-faq {
  padding: 80px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.nc-faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.nc-faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nc-faq-item summary {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}

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

.nc-faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: #0071e3;
  font-weight: 300;
  transition: transform 0.2s ease;
}

.nc-faq-item[open] summary::after {
  content: "−";
}

.nc-faq-item summary:hover {
  color: #0071e3;
}

.nc-faq-item p {
  padding: 0 0 20px;
  font-size: 15px;
  color: #6e6e73;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 900px) {
  .nc-usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nc-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nc-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }

  .nc-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nc-hero {
    min-height: 85svh;
  }

  .nc-usecase-grid {
    grid-template-columns: 1fr;
  }

  .nc-model-grid {
    grid-template-columns: 1fr;
  }

  .nc-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .nc-gallery-tall {
    grid-row: span 1;
  }

  .nc-feature-grid {
    grid-template-columns: 1fr;
  }

  .nc-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .nc-btn-glow,
  .nc-btn-ghost {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .nc-hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

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



.hero {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  align-items: end;
  padding: 38px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.studio-hero {
  min-height: 260px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: none;
}

.hero h1 {
  max-width: 720px;
  margin-top: 10px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.03;
  letter-spacing: 0;
  text-shadow: none;
}

.eyebrow {
  color: #0071e3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.runtime {
  max-width: 860px;
  margin-top: 18px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.hero-metrics div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.hero-metrics span {
  display: block;
  color: #6e6e73;
  font-size: 13px;
}

.hero-metrics strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.05;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.workspace-full {
  grid-template-columns: 1fr;
  max-width: 860px;
}

.workspace-studio,
.workspace-create {
  grid-template-columns: minmax(0, 1fr) 480px;
}

.output-panel {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  backdrop-filter: none;
  padding: 22px;
}

.output-preview {
  min-height: 320px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #f5f5f7;
  overflow: hidden;
}

.output-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.output-media-wrap {
  width: 100%;
  min-height: 320px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  box-sizing: border-box;
}

.output-media {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
}

.output-media img,
.output-media video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #f5f5f7;
}

.output-actions,
.job-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(0, 113, 227, 0.3);
  border-radius: 980px;
  background: rgba(0, 113, 227, 0.06);
  color: #0071e3;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.download-button:hover {
  border-color: #0071e3;
  background: rgba(0, 113, 227, 0.12);
  transform: translateY(-1px);
}

.download-button.small {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.delete-job-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 69, 58, 0.3);
  border-radius: 980px;
  background: rgba(255, 69, 58, 0.06);
  color: #ff453a;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.delete-job-button:hover:not(:disabled) {
  border-color: rgba(255, 69, 58, 0.5);
  background: rgba(255, 69, 58, 0.12);
  transform: translateY(-1px);
}

.delete-job-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.generation-progress {
  width: min(420px, calc(100% - 32px));
  display: grid;
  gap: 10px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.progress-head span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0071e3;
  transition: width .45s ease;
}

.generation-progress p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.generation-progress.succeeded .progress-track span {
  background: #30d158;
}

.generation-progress.failed .progress-track span {
  background: #ff453a;
}

.progress-percent {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.output-placeholder {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 28px;
}

.output-meta {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.output-meta[hidden] {
  display: none;
}

.output-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  background: #f5f5f7;
}

.output-row:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.output-row-wide {
  grid-column: 1 / -1;
}

.output-row span {
  color: #6e6e73;
  font-size: 13px;
}

.output-row strong {
  font-size: 15px;
  text-align: right;
  word-break: break-word;
  color: #1d1d1f;
}

@media (max-width: 640px) {
  .output-meta {
    grid-template-columns: 1fr;
  }
}

.pill-idle {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
}

.pill-queued,
.pill-running {
  border-color: rgba(255, 159, 10, 0.3);
  background: rgba(255, 159, 10, 0.06);
  color: #ff9f0a;
}

.pill-done {
  border-color: rgba(48, 209, 88, 0.3);
  background: rgba(48, 209, 88, 0.06);
  color: #30d158;
}

.pill-failed {
  border-color: rgba(255, 69, 58, 0.3);
  background: rgba(255, 69, 58, 0.06);
  color: #ff453a;
}

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

.clear-button {
  padding: 9px 12px;
  border: 1px solid rgba(255, 69, 58, 0.3);
  border-radius: 980px;
  background: rgba(255, 69, 58, 0.06);
  color: #ff453a;
  font-weight: 720;
  cursor: pointer;
}

.clear-button:hover {
  border-color: rgba(255, 69, 58, 0.5);
  background: rgba(255, 69, 58, 0.12);
}

.creator-panel,
.panel,
.gallery-panel {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  backdrop-filter: none;
}

.creator-panel,
.panel {
  padding: 22px;
}

.gallery-panel {
  margin-top: 22px;
  padding: 22px;
}

.side-stack {
  display: grid;
  gap: 22px;
}

.recharge-hero {
  min-height: 260px;
}

.recharge-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.recharge-panel,
.orders-panel {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  backdrop-filter: none;
  padding: 22px;
}

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

.section-head.compact {
  margin-bottom: 12px;
}

.section-head h2 {
  margin-top: 2px;
  font-size: 22px;
  line-height: 1.18;
}

.pill {
  padding: 7px 10px;
  border: 1px solid rgba(0, 113, 227, 0.3);
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.06);
  color: #0071e3;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 700;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 12px 13px;
  color: #1d1d1f;
  background: #fff;
  outline: 0;
}

textarea {
  resize: vertical;
}

textarea:focus,
input:focus,
select:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 16px;
}

.presets button,
.ghost {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  color: #1d1d1f;
  font-weight: 720;
}

.presets button {
  padding: 8px 11px;
}

.ghost {
  padding: 9px 12px;
}

.presets button:hover,
.ghost:hover {
  border-color: rgba(0, 113, 227, 0.3);
  background: rgba(0, 113, 227, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.primary {
  min-height: 46px;
  border: 0;
  border-radius: 980px;
  padding: 0 18px;
  background: #0071e3;
  color: #fff;
  font-weight: 800;
  box-shadow: none;
}

.primary:hover {
  opacity: 0.85;
}

.primary.full {
  width: 100%;
}

.message {
  min-height: 22px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.pay-qrcode {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #f5f5f7;
  text-align: center;
}

.pay-qrcode img {
  width: min(220px, 100%);
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.pay-qrcode span {
  font-size: 13px;
  line-height: 1.5;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.login-modal[hidden] {
  display: none;
}

.login-card {
  position: relative;
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.login-card h2 {
  margin: 4px 0 18px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  color: #1d1d1f;
  font-size: 20px;
  line-height: 1;
}

.plans {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.plan {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 76px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px 42px 12px 12px;
  background: #fff;
  cursor: pointer;
}

.plan input {
  position: absolute;
  inset: 14px 12px auto auto;
  width: 18px;
  height: 18px;
  accent-color: #0071e3;
}

.plan strong {
  font-size: 15px;
}

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

.plan:has(input:checked) {
  border-color: #0071e3;
  background: rgba(0, 113, 227, 0.04);
  box-shadow: none;
}

.payments,
.job-grid {
  display: grid;
  gap: 12px;
}

.payment-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.payment-row:last-child {
  border-bottom: 0;
}

.payment-row strong,
.payment-row span {
  overflow-wrap: anywhere;
}

.payment-row span,
.meta,
.error {
  color: var(--muted);
  font-size: 13px;
}

.badge {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.badge.paid,
.status.succeeded {
  color: #30d158;
}

.badge.pending,
.status.running,
.status.submitting,
.status.queued {
  color: #ff9f0a;
}

.job-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.job {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
}

.job-preview {
  display: grid;
  place-items: center;
  min-height: 190px;
  background: #f5f5f7;
}

.job-preview span {
  color: var(--muted);
  font-weight: 760;
}

.job-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.job-preview video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #f5f5f7;
}

.job-body {
  padding: 13px;
}

.job-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.status {
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.status.failed,
.error {
  color: #ff453a;
}

.job-prompt {
  min-height: 44px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 980px) {
  .landing-hero,
  .hero,
  .workspace,
  .recharge-workspace,
  .workspace-studio,
  .workspace-create {
    grid-template-columns: 1fr;
  }

  .workspace-full {
    max-width: 100%;
  }

  .hero {
    padding: 28px;
  }

  .case-grid,
  .advantage-grid,
  .stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-hero.ai-hero {
    min-height: clamp(520px, calc(100vh - 156px), 620px);
  }

  .hero-orb-1 {
    left: -160px;
    top: -100px;
  }

  .hero-orb-2 {
    right: -140px;
    bottom: -120px;
  }
}

@media (max-width: 720px) {
  .nav {
    height: auto;
    grid-template-columns: 1fr auto;
    padding: 12px 0;
  }

  .nav-cta {
    width: 100%;
    grid-column: 1 / -1;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero h1 {
    font-size: 36px;
  }

  .landing-hero {
    min-height: auto;
    padding: 28px;
  }

  .landing-hero.ai-hero {
    min-height: 100svh;
    place-items: start center;
    padding: 18vh 18px 48px;
  }

  .landing-copy h1 {
    font-size: 40px;
  }

  .ai-hero .landing-copy h1 {
    font-size: clamp(32px, 6.4vw, 44px);
    line-height: 1.06;
  }

  .ai-hero .landing-copy p:not(.eyebrow) {
    font-size: 17px;
  }

  .ai-hero .landing-copy {
    width: 100%;
    max-width: none;
  }

  .hero-orb-1 {
    left: -180px;
    top: -120px;
  }

  .hero-orb-2 {
    right: -160px;
    bottom: -140px;
  }

  .landing-actions {
    justify-content: center;
    width: 100%;
  }

  .landing-actions .primary-link,
  .landing-actions .ghost-link {
    flex: 1 1 160px;
    max-width: 220px;
  }

  .hero-metrics,
  .form-grid,
  .case-grid,
  .advantage-grid,
  .stats-band {
    grid-template-columns: 1fr;
  }

  .case-grid {
    max-width: 460px;
    margin-inline: auto;
  }

  .case-body {
    padding: 16px 16px 18px;
  }

  .case-body p {
    min-height: auto;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary {
    width: 100%;
  }
}


.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.template-card {
  min-height: 108px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.template-card:hover,
.template-card.selected {
  border-color: #0071e3;
  background: rgba(0, 113, 227, 0.04);
  box-shadow: none;
}

.template-card strong {
  font-size: 15px;
}

.template-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.template-controls {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.studio-hero {
  min-height: 240px;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

/* ============================================
   NightCafe-inspired Studio Page Styles
   ============================================ */

.nc-studio-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -72px;
  min-height: 380px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: #f5f5f7;
}

.nc-studio-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 113, 227, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 70% 80%, rgba(0, 113, 227, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 113, 227, 0.03) 0%, transparent 60%),
    linear-gradient(180deg, #f5f5f7 0%, #fafafa 100%);
}

.nc-studio-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
    linear-gradient(180deg, transparent 0%, rgba(245, 245, 247, 0.4) 100%);
  background-size: 256px 256px, 100% 100%;
  opacity: 0.6;
}

.nc-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.nc-hero-orb-1 {
  width: 600px;
  height: 600px;
  left: -180px;
  top: -180px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.06) 0%, rgba(0, 113, 227, 0.02) 40%, transparent 70%);
  filter: blur(80px);
  animation: nc-orb-drift-1 25s ease-in-out infinite alternate;
}

.nc-hero-orb-2 {
  width: 500px;
  height: 500px;
  right: -140px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.04) 0%, rgba(0, 113, 227, 0.01) 40%, transparent 70%);
  filter: blur(80px);
  animation: nc-orb-drift-2 20s ease-in-out infinite alternate-reverse;
}

@keyframes nc-orb-drift-1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(25px, -15px) scale(1.03);
  }
  66% {
    transform: translate(-15px, 10px) scale(0.97);
  }
  100% {
    transform: translate(10px, -8px) scale(1.02);
  }
}

@keyframes nc-orb-drift-2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-20px, 12px) scale(1.04);
  }
  66% {
    transform: translate(15px, -10px) scale(0.98);
  }
  100% {
    transform: translate(-8px, 8px) scale(1.01);
  }
}

.nc-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 10%, transparent 45%);
}

.nc-studio-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.nc-studio-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0071e3;
  margin-bottom: 16px;
}

.nc-studio-title {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #1d1d1f;
  margin-bottom: 14px;
}

.nc-studio-desc {
  font-size: 17px;
  color: #6e6e73;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.nc-studio-section {
  padding: 64px 0 80px;
}

.nc-template-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.nc-template-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nc-template-card:hover {
  border-color: rgba(0, 113, 227, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.nc-usecase-card[hidden] { display: none !important; }

.nc-template-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 113, 227, 0.06);
  font-size: 28px;
  transition: background 0.2s ease;
}

.nc-template-card:hover .nc-template-icon {
  background: rgba(0, 113, 227, 0.08);
}

.nc-template-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nc-template-info strong {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.nc-template-card:hover .nc-template-info strong {
  color: #0071e3;
}

.nc-template-info span {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.6;
}

.nc-template-arrow {
  align-self: flex-start;
  padding: 8px 0;
  color: #0071e3;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease;
}

.nc-template-card:hover .nc-template-arrow {
  opacity: 0.7;
}

.template-hero {
  min-height: 240px;
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 48px 32px;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.template-hero .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0071e3;
  margin-bottom: 12px;
}

.template-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  line-height: 1.2;
}

@keyframes nc-fade-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nc-studio-section .nc-template-card {
  animation: nc-fade-in 0.4s ease forwards;
  opacity: 0;
}

.nc-studio-section .nc-template-card:nth-child(1) { animation-delay: 0.05s; }
.nc-studio-section .nc-template-card:nth-child(2) { animation-delay: 0.1s; }
.nc-studio-section .nc-template-card:nth-child(3) { animation-delay: 0.15s; }
.nc-studio-section .nc-template-card:nth-child(4) { animation-delay: 0.2s; }
.nc-studio-section .nc-template-card:nth-child(5) { animation-delay: 0.25s; }
.nc-studio-section .nc-template-card:nth-child(6) { animation-delay: 0.3s; }
.nc-studio-section .nc-template-card:nth-child(7) { animation-delay: 0.35s; }
.nc-studio-section .nc-template-card:nth-child(8) { animation-delay: 0.4s; }
.nc-studio-section .nc-template-card:nth-child(9) { animation-delay: 0.45s; }
.nc-studio-section .nc-template-card:nth-child(n+10) { animation-delay: 0.5s; }

.template-list-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .nc-template-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .nc-template-card {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .nc-template-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nc-studio-hero {
    min-height: 240px;
  }

  .nc-studio-section {
    padding: 48px 0;
  }

  .nc-template-card {
    padding: 20px 16px;
  }
}

.create-hero {
  min-height: 240px;
}

.workspace-create {
  grid-template-columns: minmax(0, 1fr) 480px;
}

.template-info-badge {
  margin-bottom: 16px;
}

.template-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: 8px;
  background: rgba(0, 113, 227, 0.04);
}

.template-badge strong {
  color: #0071e3;
  font-size: 14px;
  font-weight: 720;
}

.template-badge span {
  display: none;
}

@media (min-width: 640px) {
  .template-badge span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
  }
}

@media (max-width: 720px) {
  .template-grid,
  .template-controls {
    grid-template-columns: 1fr;
  }
}


.auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 16px; }
.auth-tab { min-height: 38px; border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 8px; background: #f5f5f7; color: #6e6e73; font-weight: 760; }
.auth-tab.active { border-color: #0071e3; color: #1d1d1f; background: rgba(0, 113, 227, 0.06); }
.admin-template-list { display: grid; gap: 14px; }
.admin-template { display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 8px; background: #f5f5f7; }
.admin-template-head { display: flex; justify-content: space-between; gap: 12px; color: #6e6e73; }


.motion-upload-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #f5f5f7;
}

.upload-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 20px;
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: all .22s ease;
  min-height: 160px;
}

.upload-drop-zone:hover {
  border-color: #0071e3;
  background: rgba(0, 113, 227, 0.03);
}

.upload-drop-zone.drag-over {
  border-color: #0071e3;
  background: rgba(0, 113, 227, 0.04);
  box-shadow: none;
  transform: scale(1.01);
}

.upload-drop-zone.has-file {
  position: relative;
  border-color: #30d158;
  background: rgba(48, 209, 88, 0.03);
  min-height: 190px;
  padding: 16px;
}

.upload-drop-zone.has-file .upload-icon,
.upload-drop-zone.has-file .upload-text,
.upload-drop-zone.has-file .upload-file-name {
  display: none;
}

.upload-drop-zone.has-file .upload-file-name {
  position: relative;
  z-index: 1;
}

.upload-success-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(48, 209, 88, 0.1);
  color: #30d158;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.upload-success-mark[hidden] {
  display: none;
}

.upload-icon {
  font-size: 36px;
  line-height: 1;
}

.upload-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.upload-text strong {
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 600;
}

.upload-text span {
  color: #6e6e73;
  font-size: 12px;
}

.upload-file-name {
  color: #0071e3;
  font-size: 12px;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-drop-zone input[type="file"] {
  display: none;
}

.upload-drop-zone .upload-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  pointer-events: none;
}

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

.upload-file-card {
  width: 100%;
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 14px;
  box-sizing: border-box;
  color: var(--muted);
  text-align: center;
}

.upload-file-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
  font-size: 12px;
  font-weight: 760;
}

.upload-file-card strong {
  max-width: 100%;
  overflow: hidden;
  color: #1d1d1f;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.motion-upload-fields[hidden] { display: none; }
.motion-upload-fields .meta { grid-column: 1 / -1; }
.advanced-settings {
  grid-column: 1 / -1;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #f5f5f7;
}
.advanced-settings summary {
  padding: 12px 14px;
  color: #0071e3;
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
}
.advanced-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 14px 14px;
}
.advanced-settings-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  .motion-upload-fields { grid-template-columns: 1fr; }
  .advanced-settings-grid { grid-template-columns: 1fr; }
  .output-media-wrap { min-height: 280px; }
  .generation-progress { width: calc(100% - 24px); padding: 14px; }
  .output-actions,
  .job-actions { justify-content: stretch; }
  .download-button,
  .delete-job-button { width: 100%; }
}

.profile-hero {
  min-height: 260px;
}

.profile-workspace-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 32px auto 0;
  width: 100%;
}

.profile-left-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-right-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-job-list-compact {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 520px;
  overflow-y: auto;
  border-radius: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 113, 227, 0.2) rgba(0, 0, 0, 0.04);
}

.profile-job-list-compact::-webkit-scrollbar {
  width: 6px;
}

.profile-job-list-compact::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 3px;
}

.profile-job-list-compact::-webkit-scrollbar-thumb {
  background: rgba(0, 113, 227, 0.2);
  border-radius: 3px;
}

.profile-job-list-compact::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 113, 227, 0.4);
}

.profile-job-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
  transition: background 140ms ease;
}

.profile-job-card:last-child {
  border-bottom: none;
}

.profile-job-card:hover {
  background: rgba(0, 113, 227, 0.03);
}

.profile-job-card .job-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 113, 227, 0.06);
  color: #0071e3;
  font-size: 16px;
  flex-shrink: 0;
}

.profile-job-card .job-info {
  flex: 1;
  min-width: 0;
}

.profile-job-card .job-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-job-card .job-title-row strong {
  font-size: 13px;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-job-card .job-prompt {
  color: #6e6e73;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.profile-job-card .job-meta {
  color: #86868b;
  font-size: 11px;
}

.profile-job-card .job-thumb {
  width: 56px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f7;
  flex-shrink: 0;
}

.profile-job-card .job-thumb img,
.profile-job-card .job-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-job-card .job-actions {
  flex-shrink: 0;
}

.profile-job-card .job-actions .download-button {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 6px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5f5f7;
  font-size: 36px;
  font-weight: 800;
  color: #1d1d1f;
  box-shadow: none;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: #6e6e73;
  font-size: 14px;
}

.detail-value {
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 600;
}

.profile-card-full {
  grid-column: 1 / -1;
}

.profile-job-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.profile-job-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
  transition: border-color 160ms ease, transform 160ms ease;
}

.profile-job-item:hover {
  border-color: rgba(0, 113, 227, 0.2);
  transform: translateY(-2px);
}

.profile-job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-job-header strong {
  font-size: 14px;
  color: #0071e3;
}

.profile-job-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-job-body .job-label {
  color: var(--muted);
  font-size: 13px;
}

.profile-job-body .job-value {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.profile-job-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f7;
}

.profile-job-media img,
.profile-job-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-job-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.profile-job-actions .download-button {
  padding: 6px 12px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .profile-workspace-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .profile-job-list {
    grid-template-columns: 1fr;
  }
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: #6e6e73;
  font-size: 13px;
}

.form-group input {
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #1d1d1f;
  font-size: 14px;
  transition: border-color .18s;
}

.form-group input:focus {
  outline: none;
  border-color: #0071e3;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.form-actions .primary {
  flex: 1;
}

.form-actions .ghost {
  flex: 1;
}

.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all .18s;
  box-shadow: none;
}

.user-avatar:hover {
  background: #e8e8ed;
  box-shadow: none;
  transform: scale(1.05);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 6px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all .18s ease;
}

.user-menu:hover .user-dropdown,
.user-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: none;
  color: #1d1d1f;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all .15s;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: rgba(0, 113, 227, 0.06);
  color: #0071e3;
}

.user-dropdown button {
  color: #ff453a;
}

.user-dropdown button:hover {
  background: rgba(255, 69, 58, 0.06);
  color: #ff453a;
}

@media (max-width: 768px) {
  .profile-workspace {
    grid-template-columns: 1fr;
  }
}

.ai-assistant {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-assistant-trigger {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  background: #fff;
  color: #0071e3;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ai-assistant-trigger span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.08);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.ai-assistant.open .ai-assistant-trigger,
.ai-assistant:hover .ai-assistant-trigger {
  transform: scale(1.04);
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ai-assistant-panel {
  position: absolute;
  right: 70px;
  width: min(360px, calc(100vw - 108px));
  height: min(520px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(12px) scale(.98);
  transform-origin: right center;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.ai-assistant.open .ai-assistant-panel,
.ai-assistant:hover .ai-assistant-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.ai-assistant-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ai-assistant-panel header strong {
  color: var(--ink);
  font-size: 15px;
}

.ai-assistant-panel header span {
  color: var(--muted);
  font-size: 12px;
}

.ai-assistant-messages {
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.ai-message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.55;
  font-size: 14px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.ai-message.assistant {
  align-self: flex-start;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.ai-message.user {
  align-self: flex-end;
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.15);
}

.ai-assistant-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ai-assistant-form textarea {
  min-width: 0;
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #1d1d1f;
  padding: 10px 12px;
  line-height: 1.4;
  font-size: 14px;
}

.ai-assistant-form button {
  width: 58px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #0071e3;
  color: #fff;
  font-weight: 820;
  cursor: pointer;
}

.ai-assistant-form.sending button {
  opacity: .62;
  cursor: progress;
}

@media (max-width: 768px) {
  .ai-assistant {
    right: 14px;
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .ai-assistant-panel {
    right: 0;
    bottom: 68px;
    width: calc(100vw - 28px);
    height: min(500px, calc(100vh - 112px));
    transform-origin: right bottom;
  }
}
/* Swap case card uses a local poster image tuned for the dark homepage. */
.case-swap .case-visual img {
  object-position: center 36%;
  filter: brightness(0.96) saturate(0.98) contrast(1.03);
}

.case-swap .case-visual::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.10) 48%, rgba(255, 255, 255, 0.46) 100%);
}


@media (max-width: 430px) {
  .ai-hero .landing-copy h1 {
    font-size: clamp(28px, 7vw, 32px);
  }
}


body.hero-ppt-locked {
  overscroll-behavior-y: contain;
}

.landing-hero.ai-hero .landing-copy,
.landing-hero.ai-hero::before,
.landing-hero.ai-hero::after {
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 520ms cubic-bezier(0.22, 1, 0.36, 1), filter 520ms ease;
}

body.hero-ppt-transition .landing-hero.ai-hero .landing-copy {
  opacity: 0;
  transform: translateY(-34px) scale(0.985);
}

body.hero-ppt-transition .landing-hero.ai-hero::before {
  transform: scale(1.08) translateY(-18px);
  filter: brightness(0.95) saturate(0.95) contrast(1.08);
}

body.hero-ppt-transition .landing-hero.ai-hero::after {
  opacity: 0.9;
  transform: translateY(-12px);
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero.ai-hero .landing-copy,
  .landing-hero.ai-hero::before,
  .landing-hero.ai-hero::after {
    transition: none;
  }
}

.nc-page-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -72px;
  min-height: 280px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.nc-page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 113, 227, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 70% 80%, rgba(0, 113, 227, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 113, 227, 0.03) 0%, transparent 60%),
    linear-gradient(180deg, #f5f5f7 0%, #fafafa 100%);
}

.nc-page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
    linear-gradient(180deg, transparent 0%, rgba(245, 245, 247, 0.4) 100%);
  background-size: 256px 256px, 100% 100%;
  opacity: 0.6;
}

.nc-page-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 10%, transparent 45%);
}

.nc-page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.nc-page-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0071e3;
  margin-bottom: 16px;
}

.nc-page-title {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #1d1d1f;
  margin-bottom: 10px;
}

.nc-page-desc {
  font-size: 17px;
  color: #6e6e73;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.nc-page-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.nc-recharge-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.nc-profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.nc-panel {
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.nc-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.nc-panel-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0071e3;
  margin-bottom: 6px;
}

.nc-panel-title {
  font-size: 20px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.nc-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nc-pill-running {
  background: rgba(48, 209, 88, 0.08);
  color: #30d158;
}

.nc-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.nc-plans .plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 20px 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
  text-align: center;
}

.nc-plans .plan:hover {
  border-color: rgba(0, 0, 0, 0.12);
}

.nc-plans .plan input {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  accent-color: #0071e3;
  opacity: 0;
  pointer-events: none;
}

.nc-plans .plan strong {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
}

.nc-plans .plan span {
  font-size: 13px;
  color: #6e6e73;
}

.nc-plans .plan:has(input:checked) {
  border-color: rgba(0, 113, 227, 0.4);
  background: rgba(0, 113, 227, 0.04);
}

.nc-plans .plan:has(input:checked) span {
  color: #0071e3;
}

.nc-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #6e6e73;
  font-weight: 500;
}

.nc-select {
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #1d1d1f;
  font-size: 14px;
  transition: border-color 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.3)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.nc-select:focus {
  outline: none;
  border-color: rgba(0, 113, 227, 0.4);
}

.nc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 980px;
  background: #0071e3;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.nc-btn-primary:hover {
  opacity: 0.85;
}

.nc-btn-block {
  width: 100%;
}

.nc-message {
  font-size: 13px;
  margin-top: 12px;
  min-height: 20px;
}

.nc-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  overflow: hidden;
}

.nc-metric-item {
  padding: 24px;
  background: #fff;
  text-align: center;
}

.nc-metric-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #6e6e73;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.nc-metric-value {
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.nc-job-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 113, 227, 0.2) transparent;
}

.nc-job-list::-webkit-scrollbar {
  width: 4px;
}

.nc-job-list::-webkit-scrollbar-track {
  background: transparent;
}

.nc-job-list::-webkit-scrollbar-thumb {
  background: rgba(0, 113, 227, 0.2);
  border-radius: 2px;
}

.nc-meta,
.nc-payments .meta,
.nc-job-list .meta {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.3);
  padding: 24px 0;
  text-align: center;
}

.nc-payments .payment-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nc-payments .payment-row:last-child {
  border-bottom: 0;
}

.nc-payments .payment-row strong {
  font-size: 14px;
  color: #1d1d1f;
}

.nc-payments .payment-row span {
  font-size: 13px;
  color: #6e6e73;
}

.nc-job-list .profile-job-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.15s ease;
}

.nc-job-list .profile-job-card:last-child {
  border-bottom: none;
}

.nc-job-list .profile-job-card:hover {
  background: rgba(0, 113, 227, 0.03);
}

.nc-job-list .profile-job-card .job-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 113, 227, 0.06);
  font-size: 16px;
  flex-shrink: 0;
}

.nc-job-list .profile-job-card .job-info {
  flex: 1;
  min-width: 0;
}

.nc-job-list .profile-job-card .job-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.nc-job-list .profile-job-card .job-title-row strong {
  font-size: 13px;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nc-job-list .profile-job-card .job-prompt {
  color: #6e6e73;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.nc-job-list .profile-job-card .job-meta {
  color: #86868b;
  font-size: 11px;
}

.nc-job-list .profile-job-card .job-actions {
  flex-shrink: 0;
}

.nc-job-list .profile-job-card .job-actions .download-button {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 6px;
}

.nc-payments {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 113, 227, 0.2) transparent;
}

.nc-payments::-webkit-scrollbar {
  width: 4px;
}

.nc-payments::-webkit-scrollbar-track {
  background: transparent;
}

.nc-payments::-webkit-scrollbar-thumb {
  background: rgba(0, 113, 227, 0.2);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nc-recharge-layout,
  .nc-profile-layout {
    grid-template-columns: 1fr;
  }

  .nc-metrics {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .nc-page-hero {
    min-height: 200px;
  }

  .nc-page-section {
    padding: 32px 16px 60px;
  }
}

.profile-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
  min-height: calc(100vh - 68px);
}

.profile-sidebar {
  position: sticky;
  top: 88px;
  height: fit-content;
}

.user-card {
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.user-avatar-lg {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5f5f7;
  border: 2px solid rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
  font-size: 32px;
}

.user-avatar-lg svg {
  width: 40px;
  height: 40px;
}

.user-info h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.user-info p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.user-balance {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.balance-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.balance-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #0071e3;
  margin-bottom: 12px;
}

.recharge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 980px;
  background: #0071e3;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.recharge-link:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #6e6e73;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-item svg {
  width: 18px;
  height: 18px;
}

.nav-item:hover {
  background: rgba(0, 0, 0, 0.03);
  color: #1d1d1f;
}

.nav-item.active {
  background: rgba(0, 113, 227, 0.06);
  color: #0071e3;
  border-left-color: #0071e3;
}

.profile-content {
  min-width: 0;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.section-header h1 {
  font-size: 28px;
  font-weight: 780;
  color: var(--ink);
  margin: 0 0 6px;
}

.section-header p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.primary-link.small {
  min-height: 40px;
  padding: 0 20px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.primary-link.small svg {
  width: 16px;
  height: 16px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 20px;
}

.stat-icon.running {
  background: rgba(48, 209, 88, 0.1);
  color: #30d158;
}

.stat-icon.success {
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
}

.stat-icon.failed {
  background: rgba(255, 69, 58, 0.1);
  color: #ff453a;
}

.stat-icon.total {
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.panel-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge.running {
  background: rgba(48, 209, 88, 0.1);
  color: #30d158;
}

.project-list {
  padding: 16px;
}

#history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

#history-list .empty-state {
  grid-column: 1 / -1;
}

#history-list .profile-job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

#history-list .profile-job-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

#history-list .profile-job-thumb {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 0;
  border-radius: 0;
  background: #f5f5f7;
}

#history-list .profile-job-thumb img,
#history-list .profile-job-thumb video {
  display: block;
  width: 100%;
  height: 132px;
  aspect-ratio: auto;
  object-fit: cover;
}

#history-list .job-icon {
  display: none;
}

#history-list .job-info {
  grid-column: 1 / -1;
  padding: 0 12px;
}

#history-list .job-title-row {
  gap: 6px;
}

#history-list .job-title-row strong {
  font-size: 12px;
}

#history-list .job-prompt {
  min-height: 0;
  margin: 6px 0 4px;
  font-size: 12px;
  -webkit-line-clamp: 1;
}

#history-list .job-meta {
  font-size: 11px;
}

#history-list .job-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding: 0 12px 12px;
}

#history-list .download-button {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 11px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--muted);
}

.empty-state svg {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state p {
  margin: 0 0 12px;
  font-size: 14px;
}

.empty-state a {
  color: #0071e3;
  font-size: 13px;
  font-weight: 600;
}

.transaction-list {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

.settings-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

.settings-section {
  padding: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-section h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
}

.form-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.form-group:last-child {
  border-bottom: none;
}

.form-group label {
  font-size: 14px;
  color: #6e6e73;
}

.form-group input {
  flex: 1;
  max-width: 200px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: #1d1d1f;
  font-size: 14px;
}

.form-group input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.danger-btn {
  width: 100%;
  min-height: 44px;
  padding: 0 20px;
  background: rgba(255, 69, 58, 0.08);
  border: 1px solid rgba(255, 69, 58, 0.2);
  border-radius: 980px;
  color: #ff453a;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.danger-btn:hover {
  background: rgba(255, 69, 58, 0.14);
  border-color: rgba(255, 69, 58, 0.35);
}

@media (max-width: 960px) {
  .profile-container {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .profile-sidebar {
    position: static;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav-item {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .nav-item.active {
    border-left: none;
    border-bottom-color: #0071e3;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.transaction-item:last-child {
  border-bottom: none;
}

.transaction-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.transaction-item span:first-of-type {
  color: var(--muted);
  font-size: 12px;
}

.transaction-item .credit {
  color: #30d158;
  font-weight: 700;
}

.transaction-item .debit {
  color: #ff453a;
  font-weight: 700;
}

.nav-links a.active {
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  #history-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
  }

  #history-list .profile-job-thumb img,
  #history-list .profile-job-thumb video {
    height: 104px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Create workspace: compact RunningHub-inspired works rail. */
.workspace-create {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.workspace-create .creator-panel {
  grid-column: 1;
}

.works-sidebar {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  backdrop-filter: none;
}

.works-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 14px 13px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.works-sidebar-head h2 {
  margin: 2px 0 0;
  font-size: 17px;
}

.works-sidebar-head .eyebrow {
  margin: 0;
  font-size: 10px;
}

.works-sidebar-actions {
  display: flex;
  gap: 6px;
}

.works-sidebar-actions button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 11px;
}

.works-list {
  flex: 1;
  max-height: 900px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(0, 113, 227, 0.2) transparent;
  scrollbar-width: thin;
}

.works-group-label {
  margin: 0;
  padding: 10px 14px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.works-group + .works-group {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.works-empty {
  margin: 0;
  padding: 10px 14px 16px;
  line-height: 1.6;
}

.works-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.works-item:hover,
.works-item.is-selected {
  background: rgba(0, 113, 227, 0.04);
}

.works-item.is-selected {
  border-top-color: rgba(0, 113, 227, 0.3);
  box-shadow: inset 3px 0 0 #0071e3;
}

.works-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.works-item-top strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.works-time,
.works-task-id,
.works-runtime {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.works-preview {
  display: grid;
  min-height: 92px;
  margin-top: 3px;
  overflow: hidden;
  place-items: center;
  border-radius: 7px;
  background: #f5f5f7;
  color: var(--muted);
  font-size: 12px;
}

.works-preview img,
.works-preview video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.works-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.works-item-actions button,
.works-item-actions a {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0071e3;
  font-size: 11px;
  font-weight: 720;
  text-decoration: none;
}

.works-item-actions .delete-job-button {
  margin-left: auto;
  color: #ff453a;
}

.works-error {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 1380px) {
  .workspace-create {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .works-sidebar {
    grid-column: 2;
    grid-row: 1;
    max-height: 720px;
    position: static;
  }

  .works-list {
    max-height: 292px;
  }
}

@media (max-width: 980px) {
  .workspace-create {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .works-sidebar {
    grid-column: 2;
    grid-row: 1;
    max-height: 360px;
    position: static;
  }

  .works-list {
    max-height: 292px;
  }
}

@media (max-width: 720px) {
  .workspace-create {
    grid-template-columns: 1fr;
  }

  .workspace-create .creator-panel {
    grid-column: auto;
    order: 1;
  }

  .workspace-create .works-sidebar {
    grid-column: auto;
    order: 2;
    max-height: 520px;
  }

  .works-list {
    max-height: 450px;
  }
}

/* ============================================
   Dark Mode — [data-theme="dark"]
   ============================================ */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05070d;
  --surface: rgba(14, 19, 31, 0.88);
  --surface-2: rgba(21, 28, 44, 0.92);
  --ink: #f5f7fb;
  --muted: #94a3b8;
  --line: rgba(116, 140, 171, 0.22);
  --line-strong: rgba(94, 234, 212, 0.42);
  --accent: #5eead4;
  --accent-2: #8b5cf6;
  --green: #34d399;
  --orange: #f59e0b;
  --rose: #fb7185;
  --blue: #60a5fa;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 20% 0%, rgba(94, 234, 212, 0.18), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(139, 92, 246, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.62), rgba(5, 7, 13, 1) 520px),
    var(--bg);
}

[data-theme="dark"] body::before {
  display: block;
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}

[data-theme="dark"] .site-header {
  background: rgba(5, 7, 13, 0.78);
  border-bottom-color: rgba(116, 140, 171, 0.18);
}

[data-theme="dark"] .brand-mark {
  border-color: rgba(94, 234, 212, 0.55);
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.18), rgba(139, 92, 246, 0.22));
  color: #eafffb;
  box-shadow: 0 0 24px rgba(94, 234, 212, 0.22);
}

[data-theme="dark"] .nav-links a {
  color: #94a3b8;
}

[data-theme="dark"] .nav-links a:hover {
  background: rgba(94, 234, 212, 0.08);
  color: #f5f7fb;
}

[data-theme="dark"] .nav-links a.active {
  background: rgba(94, 234, 212, 0.08);
  color: #5eead4;
}

[data-theme="dark"] .nav-cta,
[data-theme="dark"] .primary-link {
  border: 1px solid rgba(94, 234, 212, 0.48);
  background: linear-gradient(135deg, #5eead4, #8b5cf6);
  color: #020617;
  box-shadow: 0 14px 34px rgba(94, 234, 212, 0.16);
}

[data-theme="dark"] .ghost-link {
  border-color: rgba(116, 140, 171, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #f5f7fb;
}

[data-theme="dark"] .ghost-link:hover {
  background: rgba(94, 234, 212, 0.08);
  border-color: rgba(94, 234, 212, 0.42);
}

[data-theme="dark"] .login-button {
  border: 1px solid rgba(116, 140, 171, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #f5f7fb;
}

[data-theme="dark"] .login-button:hover {
  border-color: rgba(94, 234, 212, 0.42);
}

[data-theme="dark"] .wallet {
  border-color: rgba(116, 140, 171, 0.22);
  background: rgba(14, 19, 31, 0.72);
}

[data-theme="dark"] .nc-hero {
  background: #0a0a0f;
}

[data-theme="dark"] .nc-hero-bg {
  filter: brightness(0.55) saturate(0.6);
}

[data-theme="dark"] .nc-hero-bg::after {
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.1) 0%, rgba(10, 10, 15, 0.55) 100%);
}

[data-theme="dark"] .nc-hero-title {
  color: #fafafa;
}

[data-theme="dark"] .nc-hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .nc-btn-glow {
  background: #5eead4;
  color: #0a0a0f;
}

[data-theme="dark"] .nc-btn-ghost {
  border-color: rgba(255, 255, 255, 0.15);
  color: #e4e4e7;
}

[data-theme="dark"] .nc-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .nc-hero-trust span {
  color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .nc-section-header h2 {
  color: #fafafa;
}

[data-theme="dark"] .nc-section-header p {
  color: #71717a;
}

[data-theme="dark"] .nc-usecase-card {
  background: #111118;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .nc-usecase-card:hover {
  border-color: rgba(94, 234, 212, 0.3);
}

[data-theme="dark"] .nc-usecase-body h3 {
  color: #e4e4e7;
}

[data-theme="dark"] .nc-usecase-card:hover .nc-usecase-body h3 {
  color: #5eead4;
}

[data-theme="dark"] .nc-usecase-body p {
  color: #71717a;
}

[data-theme="dark"] .nc-model-card {
  background: #111118;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .nc-model-card:hover {
  border-color: rgba(129, 140, 248, 0.3);
}

[data-theme="dark"] .nc-model-badge {
  color: #5eead4;
  background: rgba(94, 234, 212, 0.1);
}

[data-theme="dark"] .nc-model-card h3 {
  color: #e4e4e7;
}

[data-theme="dark"] .nc-model-card:hover h3 {
  color: #fafafa;
}

[data-theme="dark"] .nc-model-card p {
  color: #71717a;
}

[data-theme="dark"] .nc-gallery-overlay {
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 15, 0.7) 100%);
}

[data-theme="dark"] .nc-gallery-overlay span {
  color: #5eead4;
  background: rgba(10, 10, 15, 0.5);
}

[data-theme="dark"] .nc-feature-card {
  background: #111118;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .nc-feature-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nc-feature-card h3 {
  color: #e4e4e7;
}

[data-theme="dark"] .nc-feature-card:hover h3 {
  color: #fafafa;
}

[data-theme="dark"] .nc-feature-card p {
  color: #71717a;
}

[data-theme="dark"] .nc-faq-item {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .nc-faq-item summary {
  color: #e4e4e7;
}

[data-theme="dark"] .nc-faq-item summary:hover {
  color: #5eead4;
}

[data-theme="dark"] .nc-faq-item summary::after {
  color: #5eead4;
}

[data-theme="dark"] .nc-faq-item p {
  color: #71717a;
}

[data-theme="dark"] textarea,
[data-theme="dark"] input,
[data-theme="dark"] select {
  border-color: rgba(116, 140, 171, 0.22);
  color: #f5f7fb;
  background: rgba(2, 6, 23, 0.72);
}

[data-theme="dark"] textarea:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus {
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12), 0 0 28px rgba(94, 234, 212, 0.08);
}

[data-theme="dark"] .primary {
  background: linear-gradient(135deg, #5eead4, #8b5cf6);
  color: #020617;
  box-shadow: 0 14px 36px rgba(94, 234, 212, 0.18);
  border: 0;
}

[data-theme="dark"] .login-modal {
  background: rgba(2, 6, 23, 0.72);
}

[data-theme="dark"] .login-card {
  background: rgba(14, 19, 31, 0.96);
  border-color: rgba(94, 234, 212, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

[data-theme="dark"] .modal-close {
  background: rgba(2, 6, 23, 0.52);
  border-color: rgba(116, 140, 171, 0.22);
  color: #f5f7fb;
}

[data-theme="dark"] .plan {
  border-color: rgba(116, 140, 171, 0.22);
  background: rgba(2, 6, 23, 0.55);
}

[data-theme="dark"] .plan:has(input:checked) {
  border-color: #5eead4;
  background: rgba(94, 234, 212, 0.08);
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.35), 0 0 28px rgba(94, 234, 212, 0.08);
}

[data-theme="dark"] .download-button {
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(94, 234, 212, 0.12);
  color: #f5f7fb;
}

[data-theme="dark"] .download-button:hover {
  border-color: #5eead4;
  background: rgba(94, 234, 212, 0.18);
}

[data-theme="dark"] .delete-job-button {
  border-color: rgba(251, 113, 133, 0.38);
  background: rgba(251, 113, 133, 0.08);
  color: #fb7185;
}

[data-theme="dark"] .upload-drop-zone {
  border-color: rgba(116, 140, 171, 0.22);
  background: rgba(2, 6, 23, 0.4);
}

[data-theme="dark"] .upload-drop-zone:hover {
  border-color: #5eead4;
  background: rgba(94, 234, 212, 0.05);
}

[data-theme="dark"] .upload-drop-zone.drag-over {
  border-color: #5eead4;
  background: rgba(94, 234, 212, 0.1);
  box-shadow: 0 0 24px rgba(94, 234, 212, 0.12);
}

[data-theme="dark"] .upload-drop-zone.has-file {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.06);
}

[data-theme="dark"] .upload-text strong {
  color: #f5f7fb;
}

[data-theme="dark"] .upload-text span {
  color: #94a3b8;
}

[data-theme="dark"] .upload-file-name {
  color: #5eead4;
}

[data-theme="dark"] .upload-success-mark {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

[data-theme="dark"] .upload-file-card span {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

[data-theme="dark"] .upload-file-card strong {
  color: #f5f7fb;
}

[data-theme="dark"] .creator-panel,
[data-theme="dark"] .panel,
[data-theme="dark"] .gallery-panel {
  background: rgba(14, 19, 31, 0.88);
  border-color: rgba(116, 140, 171, 0.22);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

[data-theme="dark"] .output-preview {
  background:
    radial-gradient(circle at 50% 30%, rgba(94, 234, 212, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(12, 18, 32, 0.88));
  border-color: rgba(116, 140, 171, 0.22);
}

[data-theme="dark"] .output-media img,
[data-theme="dark"] .output-media video {
  background: #020617;
}

[data-theme="dark"] .generation-progress {
  background: rgba(2, 6, 23, 0.62);
  border-color: rgba(116, 140, 171, 0.22);
}

[data-theme="dark"] .progress-track span {
  background: linear-gradient(90deg, #5eead4, #38bdf8);
}

[data-theme="dark"] .generation-progress.succeeded .progress-track span {
  background: linear-gradient(90deg, #34d399, #22c55e);
}

[data-theme="dark"] .generation-progress.failed .progress-track span {
  background: linear-gradient(90deg, #fb7185, #ef4444);
}

[data-theme="dark"] .output-row {
  border-color: rgba(94, 234, 212, 0.12);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.5));
}

[data-theme="dark"] .output-row span {
  color: #94a3b8;
}

[data-theme="dark"] .output-row strong {
  color: #f5f7fb;
}

[data-theme="dark"] .pill {
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.08);
  color: #5eead4;
}

[data-theme="dark"] .pill-queued,
[data-theme="dark"] .pill-running {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
}

[data-theme="dark"] .pill-done {
  border-color: rgba(52, 211, 153, 0.38);
  background: rgba(52, 211, 153, 0.08);
  color: #34d399;
}

[data-theme="dark"] .pill-failed {
  border-color: rgba(251, 113, 133, 0.38);
  background: rgba(251, 113, 133, 0.08);
  color: #fb7185;
}

[data-theme="dark"] .job {
  background: rgba(2, 6, 23, 0.55);
  border-color: rgba(116, 140, 171, 0.22);
}

[data-theme="dark"] .job-preview {
  background:
    radial-gradient(circle at 50% 30%, rgba(94, 234, 212, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(14, 165, 233, 0.12)),
    #070b14;
}

[data-theme="dark"] .template-card {
  border-color: rgba(116, 140, 171, 0.22);
  background: rgba(2, 6, 23, 0.55);
}

[data-theme="dark"] .template-card:hover,
[data-theme="dark"] .template-card.selected {
  border-color: #5eead4;
  background: rgba(94, 234, 212, 0.08);
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.28), 0 0 24px rgba(94, 234, 212, 0.08);
}

[data-theme="dark"] .template-card strong {
  color: #f5f7fb;
}

[data-theme="dark"] .template-card span {
  color: #94a3b8;
}

[data-theme="dark"] .presets button,
[data-theme="dark"] .ghost {
  border-color: rgba(116, 140, 171, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #f5f7fb;
}

[data-theme="dark"] .presets button:hover,
[data-theme="dark"] .ghost:hover {
  border-color: rgba(94, 234, 212, 0.42);
  background: rgba(94, 234, 212, 0.08);
}

[data-theme="dark"] .badge.paid,
[data-theme="dark"] .status.succeeded {
  color: #34d399;
}

[data-theme="dark"] .badge.pending,
[data-theme="dark"] .status.running,
[data-theme="dark"] .status.submitting,
[data-theme="dark"] .status.queued {
  color: #f59e0b;
}

[data-theme="dark"] .user-dropdown {
  background: #0d1117;
  border-color: rgba(116, 140, 171, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(94, 234, 212, 0.08);
}

[data-theme="dark"] .user-dropdown a:hover {
  background: rgba(94, 234, 212, 0.1);
  color: #5eead4;
}

[data-theme="dark"] .user-dropdown button {
  color: #ef4444;
}

[data-theme="dark"] .user-dropdown button:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

[data-theme="dark"] .user-avatar {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
  color: #5eead4;
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.15);
}

[data-theme="dark"] .user-avatar:hover {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.3) 0%, rgba(139, 92, 246, 0.25) 100%);
  box-shadow: 0 0 20px rgba(94, 234, 212, 0.3);
}

[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(94, 234, 212, 0.26), transparent 32%),
    radial-gradient(circle at 18% 88%, rgba(139, 92, 246, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.94));
  border-color: rgba(116, 140, 171, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

[data-theme="dark"] .hero::after {
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.12);
}

[data-theme="dark"] .hero h1 {
  text-shadow: 0 0 36px rgba(94, 234, 212, 0.14);
  color: #f5f7fb;
}

[data-theme="dark"] .hero-metrics div {
  border-color: rgba(94, 234, 212, 0.18);
  background: rgba(2, 6, 23, 0.5);
  box-shadow: inset 0 0 24px rgba(94, 234, 212, 0.045);
}

[data-theme="dark"] .hero-metrics span {
  color: #94a3b8;
}

[data-theme="dark"] .hero-metrics strong {
  color: #f5f7fb;
}

[data-theme="dark"] .eyebrow {
  color: #5eead4;
}

[data-theme="dark"] .studio-hero {
  background: #09090b;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .case-section,
[data-theme="dark"] .advantage-section {
  background: #0c0c0e;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .case-card {
  background: #111113;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .case-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .case-visual::after {
  background: linear-gradient(180deg, transparent 40%, rgba(17, 17, 19, 0.85) 100%);
}

[data-theme="dark"] .case-visual span {
  border-color: rgba(94, 234, 212, 0.3);
  background: rgba(17, 17, 19, 0.8);
  color: #5eead4;
}

[data-theme="dark"] .case-card:hover .case-visual span {
  border-color: rgba(94, 234, 212, 0.5);
}

[data-theme="dark"] .case-body strong {
  color: #e4e4e7;
}

[data-theme="dark"] .case-card:hover .case-body strong {
  color: #fafafa;
}

[data-theme="dark"] .case-body p {
  color: #71717a;
}

[data-theme="dark"] .case-body span {
  color: #5eead4;
}

[data-theme="dark"] .advantage-grid {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .advantage-card {
  background: #0c0c0e;
}

[data-theme="dark"] .advantage-card:hover {
  background: #141416;
}

[data-theme="dark"] .advantage-card strong {
  color: #e4e4e7;
}

[data-theme="dark"] .advantage-card:hover strong {
  color: #fafafa;
}

[data-theme="dark"] .advantage-card p {
  color: #71717a;
}

[data-theme="dark"] .stats-band {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .stats-item {
  background: #0c0c0e;
}

[data-theme="dark"] .stats-item:hover {
  background: #141416;
}

[data-theme="dark"] .stats-band strong {
  color: #5eead4;
}

[data-theme="dark"] .stats-band span {
  color: #71717a;
}

[data-theme="dark"] .section-head h2 {
  color: #fafafa;
}

[data-theme="dark"] .section-head .eyebrow {
  color: #5eead4;
}

[data-theme="dark"] .section-head .ghost-link.small {
  border-color: rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
}

[data-theme="dark"] .section-head .ghost-link.small:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #e4e4e7;
}

[data-theme="dark"] .landing-hero {
  background:
    radial-gradient(circle at 72% 16%, rgba(94, 234, 212, 0.22), transparent 31%),
    radial-gradient(circle at 16% 78%, rgba(139, 92, 246, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
  border-color: rgba(116, 140, 171, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

[data-theme="dark"] .landing-hero.ai-hero {
  background: #09090b;
}

[data-theme="dark"] .landing-hero.ai-hero::before {
  filter: brightness(0.55) saturate(0.7);
}

[data-theme="dark"] .landing-hero.ai-hero::after {
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.3) 0%, rgba(9, 9, 11, 0.1) 40%, rgba(9, 9, 11, 0.6) 100%);
}

[data-theme="dark"] .landing-copy h1 {
  color: #fafafa;
}

[data-theme="dark"] .landing-copy h1 span {
  color: #5eead4;
}

[data-theme="dark"] .landing-copy p:not(.eyebrow) {
  color: #a1a1aa;
}

[data-theme="dark"] .landing-actions .primary-link {
  background: #5eead4;
  color: #09090b;
}

[data-theme="dark"] .landing-actions .ghost-link {
  border-color: rgba(255, 255, 255, 0.15);
  color: #e4e4e7;
}

[data-theme="dark"] .landing-actions .ghost-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .landing-trust span {
  color: #94a3b8;
}

[data-theme="dark"] .template-hero {
  background: #0a0a0f;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .template-hero .eyebrow {
  color: #5eead4;
}

[data-theme="dark"] .template-hero h1 {
  color: #fafafa;
}

[data-theme="dark"] .nc-studio-hero {
  background: #0a0a0f;
}

[data-theme="dark"] .nc-studio-hero-bg {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(94, 234, 212, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 70% 80%, rgba(129, 140, 248, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(94, 234, 212, 0.03) 0%, transparent 60%),
    linear-gradient(180deg, #0c0c12 0%, #0a0a0f 100%);
}

[data-theme="dark"] .nc-studio-hero-bg::after {
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
    linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.4) 100%);
  opacity: 0.6;
}

[data-theme="dark"] .nc-hero-orb-1 {
  background: radial-gradient(circle, rgba(94, 234, 212, 0.1) 0%, rgba(94, 234, 212, 0.02) 40%, transparent 70%);
}

[data-theme="dark"] .nc-hero-orb-2 {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.1) 0%, rgba(139, 92, 246, 0.02) 40%, transparent 70%);
}

[data-theme="dark"] .nc-hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

[data-theme="dark"] .nc-studio-eyebrow {
  color: #5eead4;
}

[data-theme="dark"] .nc-studio-title {
  color: #fafafa;
}

[data-theme="dark"] .nc-studio-desc {
  color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .nc-template-card {
  background: #111118;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .nc-template-card:hover {
  border-color: rgba(94, 234, 212, 0.3);
}

[data-theme="dark"] .nc-template-icon {
  background: rgba(94, 234, 212, 0.06);
}

[data-theme="dark"] .nc-template-card:hover .nc-template-icon {
  background: rgba(94, 234, 212, 0.1);
}

[data-theme="dark"] .nc-template-info strong {
  color: #e4e4e7;
}

[data-theme="dark"] .nc-template-card:hover .nc-template-info strong {
  color: #5eead4;
}

[data-theme="dark"] .nc-template-info span {
  color: #71717a;
}

[data-theme="dark"] .nc-template-arrow {
  color: #5eead4;
}

[data-theme="dark"] .template-badge {
  border-color: rgba(94, 234, 212, 0.28);
  background: rgba(94, 234, 212, 0.06);
}

[data-theme="dark"] .template-badge strong {
  color: #5eead4;
}

[data-theme="dark"] .motion-upload-fields {
  background: rgba(2, 6, 23, 0.5);
  border-color: rgba(116, 140, 171, 0.22);
}

[data-theme="dark"] .advanced-settings {
  background: rgba(15, 23, 42, 0.54);
  border-color: rgba(116, 140, 171, 0.22);
}

[data-theme="dark"] .advanced-settings summary {
  color: #5eead4;
}

[data-theme="dark"] .pay-qrcode {
  background: rgba(2, 6, 23, 0.5);
  border-color: rgba(116, 140, 171, 0.22);
}

[data-theme="dark"] .nc-panel {
  background: #111118;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .nc-panel-eyebrow {
  color: #5eead4;
}

[data-theme="dark"] .nc-panel-title {
  color: #fafafa;
}

[data-theme="dark"] .nc-pill {
  background: rgba(94, 234, 212, 0.08);
  color: #5eead4;
}

[data-theme="dark"] .nc-pill-running {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

[data-theme="dark"] .nc-plans .plan {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .nc-plans .plan:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .nc-plans .plan input {
  accent-color: #5eead4;
}

[data-theme="dark"] .nc-plans .plan strong {
  color: #fafafa;
}

[data-theme="dark"] .nc-plans .plan span {
  color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .nc-plans .plan:has(input:checked) {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.06);
}

[data-theme="dark"] .nc-plans .plan:has(input:checked) span {
  color: #5eead4;
}

[data-theme="dark"] .nc-label {
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .nc-select {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #e4e4e7;
}

[data-theme="dark"] .nc-select:focus {
  border-color: rgba(94, 234, 212, 0.4);
}

[data-theme="dark"] .nc-btn-primary {
  background: #5eead4;
  color: #0a0a0f;
}

[data-theme="dark"] .nc-metrics {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .nc-metric-item {
  background: #111118;
}

[data-theme="dark"] .nc-metric-label {
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .nc-metric-value {
  color: #fafafa;
}

[data-theme="dark"] .nc-meta,
[data-theme="dark"] .nc-payments .meta,
[data-theme="dark"] .nc-job-list .meta {
  color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .nc-payments .payment-row {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .nc-payments .payment-row strong {
  color: #e4e4e7;
}

[data-theme="dark"] .nc-payments .payment-row span {
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .nc-job-list .profile-job-card {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .nc-job-list .profile-job-card:hover {
  background: rgba(94, 234, 212, 0.03);
}

[data-theme="dark"] .nc-job-list .profile-job-card .job-icon {
  background: rgba(94, 234, 212, 0.06);
}

[data-theme="dark"] .nc-job-list .profile-job-card .job-title-row strong {
  color: #e4e4e7;
}

[data-theme="dark"] .nc-job-list .profile-job-card .job-prompt {
  color: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .nc-job-list .profile-job-card .job-meta {
  color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .nc-job-list {
  scrollbar-color: rgba(94, 234, 212, 0.2) transparent;
}

[data-theme="dark"] .nc-payments {
  scrollbar-color: rgba(94, 234, 212, 0.2) transparent;
}

[data-theme="dark"] .nc-page-hero-bg {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(94, 234, 212, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 70% 80%, rgba(129, 140, 248, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(94, 234, 212, 0.03) 0%, transparent 60%),
    linear-gradient(180deg, #0c0c12 0%, #0a0a0f 100%);
}

[data-theme="dark"] .nc-page-hero-bg::after {
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
    linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.4) 100%);
  opacity: 0.6;
}

[data-theme="dark"] .nc-page-hero-bg::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

[data-theme="dark"] .nc-page-eyebrow {
  color: #5eead4;
}

[data-theme="dark"] .nc-page-title {
  color: #fafafa;
}

[data-theme="dark"] .nc-page-desc {
  color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .profile-container {
  background: transparent;
}

[data-theme="dark"] .user-card {
  background: linear-gradient(135deg, rgba(14, 19, 31, 0.92) 0%, rgba(21, 28, 44, 0.88) 100%);
  border-color: rgba(116, 140, 171, 0.18);
}

[data-theme="dark"] .user-avatar-lg {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.18), rgba(139, 92, 246, 0.12));
  border-color: rgba(94, 234, 212, 0.35);
  color: #5eead4;
}

[data-theme="dark"] .user-info h2 {
  color: #f5f7fb;
}

[data-theme="dark"] .user-info p {
  color: #94a3b8;
}

[data-theme="dark"] .user-balance {
  border-top-color: rgba(116, 140, 171, 0.15);
}

[data-theme="dark"] .balance-value {
  color: #5eead4;
}

[data-theme="dark"] .recharge-link {
  background: linear-gradient(135deg, #5eead4, #8b5cf6);
  color: #020617;
}

[data-theme="dark"] .recharge-link:hover {
  box-shadow: 0 8px 24px rgba(94, 234, 212, 0.22);
}

[data-theme="dark"] .sidebar-nav {
  background: rgba(14, 19, 31, 0.88);
  border-color: rgba(116, 140, 171, 0.15);
}

[data-theme="dark"] .nav-item {
  color: #94a3b8;
}

[data-theme="dark"] .nav-item:hover {
  background: rgba(94, 234, 212, 0.06);
  color: #f5f7fb;
}

[data-theme="dark"] .nav-item.active {
  background: rgba(94, 234, 212, 0.08);
  color: #5eead4;
  border-left-color: #5eead4;
}

[data-theme="dark"] .stat-card {
  background: rgba(14, 19, 31, 0.88);
  border-color: rgba(116, 140, 171, 0.15);
}

[data-theme="dark"] .stat-icon.running {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

[data-theme="dark"] .stat-icon.success {
  background: rgba(94, 234, 212, 0.15);
  color: #5eead4;
}

[data-theme="dark"] .stat-icon.failed {
  background: rgba(251, 113, 133, 0.15);
  color: #fb7185;
}

[data-theme="dark"] .stat-icon.total {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

[data-theme="dark"] .stat-value {
  color: #f5f7fb;
}

[data-theme="dark"] .stat-label {
  color: #94a3b8;
}

[data-theme="dark"] .panel {
  background: rgba(14, 19, 31, 0.88);
  border-color: rgba(116, 140, 171, 0.15);
}

[data-theme="dark"] .panel-header {
  border-bottom-color: rgba(116, 140, 171, 0.12);
}

[data-theme="dark"] .panel-header h2 {
  color: #f5f7fb;
}

[data-theme="dark"] .badge.running {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

[data-theme="dark"] .transaction-list {
  background: rgba(14, 19, 31, 0.88);
  border-color: rgba(116, 140, 171, 0.15);
}

[data-theme="dark"] .settings-panel {
  background: rgba(14, 19, 31, 0.88);
  border-color: rgba(116, 140, 171, 0.15);
}

[data-theme="dark"] .settings-section {
  border-bottom-color: rgba(116, 140, 171, 0.12);
}

[data-theme="dark"] .settings-section h2 {
  color: #f5f7fb;
}

[data-theme="dark"] .form-group label {
  color: #94a3b8;
}

[data-theme="dark"] .form-group input {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(116, 140, 171, 0.2);
  color: #f5f7fb;
}

[data-theme="dark"] .form-group input:focus {
  border-color: #5eead4;
}

[data-theme="dark"] .danger-btn {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.3);
  color: #fb7185;
}

[data-theme="dark"] .danger-btn:hover {
  background: rgba(251, 113, 133, 0.18);
  border-color: rgba(251, 113, 133, 0.45);
}

[data-theme="dark"] .transaction-item {
  border-bottom-color: rgba(116, 140, 171, 0.1);
}

[data-theme="dark"] .transaction-item strong {
  color: #f5f7fb;
}

[data-theme="dark"] .transaction-item span:first-of-type {
  color: #94a3b8;
}

[data-theme="dark"] .transaction-item .credit {
  color: #34d399;
}

[data-theme="dark"] .transaction-item .debit {
  color: #fb7185;
}

[data-theme="dark"] .empty-state a {
  color: #5eead4;
}

[data-theme="dark"] .profile-job-card:hover {
  background: rgba(94, 234, 212, 0.04);
}

[data-theme="dark"] .profile-job-card .job-icon {
  background: rgba(94, 234, 212, 0.1);
  color: #5eead4;
}

[data-theme="dark"] .profile-job-card .job-title-row strong {
  color: #f5f7fb;
}

[data-theme="dark"] .profile-job-card .job-prompt {
  color: #94a3b8;
}

[data-theme="dark"] .profile-job-card .job-meta {
  color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .profile-job-list-compact {
  scrollbar-color: rgba(94, 234, 212, 0.3) rgba(2, 6, 23, 0.4);
}

[data-theme="dark"] .profile-avatar {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
  color: #5eead4;
  box-shadow: 0 0 24px rgba(94, 234, 212, 0.2);
}

[data-theme="dark"] .profile-card {
  background: linear-gradient(145deg, rgba(2, 6, 23, 0.85) 0%, rgba(12, 18, 32, 0.7) 100%);
  border-color: rgba(116, 140, 171, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .profile-job-item {
  background: rgba(2, 6, 23, 0.5);
  border-color: rgba(116, 140, 171, 0.22);
}

[data-theme="dark"] .profile-job-item:hover {
  border-color: rgba(94, 234, 212, 0.42);
}

[data-theme="dark"] .profile-job-header strong {
  color: #5eead4;
}

[data-theme="dark"] .profile-job-media {
  background: rgba(2, 6, 23, 0.8);
}

[data-theme="dark"] .detail-row {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .detail-label {
  color: #94a3b8;
}

[data-theme="dark"] .detail-value {
  color: #f5f7fb;
}

[data-theme="dark"] #history-list .profile-job-card {
  border-color: rgba(116, 140, 171, 0.16);
  background: rgba(14, 19, 31, 0.88);
}

[data-theme="dark"] #history-list .profile-job-card:hover {
  border-color: rgba(94, 234, 212, 0.38);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] #history-list .profile-job-thumb {
  background: rgba(2, 6, 23, 0.82);
}

[data-theme="dark"] .works-sidebar {
  background: rgba(9, 14, 25, 0.9);
  border-color: rgba(116, 140, 171, 0.22);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

[data-theme="dark"] .works-sidebar-head {
  border-bottom-color: rgba(148, 163, 184, 0.14);
}

[data-theme="dark"] .works-item {
  border-top-color: rgba(148, 163, 184, 0.12);
}

[data-theme="dark"] .works-item:hover,
[data-theme="dark"] .works-item.is-selected {
  background: rgba(94, 234, 212, 0.07);
}

[data-theme="dark"] .works-item.is-selected {
  border-top-color: rgba(94, 234, 212, 0.5);
}

[data-theme="dark"] .works-item-top strong {
  color: #f5f7fb;
}

[data-theme="dark"] .works-preview {
  background:
    radial-gradient(circle at 50% 20%, rgba(94, 234, 212, 0.12), transparent 42%),
    rgba(2, 6, 23, 0.78);
}

[data-theme="dark"] .works-item-actions button,
[data-theme="dark"] .works-item-actions a {
  color: #5eead4;
}

[data-theme="dark"] .works-item-actions .delete-job-button {
  color: #fb7185;
}

[data-theme="dark"] .works-list {
  scrollbar-color: rgba(94, 234, 212, 0.42) transparent;
}

[data-theme="dark"] .ai-assistant-trigger {
  background: #0b1220;
  color: #5eead4;
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34), 0 0 0 6px rgba(94, 234, 212, 0.08);
}

[data-theme="dark"] .ai-assistant-trigger span {
  background: rgba(94, 234, 212, 0.12);
}

[data-theme="dark"] .ai-assistant.open .ai-assistant-trigger,
[data-theme="dark"] .ai-assistant:hover .ai-assistant-trigger {
  border-color: rgba(94, 234, 212, 0.82);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42), 0 0 0 7px rgba(94, 234, 212, 0.12);
}

[data-theme="dark"] .ai-assistant-panel {
  background: rgba(8, 13, 24, 0.98);
  border-color: rgba(148, 163, 184, 0.26);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}

[data-theme="dark"] .ai-assistant-panel header {
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .ai-message.assistant {
  background: rgba(30, 41, 59, 0.78);
  border-color: rgba(148, 163, 184, 0.16);
}

[data-theme="dark"] .ai-message.user {
  background: rgba(94, 234, 212, 0.14);
  border-color: rgba(94, 234, 212, 0.22);
}

[data-theme="dark"] .ai-assistant-form {
  border-top-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .ai-assistant-form textarea {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.92);
  color: #f5f7fb;
}

[data-theme="dark"] .ai-assistant-form button {
  background: #14b8a6;
  color: #06111f;
}

[data-theme="dark"] .site-footer {
  color: rgba(148, 163, 184, 0.84);
}

[data-theme="dark"] .icp-link:hover,
[data-theme="dark"] .icp-link:focus-visible {
  color: #5eead4;
}

[data-theme="dark"] .auth-tabs .auth-tab {
  background: rgba(2, 6, 23, 0.52);
  border-color: rgba(116, 140, 171, 0.22);
  color: #94a3b8;
}

[data-theme="dark"] .auth-tab.active {
  border-color: #5eead4;
  color: #f5f7fb;
  background: rgba(94, 234, 212, 0.1);
}

[data-theme="dark"] .admin-template {
  background: rgba(2, 6, 23, 0.5);
  border-color: rgba(116, 140, 171, 0.22);
}

[data-theme="dark"] .admin-template-head {
  color: #94a3b8;
}

/* Theme toggle button */
.theme-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #0071e3 !important;
  border-radius: 50%;
  background: white !important;
  color: #0071e3 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 9999 !important;
  position: relative !important;
  grid-column: 1;
  margin-right: 12px;
}

.theme-toggle:hover {
  background: #0071e3 !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
  transform: rotate(30deg);
}

[data-theme="dark"] .theme-toggle {
  border-color: rgba(116, 140, 171, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #f5f7fb;
}

[data-theme="dark"] .theme-toggle:hover {
  border-color: #5eead4;
  color: #5eead4;
}
