[hidden] {
  display: none !important;
}

button {
  letter-spacing: 0;
}

.marketing-shell {
  min-height: 100vh;
}

.nav-login,
.site-footer button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-footer button {
  padding: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.site-footer button:hover {
  color: var(--black);
  transform: translateX(3px);
}

.brand-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.brand-mark:has(img)::before {
  display: none;
}

body.is-app {
  height: 100vh;
  overflow: hidden;
  background: #e8e7e7;
}

body.is-app .dashboard-app {
  display: grid;
}

.app-shell {
  min-height: 100vh;
}

.dashboard-brand {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dash-tab.is-active {
  background: var(--black-2);
  color: white;
  box-shadow: var(--shadow-button);
}

.dash-tab.is-active::after {
  content: "";
  position: absolute;
  right: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(253, 58, 37, .16);
}

.dash-sidebar-footer button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff725f;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.dash-view {
  display: none;
}

.dash-view.is-active {
  display: block;
  animation: viewIn .45s cubic-bezier(.2, .8, .2, 1);
}

.plan-upgrade,
.user-avatar {
  border: 0;
  cursor: pointer;
}

.plan-upgrade:disabled {
  cursor: default;
}

.button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: .42;
  transform: none;
}

.sites-table-scroll {
  overflow: auto;
}

.sites-table tbody .empty-row {
  cursor: default;
}

.sites-table tbody .empty-row:hover {
  background: transparent;
}

.empty-row td {
  height: 150px;
  color: var(--muted);
  text-align: center;
}

.site-thumb {
  flex: 0 0 auto;
}

.site-thumb img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-thumb img.is-missing {
  display: none;
}

.site-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.site-row-actions button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #ececec;
  cursor: pointer;
}

.site-row-actions svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.capture-dashboard-view {
  display: none;
  place-items: center;
}

.capture-dashboard-view.is-active {
  display: grid;
}

.capture-dashboard-panel {
  width: min(720px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 32px;
  background: rgba(255, 255, 255, .68);
  box-shadow: var(--shadow-card);
}

.capture-dashboard-panel .dash-page-head {
  margin-bottom: 8px;
}

.capture-launch {
  width: 100%;
  margin-top: 16px;
}

.capture-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 11px;
}

.capture-separator::before,
.capture-separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.file-import-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px auto;
  gap: 10px;
  align-items: center;
}

.file-import-picker {
  min-height: 74px;
  padding: 12px 16px;
  border: 1px dashed rgba(9, 9, 11, .18);
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  background: rgba(255, 255, 255, .65);
  cursor: pointer;
}

.file-import-picker svg {
  grid-row: 1 / 3;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
}

.file-import-picker span,
.file-import-picker small {
  display: block;
}

.file-import-picker span {
  font-size: 12px;
  font-weight: 800;
}

.file-import-picker small {
  color: var(--muted);
  font-size: 10px;
}

#templateFile {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#importName {
  height: 46px;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  outline: none;
}

.preview-page-head {
  margin-bottom: 14px;
}

.preview-workspace,
.chat-workspace {
  height: calc(100vh - 218px);
  min-height: 540px;
}

.preview-project-heading,
.preview-title-line {
  display: flex;
  align-items: center;
  gap: 11px;
}

.preview-project-heading h1 {
  font-size: 26px;
}

.preview-project-heading > div > p {
  max-width: 680px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.save-state {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.save-state > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3cba77;
  box-shadow: 0 0 0 4px rgba(60, 186, 119, .12);
}

.save-state.is-modified > span {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(253, 58, 37, .12);
}

.save-state p {
  margin: 0;
}

.page-picker {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.page-picker span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-picker select {
  min-width: 0;
  height: 36px;
  flex: 1;
  padding: 0 28px 0 10px;
  border: 0;
  border-radius: 10px;
  background: #ededed;
  color: var(--ink);
  outline: 0;
  font-size: 11px;
  font-weight: 700;
}

.device-switch button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.device-switch button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.device-switch button.is-active {
  background: white;
  color: var(--black);
  box-shadow: 0 2px 7px rgba(0, 0, 0, .08);
}

#previewCanvas {
  width: 100%;
  height: 100%;
  padding: 30px;
  overflow: hidden;
}

.desktop-preview {
  position: relative;
  width: 90%;
  max-width: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 7px solid #27292b;
  border-radius: 18px;
  background: white;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .22);
}

.desktop-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.desktop-frame iframe,
.phone-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

.mobile-preview {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
}

.phone-shell {
  position: relative;
  height: min(100%, 926px);
  max-width: 428px;
  aspect-ratio: 428 / 926;
  overflow: hidden;
  border: 9px solid #242628;
  border-radius: 42px;
  background: white;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .24);
}

.phone-speaker {
  position: absolute;
  z-index: 3;
  top: 7px;
  left: 50%;
  width: 76px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .72);
  transform: translateX(-50%);
  pointer-events: none;
}

.view-mobile .desktop-preview {
  display: none;
}

.view-mobile .mobile-preview {
  display: grid;
}

.qa-description {
  margin: -9px 0 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.inspector-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inspector-section-title > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.background-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.background-preset {
  position: relative;
  aspect-ratio: 1.35;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 10px;
  background-color: #d9d9d9;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.background-preset:hover {
  transform: translateY(-2px);
}

.background-preset.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(253, 58, 37, .14);
}

.background-preset[data-background-id="grid"] {
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, .5) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, .5) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, .5) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, .5) 75%);
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
  background-size: 14px 14px;
}

.background-preset::after {
  content: attr(aria-label);
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  overflow: hidden;
  padding: 3px 5px;
  border-radius: 5px;
  background: rgba(12, 12, 13, .68);
  color: white;
  font-size: 7px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.background-actions {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.background-upload {
  min-height: 35px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .58);
  color: #5b5f64;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.background-upload:hover {
  border-color: rgba(0, 0, 0, .16);
  background: white;
}

.background-upload.is-admin {
  color: var(--accent);
}

.background-upload svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

#personalBackgroundInput,
#adminBackgroundInput {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.preview-canvas.has-scene-background,
.chat-preview-canvas.has-scene-background {
  background-color: #cfcfcf;
  background-position: center;
  background-size: cover;
}

.chat-preview-canvas {
  position: relative;
  padding: 30px;
}

.chat-preview-canvas.is-interaction-deferred iframe {
  visibility: hidden;
}

.chat-preview-canvas.is-interaction-deferred::after {
  content: "Chargement de la preview";
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.chat-preview-frame {
  width: 88%;
  aspect-ratio: 16 / 9;
}

.qa-strip.is-passed .audit-score,
.qa-strip.is-warning .audit-score,
.qa-strip.is-failed .audit-score {
  background: conic-gradient(var(--accent) 0 var(--qa-score, 0%), #ddd var(--qa-score, 0%));
}

.preview-loading {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background: rgba(229, 229, 229, .78);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .2s ease;
}

.preview-loading.is-visible {
  opacity: 1;
}

.preview-loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(9, 9, 11, .12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

.preview-loading span {
  font-size: 11px;
  font-weight: 800;
}

.chat-panel {
  grid-template-rows: 62px minmax(0, 1fr) auto auto;
}

.ai-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #aaa;
}

.ai-status-dot.is-online {
  background: #39b572;
  box-shadow: 0 0 0 4px rgba(57, 181, 114, .12);
}

.chat-empty {
  margin: auto;
  max-width: 260px;
  text-align: center;
  color: var(--muted);
}

.chat-empty .assistant-mark {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ba1e0d, #ff3b26);
  color: white;
}

.chat-empty strong,
.chat-empty p {
  display: block;
}

.chat-empty p {
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.chat-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.55;
}

.chat-message.is-assistant {
  align-self: flex-start;
  background: #ededed;
  color: #4d5257;
  border-bottom-left-radius: 5px;
}

.chat-message.is-user {
  align-self: flex-end;
  background: var(--black-2);
  color: white;
  border-bottom-right-radius: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .13);
}

.chat-message p {
  margin: 0;
  white-space: pre-wrap;
}

.message-role {
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 800;
  opacity: .55;
}

.message-role svg {
  width: 13px;
  height: 13px;
}

.message-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.message-images img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
}

.message-changes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.change-chip {
  padding: 4px 6px;
  border-radius: 7px;
  background: rgba(253, 58, 37, .1);
  color: #ad2c1e;
  font-size: 8px;
}

.retry-message {
  margin-top: 8px;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.chat-attachments {
  padding: 8px 12px 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.attachment-thumb {
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
}

.attachment-thumb img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: cover;
}

.attachment-thumb button {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--black);
  color: white;
}

.attachment-thumb svg {
  width: 11px;
  height: 11px;
}

.composer-box {
  grid-template-columns: auto 1fr auto;
}

.chat-attach {
  width: 34px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.chat-attach svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

#chatImages {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chat-hint {
  display: block;
  margin: 6px 5px 0;
  color: var(--muted);
  font-size: 8px;
}

.ai-progress {
  align-self: flex-start;
  max-width: 90%;
  padding: 13px;
  border-radius: 15px;
  background: #ededed;
}

.ai-progress-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}

.ai-progress-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(0, 0, 0, .12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.ai-progress p {
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 9px;
}

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

.ai-progress-track span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: aiSlide 1.2s ease-in-out infinite;
}

.profile-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(180px, .7fr));
  gap: 12px;
}

.profile-summary-card,
.profile-credit-card,
.profile-settings-panel {
  border: 1px solid rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .66);
  box-shadow: var(--shadow-soft);
}

.profile-summary-card,
.profile-credit-card {
  min-height: 142px;
  padding: 20px;
  border-radius: 23px;
}

.profile-summary-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
}

.profile-avatar-large {
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-accent);
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-summary-card strong,
.profile-summary-card span {
  display: block;
}

.profile-summary-card > div:nth-child(2) > strong {
  font-size: 18px;
}

.profile-summary-card > div:nth-child(2) > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.profile-credit-card span,
.profile-credit-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.profile-credit-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 32px;
}

.profile-settings-panel {
  margin-top: 14px;
  overflow: hidden;
  border-radius: 25px;
}

.profile-settings-panel > div {
  min-height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}

.profile-settings-panel > div:last-child {
  border-bottom: 0;
}

.profile-settings-panel button {
  padding: 8px 11px;
  border: 0;
  border-radius: 10px;
  background: #ececec;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.profile-settings-panel .danger-setting button {
  background: #fff0ed;
  color: #b42d1d;
}

.auth-shell,
.onboarding-shell,
.paywall-shell,
.busy-overlay {
  position: fixed;
  z-index: 6000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-backdrop,
.paywall-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 15, 16, .48);
  backdrop-filter: blur(14px);
}

.auth-dialog,
.onboarding-panel,
.paywall-dialog,
.busy-dialog {
  position: relative;
  width: min(490px, 100%);
  padding: 32px;
  border: 1px solid white;
  border-radius: 32px;
  background: #f2f2f2;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .26), inset 0 1px 0 white;
}

.auth-dialog > img,
.onboarding-panel header img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  box-shadow: var(--shadow-accent);
}

.auth-dialog h2,
.onboarding-content h2,
.paywall-dialog h2 {
  margin: 20px 0 7px;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.04em;
}

.auth-dialog > p,
.onboarding-content > p,
.paywall-dialog > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-close,
.paywall-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.oauth-button,
.auth-submit,
.demo-access,
.onboarding-content form > button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 800;
}

.oauth-button {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.google-mark {
  color: #4285f4;
  font-size: 18px;
  font-weight: 900;
}

.auth-divider {
  position: relative;
  margin: 18px 0;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.auth-divider::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.auth-divider span {
  padding: 0 10px;
  background: #f2f2f2;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: #e5e5e5;
}

.auth-tabs button {
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.auth-tabs button.is-active {
  background: white;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .07);
}

#authForm,
#onboardingForm {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

#authForm label,
#onboardingForm > label:not(.legal-check) {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

#authForm input,
#onboardingForm input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  outline: none;
}

.auth-submit,
.onboarding-content form > button {
  background: var(--black-2);
  color: white;
  box-shadow: var(--shadow-button);
}

.demo-access {
  background: #e5e5e5;
}

.auth-dialog > small,
.paywall-dialog > small {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.form-feedback {
  min-height: 16px;
  margin: 0;
  color: #b42d1d;
  font-size: 10px;
}

.form-feedback.is-success {
  color: var(--green);
}

.onboarding-panel {
  width: min(620px, 100%);
}

.onboarding-panel header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
}

.onboarding-content {
  margin-top: 18px;
}

.ownership-callout {
  margin-top: 18px;
  padding: 15px;
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #e7e7e7;
}

.ownership-callout i {
  flex: 0 0 auto;
}

.ownership-callout strong,
.ownership-callout span {
  display: block;
}

.ownership-callout span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.legal-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  color: var(--muted);
  font-size: 11px;
}

.paywall-dialog {
  width: min(740px, 100%);
}

.paywall-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.paywall-options article {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 22px;
  background: rgba(255, 255, 255, .62);
  box-shadow: var(--shadow-soft);
}

.paywall-options article.is-featured {
  background: linear-gradient(145deg, #34383b, #202224);
  color: white;
}

.paywall-options article > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.paywall-options article.is-featured > span,
.paywall-options article.is-featured p {
  color: rgba(255, 255, 255, .6);
}

.paywall-options strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.paywall-options del {
  margin-right: 4px;
  color: var(--muted);
  font-size: 14px;
}

.paywall-options p {
  min-height: 42px;
  color: var(--muted);
  font-size: 11px;
}

.paywall-options button {
  width: 100%;
}

.busy-overlay {
  background: rgba(15, 15, 16, .42);
  backdrop-filter: blur(12px);
}

.busy-dialog {
  width: min(360px, 100%);
  text-align: center;
}

.busy-loader {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border: 3px solid rgba(0, 0, 0, .1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

.busy-dialog strong,
.busy-dialog p {
  display: block;
}

.busy-dialog p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

#toast {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes aiSlide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(240%); }
}

@media (max-width: 1100px) {
  .dash-status {
    display: none;
  }

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

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

@media (max-width: 809px) {
  body.is-app {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .dash-tabs {
    grid-template-columns: repeat(4, 1fr);
  }

  .dash-tab.is-active::after {
    display: none;
  }

  .plan-upgrade {
    display: none;
  }

  .preview-project-heading > div > p,
  .save-state {
    display: none;
  }

  .preview-stage-panel {
    min-height: 680px;
  }

  .desktop-preview {
    min-width: 720px;
  }

  .view-mobile {
    justify-content: center;
  }

  .file-import-form,
  .profile-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .profile-summary-card {
    grid-column: auto;
  }

  .paywall-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .dash-topbar-right {
    display: flex;
  }

  .dash-topbar-right .dash-primary,
  .dash-topbar-right .icon-button {
    display: none;
  }

  .dash-tabs {
    grid-template-columns: repeat(4, 1fr);
  }

  .capture-dashboard-panel,
  .auth-dialog,
  .onboarding-panel,
  .paywall-dialog {
    padding: 22px;
    border-radius: 25px;
  }

  .preview-toolbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 78px;
    padding-block: 8px;
  }

  .page-picker {
    width: 100%;
  }
}

/* AgenAI-inspired pricing surface */
html.pricing-open {
  overflow: hidden;
}

.agen-pricing {
  padding-bottom: 40px;
}

.agen-pricing-head {
  margin-bottom: 42px;
}

.agen-pricing-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 9px;
  background: #f5f5f5;
  color: #55585c;
  box-shadow:
    0 3px 3px rgba(0, 0, 0, .11),
    0 2px 2px rgba(0, 0, 0, .08),
    inset 0 1px 0 #fff,
    inset 0 -3px 0 #e1e1e1;
  font-size: 12px;
  font-weight: 750;
}

.agen-pricing-tag > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(#ff7665, var(--accent));
  box-shadow: 0 0 0 5px rgba(253, 58, 37, .11), 0 0 16px rgba(253, 58, 37, .36);
}

.agen-pricing-tag b {
  font-weight: 750;
}

.agen-pricing-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 30px;
}

.agen-pricing-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.01;
}

.agen-pricing-heading h2 span {
  color: #65686c;
}

.agen-payment-note {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px 9px 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .48);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-soft);
}

.agen-payment-note > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #ff6d59, var(--accent));
  color: white;
  box-shadow: var(--shadow-accent);
}

.agen-payment-note svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agen-payment-note strong,
.agen-payment-note small {
  display: block;
}

.agen-payment-note strong {
  font-size: 13px;
}

.agen-payment-note small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}

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

body.has-lifetime .agen-pricing-grid-main {
  grid-template-columns: minmax(0, 1fr);
}

body.has-lifetime .agen-pricing-grid-main > .agen-price-card {
  width: 100%;
}

.agen-price-card {
  min-width: 0;
  min-height: 470px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: 40px;
  background: #f5f5f6;
  box-shadow:
    0 4px 4px rgba(0, 0, 0, .09),
    0 24px 65px rgba(0, 0, 0, .10),
    inset 0 2px 0 #fff,
    inset 0 -5px 0 #dadadd;
  transition: transform .28s ease, box-shadow .28s ease;
}

.agen-price-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 5px 5px rgba(0, 0, 0, .08),
    0 32px 76px rgba(0, 0, 0, .13),
    inset 0 2px 0 #fff,
    inset 0 -5px 0 #dadadd;
}

.agen-price-card.is-dark {
  border-color: rgba(255, 255, 255, .1);
  background: #18181b;
  color: #f7f7f8;
  box-shadow:
    0 5px 5px rgba(0, 0, 0, .24),
    0 28px 68px rgba(0, 0, 0, .22),
    inset 0 2px 0 rgba(255, 255, 255, .11),
    inset 0 -5px 0 #09090b;
}

.agen-price-card.is-dark:hover {
  box-shadow:
    0 6px 6px rgba(0, 0, 0, .24),
    0 36px 82px rgba(0, 0, 0, .28),
    inset 0 2px 0 rgba(255, 255, 255, .11),
    inset 0 -5px 0 #09090b;
}

.agen-plan-topline {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #35373a;
}

.agen-plan-icon {
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #e5e5e7;
  box-shadow: inset 0 1px 0 #fff, 0 9px 20px rgba(0, 0, 0, .09);
}

.agen-plan-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agen-plan-topline > strong {
  font-size: 14px;
}

.agen-plan-topline > i {
  width: 1px;
  height: 27px;
  margin-inline: 2px;
  background: rgba(9, 9, 11, .14);
}

.agen-plan-topline > span:last-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.agen-price-card.is-dark .agen-plan-topline {
  color: #f7f7f8;
}

.agen-price-card.is-dark .agen-plan-icon {
  background: #29292d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 22px rgba(0, 0, 0, .32);
}

.agen-price-card.is-dark .agen-plan-topline > i {
  background: rgba(255, 255, 255, .16);
}

.agen-price-card.is-dark .agen-plan-topline > span:last-child {
  color: rgba(255, 255, 255, .48);
}

.agen-price-primary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
}

.agen-price-value {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 11px;
}

.agen-price-value del {
  width: 100%;
  margin-bottom: -5px;
  color: #96969d;
  font-size: 14px;
  font-weight: 650;
}

.agen-price-value strong {
  font-size: clamp(54px, 5.6vw, 76px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: .95;
  white-space: nowrap;
}

.agen-price-value small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.agen-price-card.is-dark .agen-price-value small {
  color: rgba(255, 255, 255, .48);
}

.agen-plan-cta {
  flex: 0 0 auto;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: #18181b;
  color: white;
  box-shadow: var(--shadow-button);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: transform .22s ease, filter .22s ease;
}

.agen-plan-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.agen-plan-cta.is-light {
  background: #f5f5f6;
  color: #18181b;
  box-shadow:
    0 3px 3px rgba(0, 0, 0, .32),
    0 18px 40px rgba(0, 0, 0, .32),
    inset 0 1px 0 #fff,
    inset 0 -3px 0 #d4d4d7;
}

.agen-plan-cta:focus-visible {
  outline: 3px solid rgba(253, 58, 37, .32);
  outline-offset: 3px;
}

.agen-plan-cta:disabled {
  opacity: .52;
  cursor: default;
  transform: none;
  filter: none;
}

.agen-plan-cta svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

.agen-plan-cta:hover svg {
  transform: translateX(3px);
}

.agen-price-divider {
  height: 1px;
  margin: 40px 0 28px;
  background: rgba(9, 9, 11, .11);
}

.agen-price-card.is-dark .agen-price-divider {
  background: rgba(255, 255, 255, .12);
}

.agen-price-details {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
}

.agen-price-details > div > strong {
  display: block;
  font-size: 13px;
}

.agen-price-details p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.agen-price-card.is-dark .agen-price-details p {
  color: rgba(255, 255, 255, .48);
}

.agen-price-details ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.agen-price-details li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
}

.agen-price-details li > span {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e1e1e3;
  color: #292c2e;
  box-shadow: inset 0 1px 0 #fff;
}

.agen-price-details li svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agen-price-card.is-dark .agen-price-details li > span {
  background: #2c2c30;
  color: #ff7866;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

.agen-topup-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin: 78px 0 28px;
}

.agen-topup-head span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.agen-topup-head h3 {
  margin: 10px 0 0;
  max-width: 720px;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
}

.agen-topup-head > p {
  max-width: 390px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.agen-price-card.is-compact {
  min-height: 390px;
}

.agen-price-card.is-compact .agen-price-primary {
  margin-top: 38px;
}

.agen-price-card.is-compact .agen-price-value strong {
  font-size: clamp(48px, 4.7vw, 64px);
}

.agen-price-card.is-compact .agen-price-divider {
  margin-top: 32px;
}

.paywall-shell {
  align-items: center;
  overflow: hidden;
}

.paywall-shell .paywall-backdrop {
  background: rgba(9, 9, 11, .62);
}

.paywall-dialog.agen-pricing-modal {
  width: min(1180px, calc(100vw - 40px));
  max-height: calc(100dvh - 32px);
  padding: 38px;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 40px;
  background: #e9e9ea;
  box-shadow: 0 42px 120px rgba(0, 0, 0, .38), inset 0 1px 0 #fff;
  scrollbar-width: thin;
  scrollbar-color: #b9b9bd transparent;
}

.agen-pricing-modal .paywall-close {
  z-index: 5;
  top: 20px;
  right: 20px;
  border-radius: 50%;
  background: #dadadd;
}

.agen-modal-head {
  padding-right: 58px;
}

.agen-pricing-modal .agen-modal-head h2 {
  margin: 22px 0 8px;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.agen-pricing-modal .agen-modal-head > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.agen-pricing-modal > .agen-pricing-grid {
  margin-top: 30px;
}

.agen-pricing-modal .agen-price-card {
  min-height: 0;
  padding: 25px;
  border-radius: 30px;
}

.agen-pricing-modal .agen-plan-topline {
  min-height: 38px;
  gap: 10px;
}

.agen-pricing-modal .agen-plan-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.agen-pricing-modal .agen-plan-icon svg {
  width: 18px;
  height: 18px;
}

.agen-pricing-modal .agen-price-primary {
  margin-top: 30px;
  gap: 15px;
}

.agen-pricing-modal .agen-price-value strong,
.agen-pricing-modal .agen-price-card.is-compact .agen-price-value strong {
  font-size: clamp(40px, 4vw, 54px);
}

.agen-pricing-modal .agen-plan-cta {
  min-height: 48px;
  padding-inline: 17px;
}

.agen-pricing-modal .agen-price-divider,
.agen-pricing-modal .agen-price-card.is-compact .agen-price-divider {
  margin: 26px 0 20px;
}

.agen-pricing-modal .agen-price-details {
  gap: 20px;
}

.agen-pricing-modal .agen-topup-head {
  margin: 40px 0 20px;
}

.agen-pricing-modal .agen-topup-head h3 {
  font-size: 27px;
}

.agen-pricing-modal .agen-topup-head > p {
  font-size: 11px;
}

.agen-pricing-modal > small.agen-payment-secure {
  margin: 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #77777d;
  font-size: 10px;
}

.agen-payment-secure svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

@media (max-width: 980px) {
  .agen-pricing-heading,
  .agen-topup-head {
    display: block;
  }

  .agen-payment-note {
    width: max-content;
    margin-top: 24px;
  }

  .agen-topup-head > p {
    margin-top: 14px;
  }

  .agen-price-primary {
    display: block;
  }

  .agen-plan-cta {
    width: 100%;
    margin-top: 24px;
  }

  .agen-pricing-modal .agen-price-primary {
    display: block;
  }
}

@media (max-width: 760px) {
  .agen-pricing {
    padding-top: 105px;
  }

  .agen-pricing-heading h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .agen-pricing-grid {
    grid-template-columns: 1fr;
  }

  .agen-price-card {
    min-height: 0;
    padding: 27px;
    border-radius: 32px;
  }

  .agen-price-primary {
    margin-top: 38px;
  }

  .agen-price-details {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .agen-topup-head {
    margin-top: 58px;
  }

  .paywall-shell {
    padding: 0;
  }

  .paywall-dialog.agen-pricing-modal {
    width: 100%;
    height: 100dvh;
    max-height: none;
    padding: 24px 18px 34px;
    border: 0;
    border-radius: 0;
  }

  .agen-pricing-modal .paywall-close {
    position: fixed;
    top: 14px;
    right: 14px;
  }

  .agen-modal-head {
    padding-right: 48px;
  }

  .agen-pricing-modal .agen-modal-head h2 {
    font-size: 38px;
  }

  .agen-pricing-modal .agen-topup-head {
    margin-top: 46px;
  }
}

@media (max-width: 430px) {
  .agen-plan-topline {
    flex-wrap: wrap;
  }

  .agen-plan-topline > i {
    display: none;
  }

  .agen-plan-topline > span:last-child {
    width: calc(100% - 56px);
    margin-left: 56px;
    margin-top: -10px;
  }

  .agen-price-value strong {
    font-size: 50px;
  }

  .agen-payment-note {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agen-price-card,
  .agen-plan-cta,
  .agen-plan-cta svg {
    transition: none;
  }

  .agen-price-card:hover,
  .agen-plan-cta:hover {
    transform: none;
  }
}
