:root {
  --ink: #15181e;
  --ink-2: #2a3039;
  --muted: #68717e;
  --muted-2: #8a94a2;
  --line: #dde2e8;
  --line-strong: #c9d0d8;
  --surface: #ffffff;
  --surface-2: #f5f7f9;
  --canvas: #eef1f4;
  --dark: #0b0d11;
  --dark-2: #141820;
  --teal: #2cc8bd;
  --teal-dark: #137e78;
  --coral: #ff7063;
  --amber: #f0b64a;
  --green: #269d67;
  --red: #cc4d57;
  --blue: #397fc2;
  --shadow: 0 18px 50px rgba(14, 18, 24, 0.1);
  --radius: 8px;
  --sidebar: 252px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.sidebar-open {
  overflow: hidden;
}

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

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3,
strong {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  font-size: 44px;
  margin-bottom: 18px;
}

h2 {
  font-size: 30px;
  margin-bottom: 14px;
}

h3 {
  font-size: 19px;
  margin-bottom: 9px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn i {
  font-size: 17px;
}

.btn-primary {
  color: #07110f;
  background: var(--teal);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: #47d7cc;
  border-color: #47d7cc;
}

.btn-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: #9ca6b2;
  background: var(--surface-2);
}

.btn-ghost {
  color: inherit;
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(128, 138, 150, 0.1);
}

.btn-glass {
  color: #fff;
  background: rgba(12, 15, 20, 0.6);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(12, 15, 20, 0.8);
}

.btn-danger-ghost {
  color: var(--red);
  border-color: #e6b8bc;
  background: #fff;
}

.btn-danger-ghost:hover {
  background: #fff4f5;
  border-color: #d8888f;
}

.btn-large {
  min-height: 50px;
  padding: 0 21px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  background: var(--surface);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
}

.icon-btn.danger {
  color: var(--red);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-dark);
  font-weight: 750;
}

.back-link {
  margin-bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow {
  margin-bottom: 17px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal-dark);
}

.eyebrow.light {
  color: var(--teal);
}

.brand {
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #08110f;
  background: var(--teal);
  font-size: 20px;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.public-header {
  height: 72px;
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

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

.public-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
}

.public-nav a:hover {
  color: var(--teal-dark);
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 7px;
}

.public-menu-toggle {
  display: none;
  margin-left: auto;
}

.hero {
  height: calc(100svh - 112px);
  min-height: 590px;
  max-height: 760px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-shade {
  background: rgba(5, 8, 12, 0.63);
}

.hero-content {
  height: 100%;
  position: relative;
  z-index: 2;
  padding-top: 70px;
  padding-bottom: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-copy {
  width: min(760px, 100%);
}

.hero h1 {
  margin-bottom: 20px;
  font-size: 68px;
  color: #fff;
}

.hero-copy > p {
  width: min(690px, 100%);
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero .hero-note {
  margin: 21px 0 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 13px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-facts div {
  min-height: 76px;
  padding: 20px 22px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
}

.hero-facts div:first-child {
  padding-left: 0;
}

.hero-facts div:last-child {
  border-right: 0;
}

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

.hero-facts span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.product-band,
.workflow-band,
.capabilities-band,
.pricing-band,
.final-cta {
  padding: 96px 0;
}

.product-band {
  background: #f4f6f7;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 38px;
}

.section-heading > p,
.split-heading > p {
  color: var(--muted);
  font-size: 17px;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 72px;
}

.split-heading p {
  margin-bottom: 2px;
}

.screenshot-stage {
  padding: 10px;
  border: 1px solid #cbd2d9;
  border-radius: var(--radius);
  background: #171b22;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screenshot-stage img {
  width: 100%;
  border-radius: 4px;
  background: #e9edf1;
}

.screenshot-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.screenshot-grid figure {
  margin: 0;
}

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #e9edf1;
}

.screenshot-grid figcaption {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
}

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

.workflow-band {
  background: #fff;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-grid article {
  min-height: 290px;
  padding: 28px 26px;
  position: relative;
  border-right: 1px solid var(--line);
}

.workflow-grid article:last-child {
  border-right: 0;
}

.workflow-grid article > i {
  margin: 42px 0 25px;
  display: block;
  color: var(--teal-dark);
  font-size: 30px;
}

.workflow-grid p {
  color: var(--muted);
  font-size: 14px;
}

.step-number {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.capabilities-band {
  background: #edf1f2;
}

.capabilities-layout {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 90px;
  align-items: center;
}

.capabilities-copy > p {
  color: var(--muted);
  font-size: 17px;
}

.fact-list {
  margin-top: 30px;
  display: grid;
  gap: 13px;
}

.fact-list div {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.fact-list i {
  margin-top: 4px;
  color: var(--green);
}

.capability-matrix {
  border-top: 1px solid var(--line-strong);
}

.matrix-row {
  min-height: 62px;
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.matrix-row span {
  color: var(--muted);
}

.matrix-row strong {
  text-align: right;
}

.pricing-band {
  background: #fff;
}

.pricing-page {
  padding-top: 40px;
}

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

.price-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.price-card.featured {
  border-color: var(--teal-dark);
  box-shadow: 0 14px 40px rgba(24, 126, 120, 0.12);
}

.price-card-top {
  min-height: 140px;
}

.price-card-top h2,
.price-card-top h3 {
  margin: 8px 0 10px;
}

.price-card-top p {
  color: var(--muted);
  font-size: 14px;
}

.plan-badge {
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  color: #0d625d;
  background: #d9f5f2;
  font-size: 11px;
  font-weight: 800;
}

.price {
  padding: 21px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.price strong {
  font-size: 36px;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 12px;
}

.credit-line {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
}

.credit-line i {
  grid-row: 1 / 3;
  color: var(--amber);
  font-size: 20px;
}

.credit-line strong,
.credit-line span {
  display: block;
}

.credit-line span {
  color: var(--muted);
  font-size: 12px;
}

.price-card ul,
.checkout-summary ul {
  min-height: 150px;
  margin: 0 0 25px;
  padding: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  list-style: none;
}

.price-card li,
.checkout-summary li {
  display: flex;
  gap: 9px;
  color: var(--ink-2);
  font-size: 13px;
}

.price-card li i,
.checkout-summary li i {
  margin-top: 4px;
  color: var(--green);
}

.pricing-note {
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 14px;
  background: var(--surface-2);
}

.pricing-note > i {
  margin-top: 4px;
  color: var(--blue);
}

.pricing-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.retention-band {
  padding: 76px 0;
  color: #fff;
  background: #11151b;
}

.retention-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 90px;
  align-items: center;
}

.retention-symbol {
  min-height: 210px;
  border: 1px solid #39414c;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0b0e13;
}

.retention-symbol i {
  margin-bottom: 18px;
  color: var(--coral);
  font-size: 35px;
}

.retention-symbol strong {
  font-size: 38px;
  font-variant-numeric: tabular-nums;
}

.retention-layout p {
  color: #abb3bf;
  font-size: 16px;
}

.retention-layout .text-link {
  color: var(--teal);
}

.final-cta {
  padding: 76px 0;
  background: #f7f8f9;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.final-cta h2 {
  max-width: 720px;
  margin-bottom: 0;
}

.public-footer {
  padding: 60px 0 22px;
  color: #c6ccd4;
  background: #0b0d11;
}

.footer-grid {
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 56px;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-grid a:not(.brand) {
  color: #929ba7;
  font-size: 13px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-brand p {
  max-width: 340px;
  color: #89939f;
  font-size: 13px;
}

.public-footer .brand strong {
  color: #fff;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #242a32;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #707a87;
  font-size: 11px;
}

.page-hero {
  padding: 92px 0 75px;
  background: #eef1f2;
}

.page-hero.compact h1 {
  max-width: 760px;
}

.page-hero p {
  max-width: 700px;
  color: var(--muted);
  font-size: 17px;
}

.auth-main {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.auth-visual {
  min-height: 680px;
  padding: 70px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-color: rgba(5, 8, 12, 0.7);
  background-image: url("../img/hero-poster.2e6e8e57ac55.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
}

.auth-visual-content {
  max-width: 560px;
}

.auth-visual h1 {
  font-size: 46px;
}

.auth-visual p {
  color: #b9c0ca;
  font-size: 17px;
}

.auth-facts {
  margin-top: 34px;
  display: grid;
  gap: 14px;
}

.auth-facts div {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #d8dde4;
}

.auth-facts i {
  color: var(--teal);
}

.auth-panel {
  padding: 60px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.auth-form-wrap {
  width: min(610px, 100%);
}

.auth-form-wrap.narrow {
  width: min(460px, 100%);
}

.auth-heading {
  margin-bottom: 30px;
}

.auth-heading h2 {
  font-size: 34px;
}

.auth-heading p {
  color: var(--muted);
}

.auth-heading a,
.check-row a,
.form-between a {
  color: var(--teal-dark);
  font-weight: 700;
}

.auth-security {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.stack-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

.field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 750;
}

.field label span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
}

.field small {
  color: var(--muted);
  font-size: 11px;
}

.form-control,
.setting-row input,
.setting-row textarea,
.search-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea.form-control {
  min-height: 96px;
  resize: vertical;
}

.form-control:focus,
.setting-row input:focus,
.setting-row textarea:focus,
.search-form input:focus {
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 3px rgba(44, 200, 189, 0.12);
}

.errorlist {
  margin: 0;
  padding: 0;
  color: var(--red);
  font-size: 12px;
  list-style: none;
}

.form-alert {
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid #e7bcc0;
  border-radius: 6px;
  display: flex;
  gap: 10px;
  color: #8e3038;
  background: #fff5f6;
}

.form-alert ul {
  margin: 0;
  padding-left: 16px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.check-row.compact {
  align-items: center;
}

.form-check-input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--teal-dark);
}

.form-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}

.legal-main {
  padding: 76px 0 100px;
  background: #f5f7f8;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 70px;
  justify-content: center;
}

.legal-nav {
  align-self: start;
  position: sticky;
  top: 24px;
  display: grid;
  gap: 4px;
}

.legal-nav strong {
  margin-bottom: 12px;
}

.legal-nav a {
  padding: 9px 11px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 13px;
}

.legal-nav a.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.legal-content {
  padding: 42px 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.legal-content h1 {
  font-size: 42px;
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 20px;
}

.legal-content p {
  color: #505965;
}

.legal-content a {
  color: var(--teal-dark);
  text-decoration: underline;
}

.legal-callout {
  margin: 26px 0;
  padding: 20px;
  border-left: 4px solid var(--coral);
  display: flex;
  gap: 14px;
  background: #f8f2f1;
}

.legal-callout i {
  color: var(--coral);
  font-size: 24px;
}

.legal-callout p {
  margin: 3px 0 0;
}

.messages-wrap {
  width: min(680px, calc(100% - 32px));
  position: fixed;
  z-index: 100;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.message {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  display: grid;
  grid-template-columns: 24px 1fr 32px;
  align-items: center;
  gap: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.message-success {
  border-color: #a7d8bf;
}

.message-success > i {
  color: var(--green);
}

.message-error {
  border-color: #e5b0b5;
}

.message-error > i {
  color: var(--red);
}

.message-warning {
  border-color: #ead098;
}

.message-warning > i {
  color: #a77216;
}

.message-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

/* Application shell */
.app-body {
  background: var(--canvas);
}

.app-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.app-sidebar {
  height: 100svh;
  padding: 20px 15px;
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  flex-direction: column;
  color: #d9dee5;
  background: #0d1015;
}

.app-brand {
  padding: 0 8px 21px;
  border-bottom: 1px solid #252b34;
}

.app-brand strong {
  color: #fff;
}

.app-brand small {
  color: #7f8996;
}

.side-nav {
  margin-top: 18px;
  display: grid;
  gap: 4px;
}

.side-nav a {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #939daa;
  font-size: 13px;
  font-weight: 700;
}

.side-nav a i {
  width: 20px;
  color: #7a8592;
  font-size: 17px;
  text-align: center;
}

.side-nav a:hover,
.side-nav a.active {
  color: #fff;
  background: #1b2129;
}

.side-nav a.active i {
  color: var(--teal);
}

.sidebar-section-label {
  margin: 24px 12px 2px;
  color: #626c79;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar-account {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #252b34;
  display: grid;
  gap: 8px;
}

.sidebar-credit {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8d97a4;
  font-size: 11px;
}

.sidebar-credit strong {
  color: #fff;
  font-size: 18px;
}

.app-sidebar .btn-secondary {
  color: #e8ebef;
  border-color: #333b46;
  background: #171c23;
}

.app-sidebar .btn-ghost {
  color: #9aa4b0;
}

.admin-mark {
  color: #fff;
  background: var(--coral);
}

.app-main {
  min-width: 0;
}

.app-topbar {
  height: 68px;
  padding: 0 28px;
  position: sticky;
  z-index: 25;
  top: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.topbar-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.topbar-title span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.topbar-title strong {
  margin-top: 3px;
  font-size: 15px;
}

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

.topbar-actions form {
  display: flex;
}

.admin-user {
  margin-right: 8px;
  color: var(--muted);
  font-size: 12px;
}

.sidebar-toggle {
  display: none;
  margin-right: 12px;
}

.sidebar-backdrop {
  display: none;
}

.app-content {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 30px;
}

.page-heading {
  min-height: 64px;
  margin-bottom: 25px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.page-heading h1 {
  margin-bottom: 6px;
  font-size: 29px;
}

.page-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.detail-heading {
  align-items: center;
}

.heading-credit {
  min-width: 130px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.heading-credit span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.membership-strip {
  min-height: 76px;
  margin-bottom: 22px;
  padding: 14px 18px;
  border: 1px solid #b5ddd8;
  border-left: 4px solid var(--teal-dark);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 16px;
  background: #f3fbfa;
}

.membership-strip.inactive {
  border-color: #e0c892;
  border-left-color: var(--amber);
  background: #fffaf0;
}

.membership-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--teal-dark);
}

.membership-strip.inactive .membership-icon {
  color: #5e430e;
  background: var(--amber);
}

.membership-strip > div {
  display: flex;
  flex-direction: column;
}

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

.membership-expiry {
  padding-right: 20px;
  border-right: 1px solid #c6e3e0;
}

.membership-countdown {
  min-width: 110px;
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

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

.metric {
  min-width: 0;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  background: #fff;
}

.metric-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-top i {
  color: var(--teal-dark);
  font-size: 18px;
}

.metric > strong {
  margin-top: 16px;
  font-size: 27px;
  line-height: 1;
}

.metric > small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 18px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.panel-heading {
  min-height: 70px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading > div {
  display: flex;
  flex-direction: column;
}

.panel-heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.panel-heading h2 {
  margin: 2px 0 0;
  font-size: 17px;
}

.job-list {
  display: grid;
}

.job-row {
  min-height: 72px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 12px;
}

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

.job-row:hover {
  background: #f8f9fa;
}

.job-thumb {
  width: 48px;
  height: 42px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f8995;
  background: #e9edf0;
  overflow: hidden;
}

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

.job-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.job-copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.row-arrow {
  color: var(--muted-2);
}

.status {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5d6672;
  background: #edf0f3;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.status-success {
  color: #166b47;
  background: #dff3e9;
}

.status-info {
  color: #205d91;
  background: #e0eef9;
}

.status-warning {
  color: #775211;
  background: #faedcf;
}

.status-danger {
  color: #8f3038;
  background: #f8e1e3;
}

.status-muted {
  color: #626b77;
  background: #e9ecef;
}

.status-large {
  min-height: 30px;
  padding: 5px 11px;
  font-size: 11px;
}

.transaction-list {
  display: grid;
}

.transaction-row {
  min-height: 64px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.transaction-icon {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b343a;
  background: #f7e2e4;
}

.transaction-icon.positive {
  color: #176942;
  background: #dff2e8;
}

.transaction-row > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.transaction-row strong {
  font-size: 12px;
}

.transaction-row span {
  color: var(--muted);
  font-size: 10px;
}

.transaction-row b {
  font-size: 13px;
}

.positive-text {
  color: var(--green);
}

.pending-order {
  min-height: 65px;
  margin: 12px;
  padding: 11px;
  border: 1px solid #e5ca90;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 32px 1fr 20px;
  align-items: center;
  gap: 10px;
  color: #72500f;
  background: #fff9ec;
}

.pending-order span {
  display: flex;
  flex-direction: column;
}

.pending-order small {
  color: #98752d;
}

.compact-empty,
.empty-state {
  color: var(--muted);
}

.compact-empty {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.empty-state {
  min-height: 330px;
  padding: 40px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f9fafb;
}

.empty-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  background: #dff5f2;
  font-size: 24px;
}

.empty-state strong {
  color: var(--ink);
  font-size: 17px;
}

.empty-state p {
  max-width: 390px;
  margin: 7px 0 18px;
  font-size: 13px;
}

/* Creator */
.creator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 18px;
  align-items: start;
}

.creator-main,
.creator-settings {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.tool-section {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.tool-section:last-child {
  border-bottom: 0;
}

.tool-heading,
.settings-heading {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tool-heading > div {
  display: flex;
  flex-direction: column;
}

.tool-heading span,
.settings-heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.tool-heading h2 {
  margin: 2px 0 0;
  font-size: 17px;
}

.char-counter,
.optional-label {
  color: var(--muted-2) !important;
  font-variant-numeric: tabular-nums;
}

.tool-section textarea {
  min-height: 170px;
}

.tool-section textarea[name="negative_prompt"] {
  min-height: 82px;
}

.prompt-presets {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.preset-button {
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: #f8f9fa;
  cursor: pointer;
}

.preset-button:hover {
  border-color: var(--teal-dark);
  background: #f0faf8;
}

.preset-button span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.preset-button strong {
  margin-top: 2px;
  width: 100%;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-zone {
  min-height: 165px;
  padding: 20px;
  position: relative;
  border: 1px dashed #aeb7c2;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: #f8f9fa;
  cursor: pointer;
  overflow: hidden;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--teal-dark);
  background: #f0faf8;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  background: #dcf3f0;
  font-size: 20px;
}

.upload-zone strong {
  color: var(--ink);
  font-size: 13px;
}

.upload-zone > span:last-of-type {
  margin-top: 4px;
  font-size: 11px;
}

.upload-zone img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: none;
  object-fit: cover;
}

.upload-zone.has-preview img {
  display: block;
}

.upload-zone.has-preview::after {
  content: "Değiştir";
  padding: 6px 9px;
  position: absolute;
  z-index: 2;
  right: 9px;
  bottom: 9px;
  border-radius: 4px;
  color: #fff;
  background: rgba(8, 11, 15, 0.8);
  font-size: 10px;
  font-weight: 800;
}

.creator-settings {
  padding: 18px;
  position: sticky;
  top: 86px;
}

.settings-block {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.settings-heading i {
  color: var(--muted);
}

.segmented-radio {
  display: grid;
  gap: 7px;
}

.segmented-radio.aspect-radio,
.segmented-radio.quality-radio {
  grid-template-columns: 1fr 1fr;
}

.segmented-radio.duration-radio {
  grid-template-columns: repeat(3, 1fr);
}

.segmented-radio label {
  min-width: 0;
  cursor: pointer;
}

.segmented-radio input {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-radio label > span {
  min-height: 62px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease;
}

.segmented-radio.duration-radio label > span {
  min-height: 44px;
}

.segmented-radio input:checked + span {
  color: var(--ink);
  border-color: var(--teal-dark);
  background: #e8f8f6;
  box-shadow: inset 0 0 0 1px var(--teal-dark);
}

.segmented-radio i {
  margin-bottom: 4px;
  font-size: 19px;
}

.segmented-radio strong {
  font-size: 11px;
}

.segmented-radio small {
  color: var(--muted);
  font-size: 9px;
}

.cost-summary {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #cbd8d6;
  border-radius: 7px;
  background: #f2f9f8;
}

.cost-summary > div {
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 11px;
}

.cost-summary > div + div {
  border-top: 1px solid #d9e7e5;
}

.cost-summary > div > span {
  color: var(--muted);
}

.cost-summary b {
  font-weight: 750;
}

.cost-summary small {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #d9e7e5;
  display: flex;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.retention-notice {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #e2d1ae;
  border-radius: 6px;
  display: flex;
  gap: 10px;
  color: #71551a;
  background: #fff9ee;
}

.retention-notice > i {
  margin-top: 2px;
}

.retention-notice div {
  display: flex;
  flex-direction: column;
}

.retention-notice strong {
  font-size: 11px;
}

.retention-notice span,
.submit-note {
  font-size: 9px;
}

.submit-note {
  margin: 10px 4px 0;
  color: var(--muted);
  text-align: center;
}

/* Video library and detail */
.filter-bar {
  min-height: 46px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  background: #fff;
}

.filter-bar a {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.filter-bar a:hover,
.filter-bar a.active {
  color: var(--ink);
  background: #e8ecef;
}

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

.video-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.video-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  display: block;
  background: #161b22;
  overflow: hidden;
}

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

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #687381;
  font-size: 30px;
  background: #1d232c;
}

.video-duration {
  padding: 3px 7px;
  position: absolute;
  right: 8px;
  bottom: 8px;
  border-radius: 4px;
  color: #fff;
  background: rgba(6, 9, 13, 0.8);
  font-size: 10px;
  font-weight: 750;
}

.video-card-media .status {
  position: absolute;
  top: 8px;
  left: 8px;
}

.video-card-copy {
  padding: 14px;
}

.video-card-copy > a {
  height: 40px;
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 750;
}

.video-card-copy > div {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}

.expiry-line {
  padding-top: 9px;
  border-top: 1px solid var(--line);
  justify-content: flex-start !important;
  color: #916514 !important;
  font-variant-numeric: tabular-nums;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.video-workspace {
  min-height: 520px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #11151b;
  overflow: hidden;
}

.video-workspace video {
  width: 100%;
  max-height: 720px;
  background: #000;
}

.job-state {
  max-width: 520px;
  padding: 44px 30px;
  color: #d5dbe2;
  text-align: center;
}

.job-state > span:first-child {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border: 1px solid #38404a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 27px;
  background: #1a2028;
}

.job-state.failed > span:first-child {
  color: var(--coral);
}

.job-state h2 {
  color: #fff;
}

.job-state p {
  color: #98a3b0;
}

.job-state > strong {
  color: var(--teal);
  font-size: 12px;
}

.processing-icon i {
  display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

.progress-track {
  width: min(420px, 100%);
  height: 7px;
  margin: 24px auto 9px;
  border-radius: 4px;
  background: #303741;
  overflow: hidden;
}

.progress-track span {
  height: 100%;
  display: block;
  border-radius: 4px;
  background: var(--teal);
  transition: width 500ms ease;
}

.job-state.processing > strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.detail-panel {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  background: #fff;
}

.expiry-panel {
  padding: 15px;
  border: 1px solid #ead4a6;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  background: #fff9ee;
}

.expiry-panel span,
.expiry-panel small {
  color: #8a6b2b;
  font-size: 10px;
}

.expiry-panel strong {
  margin: 4px 0;
  color: #6b4e12;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.metadata-list {
  margin: 7px 0 0;
  border-top: 1px solid var(--line);
}

.metadata-list div {
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.metadata-list dt {
  color: var(--muted);
  font-size: 10px;
}

.metadata-list dd {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.metadata-list.large div {
  min-height: 52px;
}

.metadata-list.large dt,
.metadata-list.large dd {
  font-size: 12px;
}

.prompt-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.prompt-panel > p {
  padding: 20px;
  color: #3e4650;
}

.negative-prompt {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: #faf7f7;
}

.negative-prompt strong {
  color: #8f4047;
  font-size: 11px;
  text-transform: uppercase;
}

.negative-prompt p {
  margin: 6px 0 0;
  color: var(--muted);
}

/* Checkout and account */
.checkout-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  align-items: start;
}

.checkout-summary {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.checkout-summary > p {
  color: var(--muted);
}

.checkout-price {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 34px;
  font-weight: 800;
}

.checkout-summary dl {
  margin: 16px 0 22px;
}

.checkout-summary dl div {
  min-height: 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-summary dt {
  color: var(--muted);
}

.checkout-summary dd {
  margin: 0;
  font-weight: 750;
}

.checkout-summary ul {
  min-height: 0;
  margin-bottom: 0;
}

.checkout-form {
  padding-bottom: 22px;
}

.checkout-form > form,
.checkout-form > .form-alert {
  margin-left: 22px;
  margin-right: 22px;
}

.payment-info {
  margin: 20px 22px;
  padding: 14px;
  border: 1px solid #bcd9d5;
  border-radius: 6px;
  display: flex;
  gap: 12px;
  color: #286a65;
  background: #f0faf8;
}

.payment-info p {
  margin: 0;
  font-size: 13px;
}

.bank-transfer {
  margin: 20px 22px;
  padding: 15px;
  border: 1px solid #bcd9d5;
  border-radius: 7px;
  background: #f0faf8;
}

.bank-transfer.compact {
  margin: 0 20px 20px;
}

.bank-transfer-heading {
  margin-bottom: 12px;
  display: flex;
  gap: 11px;
  color: #286a65;
}

.bank-transfer-heading > i {
  margin-top: 3px;
}

.bank-transfer-heading > div {
  display: flex;
  flex-direction: column;
}

.bank-transfer-heading span {
  margin-top: 3px;
  color: #58817d;
  font-size: 11px;
}

.bank-field {
  min-height: 56px;
  padding: 8px 0;
  border-top: 1px solid #cee3e0;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
}

.bank-field > span {
  color: #65817e;
  font-size: 10px;
  text-transform: uppercase;
}

.bank-field > strong {
  font-size: 13px;
}

.bank-field.iban > strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.bank-transfer > p {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid #cee3e0;
  display: flex;
  gap: 8px;
  color: #65817e;
  font-size: 10px;
}

.purchase-detail-grid,
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.purchase-detail-grid .panel,
.account-grid .panel {
  padding-bottom: 20px;
}

.purchase-detail-grid .metadata-list,
.account-grid .metadata-list,
.account-grid form {
  margin-left: 20px;
  margin-right: 20px;
}

.note-box {
  margin: 20px;
  padding: 15px;
  border-left: 3px solid var(--teal-dark);
  background: #f2f7f7;
}

.note-box p {
  margin: 5px 0 0;
  color: var(--muted);
}

.state-copy {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.state-copy i {
  margin-bottom: 14px;
  color: var(--amber);
  font-size: 30px;
}

.state-copy.success i {
  color: var(--green);
}

.state-copy.danger i {
  color: var(--red);
}

.state-copy p {
  margin: 7px 0 0;
  color: var(--muted);
}

.purchase-detail-grid .btn {
  margin: 0 20px;
  width: calc(100% - 40px);
}

.account-balance {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

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

.account-balance strong {
  margin: 7px 0 18px;
  font-size: 42px;
}

.table-panel {
  margin-top: 18px;
  overflow: hidden;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  height: 43px;
  padding: 0 14px;
  color: var(--muted);
  background: #f6f7f8;
  font-size: 9px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  min-height: 56px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

.data-table td > strong,
.data-table td > span {
  display: block;
}

.data-table td > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.data-table.compact td {
  padding: 9px 12px;
}

.data-table code {
  font-size: 10px;
}

.pagination {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

/* Admin */
.admin-metrics .metric-top i {
  color: var(--coral);
}

.source-strip {
  margin-bottom: 18px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #fff;
}

.source-strip > div {
  min-height: 75px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
}

.source-strip > div + div {
  border-left: 1px solid var(--line);
}

.source-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: #8b95a1;
}

.source-dot.status-success {
  background: var(--green);
}

.source-dot.status-warning {
  background: var(--amber);
}

.source-dot.status-danger {
  background: var(--red);
}

.source-strip p {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.source-strip span,
.source-strip small {
  color: var(--muted);
  font-size: 10px;
}

.search-form {
  min-width: 380px;
  position: relative;
  display: flex;
  gap: 7px;
}

.search-form > i {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 12px;
  color: var(--muted);
}

.search-form input {
  padding-left: 36px;
}

.admin-user-grid {
  margin-bottom: 18px;
}

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

.admin-plan {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-plan-head {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-plan-head small {
  color: var(--muted);
}

.admin-plan h2 {
  margin: 20px 0 8px;
  font-size: 20px;
}

.admin-plan-price {
  font-size: 30px;
  font-weight: 800;
}

.admin-plan dl {
  margin: 18px 0;
  border-top: 1px solid var(--line);
}

.admin-plan dl div {
  min-height: 39px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-plan dt {
  color: var(--muted);
}

.admin-plan dd {
  margin: 0;
  font-weight: 750;
}

.form-panel {
  max-width: 900px;
  padding: 24px;
}

.checkbox-field {
  align-content: center;
}

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

.settings-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.setting-list,
.source-admin-list {
  display: grid;
}

.setting-row {
  min-height: 85px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(180px, 1.3fr) 40px;
  align-items: center;
  gap: 12px;
}

.setting-row > div,
.source-admin-row > div {
  display: flex;
  flex-direction: column;
}

.setting-row span,
.source-admin-row span,
.source-admin-row small {
  color: var(--muted);
  font-size: 10px;
}

.source-admin-row {
  min-height: 95px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 12px;
}

.muted-copy {
  padding: 15px 16px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 1180px) {
  .public-nav {
    gap: 16px;
  }

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

  .workflow-grid article:nth-child(2) {
    border-right: 0;
  }

  .workflow-grid article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

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

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

@media (max-width: 1020px) {
  .header-actions .btn-ghost,
  .public-nav {
    display: none;
  }

  .public-menu-toggle {
    display: inline-flex;
  }

  .public-nav.open {
    width: calc(100% - 40px);
    padding: 12px;
    position: absolute;
    top: 65px;
    right: 20px;
    border: 1px solid var(--line);
    border-radius: 7px;
    display: grid;
    gap: 2px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .public-nav.open a {
    padding: 10px;
    border-radius: 5px;
  }

  .capabilities-layout,
  .retention-layout {
    gap: 45px;
  }

  .app-shell {
    display: block;
  }

  .app-sidebar {
    width: var(--sidebar);
    position: fixed;
    left: calc(var(--sidebar) * -1);
    transition: left 180ms ease;
  }

  .sidebar-open .app-sidebar {
    left: 0;
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 45;
    inset: 0;
    background: rgba(7, 10, 14, 0.55);
  }

  .sidebar-open .sidebar-backdrop {
    display: block;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .creator-layout {
    grid-template-columns: 1fr;
  }

  .creator-settings {
    position: static;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    grid-template-columns: 1fr 1fr;
  }

  .detail-panel .metadata-list {
    grid-column: 1 / -1;
  }

  .dashboard-grid,
  .settings-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  h1 {
    font-size: 36px;
  }

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

  .split-heading,
  .capabilities-layout,
  .retention-layout,
  .pricing-grid,
  .checkout-layout,
  .purchase-detail-grid,
  .account-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .split-heading {
    gap: 16px;
  }

  .pricing-grid {
    max-width: 560px;
    margin: 0 auto;
  }

  .price-card-top,
  .price-card ul {
    min-height: 0;
  }

  .auth-main {
    display: block;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    min-height: calc(100svh - 72px);
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }

  .legal-nav strong {
    grid-column: 1 / -1;
  }

  .legal-nav a {
    text-align: center;
  }

  .admin-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .public-header {
    height: 64px;
  }

  .header-inner {
    gap: 8px;
  }

  .header-actions .btn {
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
  }

  .public-menu-toggle {
    margin-left: 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 8px;
  }

  .hero {
    height: calc(100svh - 96px);
    min-height: 600px;
  }

  .hero-content {
    padding-top: 42px;
    padding-bottom: 17px;
  }

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

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr 1fr;
  }

  .hero-facts div {
    min-height: 58px;
    padding: 11px 10px 0;
  }

  .hero-facts div:nth-child(2) {
    border-right: 0;
  }

  .hero-facts strong {
    font-size: 15px;
  }

  .product-band,
  .workflow-band,
  .capabilities-band,
  .pricing-band,
  .final-cta {
    padding: 66px 0;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid article {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-grid article:last-child {
    border-bottom: 0;
  }

  .workflow-grid article > i {
    margin: 28px 0 17px;
  }

  .retention-symbol {
    min-height: 170px;
  }

  .final-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .legal-main {
    padding-top: 38px;
  }

  .legal-content {
    padding: 28px 22px;
  }

  .legal-content h1 {
    font-size: 34px;
  }

  .legal-nav {
    grid-template-columns: 1fr;
  }

  .app-topbar {
    padding: 0 14px;
  }

  .app-content {
    padding: 20px 14px;
  }

  .admin-user {
    display: none;
  }

  .page-heading {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
  }

  .page-heading > .btn,
  .page-heading > form:not(.search-form) .btn {
    width: 100%;
  }

  .detail-heading {
    align-items: flex-start;
  }

  .membership-strip {
    grid-template-columns: 40px 1fr;
  }

  .membership-expiry,
  .membership-countdown,
  .membership-strip > .btn {
    grid-column: 1 / -1;
  }

  .membership-expiry {
    padding: 10px 0 0;
    border-top: 1px solid #c6e3e0;
    border-right: 0;
  }

  .membership-countdown {
    min-width: 0;
    text-align: left;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .metric {
    min-height: 118px;
    padding: 14px;
  }

  .metric > strong {
    font-size: 22px;
  }

  .job-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .job-thumb {
    width: 42px;
  }

  .job-row .status {
    grid-column: 2;
    justify-self: start;
  }

  .row-arrow {
    display: none;
  }

  .prompt-presets {
    grid-template-columns: 1fr 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-workspace {
    min-height: 340px;
  }

  .detail-panel {
    grid-template-columns: 1fr;
  }

  .detail-panel .metadata-list {
    grid-column: auto;
  }

  .search-form {
    min-width: 0;
    width: 100%;
  }

  .source-strip {
    grid-template-columns: 1fr;
  }

  .source-strip > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .source-strip > div {
    grid-template-columns: 12px 1fr;
  }

  .source-strip small {
    grid-column: 2;
  }

  .setting-row,
  .source-admin-row {
    grid-template-columns: 1fr;
  }

  .setting-row .icon-btn {
    width: 100%;
  }

  .button-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .header-actions .btn {
    width: 40px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .header-actions .btn i {
    font-size: 16px;
  }

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

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .segmented-radio.aspect-radio {
    grid-template-columns: 1fr;
  }

  .prompt-presets {
    grid-template-columns: 1fr;
  }
}

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

/* 2026 product refresh */
:root {
  --ink: #131518;
  --ink-2: #30353b;
  --muted: #69717a;
  --muted-2: #929aa3;
  --line: #dfe3e6;
  --line-strong: #cbd1d6;
  --surface: #ffffff;
  --surface-2: #f6f7f8;
  --canvas: #f1f3f4;
  --dark: #0d1013;
  --dark-2: #171b20;
  --teal: #23cdbd;
  --teal-dark: #0d8178;
  --coral: #ff6c61;
  --shadow: 0 22px 60px rgba(17, 21, 25, 0.11);
  --sidebar: 244px;
}

body {
  background: #fff;
}

.btn {
  min-height: 44px;
  border-radius: 6px;
  font-weight: 750;
}

.btn-primary {
  color: #06110f;
  background: var(--teal);
  border-color: var(--teal);
}

.btn-primary:hover {
  color: #06110f;
  background: #3bd8c9;
  border-color: #3bd8c9;
}

.btn:focus-visible,
.icon-btn:focus-visible,
.form-control:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(35, 205, 189, 0.35);
  outline-offset: 2px;
}

.public-header {
  height: 76px;
  border-color: rgba(17, 21, 25, 0.09);
}

.home-body .public-header {
  width: 100%;
  position: absolute;
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.18);
  background: rgba(8, 11, 14, 0.35);
  backdrop-filter: blur(18px);
}

.home-body .public-header .brand small,
.home-body .public-nav,
.home-body .btn-ghost {
  color: rgba(255, 255, 255, 0.75);
}

.home-body .public-header .brand strong,
.home-body .public-nav a:hover,
.home-body .btn-ghost:hover {
  color: #fff;
}

.home-body .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.brand-mark {
  color: #06110f;
  background: var(--teal);
}

.hero {
  height: calc(100svh - 34px);
  min-height: 650px;
  max-height: 860px;
}

.hero-media {
  object-position: center 42%;
}

.hero-shade {
  background: rgba(4, 7, 10, 0.64);
}

.hero-content {
  padding-top: 150px;
  padding-bottom: 30px;
}

.hero-copy {
  width: min(790px, 100%);
}

.hero-offer {
  min-height: 32px;
  margin-bottom: 22px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: rgba(10, 14, 18, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.hero-offer i {
  color: var(--teal);
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 72px;
  font-weight: 800;
}

.hero-copy > p {
  max-width: 720px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
}

.hero .hero-note {
  color: rgba(255, 255, 255, 0.68);
}

.hero-facts {
  border-top-color: rgba(255, 255, 255, 0.24);
}

.hero-facts div {
  min-height: 82px;
}

.hero-facts strong {
  font-size: 21px;
}

.product-band {
  padding: 110px 0;
  background: #f1f3f4;
}

.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  align-items: start;
  gap: 22px;
}

.product-side {
  display: grid;
  gap: 24px;
}

.product-shot {
  min-width: 0;
  margin: 0;
}

.product-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid #c8ced3;
  border-radius: 8px;
  object-fit: cover;
  object-position: left top;
  background: #e5e8ea;
  box-shadow: 0 16px 45px rgba(17, 21, 25, 0.1);
}

.product-shot-primary img {
  aspect-ratio: 16 / 10;
}

.product-shot figcaption {
  padding: 13px 2px 0;
  display: flex;
  flex-direction: column;
}

.product-shot figcaption strong {
  font-size: 14px;
}

.product-shot figcaption span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.product-proof {
  border-top: 1px solid var(--line-strong);
}

.product-proof > div {
  min-height: 76px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.product-proof i {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #075d57;
  background: #d7f4f1;
}

.product-proof span {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 12px;
}

.product-proof strong {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13px;
}

.workflow-grid article {
  min-height: 270px;
}

.workflow-grid article > i {
  color: var(--teal-dark);
}

.capabilities-band {
  background: #e9edef;
}

.capability-matrix {
  padding: 2px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.free-plan-banner {
  min-height: 116px;
  margin-bottom: 22px;
  padding: 20px 22px;
  border: 1px solid #a9dcd6;
  border-left: 4px solid var(--teal-dark);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  background: #effaf8;
}

.free-plan-icon {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal-dark);
  font-size: 21px;
}

.free-plan-banner > div:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.free-plan-banner > div:nth-child(2) > span {
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.free-plan-banner > div:nth-child(2) > strong {
  font-size: 20px;
}

.free-plan-banner p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.free-plan-price {
  padding-right: 20px;
  border-right: 1px solid #b9ddd9;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.free-plan-price strong {
  font-size: 28px;
  line-height: 1;
}

.free-plan-price span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.price-card {
  padding: 26px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.price-card:hover {
  border-color: #aeb6bc;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(17, 21, 25, 0.08);
}

.price-card.featured {
  border-top: 4px solid var(--teal-dark);
  box-shadow: 0 18px 42px rgba(13, 129, 120, 0.12);
}

.retention-symbol {
  border-color: #343b42;
  background: #080b0e;
}

.final-cta {
  border-top: 1px solid var(--line);
  background: #f7f8f8;
}

.public-footer {
  background: #0e1114;
}

.auth-visual {
  position: relative;
  background: url("../img/hero-poster.2e6e8e57ac55.jpg") center / cover no-repeat;
  overflow: hidden;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 11, 0.68);
}

.auth-visual-content {
  position: relative;
  z-index: 1;
}

.auth-panel {
  background: #f8f9f9;
}

.auth-form-wrap {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(17, 21, 25, 0.08);
}

.auth-main-compact .auth-visual {
  min-height: 640px;
}

.auth-status-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #086b63;
  background: #d8f4f1;
  font-size: 24px;
}

.auth-status-icon.success {
  color: #176942;
  background: #dff2e8;
}

.auth-status-icon.danger {
  color: #98343c;
  background: #f8e4e6;
}

.auth-info-list {
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
}

.auth-info-list > div {
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.auth-info-list i {
  color: var(--teal-dark);
}

.auth-single {
  min-height: calc(100svh - 76px);
  padding: 60px 20px;
  display: grid;
  place-items: center;
  background: #f2f4f5;
}

.auth-card {
  width: min(500px, 100%);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(17, 21, 25, 0.08);
}

.auth-card h1 {
  margin-bottom: 12px;
  font-size: 32px;
}

.auth-card > p {
  margin-bottom: 26px;
  color: var(--muted);
}

.auth-card input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.auth-back-link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.app-body {
  background: var(--canvas);
}

.app-sidebar {
  padding: 18px 14px;
  background: #101317;
}

.app-brand {
  min-height: 60px;
}

.side-nav a {
  min-height: 44px;
  color: #9ba4ad;
}

.side-nav a:hover {
  background: #1b2026;
}

.side-nav a.active {
  color: #fff;
  background: #20262d;
  box-shadow: inset 3px 0 0 var(--teal);
}

.sidebar-credit {
  align-items: flex-start;
  flex-direction: column;
}

.sidebar-credit strong {
  margin-top: 3px;
  font-size: 17px;
}

.app-topbar {
  height: 72px;
  padding: 0 30px;
  background: rgba(255, 255, 255, 0.96);
}

.app-content {
  max-width: 1480px;
  padding: 32px;
}

.verification-banner {
  min-height: 58px;
  margin-bottom: 22px;
  padding: 10px 14px;
  border: 1px solid #e7c986;
  border-left: 4px solid var(--amber);
  border-radius: 7px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  color: #6d4d0f;
  background: #fff9ed;
}

.verification-banner > span {
  display: flex;
  flex-direction: column;
  color: #8c6c2b;
  font-size: 11px;
}

.verification-banner strong {
  color: #5e420c;
  font-size: 12px;
}

.page-heading {
  margin-bottom: 24px;
}

.page-heading h1 {
  font-size: 30px;
}

.heading-credit {
  min-width: 160px;
  padding: 10px 13px;
}

.membership-strip {
  min-height: 82px;
  box-shadow: 0 8px 24px rgba(17, 21, 25, 0.04);
}

.membership-strip.free {
  border-color: #a9dcd6;
  border-left-color: var(--teal-dark);
  background: #effaf8;
}

.membership-strip.free .membership-icon {
  background: var(--teal-dark);
}

.membership-strip.free > .btn,
.membership-strip.inactive > .btn {
  justify-self: end;
}

.metric {
  min-height: 140px;
  border-color: #d9dee2;
  box-shadow: 0 8px 24px rgba(17, 21, 25, 0.035);
}

.metric > strong {
  margin-top: 18px;
}

.panel,
.creator-main,
.creator-settings,
.video-card,
.detail-panel,
.prompt-panel,
.checkout-summary {
  border-color: #d9dee2;
  box-shadow: 0 8px 24px rgba(17, 21, 25, 0.035);
}

.panel-heading {
  min-height: 72px;
}

.creator-layout {
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 20px;
}

.tool-section {
  padding: 24px;
}

.tool-section textarea {
  min-height: 210px;
  padding: 15px;
  font-size: 14px;
  line-height: 1.65;
}

.prompt-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-ai {
  min-height: 36px;
  padding: 0 11px;
  color: #fff;
  border-color: #1f2930;
  background: #1f2930;
  font-size: 11px;
}

.btn-ai:hover {
  color: #fff;
  border-color: #303d46;
  background: #303d46;
}

.btn-ai:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.prompt-status {
  min-height: 20px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.prompt-status.success {
  color: var(--green);
}

.prompt-status.error {
  color: var(--red);
}

.prompt-status.working {
  color: var(--teal-dark);
}

.spinning {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

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

.prompt-presets {
  gap: 9px;
}

.preset-button {
  min-height: 62px;
  background: #f7f8f8;
}

.creator-settings {
  padding: 20px;
  top: 90px;
}

.cost-summary {
  border-color: #bcd9d5;
  background: #eff8f7;
}

.download-delete-note {
  margin: -2px 2px 3px;
  display: flex;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.download-started {
  color: #fff;
  background: var(--teal-dark);
}

.account-balance strong {
  font-size: 34px;
}

.metadata-list a {
  color: var(--teal-dark);
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .product-showcase {
    grid-template-columns: 1fr;
  }

  .product-side {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
    align-items: start;
  }
}

@media (max-width: 1020px) {
  .creator-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .creator-main,
  .creator-settings {
    min-width: 0;
    width: 100%;
  }

  .creator-settings {
    position: static;
    top: auto;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 125px;
  }

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

  .product-showcase,
  .product-side {
    grid-template-columns: 1fr;
  }

  .free-plan-banner {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .free-plan-price {
    grid-column: 1;
    padding: 0;
    border: 0;
    align-items: flex-start;
  }

  .free-plan-banner > .btn {
    grid-column: 2;
    justify-self: start;
  }

  .auth-form-wrap {
    box-shadow: none;
  }
}

@media (max-width: 680px) {
  .home-body .public-header {
    height: 66px;
  }

  .home-body .public-header .header-actions .btn-primary {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .home-body .public-header .header-actions .btn-primary i {
    font-size: 16px;
  }

  .hero {
    height: calc(100svh - 24px);
    min-height: 650px;
    max-height: 760px;
  }

  .hero-content {
    padding-top: 108px;
  }

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

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-offer {
    margin-bottom: 16px;
  }

  .hero-facts div {
    min-height: 62px;
  }

  .product-band {
    padding: 72px 0;
  }

  .product-proof > div {
    min-height: 68px;
  }

  .free-plan-banner {
    padding: 17px;
    gap: 13px;
  }

  .free-plan-banner > .btn {
    width: 100%;
  }

  .auth-panel {
    padding: 22px 14px;
  }

  .auth-form-wrap,
  .auth-card {
    padding: 26px 20px;
  }

  .auth-single {
    min-height: calc(100svh - 64px);
    padding: 24px 14px;
  }

  .auth-card h1 {
    font-size: 28px;
  }

  .app-content {
    padding: 20px 14px;
  }

  .tool-section,
  .creator-settings {
    padding: 18px;
  }

  .prompt-tools {
    width: 100%;
    align-items: flex-end;
    justify-content: space-between;
  }

  .tool-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn-ai {
    flex: 0 0 auto;
  }

  .membership-strip.free > .btn,
  .membership-strip.inactive > .btn {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 39px;
  }

  .free-plan-banner {
    grid-template-columns: 1fr;
  }

  .free-plan-icon,
  .free-plan-price,
  .free-plan-banner > .btn {
    grid-column: 1;
  }

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

  .btn-ai {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinning {
    animation: none;
  }
}
