:root {
  --ink: #1f2a24;
  --muted: #718078;
  --paper: #f5f7f3;
  --surface: #ffffff;
  --line: #dfe7df;
  --green: #285c49;
  --green-dark: #193d31;
  --mint: #e7f0e8;
  --orange: #c96c39;
  --red: #b94b4b;
  --shadow: 0 18px 55px rgba(31, 52, 41, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.page-loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(245, 247, 243, .82); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; backdrop-filter: blur(5px); }
.page-loader.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.loader-card { display: grid; justify-items: center; gap: 7px; min-width: 185px; padding: 24px 28px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 16px; background: rgba(255, 255, 255, .94); box-shadow: 0 18px 50px rgba(31, 52, 41, .16); color: var(--ink); }
.loader-card strong { font-size: 14px; }
.loader-card small { color: var(--muted); font-size: 11px; }
.loader-orbit { position: relative; width: 42px; height: 42px; margin-bottom: 3px; border: 4px solid #e8eee9; border-top-color: #ef7d45; border-right-color: #4d91d9; border-bottom-color: #a66bd4; border-left-color: #48ae86; border-radius: 50%; animation: loader-spin .9s linear infinite; }
.loader-orbit span { position: absolute; width: 8px; height: 8px; border-radius: 50%; }
.loader-orbit span:nth-child(1) { top: -5px; left: 14px; background: #ef7d45; }
.loader-orbit span:nth-child(2) { right: -5px; bottom: 8px; background: #4d91d9; }
.loader-orbit span:nth-child(3) { bottom: -4px; left: 9px; background: #a66bd4; }
body.is-loading { overflow: hidden; }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loader-orbit { animation-duration: 2.5s; } }
.page-width { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.narrow-page { max-width: 900px; padding: 80px 0 110px; }
.topbar { width: min(1280px, calc(100% - 48px)); margin: 0 auto; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: white; background: var(--green); font-family: Georgia, serif; font-size: 17px; }
.main-nav { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 13px; }
.main-nav a:hover, .text-link:hover { color: var(--green); }
.inline-form { display: inline; margin: 0; }
.nav-button, .text-button { border: 0; background: none; color: inherit; padding: 0; font-size: inherit; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--green); border-radius: 8px; padding: 13px 19px; color: white; background: var(--green); font-weight: 700; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover { transform: translateY(-1px); background: var(--green-dark); box-shadow: 0 10px 24px rgba(40, 92, 73, .18); }
.button-small { padding: 9px 14px; }
.button-outline { color: var(--green); background: transparent; }
.button-outline:hover { color: white; }
.button-light { color: var(--green-dark); background: white; border-color: white; }
.button-danger { color: white; background: var(--red); border-color: var(--red); }
.full { width: 100%; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: center; padding: 90px 0 115px; }
.eyebrow { margin: 0 0 12px; color: var(--orange); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; line-height: 1.1; }
h1 { font: 500 clamp(40px, 5vw, 72px)/.98 Georgia, serif; margin-bottom: 25px; }
h2 { font: 500 clamp(28px, 3vw, 43px)/1.08 Georgia, serif; }
h3 { font-size: 19px; }
.hero-lede { max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin: 30px 0; }
.text-link { color: var(--green); font-weight: 700; }
.text-link.light { color: white; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 12px; }
.hero-card { padding: 14px; background: #e4ece3; border: 1px solid #d5e1d5; border-radius: 16px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px 15px; color: var(--muted); font-size: 11px; }
.window-bar span { width: 7px; height: 7px; border-radius: 50%; background: #c5d3c7; }
.window-bar small { margin-left: 8px; font-size: 11px; }
.mini-file, .source-row { display: flex; align-items: center; gap: 13px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.file-icon { display: grid; place-items: center; width: 36px; height: 42px; border-radius: 6px; color: #2e78bc; background: #e6f1fb; font: 700 14px Georgia, serif; }
.mini-file strong, .source-row strong { display: block; font-size: 13px; }
.mini-file small, .source-row small, .project-info small, table small { display: block; color: var(--muted); font-size: 11px; }
.check { margin-left: auto; color: var(--green); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.mini-grid div { padding: 16px; border-radius: 10px; background: #f8faf7; }
.mini-grid small, .stat-card small, .subscription-summary small, .system-grid small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.mini-grid strong { font-size: 12px; }
.progress-label { display: flex; justify-content: space-between; padding: 8px 2px; color: var(--muted); font-size: 11px; }
.progress { height: 5px; overflow: hidden; border-radius: 99px; background: #dce6dc; }
.progress i { display: block; width: 66%; height: 100%; background: var(--orange); }
.mini-button { margin-top: 14px; padding: 12px; border-radius: 8px; color: white; background: var(--green); text-align: center; font-size: 12px; font-weight: 700; }
.section { padding: 0 0 120px; }
.section-intro { max-width: 560px; margin-bottom: 30px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card, .price-card, .form-panel, .stat-card, .empty-state, .output-panel { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.feature-card { min-height: 210px; }
.feature-number { color: var(--orange); font: 700 12px Georgia, serif; }
.feature-card h3 { margin: 30px 0 9px; }
.feature-card p, .muted, .page-heading p, .detail-list p, .callout, .site-footer p { color: var(--muted); }
.dark-band { padding: 85px 0; color: white; background: var(--green-dark); }
.dark-band .eyebrow { color: #d8a06f; }
.dark-band p { color: #c1d1c7; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: end; }
.split h2 { max-width: 460px; }
.page-heading { margin-bottom: 48px; }
.page-heading p { max-width: 590px; font-size: 16px; }
.page-heading.center { text-align: center; }
.page-heading.center p { margin-right: auto; margin-left: auto; }
.page-heading.compact { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 35px; }
.page-heading.compact h1 { margin-bottom: 8px; font-size: clamp(34px, 4vw, 52px); }
.detail-list { border-top: 1px solid var(--line); }
.detail-list article { display: grid; grid-template-columns: 60px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.detail-list article > span { color: var(--orange); font: 700 12px Georgia, serif; }
.detail-list h2 { margin: 0 0 10px; font-size: 25px; }
.callout { padding: 20px 22px; border-left: 3px solid var(--orange); background: #edf3ed; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.price-card { position: relative; padding: 35px; }
.price-card.featured { border-color: var(--green); box-shadow: var(--shadow); }
.popular { position: absolute; top: 17px; right: 20px; color: var(--orange); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.price-card h2 { margin: 20px 0 10px; }
.check-list { display: grid; gap: 13px; padding: 0; margin: 27px 0; list-style: none; color: var(--muted); font-size: 13px; }
.check-list li:before { content: "✓"; margin-right: 10px; color: var(--green); font-weight: 800; }
.status-pill, .status { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 999px; color: var(--green); background: var(--mint); font-size: 11px; font-weight: 700; }
.status { color: var(--muted); background: #eef1ed; }
.status-completed { color: var(--green); background: var(--mint); }
.status-failed { color: var(--red); background: #faeaea; }
.auth-page { display: grid; place-items: center; min-height: 710px; padding: 60px 24px; }
.auth-card { width: min(460px, 100%); padding: 40px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 42px; margin-bottom: 10px; }
.stack-form { display: grid; gap: 17px; margin-top: 28px; }
label { display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
input, select { min-height: 45px; width: 100%; padding: 10px 12px; color: var(--ink); background: #fbfcfa; border: 1px solid var(--line); border-radius: 7px; outline: 0; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(40, 92, 73, .1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-row { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 9px; font-weight: 600; }
.check-row input { width: 16px; min-height: 16px; }
.auth-links { display: flex; justify-content: center; gap: 8px; margin-top: 25px; color: var(--muted); font-size: 12px; }
.auth-links a { color: var(--green); font-weight: 700; }
.site-footer { display: flex; justify-content: space-between; align-items: end; gap: 40px; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 45px 0; border-top: 1px solid var(--line); }
.site-footer p { max-width: 270px; margin: 13px 0 0; font-size: 12px; }
.footer-links { display: flex; gap: 20px; color: var(--muted); font-size: 12px; }
.fine-print { color: var(--muted); font-size: 11px; }
.site-footer .fine-print { max-width: 220px; text-align: right; }
.flash-stack { display: grid; gap: 10px; width: min(1180px, calc(100% - 48px)); margin: 18px auto 0; }
.flash { display: flex; justify-content: space-between; gap: 15px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 13px; }
.flash-success { border-color: #b7d9bd; color: var(--green); }
.flash-error { border-color: #efc0c0; color: var(--red); }
.flash-warning { border-color: #edd6a3; color: #946729; }
.flash-close { border: 0; background: none; color: inherit; font-size: 18px; line-height: 1; }
.inline-confirmation { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 13px 15px; border: 1px solid #edd6a3; border-radius: 9px; color: #765525; background: #fffaf0; font-size: 13px; }
.inline-confirmation-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-confirmation .button-small { padding: 8px 12px; }
.inline-confirmation[hidden] { display: none; }
.app-body { background: #f2f5f1; }
.app-shell { display: grid; grid-template-columns: 195px 1fr; gap: 65px; padding-top: 60px; padding-bottom: 100px; min-height: 760px; }
.side-nav { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.side-nav .side-label { margin: 12px 12px 8px; color: #9ba89e; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.side-nav a { padding: 9px 12px; border-radius: 6px; color: var(--muted); font-size: 13px; }
.side-nav a:hover, .side-nav a.active { color: var(--green); background: var(--mint); font-weight: 700; }
.admin-nav { border-right: 1px solid var(--line); padding-right: 22px; }
.app-main { min-width: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 18px; }
.stat-card strong { display: block; margin: 5px 0; font: 500 30px Georgia, serif; }
.stat-card em { color: var(--muted); font: 14px system-ui; }
.upgrade-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 18px 0 42px; padding: 20px 23px; border-radius: 10px; color: white; background: var(--green); }
.upgrade-banner p { margin: 3px 0 0; color: #c5d9cc; font-size: 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.section-heading h2 { margin: 0; font-size: 24px; }
.project-list { display: grid; gap: 8px; }
.project-row { display: flex; align-items: center; gap: 14px; padding: 14px 15px; border: 1px solid transparent; border-radius: 10px; background: white; }
.project-row:hover { border-color: #b6d4bd; box-shadow: 0 8px 20px rgba(31,52,41,.05); }
.book-cover { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 48px; border-radius: 4px 7px 7px 4px; color: white; background: var(--green); font: 20px Georgia, serif; }
.project-info { flex: 1; min-width: 0; }
.project-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { padding: 55px 20px; text-align: center; }
.empty-icon { display: block; margin-bottom: 15px; color: var(--orange); font-size: 25px; }
.empty-state p { margin-bottom: 24px; color: var(--muted); }
.workspace-form { display: grid; gap: 15px; }
.pro-panel { border-color: #c7dccb; background: linear-gradient(135deg, #ffffff, #f5faf5); }
.pro-panel .eyebrow { margin-bottom: 6px; }
.cover-form { display: grid; gap: 14px; }
.field-help { color: var(--muted); font-size: 11px; font-weight: 400; }
.cover-ready { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 13px 15px; border: 1px solid #c7dccb; border-radius: 8px; background: white; font-size: 12px; }
.cover-ready span { color: var(--muted); }
.cover-ready .text-link { margin-left: auto; }
.cover-spec-note { display: grid; gap: 4px; align-content: center; padding: 11px 13px; border-left: 3px solid var(--orange); background: #edf3ed; color: var(--muted); font-size: 11px; }
.cover-spec-note strong { color: var(--ink); font-size: 12px; }
.form-panel h2, .output-panel h2 { margin: 0; font: 500 24px Georgia, serif; }
.form-panel { display: grid; gap: 22px; }
.step-label { color: var(--muted); font-size: 11px; }
.drop-zone { min-height: 160px; display: grid; place-items: center; align-content: center; gap: 5px; border: 1.5px dashed #aec7b2; border-radius: 10px; color: var(--green); background: #f4f8f3; text-align: center; cursor: pointer; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--green); background: var(--mint); }
.drop-zone input { display: none; }
.drop-zone strong { font-size: 15px; }
.drop-zone small { color: var(--muted); font-weight: 400; }
.upload-symbol { font-size: 25px; }
.file-picked { color: var(--green); font-size: 12px; font-weight: 700; }
.option-grid { display: grid; gap: 11px; padding-top: 5px; }
.form-actions { display: flex; justify-content: end; gap: 10px; padding-bottom: 15px; }
.output-panel { margin-top: 15px; }
.download-grid { display: flex; gap: 10px; margin-top: 20px; }
.warning-box { margin-top: 20px; padding: 15px; border-radius: 8px; color: #7c5d22; background: #fff7e3; font-size: 12px; }
.warning-box p { margin: 6px 0 0; }
.danger-panel { border-color: #edcaca; }
.danger-panel h2 { color: var(--red); }
.danger-panel > p { color: var(--muted); font-size: 13px; }
.subscription-summary, .system-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.subscription-summary strong, .system-grid strong { display: block; font-size: 13px; }
.inline-action { display: flex; gap: 10px; }
.inline-action input { flex: 1; }
.search-bar { display: flex; gap: 10px; margin-bottom: 15px; }
.search-bar input { max-width: 380px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { color: var(--muted); text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td strong { display: block; }
.text-button { color: var(--green); font-weight: 700; }
.integration-list { display: grid; gap: 5px; }
.integration-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); }
.integration-row small { display: block; color: var(--muted); font-size: 11px; }
.error-page { min-height: 600px; padding-top: 120px; }
.error-code { color: var(--orange); font: 700 15px Georgia, serif; }
.error-page h1 { margin: 13px 0; font-size: 52px; }
@media (max-width: 850px) {
  .hero, .split { grid-template-columns: 1fr; gap: 45px; }
  .hero { padding-top: 55px; }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; gap: 25px; padding-top: 30px; }
  .side-nav { display: flex; flex-direction: row; overflow-x: auto; padding-bottom: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-nav .side-label { display: none; }
  .side-nav a { white-space: nowrap; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .page-width, .topbar, .site-footer { width: min(100% - 30px, 1180px); }
  .topbar { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .main-nav { width: 100%; gap: 13px; overflow-x: auto; }
  .main-nav a { white-space: nowrap; }
  h1 { font-size: 42px; }
  .hero { padding-bottom: 70px; }
  .hero-actions, .site-footer, .page-heading.compact { align-items: flex-start; flex-direction: column; }
  .trust-row { display: grid; gap: 6px; }
  .form-row, .subscription-summary, .system-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 26px 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .upgrade-banner { align-items: flex-start; flex-direction: column; }
  .project-row { gap: 9px; }
  .project-row > span:last-child { display: none; }
  .download-grid, .inline-action { align-items: stretch; flex-direction: column; }
  .footer-links { order: -1; }
  .site-footer .fine-print { text-align: left; }
}

/* KDP Manuscript Formatter visual system */
:root {
  --ink: #241b18;
  --muted: #746a64;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #eadfd3;
  --green: #1f8a5b;
  --green-dark: #123d31;
  --mint: #e4f5e8;
  --orange: #f27a3d;
  --red: #e14b4b;
  --blue: #2d6cdf;
  --lime: #c4e84b;
  --brown: #8f5b42;
  --shadow: 0 22px 60px rgba(97, 62, 36, .12);
}
body {
  background:
    radial-gradient(circle at 8% 8%, rgba(196, 232, 75, .16), transparent 25rem),
    radial-gradient(circle at 92% 15%, rgba(45, 108, 223, .09), transparent 24rem),
    var(--paper);
}
.topbar {
  min-height: 86px;
  position: relative;
  z-index: 2;
}
.brand { gap: 11px; font-size: 14px; color: var(--green-dark); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 4px 5px 0 var(--lime);
  animation: mark-bob 4s ease-in-out infinite;
}
.main-nav { gap: 19px; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; }
.nav-icon { color: var(--orange); font-size: 16px; line-height: 1; }
.main-nav a:nth-child(2) .nav-icon { color: var(--blue); }
.main-nav a:nth-child(3) .nav-icon { color: var(--red); }
.button {
  border: 0; border-radius: 12px; padding: 14px 20px;
  background: var(--green); box-shadow: 0 8px 0 rgba(18, 61, 49, .13);
}
.button:hover { background: var(--green-dark); box-shadow: 0 11px 19px rgba(31, 138, 91, .22); }
.button-orange { background: var(--orange); box-shadow: 0 8px 0 rgba(143, 91, 66, .2); }
.button-orange:hover { background: #d85e27; }
.button-icon { font-size: 18px; line-height: 0; }
.hero { padding: 100px 0 128px; gap: 72px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--orange); }
.eyebrow-dot, .pulse-dot {
  width: 8px; height: 8px; display: inline-block; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 5px rgba(196, 232, 75, .2);
  animation: pulse-dot 2s ease-in-out infinite;
}
.eyebrow-dot.red { background: var(--red); box-shadow: 0 0 0 5px rgba(225, 75, 75, .15); }
h1 em { color: var(--green); font-style: normal; position: relative; white-space: nowrap; }
h1 em::after {
  content: ""; position: absolute; height: 9px; left: 2px; right: 0; bottom: -5px;
  background: var(--lime); z-index: -1; transform: rotate(-2deg); border-radius: 99px;
}
.hero-lede { font-size: 18px; }
.hero-actions { gap: 28px; }
.trust-row b { color: var(--green); margin-right: 4px; }
.hero-art { position: relative; min-height: 390px; display: grid; place-items: center; }
.hero-card {
  width: min(100%, 450px); position: relative; z-index: 1;
  padding: 17px; border: 0; border-radius: 24px;
  background: linear-gradient(145deg, #e6f3df, #d7ecf5);
  box-shadow: 18px 22px 0 rgba(196, 232, 75, .7), var(--shadow);
  transform: rotate(2deg);
  animation: card-float 6s ease-in-out infinite;
}
.hero-card::before, .hero-card::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-card::before { width: 12px; height: 12px; top: 22px; right: 28px; background: var(--red); }
.hero-card::after { width: 9px; height: 9px; bottom: 30px; left: 26px; background: var(--blue); }
.window-bar { padding: 4px 6px 18px; }
.window-bar span:nth-child(1) { background: var(--red); }
.window-bar span:nth-child(2) { background: var(--orange); }
.window-bar span:nth-child(3) { background: var(--lime); }
.mini-file, .source-row { border-radius: 14px; box-shadow: 0 9px 20px rgba(97, 62, 36, .06); }
.file-icon { color: white; background: var(--blue); border-radius: 10px; }
.check { color: var(--green); font-size: 19px; }
.mini-grid div { border: 1px solid #e1ebdf; background: #fbfff6; border-radius: 13px; }
.progress { background: #dce9d9; height: 8px; }
.progress i { background: linear-gradient(90deg, var(--orange), var(--red)); }
.mini-button { border-radius: 11px; background: var(--green); }
.orbit { position: absolute; border: 1px dashed rgba(45, 108, 223, .4); border-radius: 50%; }
.orbit-one { width: 430px; height: 250px; transform: rotate(-24deg); animation: orbit-spin 16s linear infinite; }
.orbit-two { width: 350px; height: 350px; border-color: rgba(225, 75, 75, .25); animation: orbit-spin 20s linear reverse infinite; }
.spark { position: absolute; z-index: 2; color: var(--orange); font-size: 28px; animation: spark-pop 2.8s ease-in-out infinite; }
.spark-one { top: 25px; right: 8%; color: var(--red); }
.spark-two { bottom: 25px; left: 7%; color: var(--blue); animation-delay: .8s; }
.feature-grid { gap: 20px; }
.feature-card {
  min-height: 235px; position: relative; overflow: hidden; border: 0;
  border-radius: 18px; box-shadow: 0 10px 35px rgba(97, 62, 36, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow); }
.feature-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -44px; bottom: -55px; border-radius: 50%; background: rgba(196, 232, 75, .25); }
.feature-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 23px;
  border-radius: 14px; color: white; font-size: 22px; font-weight: 800;
  animation: icon-wiggle 3.5s ease-in-out infinite;
}
.feature-green .feature-icon { background: var(--green); }
.feature-orange .feature-icon { background: var(--orange); }
.feature-blue .feature-icon { background: var(--blue); }
.feature-number { color: var(--brown); }
.feature-card h3 { margin-top: 13px; }
.dark-band { background: linear-gradient(120deg, var(--green-dark), #1d5d50); position: relative; overflow: hidden; }
.dark-band::after { content: "✦"; position: absolute; right: 8%; top: 16%; color: rgba(196, 232, 75, .3); font-size: 110px; animation: spin-slow 14s linear infinite; }
.app-body { background: #f7f4ef; }
.app-shell { grid-template-columns: 225px 1fr; gap: 56px; padding-top: 38px; }
.side-nav {
  position: relative; padding: 18px 13px; border: 1px solid #eadfd3; border-radius: 22px;
  background: rgba(255, 255, 255, .72); box-shadow: 0 12px 32px rgba(97, 62, 36, .06);
}
.side-brand { display: flex; align-items: center; gap: 10px; margin: 2px 10px 26px; color: var(--green-dark); font-size: 14px; }
.side-brand span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: white; background: var(--blue); }
.side-label { color: var(--brown) !important; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; }
.side-icon { width: 22px; color: var(--blue); text-align: center; font-size: 16px; }
.side-nav a:hover, .side-nav a.active { color: var(--green-dark); background: #e6f6e9; box-shadow: inset 3px 0 var(--green); }
.side-nav a.active .side-icon { color: var(--orange); }
.admin-shell .admin-nav { background: #211d2d; border-color: #40364d; color: #f7f2fb; box-shadow: 9px 11px 0 rgba(225, 75, 75, .18); }
.admin-shell .admin-brand { color: white; }
.admin-shell .admin-brand span { background: var(--red); }
.admin-shell .side-label { color: #b7aaca !important; }
.admin-shell .side-nav a { color: #c9c0d2; }
.admin-shell .side-nav a:hover, .admin-shell .side-nav a.active { color: white; background: #383044; box-shadow: inset 3px 0 var(--lime); }
.admin-shell .side-icon { color: var(--lime); }
.admin-kicker {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 12px;
  padding: 7px 11px; border-radius: 99px; color: var(--green-dark);
  background: #e6f6e9; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.admin-kicker .pulse-dot { width: 7px; height: 7px; background: var(--green); box-shadow: none; }
.admin-shell .stat-card { border-top: 4px solid var(--red); }
.admin-shell .stat-card:nth-child(2) { border-top-color: var(--blue); }
.admin-shell .stat-card:nth-child(3) { border-top-color: var(--lime); }
.admin-shell .stat-card:nth-child(4) { border-top-color: var(--orange); }
.stat-card { border: 0; border-radius: 17px; box-shadow: 0 10px 28px rgba(97, 62, 36, .06); }
.stat-card strong { color: var(--green-dark); }
.project-row { border: 1px solid #eadfd3; border-radius: 14px; box-shadow: 0 5px 16px rgba(97, 62, 36, .04); }
.project-row:hover { border-color: var(--lime); box-shadow: 0 12px 25px rgba(97, 62, 36, .08); }
.book-cover { background: linear-gradient(145deg, var(--orange), var(--red)); box-shadow: 4px 4px 0 var(--lime); }
.form-panel, .output-panel, .empty-state, .price-card { border: 0; border-radius: 18px; box-shadow: 0 10px 30px rgba(97, 62, 36, .06); }
.drop-zone { border-color: var(--blue); background: #f0f5ff; border-radius: 16px; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--orange); background: #fff3e9; }
table th { color: var(--brown); }
table tr:hover td { background: #fffaf1; }
.auth-page { min-height: 760px; background: radial-gradient(circle at 38% 35%, rgba(196, 232, 75, .22), transparent 20rem); }
.auth-card { border: 0; border-top: 6px solid var(--orange); border-radius: 22px; box-shadow: var(--shadow); }
.auth-card::before { content: "✦"; display: block; color: var(--blue); font-size: 29px; animation: spin-slow 9s linear infinite; }
input, select { border-radius: 10px; border-color: #e4d8ca; background: #fffdfa; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(45, 108, 223, .12); }
.site-footer { position: relative; }
.site-footer .brand-mark { width: 30px; height: 30px; }
@keyframes mark-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(8deg); } }
@keyframes card-float { 0%, 100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(0deg) translateY(-8px); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.75); } }
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spark-pop { 0%, 100% { transform: scale(.85) rotate(0); opacity: .7; } 50% { transform: scale(1.15) rotate(12deg); opacity: 1; } }
@keyframes icon-wiggle { 0%, 75%, 100% { transform: rotate(0); } 82% { transform: rotate(-7deg); } 89% { transform: rotate(7deg); } }
@keyframes spin-slow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media (max-width: 850px) {
  .side-nav { padding: 10px; }
  .side-brand { display: none; }
  .admin-shell .side-brand { display: flex; margin: 0 10px 12px; }
}
@media (max-width: 600px) {
  .hero { padding-top: 68px; }
  h1 em { white-space: normal; }
  .hero-card { width: calc(100% - 28px); }
  .orbit-one { width: 90%; }
  .orbit-two { width: 80%; height: 80%; }
}