:root {
  --blue: #1768ea;
  --navy: #0b234a;
  --muted: #6c7b92;
  --line: rgba(42, 91, 168, .15);
  --surface: rgba(255, 255, 255, .92);
}

* { box-sizing: border-box; }
html { background: #f5f8fd; }
body {
  margin: 0;
  color: var(--navy);
  background:
    radial-gradient(circle at 8% 0%, rgba(71, 143, 255, .12), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(104, 193, 255, .13), transparent 26%),
    #f5f8fd;
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, textarea { font: inherit; }
button, .upload-zone, .scene-card { -webkit-tap-highlight-color: transparent; }

.ppt-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(20, 71, 145, .10);
  background: rgba(249, 252, 255, .86);
  backdrop-filter: blur(22px);
}

.ppt-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
}

.brand-dot {
  width: 23px;
  height: 23px;
  border: 6px solid var(--blue);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff;
}

.ppt-nav-links { display: flex; align-items: center; gap: 28px; }
.ppt-nav-links a { color: #5d6b80; text-decoration: none; font-size: 14px; font-weight: 650; }
.ppt-nav-links a.active { color: var(--blue); }

.page-shell { width: min(1120px, calc(100% - 32px)); margin: 34px auto 80px; }
.hero-card,
.section-card,
.jobs-section {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 20px 55px rgba(35, 77, 145, .09);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 38px 42px;
  background: linear-gradient(145deg, #ffffff 0%, #eff5ff 100%);
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -70px;
  top: -130px;
  border-radius: 50%;
  background: rgba(36, 109, 238, .08);
}
.hero-kicker { margin: 0 0 16px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .24em; }
.hero-row { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.hero-title { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -.055em; }
.hero-desc { margin: 15px 0 0; color: var(--muted); font-size: 16px; }
.hero-price { flex: 0 0 auto; padding: 13px 18px; border-radius: 17px; background: #fff; color: #155bcf; box-shadow: 0 13px 32px rgba(28, 86, 180, .12); }
.hero-price strong { font-size: 30px; letter-spacing: -.04em; }
.hero-price span { font-size: 13px; }

.studio-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); gap: 22px; margin-top: 22px; }
.section-card { padding: 28px; }
.section-heading { display: flex; gap: 13px; align-items: center; margin-bottom: 21px; }
.section-number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #eaf2ff; color: var(--blue); font-size: 12px; font-weight: 800; }
.section-heading h2 { margin: 0; font-size: 20px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.scene-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.scene-card { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fbfdff; cursor: pointer; transition: .18s ease; }
.scene-card:hover { transform: translateY(-2px); border-color: rgba(23, 104, 234, .35); }
.scene-card.active { border-color: var(--blue); background: #edf4ff; box-shadow: inset 0 0 0 1px var(--blue); }
.scene-card strong, .scene-card span { display: block; }
.scene-card strong { font-size: 15px; }
.scene-card span { margin-top: 4px; color: var(--muted); font-size: 12px; }

.source-tabs { display: flex; gap: 6px; margin-bottom: 14px; padding: 5px; border-radius: 13px; background: #f0f4fa; }
.source-tab { flex: 1; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: #6e7d92; cursor: pointer; font-weight: 700; }
.source-tab.active { background: #fff; color: var(--blue); box-shadow: 0 5px 14px rgba(29, 71, 132, .09); }
.source-pane { display: none; }
.source-pane.active { display: block; }
.upload-zone { display: grid; place-items: center; min-height: 180px; padding: 24px; border: 1px dashed rgba(23, 104, 234, .34); border-radius: 18px; background: #fbfdff; text-align: center; cursor: pointer; }
.upload-zone.dragging { border-color: var(--blue); background: #edf4ff; }
.upload-plus { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 14px; background: #e8f1ff; color: var(--blue); font-size: 26px; }
.upload-zone strong { font-size: 17px; }
.upload-zone span { margin-top: 6px; color: var(--muted); font-size: 12px; }
.file-ready { display: none; align-items: center; gap: 13px; min-height: 90px; padding: 16px; border: 1px solid rgba(23, 104, 234, .20); border-radius: 18px; background: #f5f9ff; }
.file-ready.show { display: flex; }
.file-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; }
.file-copy { min-width: 0; flex: 1; }
.file-copy strong, .file-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-copy span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.file-clear { border: 0; background: transparent; color: #62718a; cursor: pointer; }
.source-textarea { width: 100%; min-height: 220px; resize: vertical; padding: 17px; border: 1px solid var(--line); border-radius: 18px; outline: 0; color: #173258; background: #fbfdff; line-height: 1.75; }
.source-textarea:focus { border-color: rgba(23, 104, 234, .55); box-shadow: 0 0 0 4px rgba(23, 104, 234, .08); }

.delivery-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 16px 18px; border-radius: 18px; background: #edf4ff; }
.delivery-panel strong, .delivery-panel span { display: block; }
.delivery-panel span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.delivery-icon { color: var(--blue); font-size: 26px; font-weight: 900; }
.primary-action { width: 100%; margin-top: 15px; padding: 16px 20px; border: 0; border-radius: 16px; background: var(--blue); color: #fff; cursor: pointer; font-size: 16px; font-weight: 800; box-shadow: 0 13px 28px rgba(23, 104, 234, .23); }
.primary-action:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

.jobs-section { margin-top: 22px; padding: 28px; }
.jobs-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.jobs-top h2 { margin: 0; font-size: 21px; }
.jobs-top span { color: var(--muted); font-size: 13px; }
.jobs-empty { padding: 28px; border-radius: 17px; background: #f7f9fc; color: var(--muted); text-align: center; }
.job-card { padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: #fbfdff; }
.job-card + .job-card { margin-top: 10px; }
.job-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.job-copy { min-width: 0; }
.job-copy strong, .job-copy span { display: block; }
.job-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-copy span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.job-status { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: #edf2f8; color: #64748b; font-size: 12px; font-weight: 800; }
.job-status.completed { background: #e7f8ef; color: #16804a; }
.job-status.failed { background: #fff1f1; color: #d13d3d; }
.job-progress { height: 6px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: #e8edf4; }
.job-progress span { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .35s ease; }
.job-action { margin-top: 13px; padding: 10px 16px; border: 1px solid rgba(23, 104, 234, .22); border-radius: 12px; background: #fff; color: var(--blue); cursor: pointer; font-weight: 750; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 18px; background: rgba(7, 20, 42, .52); backdrop-filter: blur(8px); }
.modal-backdrop.show { display: grid; }
.pay-modal { width: min(430px, 100%); padding: 28px; border-radius: 26px; background: #fff; box-shadow: 0 35px 90px rgba(4, 17, 39, .3); text-align: center; }
.pay-modal h2 { margin: 0; font-size: 22px; }
.pay-modal p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.qr-box { display: grid; place-items: center; width: 218px; height: 218px; margin: 20px auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.qr-box img { max-width: 190px; max-height: 190px; }
.pay-link { color: var(--blue); font-weight: 750; }
.modal-close { width: 100%; padding: 12px; border: 0; border-radius: 13px; background: #eff3f8; color: #5d6b80; cursor: pointer; font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 34px; z-index: 200; max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 14px; background: #0c2348; color: #fff; opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: .22s ease; box-shadow: 0 18px 50px rgba(6, 21, 45, .25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #b83434; }

@media (max-width: 820px) {
  .ppt-nav { min-height: 62px; padding: 0 18px; }
  .ppt-nav-links a:not(.active) { display: none; }
  .page-shell { margin-top: 18px; }
  .hero-card { padding: 27px 22px; border-radius: 22px; }
  .hero-row { align-items: flex-start; flex-direction: column; }
  .hero-price { align-self: flex-start; }
  .studio-grid { grid-template-columns: 1fr; }
  .section-card, .jobs-section { padding: 20px; border-radius: 22px; }
}
