:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-tint: #fff7ed;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #0f172a;
  --muted: #64748b;
  --muted-strong: #334155;
  --brand-dark: #111827;
  --accent: #e34b2f;
  --accent-2: #ff7a18;
  --accent-soft: #ffedd5;
  --success: #16a34a;
  --radius-sm: 0.65rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 54px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 80px rgba(15, 23, 42, 0.18);
}

html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 7% 0%, rgba(227, 75, 47, 0.12), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(20, 184, 166, 0.10), transparent 26%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  min-height: 100vh;
  background: transparent;
}

.container-xl {
  max-width: 1180px;
}

.navbar {
  min-height: 64px;
  border: 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.navbar-brand {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 0.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--accent));
  font-size: 0.92rem;
  font-weight: 900;
}

.navbar .nav-link {
  gap: 0.4rem;
  border-radius: 999px;
  color: var(--muted-strong);
  font-weight: 800;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--text);
  background: var(--surface-soft);
}

.nav-link-icon {
  color: var(--muted);
  font-size: 1.05rem;
}

.language-switch {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  margin-left: 1rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.business-switcher {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  margin-left: 1rem;
}

.business-switcher .form-select {
  width: min(220px, 34vw);
  border-radius: 999px;
  font-weight: 800;
}

.business-context-pill {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  max-width: min(280px, 38vw);
  margin-left: 1rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.business-context-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-option {
  min-width: 38px;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.language-option:hover,
.language-option.active {
  color: #fff;
  background: var(--brand-dark);
}

.page-body {
  padding: 1.4rem 0 2.5rem;
}

a {
  color: var(--brand-dark);
  font-weight: 700;
}

a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.btn-primary,
.btn-dark {
  border-color: var(--brand-dark);
  background-color: var(--brand-dark);
  color: #fff;
}

.btn-primary:hover,
.btn-dark:hover {
  border-color: #020617;
  background-color: #020617;
  color: #fff;
}

.btn-outline-dark {
  border-color: var(--line-strong);
  color: var(--brand-dark);
  background-color: rgba(255, 255, 255, 0.72);
}

.btn-outline-dark:hover {
  border-color: var(--brand-dark);
  background-color: var(--brand-dark);
  color: #fff;
}

.btn-link {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.btn-link:hover {
  color: var(--brand-dark);
}

.hero {
  margin: 0 0 1.2rem;
  padding: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 252, 0.94)),
    radial-gradient(circle at 78% 8%, rgba(255, 122, 24, 0.14), transparent 30%);
  box-shadow: var(--shadow-md);
}

.public-hero {
  margin-top: 2rem;
}

.page-heading {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem 0 1.2rem;
}

.page-heading.compact {
  padding-top: 1rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-heading h1,
.hero h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
}

.page-heading h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.lead {
  max-width: 60rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.public-section {
  margin-top: 1.4rem;
}

.feature-line {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  min-height: 56px;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  color: var(--muted-strong);
  font-weight: 850;
}

.feature-line i {
  color: var(--success);
  font-size: 1.2rem;
}

.platform-inline-edit {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  min-width: 260px;
}

.platform-access-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) auto;
  align-items: end;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.platform-access-form small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-weight: 700;
}

.platform-access-form-actions {
  display: flex;
  justify-content: flex-end;
}

.card,
.panel,
.metric {
  min-width: 0;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.card h2,
.panel h2 {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 850;
}

.card-icon,
.metric > i,
.panel-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 0.9rem;
  color: #9a3412;
  background: var(--accent-soft);
  font-size: 1.25rem;
}

.card-icon {
  margin-bottom: 1rem;
}

.card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.card li + li {
  margin-top: 0.6rem;
}

.metric-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 1rem;
}

.metric {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-height: 128px;
}

.metric span,
.panel-header span,
.list-item span,
.list-item small,
.empty {
  color: var(--muted);
}

.metric strong {
  display: block;
  color: var(--text);
  font-size: 1.85rem;
  line-height: 1.05;
}

.panel-title {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  grid-column: 1 / -1;
  margin-bottom: 0.25rem;
}

.panel-title.compact {
  margin-bottom: 0;
}

.panel-title h2 {
  margin: 0;
}

.panel-title p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.panel-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  font-size: 1.18rem;
}

.two-column {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  margin-bottom: 1rem;
}

.panel {
  margin-bottom: 1rem;
}

.panel-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.detail-list {
  display: grid;
  gap: 0.5rem 1rem;
  grid-template-columns: minmax(120px, 0.35fr) 1fr;
  margin: 0;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-stack {
  display: grid;
  gap: 1.05rem;
}

.simple-form {
  display: grid;
  gap: 1.15rem;
  max-width: 880px;
}

.form-grid label,
.form-stack label,
.simple-form label {
  display: grid;
  gap: 0.45rem;
}

.form-grid label span,
.form-stack label span,
.simple-form label span {
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.business-profile-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: 1rem;
  align-items: start;
}

.business-profile-fields.panel,
.business-profile-preview-panel .panel {
  height: auto;
}

.business-profile-preview-panel {
  position: sticky;
  top: 1rem;
  align-self: start;
}

.business-profile-preview-panel .panel {
  display: grid;
  gap: 1rem;
  margin-bottom: 0;
}

.business-profile-preview-panel .template-preview-stage {
  min-height: min(670px, calc(100vh - 168px));
}

.business-profile-preview-panel .template-preview {
  width: min(100%, 330px);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  grid-column: 1 / -1;
  padding-top: 0.4rem;
}

.form-hint {
  margin: -0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.sub-panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--surface-soft);
}

.review-box {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--surface-tint);
}

.review-box p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.form-control,
.form-select {
  border-color: var(--line);
  border-radius: 0.75rem;
  background-color: var(--surface-soft);
  color: var(--text);
  min-height: 46px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-dark);
  background-color: var(--surface);
  color: var(--text);
  box-shadow: 0 0 0 0.2rem rgba(17, 24, 39, 0.10);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.item-list {
  display: grid;
  gap: 0.75rem;
}

.list-item {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.list-item p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.brief-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.brief-item {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.brief-item.wide {
  grid-column: 1 / -1;
}

.brief-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brief-item strong,
.brief-item p {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.provider-prompt {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.provider-prompt summary {
  padding: 0.9rem 1rem;
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
}

.provider-prompt pre {
  max-height: 420px;
  margin: 0;
  padding: 1rem;
  overflow: auto;
  border-top: 1px solid var(--line);
  color: var(--muted-strong);
  background: var(--surface-soft);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.result-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  align-items: start;
}

.result-preview {
  position: relative;
  display: grid;
  align-content: end;
  gap: 0.45rem;
  min-height: 260px;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.82) 100%),
    linear-gradient(135deg, #fb923c, #111827 52%, #14b8a6);
}

.result-preview.video-result-preview {
  aspect-ratio: 9 / 16;
  min-height: 0;
  max-height: min(82vh, 820px);
  padding: 0;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.result-preview.video-result-preview video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.result-media-actions {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  left: 0.7rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  pointer-events: none;
}

.result-media-actions a {
  pointer-events: auto;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
}

.result-preview span {
  width: max-content;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.74rem;
  font-weight: 900;
}

.result-preview strong {
  font-size: 1.45rem;
  line-height: 1.05;
}

.result-preview small {
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.78);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.08), 0 0 0 0.25rem rgba(17, 24, 39, 0.18);
}

.table {
  margin: 0;
  color: var(--text);
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--line);
  --bs-table-striped-bg: var(--surface-soft);
  --bs-table-hover-bg: #f1f5f9;
}

.table thead th {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table tbody td {
  padding: 0.9rem 1rem;
  border-color: var(--line);
  color: var(--text);
  vertical-align: middle;
}

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

.creator-page {
  margin: 0 0 2rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 252, 0.94)),
    radial-gradient(circle at 80% 10%, rgba(255, 122, 24, 0.16), transparent 28%);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.creator-copy {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.creator-copy .eyebrow {
  margin-bottom: 0.5rem;
  color: #e34b2f;
  letter-spacing: 0.08em;
}

.creator-copy h1 {
  max-width: 16ch;
  margin: 0;
  color: var(--text);
  font-size: 2.45rem;
  font-weight: 800;
  line-height: 1;
}

.creator-copy p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
}

.creator-shell {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.creator-card,
.preview-phone,
.preview-summary {
  border: 1px solid #e5e8ef;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.creator-form {
  display: grid;
  gap: 1.25rem;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 640px;
  padding: 1.25rem;
}

.creator-progress {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(4, 1fr);
  align-self: start;
}

.creator-progress span {
  min-height: 44px;
  padding: 0.72rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.creator-progress span.active {
  border-color: #111827;
  color: #fff;
  background: #111827;
}

.creator-progress span.done {
  border-color: #fb923c;
  color: #9a3412;
  background: #ffedd5;
}

.creator-step {
  display: none;
  gap: 1rem;
  align-content: start;
}

.creator-step.active {
  display: grid;
}

.step-heading {
  display: grid;
  gap: 0.35rem;
}

.step-heading span {
  color: #e34b2f;
  font-size: 0.86rem;
  font-weight: 800;
}

.step-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.55rem;
}

.step-heading p {
  max-width: 42rem;
  margin: 0;
  color: #64748b;
}

.format-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.format-card {
  display: grid;
  gap: 0.4rem;
  min-height: 154px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  color: #0f172a;
  background: #fff;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.format-card:hover,
.format-card.active {
  border-color: #111827;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
}

.format-card small {
  color: #64748b;
}

.choice-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.65rem;
  min-height: 128px;
  padding: 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}

.choice-card.compact-choice {
  min-height: auto;
  max-width: 560px;
}

.choice-card:has(input:checked) {
  border-color: #111827;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.choice-card input {
  margin-top: 0.2rem;
  accent-color: #111827;
}

.choice-card strong,
.choice-card small {
  grid-column: 2;
}

.choice-card small {
  color: #64748b;
}

.video-message-builder {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
}

.video-message-builder label {
  display: grid;
  gap: 0.45rem;
}

.video-message-list {
  display: grid;
  gap: 0.65rem;
}

.video-message-row {
  display: grid;
  gap: 0.45rem;
}

.video-message-add {
  width: max-content;
}

.template-mini {
  grid-column: 1 / -1;
  position: relative;
  display: block;
  height: 56px;
  overflow: hidden;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, #dbeafe, #f8fafc 48%, #cbd5e1);
}

.template-mini i,
.template-mini b,
.template-mini em {
  position: absolute;
  display: block;
  content: "";
}

.template-mini i {
  left: 14%;
  bottom: 10%;
  width: 58%;
  height: 34%;
  border-radius: 999px 999px 14px 14px;
  background: rgba(255, 255, 255, 0.86);
}

.template-mini b {
  left: 12%;
  top: 15%;
  width: 76%;
  height: 34%;
  border-radius: 999px;
}

.template-mini em {
  right: 9%;
  bottom: 10%;
  width: 18%;
  height: 10%;
  border-radius: 999px;
}

.template-mini.orange b { background: rgba(241, 74, 28, 0.9); }
.template-mini.premium { background: linear-gradient(145deg, #111827, #334155); }
.template-mini.premium b { background: rgba(194, 144, 73, 0.88); }
.template-mini.minimal { background: linear-gradient(145deg, #ffffff, #e2e8f0); }
.template-mini.minimal b { background: rgba(255, 255, 255, 0.92); border: 1px solid #cbd5e1; }
.template-mini.badge b { background: rgba(220, 38, 38, 0.88); width: 54%; border-radius: 16px; }
.template-mini.logo b { display: none; }
.template-mini.subtitle b {
  left: 18%;
  right: 18%;
  top: auto;
  bottom: 22%;
  width: auto;
  height: 18%;
  background: rgba(15, 23, 42, 0.74);
}
.template-mini.custom b { background: repeating-linear-gradient(90deg, #111827 0 8px, #f97316 8px 16px); opacity: 0.8; }
.template-mini.orange em,
.template-mini.badge em { background: #111827; }
.template-mini.premium em { background: #f8e7c5; }
.template-mini.minimal em,
.template-mini.logo em,
.template-mini.subtitle em,
.template-mini.custom em { background: #334155; }

.template-preview-stage {
  min-height: 640px;
  padding: 1rem;
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
}

.template-preview {
  position: relative;
  display: none;
  width: min(100%, 350px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  overflow: hidden;
  border: 8px solid #0f172a;
  border-radius: 1.8rem;
  background: #0f172a;
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.22);
}

.template-preview.active {
  display: block;
}

.template-preview::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.02) 42%, rgba(15, 23, 42, 0.38) 100%),
    linear-gradient(135deg, #dbeafe 0 16%, #f8fafc 16% 32%, #cbd5e1 32% 46%, #e2e8f0 46% 62%, #94a3b8 62% 100%);
  content: "";
}

.template-preview::after {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 4%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  content: "";
}

.template-preview .mock-card {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 10%;
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  color: #fff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
  z-index: 1;
}

.template-preview.placement-bottom .mock-card {
  top: auto;
  bottom: 16%;
}

.template-preview.placement-bottom em.template-preview-logo {
  bottom: 7%;
}

.template-preview.subtitle.placement-bottom .mock-card {
  bottom: 19%;
}

.template-preview .mock-card b,
.template-preview .mock-card strong,
.template-preview .mock-card small {
  display: block;
}

.template-preview .mock-card b {
  font-size: 1.12rem;
  line-height: 1.05;
}

.template-preview .mock-card strong {
  justify-self: end;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.25);
  font-size: 1.25rem;
}

.template-preview em.template-preview-logo {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 8%;
  transform: translateX(-50%);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  z-index: 1;
}

.template-preview em.template-preview-logo.has-logo {
  min-width: 3.25rem;
  min-height: 1.6rem;
  padding: 0.22rem 0.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.template-preview em.template-preview-logo img {
  display: block;
  width: auto;
  max-width: 5.6rem;
  max-height: 1.55rem;
  object-fit: contain;
}

.template-preview.orange .mock-card {
  left: 7%;
  right: 7%;
  width: auto;
  top: 10%;
  min-height: 24%;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 0.32rem 0.62rem;
  padding: 0.58rem 0.78rem;
  overflow: hidden;
  border-radius: 0.35rem 1.25rem 1.25rem 0.35rem;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.96), rgba(225, 29, 18, 0.94));
}

.template-preview.orange.placement-bottom .mock-card {
  top: auto;
  bottom: 16%;
}

.template-preview.orange .mock-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.55rem;
  background: linear-gradient(180deg, #ffcf54, #ff8a2a);
  content: "";
}

.template-preview.orange .mock-card::after {
  position: absolute;
  top: 17%;
  bottom: 17%;
  left: 52%;
  width: 1px;
  background: rgba(255, 255, 255, 0.42);
  content: "";
  pointer-events: none;
}

.template-preview.orange .mock-card b {
  align-self: end;
  padding-left: 0.2rem;
  max-width: 13ch;
  font-size: 0.96rem;
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
}

.template-preview.orange .mock-card small {
  align-self: start;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  font-size: 0.58rem;
  line-height: 1.12;
}

.template-preview.orange .mock-card strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  justify-self: stretch;
  align-self: center;
  margin-left: 0.25rem;
  padding: 0.28rem 0.46rem;
  background: rgba(185, 28, 28, 0.28);
  font-size: 0.6rem;
  line-height: 1.15;
  text-align: left;
}
.template-preview.premium::before { background: linear-gradient(180deg, #111827 0%, #1f2937 45%, #334155 100%); }
.template-preview.premium .mock-card { background: rgba(4, 8, 18, 0.82); border: 1px solid rgba(194, 144, 73, 0.62); }
.template-preview.premium .mock-card strong { background: rgba(194, 144, 73, 0.86); }
.template-preview.minimal::before { background: linear-gradient(180deg, #ffffff 0%, #eef2ff 48%, #cbd5e1 100%); }
.template-preview.minimal .mock-card { background: rgba(255, 255, 255, 0.92); color: #111827; border: 1px solid #cbd5e1; }
.template-preview.minimal .mock-card strong { background: #111827; color: #fff; }
.template-preview.badge .mock-card { left: 18%; right: 18%; background: rgba(220, 38, 38, 0.92); text-align: center; transform: rotate(-2deg); }
.template-preview.logo .mock-card { display: none; }
.template-preview.subtitle .mock-card {
  top: auto;
  left: 12%;
  right: 12%;
  bottom: 19%;
  display: grid;
  justify-items: center;
  background: rgba(15, 23, 42, 0.72);
  text-align: center;
}

.template-preview.subtitle .mock-card strong {
  justify-self: center;
  background: transparent;
  font-size: 1rem;
}
.template-preview.custom .mock-card { background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(249, 115, 22, 0.78)); }

.transition-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.transition-picker {
  display: grid;
  gap: 0.65rem;
}

.transition-picker > span {
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.transition-preview-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-top: 0.65rem;
}

.transition-preview {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted-strong);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.transition-preview:hover,
.transition-preview:focus-visible {
  border-color: rgba(15, 23, 42, 0.38);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.11);
  transform: translateY(-1px);
  outline: none;
}

.transition-preview.active {
  border-color: var(--brand-dark);
  color: var(--text);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.transition-preview strong {
  font-size: 0.82rem;
}

.transition-preview small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.transition-thumb {
  position: relative;
  height: 54px;
  overflow: hidden;
  border-radius: 0.65rem;
  background: #0f172a;
}

.transition-thumb i,
.transition-thumb b {
  position: absolute;
  inset: 8px auto 8px 8px;
  width: calc(50% - 10px);
  border-radius: 0.45rem;
  background: linear-gradient(135deg, #f97316, #ef4444);
  content: "";
}

.transition-thumb b {
  right: 8px;
  left: auto;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
}

.transition-thumb.crossfade i,
.transition-thumb.fadethroughblack i {
  right: 28%;
  width: 48%;
}

.transition-thumb.crossfade b,
.transition-thumb.fadethroughblack b {
  left: 28%;
  width: 48%;
}

.transition-thumb.crossfade::after {
  position: absolute;
  inset: 8px 28%;
  border-radius: 0.45rem;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.35), rgba(20, 184, 166, 0.45));
  content: "";
}

.transition-thumb.fadethroughblack::after {
  position: absolute;
  inset: 0 39%;
  background: rgba(0, 0, 0, 0.78);
  content: "";
}

.transition-thumb.slideleft i {
  left: -2px;
  width: 58%;
}

.transition-thumb.slideleft b {
  right: -2px;
  width: 58%;
}

.transition-thumb.wipeleft::after {
  position: absolute;
  inset: 0 auto 0 46%;
  width: 5px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.95);
  content: "";
}

.transition-thumb.cut::after {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: calc(50% - 1px);
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  content: "";
}

.voice-preview-panel {
  display: grid;
  align-content: start;
  min-height: 96px;
}

.voice-preview-item {
  display: none;
  gap: 0.5rem;
}

.voice-preview-item.active {
  display: grid;
}

.voice-preview-item strong,
.voice-preview-item small {
  display: block;
}

.voice-preview-item small {
  color: #64748b;
}

.voice-preview-item audio {
  width: 100%;
  max-width: 380px;
}

.voice-select-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.25fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
}

.voice-select-card label {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.voice-select-card .form-select {
  min-height: 54px;
  background-color: #fff;
}

@media (max-width: 900px) {
  .voice-select-card {
    grid-template-columns: 1fr;
  }
}

.format-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 0.8rem;
  color: #fff;
  background: linear-gradient(135deg, #111827, #e34b2f);
  font-weight: 900;
}

.soft-field {
  display: grid;
  gap: 0.45rem;
}

.soft-field.nested-field {
  margin-top: 0.75rem;
}

.soft-field span {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
}

.creator-page .form-control {
  min-height: 48px;
  border: 1px solid #dbe2ea;
  border-radius: 0.85rem;
  background: #f8fafc;
  color: #0f172a;
}

.creator-page textarea.form-control {
  min-height: 126px;
}

.upload-dropzone {
  padding: 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
  background: #f8fafc;
}

.upload-dropzone input[type="file"] {
  background: #fff;
}

.quick-video-picker {
  display: grid;
  gap: 0.9rem;
}

.quick-video-picker.is-enhanced .quick-video-select input[type="file"] {
  display: none;
}

.quick-video-select {
  width: fit-content;
}

.quick-video-empty {
  display: grid;
  min-height: 92px;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 0.9rem;
  background: #fff;
  color: #64748b;
  font-weight: 700;
}

.quick-video-list {
  display: grid;
  gap: 0.75rem;
}

.quick-video-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #dbe2ea;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.quick-video-card.dragging {
  opacity: 0.56;
}

.quick-video-card.drag-over {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.quick-video-card video {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 0.7rem;
  background: #0f172a;
}

.quick-video-meta {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.quick-video-meta strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-video-meta small {
  color: #64748b;
  font-weight: 700;
}

.quick-video-actions {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.quick-video-handle,
.quick-video-remove {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
}

.quick-video-handle {
  cursor: grab;
}

.quick-video-remove {
  cursor: pointer;
}

.quick-video-remove:hover {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.logo-upload-field {
  display: grid;
  gap: 0.9rem;
}

.logo-upload-field .field-label {
  display: block;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
}

.logo-upload-field p {
  margin: 0.25rem 0 0;
  color: #64748b;
}

.logo-upload-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 1rem;
  border: 1px solid #dbe2ea;
  border-radius: 1rem;
  background: #f8fafc;
}

.logo-upload-box img,
.logo-upload-empty {
  display: inline-grid;
  place-items: center;
  width: 112px;
  height: 64px;
  border-radius: 0.85rem;
  background: #fff;
  object-fit: contain;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.logo-upload-empty {
  color: #64748b;
  font-size: 1.6rem;
}

.render-loading-panel {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  background: #eff6ff;
  color: #0f172a;
}

.render-loading-panel strong {
  display: block;
  font-weight: 900;
}

.render-loading-panel p,
.render-request-status {
  margin: 0.2rem 0 0;
  color: #475569;
}

.render-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #bfdbfe;
  border-top-color: #111827;
  border-radius: 999px;
  animation: render-spin 0.85s linear infinite;
}

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

.section-label {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.creator-page .form-control:focus {
  border-color: #111827;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 0 0 0.2rem rgba(17, 24, 39, 0.1);
}

.media-picker {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.media-tile {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto 44px 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  background: #fff;
  cursor: pointer;
}

.media-tile:has(input:checked) {
  border-color: #111827;
  background: #f8fafc;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
}

.media-tile input {
  width: 18px;
  height: 18px;
}

.media-thumb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 0.8rem;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 900;
}

.media-tile strong,
.media-tile small {
  display: block;
}

.media-tile small {
  color: #64748b;
}

.empty-state {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  padding: 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
  background: #f8fafc;
}

.empty-state p {
  margin: 0;
  color: #64748b;
}

.review-box.light {
  border-color: #fed7aa;
  background: #fff7ed;
}

.review-box.light p {
  color: #9a3412;
}

.creator-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
}

.creator-actions .btn {
  min-height: 44px;
  border-radius: 999px;
  padding-right: 1.1rem;
  padding-left: 1.1rem;
  font-weight: 800;
}

.creator-actions .btn-link {
  color: #64748b;
  text-decoration: none;
}

.quick-reel-shell {
  max-width: 860px;
  margin: 0 auto;
}

.quick-reel-form {
  display: grid;
  gap: 1.25rem;
}

.quick-step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.quick-step h2 {
  margin: 0;
  font-size: 1.1rem;
}

.quick-step p {
  margin: 0.2rem 0 0;
  color: #64748b;
}

.quick-step-number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-weight: 900;
}

.quick-message-list {
  display: grid;
  gap: 0.75rem;
}

.quick-profile-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid #fde68a;
  border-radius: 1rem;
  background: #fffbeb;
}

.quick-profile-summary i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 0.8rem;
  background: #fef3c7;
  color: #92400e;
  font-size: 1.25rem;
}

.quick-profile-summary p {
  margin: 0.2rem 0 0;
  color: #92400e;
}

.quick-profile-summary a {
  color: #111827;
  font-weight: 800;
  text-decoration: none;
}

.onboarding-complete {
  display: grid;
  gap: 1.25rem;
}

.onboarding-next-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.onboarding-next-card {
  min-height: 170px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
}

.onboarding-next-card:hover {
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.onboarding-next-card strong,
.onboarding-next-card span {
  display: block;
}

.onboarding-next-card span {
  color: #64748b;
}

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

.simple-result-panel {
  max-width: 760px;
  margin: 0 auto;
}

.simple-video-result {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.simple-video-result video {
  width: min(100%, 430px);
  max-height: min(78vh, 820px);
  aspect-ratio: 9 / 16;
  border-radius: 1.25rem;
  background: #020617;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.simple-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.simple-post-result {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
}

.simple-post-result strong {
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 900;
}

.simple-post-result p,
.simple-post-result small {
  margin: 0;
  color: #475569;
}

.simple-next-step-panel {
  max-width: 760px;
  margin: 1rem auto 0;
}

.simple-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.simple-revision-form {
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.simple-publish-summary {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border: 1px solid #bbf7d0;
  border-radius: 1rem;
  background: #f0fdf4;
}

.simple-publish-summary span,
.simple-publish-summary small {
  color: #166534;
}

.simple-publish-summary strong {
  color: #14532d;
  font-weight: 900;
}

.simple-back-link {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.customer-welcome {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0 1.2rem;
}

.customer-welcome h1 {
  max-width: none;
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  font-weight: 900;
}

.customer-action-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.customer-action-card p {
  margin: 0;
  color: var(--muted);
}

.customer-action-card .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

.customer-content-list {
  display: grid;
  gap: 0.75rem;
}

.customer-content-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.9rem;
  align-items: center;
  min-height: 78px;
  padding: 0.9rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.customer-content-item:hover {
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.customer-content-item strong,
.customer-content-item small {
  display: block;
}

.customer-content-item small {
  margin-top: 0.18rem;
  color: #64748b;
}

.content-type-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 0.85rem;
  background: #ffedd5;
  color: #9a3412;
  font-size: 1.2rem;
}

.content-status-pill {
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.customer-action-card.primary-action {
  border-color: #fed7aa;
  background:
    linear-gradient(135deg, #fff, #fff7ed);
}

.onboarding-shell {
  display: grid;
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
}

.onboarding-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.onboarding-progress span {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  font-weight: 900;
}

.onboarding-progress span.active {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #fff;
}

.onboarding-progress span.done {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.onboarding-panel h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.auth-gate {
  display: grid;
  min-height: calc(100vh - 140px);
  place-items: center;
  padding: 1rem 0 2rem;
}

.auth-card {
  display: grid;
  gap: 1rem;
  width: min(100%, 720px);
  padding: clamp(1.5rem, 5vw, 3.2rem);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.6rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
    radial-gradient(circle at 88% 6%, rgba(20, 184, 166, 0.12), transparent 30%);
  box-shadow: var(--shadow-md);
}

.auth-mark {
  width: 54px;
  height: 54px;
  font-size: 1.2rem;
}

.auth-card h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.98;
  font-weight: 900;
}

.auth-card .lead {
  max-width: 56rem;
  margin: 0;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.auth-actions .btn {
  min-height: 48px;
  padding-right: 1.2rem;
  padding-left: 1.2rem;
}

.auth-flow-preview {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.auth-flow-preview span {
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  color: var(--muted-strong);
  font-weight: 850;
}

.auth-flow-preview b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9a3412;
}

.preview-column {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 1rem;
}

.preview-phone {
  overflow: hidden;
  padding: 0.8rem;
  background: #0f172a;
}

.phone-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.4rem 0.55rem 0.8rem;
  color: #fff;
  font-size: 0.86rem;
}

.phone-top span:first-child {
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.phone-top span:last-child {
  justify-self: end;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.post-preview {
  overflow: hidden;
  border-radius: 0.85rem;
  background: #fff;
}

.post-account {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.85rem;
  color: #0f172a;
}

.post-account small {
  display: block;
  color: #64748b;
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  background: #111827;
  font-weight: 900;
}

.creative-canvas {
  position: relative;
  display: grid;
  align-content: end;
  gap: 0.45rem;
  min-height: 360px;
  padding: 1.25rem;
  color: #fff;
  background:
    linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.74) 100%),
    linear-gradient(135deg, #fb923c, #111827 52%, #14b8a6);
}

.creative-canvas.video-mode {
  min-height: 430px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.78) 100%),
    linear-gradient(135deg, #111827 0%, #e34b2f 48%, #facc15 100%);
}

.creative-canvas.video-mode > [data-preview-format],
.creative-canvas.video-mode > [data-preview-title-text],
.creative-canvas.video-mode > [data-preview-goal-text] {
  display: none;
}

.creative-canvas.video-mode.template-premium {
  background:
    linear-gradient(180deg, transparent 0%, rgba(4, 8, 18, 0.82) 100%),
    linear-gradient(135deg, #111827 0%, #334155 58%, #c29049 100%);
}

.creative-canvas.video-mode.template-minimal {
  color: #111827;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.82) 100%),
    linear-gradient(135deg, #ffffff 0%, #dbeafe 52%, #cbd5e1 100%);
}

.creative-canvas.video-mode.template-badge {
  background:
    linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.72) 100%),
    linear-gradient(135deg, #fee2e2 0%, #ef4444 48%, #111827 100%);
}

.creative-canvas.video-mode.template-logo {
  background:
    linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.76) 100%),
    linear-gradient(135deg, #0f172a 0%, #475569 52%, #94a3b8 100%);
}

.creative-canvas.video-mode.template-subtitle {
  background:
    linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.72) 100%),
    linear-gradient(135deg, #0f172a 0%, #475569 52%, #f8fafc 100%);
}

.creative-canvas.video-mode.template-custom {
  background:
    linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.78) 100%),
    linear-gradient(135deg, #111827 0%, #f97316 48%, #64748b 100%);
}

.creative-canvas span {
  position: relative;
  z-index: 2;
  width: max-content;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.76rem;
  font-weight: 900;
}

.creative-canvas strong {
  position: relative;
  z-index: 2;
  max-width: 15rem;
  font-size: 1.75rem;
  line-height: 1;
}

.creative-canvas small {
  position: relative;
  z-index: 2;
  max-width: 18rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.phone-render-overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  color: #fff;
}

.phone-render-overlay span,
.phone-render-overlay b,
.phone-render-overlay strong,
.phone-render-overlay small,
.phone-render-overlay i {
  display: block;
  position: static;
  z-index: auto;
}

.phone-orange-shell {
  position: absolute;
  top: 8%;
  left: 6%;
  right: 6%;
  min-height: 6.7rem;
  overflow: hidden;
  border-radius: 0.55rem 1.9rem 1.9rem 0.55rem;
  background: linear-gradient(120deg, rgba(255, 90, 31, 0.96), rgba(226, 35, 21, 0.94));
  box-shadow: 0 1.2rem 2.3rem rgba(15, 23, 42, 0.25);
}

.phone-orange-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7.8%;
  background: linear-gradient(180deg, #ffd051, #ff8d29);
}

.phone-orange-stamp {
  position: absolute;
  left: 13%;
  top: 22%;
  width: 3.9rem;
  height: 3.9rem;
  border: 0.28rem solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.phone-orange-divider {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 0.08rem;
  height: 64%;
  background: rgba(255, 255, 255, 0.52);
}

.phone-orange-product {
  position: absolute;
  left: 13%;
  top: 18%;
  width: 32%;
}

.phone-orange-product span,
.phone-premium-shell section span,
.phone-minimal-strip section span,
.phone-custom-card section span {
  margin-bottom: 0.42rem;
  text-transform: uppercase;
  letter-spacing: 0.04rem;
  font-size: 0.54rem;
  font-weight: 900;
}

.phone-orange-product b {
  text-transform: uppercase;
  font-size: clamp(1.1rem, 5.8vw, 1.7rem);
  line-height: 0.95;
  font-weight: 950;
}

.phone-orange-product small {
  margin-top: 0.38rem;
  text-transform: uppercase;
  font-size: clamp(0.72rem, 3.3vw, 0.95rem);
  line-height: 1.05;
  font-weight: 850;
}

.phone-orange-message {
  position: absolute;
  left: 56%;
  top: 26%;
  width: 34%;
}

.phone-orange-message strong {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.62rem 0.72rem;
  border-radius: 0.85rem;
  background: rgba(185, 28, 28, 0.32);
  font-size: clamp(0.78rem, 4vw, 1rem);
  line-height: 1.08;
  font-weight: 950;
}

.phone-orange-message i {
  width: 0.34rem;
  height: 0.34rem;
  flex: 0 0 0.34rem;
  border-radius: 999px;
  background: #fff1a5;
}

.phone-premium-shell {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 8%;
  min-height: 8.7rem;
  overflow: hidden;
  border: 1px solid rgba(209, 166, 94, 0.74);
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(5, 10, 24, 0.92), rgba(24, 32, 50, 0.86));
  box-shadow: 0 1.4rem 2.6rem rgba(2, 6, 23, 0.34);
}

.phone-premium-frame {
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(209, 166, 94, 0.38);
  border-radius: 0.85rem;
}

.phone-premium-shell section {
  position: absolute;
  left: 1.45rem;
  top: 1.55rem;
  width: 43%;
}

.phone-premium-shell section span {
  color: #d7b374;
  letter-spacing: 0.13rem;
}

.phone-premium-shell b {
  color: #fff7df;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 5.5vw, 1.65rem);
  line-height: 1;
  font-weight: 950;
}

.phone-premium-shell small {
  margin-top: 0.38rem;
  color: rgba(255, 247, 223, 0.86);
  text-transform: uppercase;
  font-size: clamp(0.72rem, 3.1vw, 0.92rem);
  line-height: 1.08;
  font-weight: 850;
}

.phone-premium-shell > strong {
  position: absolute;
  right: 1.35rem;
  top: 2.3rem;
  width: 36%;
  padding: 0.78rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(209, 166, 94, 0.16);
  color: #fff7df;
  font-size: clamp(0.82rem, 4.2vw, 1.08rem);
  line-height: 1.08;
  font-weight: 950;
}

.phone-minimal-strip {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 8%;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
  align-items: center;
  min-height: 5.2rem;
  padding: 0.9rem 1.05rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.93);
  color: #111827;
  box-shadow: 0 1.2rem 2.2rem rgba(15, 23, 42, 0.18);
}

.phone-minimal-strip section span {
  color: #64748b;
  letter-spacing: 0.08rem;
}

.phone-minimal-strip b {
  text-transform: uppercase;
  font-size: clamp(0.9rem, 4.6vw, 1.22rem);
  line-height: 1.02;
  font-weight: 950;
}

.phone-minimal-strip strong {
  padding-left: 0.9rem;
  border-left: 0.18rem solid #111827;
  color: #111827;
  font-size: clamp(0.9rem, 4.5vw, 1.2rem);
  line-height: 1.1;
  font-weight: 900;
}

.phone-badge-ribbon {
  position: absolute;
  top: 7%;
  left: 11%;
  right: 11%;
  min-height: 4.8rem;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.98), rgba(220, 38, 38, 0.94));
  box-shadow: 0 1.2rem 2.2rem rgba(127, 29, 29, 0.34);
  text-align: center;
  transform: rotate(-2deg);
}

.phone-badge-ribbon span {
  margin-bottom: 0.34rem;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  font-size: 0.72rem;
  font-weight: 950;
}

.phone-badge-ribbon strong {
  text-transform: uppercase;
  font-size: clamp(0.94rem, 4.7vw, 1.22rem);
  line-height: 1.05;
  font-weight: 950;
}

.phone-badge-product {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 9%;
  padding: 0.82rem 1rem;
  border-radius: 1rem;
  background: rgba(17, 24, 39, 0.78);
  text-align: center;
}

.phone-badge-product b {
  text-transform: uppercase;
  font-size: clamp(1rem, 5vw, 1.35rem);
  line-height: 1.02;
  font-weight: 950;
}

.phone-badge-product small {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  font-size: clamp(0.72rem, 3.3vw, 0.92rem);
  line-height: 1.08;
  font-weight: 850;
}

.phone-custom-card {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 8%;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: center;
  min-height: 6.9rem;
  overflow: hidden;
  padding: 1.08rem 1.24rem;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(249, 115, 22, 0.78));
  box-shadow: 0 1.35rem 2.5rem rgba(15, 23, 42, 0.3);
}

.phone-custom-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background: repeating-linear-gradient(90deg, transparent 0 0.85rem, #fff 0.85rem 1.02rem);
}

.phone-custom-card section,
.phone-custom-card > strong {
  position: relative;
  z-index: 2;
}

.phone-custom-card b {
  text-transform: uppercase;
  font-size: clamp(1rem, 4.9vw, 1.34rem);
  line-height: 1;
  font-weight: 950;
}

.phone-custom-card small {
  margin-top: 0.32rem;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  font-size: clamp(0.72rem, 3.3vw, 0.9rem);
  line-height: 1.08;
  font-weight: 850;
}

.phone-custom-card > strong {
  padding: 0.78rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.32);
  font-size: clamp(0.82rem, 4vw, 1.05rem);
  line-height: 1.08;
  font-weight: 950;
}

.phone-subtitle-shell {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 17%;
  display: grid;
  justify-items: center;
}

.phone-subtitle-shell strong {
  max-width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.22);
  color: #fff;
  text-align: center;
  font-size: clamp(0.9rem, 4vw, 1.08rem);
  line-height: 1.12;
  font-weight: 900;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.32);
}

.phone-logo {
  position: absolute;
  z-index: 3;
  right: 7%;
  bottom: 7%;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.creative-canvas.template-minimal .phone-logo {
  background: #111827;
}

.post-caption {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem;
  color: #0f172a;
}

.post-caption p {
  margin: 0;
  color: #334155;
}

.post-caption small {
  color: #64748b;
}

.preview-summary {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.preview-summary span {
  color: #e34b2f;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-summary p {
  margin: 0;
  color: #334155;
}

@media (max-width: 992px) {
  .creator-copy {
    display: grid;
  }

  .creator-copy h1 {
    max-width: 18ch;
    font-size: 2rem;
  }

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

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

  .business-profile-preview-panel {
    position: static;
  }

  .creator-form {
    min-height: auto;
  }

  .preview-column {
    position: static;
  }

  .creative-canvas,
  .creative-canvas.video-mode {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-switch {
    margin: 0.75rem 0 0;
  }

  .business-switcher {
    width: 100%;
    margin: 0.75rem 0 0;
  }

  .business-switcher .form-select {
    width: 100%;
  }

  .hero {
    padding: 1.25rem;
  }

  .panel,
  .card,
  .metric {
    padding: 1rem;
  }

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

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

  .creator-page {
    padding: 0.8rem;
    border-radius: 0.9rem;
  }

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

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

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

  .creator-actions .btn,
  .creator-actions .btn-link {
    width: 100%;
    text-align: center;
  }

  .media-tile {
    grid-template-columns: auto 40px 1fr;
  }

  .quick-profile-summary {
    grid-template-columns: 1fr;
  }

  .simple-video-result video {
    width: 100%;
  }

  .auth-flow-preview {
    grid-template-columns: 1fr;
  }

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

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
