@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f3f6fc;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --text: #14213a;
  --muted: #6c7895;
  --line: #dde5f3;
  --line-strong: #ced9ee;
  --brand: #1f6dff;
  --brand-2: #1547ad;
  --brand-dark: #0f1b3f;
  --ok: #198754;
  --danger: #d7354a;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 30px rgba(17, 38, 82, 0.08);
  --shadow-strong: 0 16px 42px rgba(23, 54, 114, 0.14);
  --sidebar-w: 280px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 109, 255, 0.13), transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(21, 71, 173, 0.08), transparent 38%),
    var(--bg);
}

body.setup-mobile-flow {
  overflow: hidden;
  height: 100dvh;
  --setup-flow-gutter-x: 12px;
  --setup-flow-bottom-gap: calc(28px + env(safe-area-inset-bottom));
  --setup-flow-inner-gap: 10px;
}

body.setup-mobile-flow .app-shell,
body.setup-mobile-flow .content-area.guest,
body.setup-mobile-flow .page-wrap {
  height: 100dvh;
}

body.setup-mobile-flow .content-area.guest {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100vw;
  min-height: 100dvh;
  overflow: hidden;
}

body.setup-mobile-flow .page-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: none;
  padding: 0;
  overflow: hidden;
}

body.setup-mobile-flow .setup-wizard {
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  padding: 10px 0 var(--setup-flow-bottom-gap);
}

body.setup-mobile-flow .setup-showcase {
  margin: 0 var(--setup-flow-gutter-x);
  padding: 14px 14px 26px;
}

body.setup-mobile-flow .setup-form {
  margin: 0 var(--setup-flow-gutter-x);
  padding-bottom: var(--setup-flow-inner-gap);
  justify-content: flex-start;
  align-items: stretch;
}

body.setup-mobile-flow .setup-stage-card {
  padding: 14px;
  overflow-y: auto;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  border: 1px solid #cfe0ff;
  background:
    radial-gradient(circle at top right, rgba(58, 132, 255, 0.16), transparent 42%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.93));
  box-shadow:
    0 20px 34px -26px rgba(27, 89, 196, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.setup-mobile-flow .setup-stage-card.setup-screen-block {
  height: auto;
  min-height: 0;
  justify-content: center;
}

body.setup-mobile-flow .setup-stage-head {
  gap: 6px;
  margin-bottom: 10px;
  padding: 10px 10px 8px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(232, 242, 255, 0.8), rgba(247, 251, 255, 0.8));
  border: 1px solid #d5e3fb;
}

body.setup-mobile-flow .setup-stage-head strong {
  font-size: 1.28rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

body.setup-mobile-flow .setup-stage-head p,
body.setup-mobile-flow .setup-stage-why,
body.setup-mobile-flow #setupSaveStatus {
  font-size: 0.9rem;
  line-height: 1.35;
}

body.setup-mobile-flow .setup-pane {
  gap: 8px;
}

body.setup-mobile-flow .setup-address-box {
  padding: 8px;
  gap: 8px;
}

body.setup-mobile-flow .setup-field-block {
  gap: 4px;
}

body.setup-mobile-flow .setup-field-block label {
  font-size: 0.96rem;
}

body.setup-mobile-flow .setup-check-line {
  font-size: 0.9rem;
  gap: 6px;
}

body.setup-mobile-flow .setup-field-block .field {
  height: 48px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 1rem;
  border: 1px solid #b8d1f7;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 247, 255, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.setup-mobile-flow .setup-field-block .field:focus {
  border-color: #6fa8ff;
  box-shadow: 0 0 0 3px rgba(56, 130, 255, 0.2);
}

body.setup-mobile-flow .setup-help,
body.setup-mobile-flow .setup-feedback {
  font-size: 0.84rem;
  line-height: 1.32;
  color: #56719f;
}

body.setup-mobile-flow .setup-inline-card {
  padding: 8px;
}

body.setup-mobile-flow .setup-inline-card p {
  margin: 4px 0 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

body.setup-mobile-flow .setup-grid-2.setup-grid-2-compact {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.setup-mobile-flow .setup-actions {
  gap: 6px;
  padding-top: 4px;
}

body.setup-mobile-flow .setup-actions .btn {
  min-height: 48px;
  padding: 10px 12px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 14px;
}

body.setup-mobile-flow .setup-actions .btn.btn-brand {
  background: linear-gradient(120deg, #1e66f5 0%, #2d86ff 45%, #54b3ff 100%);
  background-size: 200% 200%;
  animation: trial7-title-gradient-shift 8s ease-in-out infinite;
  box-shadow: 0 14px 26px -16px rgba(24, 96, 255, 0.8);
}

body.setup-mobile-flow .setup-actions .btn.btn-brand:disabled {
  opacity: 0.58;
  filter: saturate(0.6);
  cursor: not-allowed;
  box-shadow: none;
}

body.with-custom-bg {
  background:
    linear-gradient(rgba(243, 246, 252, 0.9), rgba(243, 246, 252, 0.9)),
    var(--app-bg-image) center/cover fixed no-repeat;
}

h1,
h2,
h3,
strong,
th {
  margin-top: 0;
  letter-spacing: -0.01em;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  padding: 18px 14px;
  color: #fff;
  background:
    radial-gradient(circle at -10% -10%, rgba(105, 156, 255, 0.35), transparent 40%),
    linear-gradient(180deg, #0f1f44 0%, #132a57 55%, #17356e 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 10px 0 30px rgba(12, 21, 45, 0.25);
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.brand strong {
  font-size: 1.05rem;
}

.brand > div > div {
  margin-top: 2px;
  color: rgba(232, 242, 255, 0.85);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #1f6dff, #27b2ff);
  box-shadow: 0 8px 20px rgba(26, 109, 255, 0.4);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.2);
}

.menu-list {
  display: grid;
  gap: 8px;
}

.menu-preview-box {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.menu-preview-label {
  color: rgba(232, 242, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #e7f0ff;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.menu-item-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.menu-item-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.menu-item-label {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.menu-item:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.menu-item.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(140deg, #2f7bff, #1a5bd6);
  box-shadow: 0 10px 22px rgba(17, 74, 186, 0.5);
}

.menu-item.active .menu-item-icon {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
}

.config-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.config-nav-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid #cdddf8;
  background: linear-gradient(180deg, #fbfdff, #f2f7ff);
  color: #183d74;
}

.config-nav-item strong {
  font-size: 0.95rem;
}

.config-nav-item small {
  color: #4e6893;
  font-weight: 600;
}

.config-section-card {
  border: 1px solid #d5e2f8;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.config-section-card h4 {
  margin: 0;
  color: #153a73;
}

.config-section-card p {
  margin: 0 0 2px;
  color: #55709d;
}

@media (max-width: 920px) {
  .config-nav-grid {
    grid-template-columns: 1fr;
  }
}

.config-upload-dropzone {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 14px;
  border: 2px dashed #9ec1ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fbff, #edf4ff);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.config-upload-dropzone:hover {
  border-color: #6ea1ff;
  background: linear-gradient(180deg, #fafdff, #eef5ff);
  transform: translateY(-1px);
}

.config-upload-dropzone.is-dragover {
  border-color: #2d78ff;
  background: #eaf3ff;
}

.config-upload-dropzone .upload-preview-thumb {
  width: 260px !important;
  max-width: 100%;
  height: 122px !important;
  margin: 0;
  object-fit: contain;
}

.config-upload-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.config-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.config-tab-link {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid #cdddf8;
  background: linear-gradient(180deg, #fbfdff, #f2f7ff);
  color: #183d74;
}

.config-tab-link.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(140deg, #2f7bff, #1a5bd6);
  box-shadow: 0 10px 22px rgba(17, 74, 186, 0.32);
}

.config-tab-link strong {
  font-size: 0.95rem;
}

.config-tab-link small {
  color: #4e6893;
  font-weight: 600;
}

.config-tab-link.active small {
  color: rgba(238, 245, 255, 0.9);
}

.biz-day-compact .biz-period-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 6px;
}

.biz-day-compact .biz-sep {
  color: #3e5f92;
  font-weight: 700;
  min-width: 18px;
}

.biz-day-compact .biz-open-select,
.biz-day-compact .biz-close-select {
  width: 150px;
  max-width: 150px;
  min-width: 130px;
}

.biz-day-compact .biz-period-add-inline,
.biz-day-compact .biz-period-remove {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.biz-day-compact .biz-actions-col {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 88px;
  align-self: center;
  gap: 2px;
}

.biz-day-compact .biz-actions-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
}

.biz-day-compact .biz-closed-inline {
  position: absolute;
  left: 0;
  top: -22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #173761;
  white-space: nowrap;
}

.admin-link-card {
  border: 1px solid #cfe0ff;
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 90% -20%, rgba(77, 153, 255, 0.22), transparent 42%),
    linear-gradient(145deg, #fafdff 0%, #f1f7ff 100%);
}

.admin-link-url-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  border: 1px solid #bcd4ff;
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: #113366;
  font-weight: 700;
}

.admin-link-url-box svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  color: #1f6dff;
  flex: 0 0 auto;
}

.admin-link-url-box span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 11px;
  padding: 0 14px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.admin-share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.admin-share-btn-wa { background: linear-gradient(135deg, #13a850, #0f8f44); }
.admin-share-btn-fb { background: linear-gradient(135deg, #2b63d9, #1f4faf); }
.admin-share-btn-tg { background: linear-gradient(135deg, #35a3e8, #1f7ac4); }
.admin-share-btn-x { background: linear-gradient(135deg, #22335f, #111b36); }

.biz-day-compact .biz-period-add-inline svg,
.biz-day-compact .biz-period-remove svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.biz-day-compact .biz-period-add-inline,
.biz-day-compact .biz-period-remove {
  line-height: 0;
}

.biz-day-compact .biz-period-add-inline [data-lucide],
.biz-day-compact .biz-period-remove [data-lucide] {
  width: 16px;
  height: 16px;
  stroke-width: 2.35;
}

.biz-day-compact .biz-period-row.is-secondary .biz-period-add-inline {
  display: none;
}

.biz-day-compact .biz-period-row:not(.has-start):not(.is-24h) .biz-close-select,
.biz-day-compact .biz-period-row:not(.has-start):not(.is-24h) .biz-sep {
  display: none;
}

.biz-day-compact .biz-period-row.is-24h .biz-close-select,
.biz-day-compact .biz-period-row.is-24h .biz-sep {
  display: none;
}

@media (max-width: 720px) {
  .config-tabs {
    grid-template-columns: 1fr;
  }
  .biz-day-compact .biz-open-select,
  .biz-day-compact .biz-close-select {
    width: 130px;
    max-width: 130px;
    min-width: 120px;
  }
}

.menu-item-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.content-area {
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
  min-height: 100vh;
}

.content-area.guest {
  margin-left: 0;
  width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  max-width: 100%;
}

.topbar-title h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.topbar-title {
  min-width: 0;
}

.topbar-title small {
  color: var(--muted);
  font-weight: 600;
}

.page-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px;
  width: 100%;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: linear-gradient(180deg, var(--surface) 0%, #fbfcff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.card > h3:first-child,
.card > strong:first-child {
  display: block;
  margin-bottom: 12px;
}

.card p {
  margin: 0 0 10px;
  color: #394a6b;
}

.card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  border-color: #b9d0f5;
  box-shadow: var(--shadow-strong);
}

.card img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #184ea8;
  background: #eaf2ff;
  border: 1px solid #d7e6ff;
}

.badge.ok {
  color: #115f3e;
  background: #e8f8ef;
  border-color: #cdecd8;
}

.badge.warn {
  color: #a31f36;
  background: #ffedf1;
  border-color: #ffd4dd;
}

.field,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.field:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: #a8c8ff;
  box-shadow: 0 0 0 3px rgba(31, 109, 255, 0.14);
}

label {
  color: var(--text);
  font-weight: 600;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--brand);
}

.btn {
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 11px 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-brand {
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 20px rgba(24, 94, 231, 0.28);
}

.btn-dark {
  color: #fff;
  background: #1a2745;
}

.btn-ok {
  color: #fff;
  background: var(--ok);
}

.btn-danger {
  color: #fff;
  background: var(--danger);
}

.btn-whatsapp {
  color: #fff;
  background: linear-gradient(140deg, #20b15a, #118a43);
  box-shadow: 0 10px 20px rgba(17, 138, 67, 0.28);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
}

.admin-dash-hero-card {
  margin-bottom: 14px;
  border-color: #c9ddff;
  background: linear-gradient(160deg, #f6faff, #e9f3ff);
}

.admin-dash-grid .admin-dash-card-link {
  border-color: #d3e1f8;
  background: linear-gradient(170deg, #ffffff, #f3f8ff);
}

.admin-dash-grid .admin-dash-card-link small {
  font-size: 0.88rem;
  color: #4a648f;
  font-weight: 700;
}

.admin-dash-grid .admin-dash-card-link h2 {
  margin: 6px 0 0;
  font-size: 2rem;
  line-height: 1;
  color: #14254a;
}

.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(15, 24, 47, 0.45);
  backdrop-filter: blur(2px);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e9eef8;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
}

.table th {
  background: #f3f7ff;
  color: #35507f;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table tr:nth-child(even) td {
  background: #fcfdff;
}

.table .btn {
  padding: 8px 12px;
  min-height: 38px;
}

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

.saas-subtitle {
  margin: 4px 0 14px;
  color: var(--muted);
  font-weight: 600;
}

.saas-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.saas-metric-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
}

.saas-metric-card small {
  display: block;
  color: #45608d;
  font-weight: 700;
  margin-bottom: 6px;
}

.saas-metric-card strong {
  font-size: 1.2rem;
  color: #133367;
}

.saas-alert-list {
  display: grid;
  gap: 8px;
}

.saas-alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #dce7fa;
  border-radius: 12px;
  padding: 10px;
  background: #f9fbff;
}

.saas-alert-meta {
  color: #526890;
  font-size: 0.9rem;
  margin-top: 3px;
}

.saas-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.saas-filter-grid label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  color: #35507f;
  font-weight: 700;
}

.saas-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.saas-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.saas-actions-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.saas-dropdown {
  position: relative;
}

.saas-dropdown-toggle {
  background: #eef3ff;
  color: #1b448f;
  border-color: #d4e0f7;
}

.saas-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  z-index: 50;
  display: none;
  background: #fff;
  border: 1px solid #d7e3f9;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(16, 38, 83, 0.2);
  padding: 8px;
}

.saas-dropdown.open .saas-dropdown-menu {
  display: block;
}

.saas-dropdown.open-up .saas-dropdown-menu {
  top: auto;
  bottom: calc(100% + 6px);
}

.saas-dropdown-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #203861;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  font: inherit;
  font-weight: 600;
}

.saas-dropdown-item:hover {
  background: #eef4ff;
}

.saas-dropdown-item.danger {
  color: #b1263f;
}

.permission-editor {
  display: grid;
  gap: 8px;
}

.permission-editor small {
  color: #4a628d;
}

.permission-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.permission-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8e4f8;
  border-radius: 10px;
  padding: 8px 10px;
  background: #f8fbff;
  color: #24406f;
  font-size: 0.92rem;
}

.saas-table-compact th,
.saas-table-compact td {
  font-size: 0.9rem;
}

.saas-table-allow-overflow {
  overflow: visible;
}

.saas-profile-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.saas-profile-main {
  min-width: 0;
}

.saas-profile-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #45608d;
  margin-top: 6px;
}

.saas-profile-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.saas-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.saas-tab-btn {
  border: 1px solid #d4e2f9;
  border-radius: 10px;
  padding: 9px 12px;
  background: #f3f7ff;
  color: #1c3d75;
  font-weight: 700;
  cursor: pointer;
}

.saas-tab-btn.active {
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
}

.saas-tab-pane {
  margin-top: 8px;
}

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

.saas-data-grid > div {
  border: 1px solid #d8e4f8;
  border-radius: 12px;
  padding: 10px;
  background: #fbfdff;
}

.saas-data-grid strong {
  display: block;
  color: #2b4f83;
  margin-bottom: 6px;
}

.saas-data-grid p {
  margin: 0;
}

.saas-timeline {
  display: grid;
  gap: 8px;
}

.saas-timeline-item {
  border: 1px solid #dbe7fb;
  border-radius: 12px;
  padding: 10px;
  background: #f8fbff;
}

.saas-timeline-item strong {
  display: block;
  color: #173f84;
}

.saas-timeline-item span {
  color: #3c557d;
}

.impersonation-banner {
  position: sticky;
  top: 0;
  z-index: 24;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #cdddf8;
  background: linear-gradient(135deg, #e6f0ff, #f7fbff);
}

.impersonation-banner-title {
  color: #173b7a;
  font-weight: 800;
}

.agenda-cards {
  display: grid;
  gap: 12px;
}

.agenda-item-card {
  border: 1px solid #dbe5f6;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.agenda-item-main {
  min-width: 0;
}

.agenda-item-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.agenda-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  color: #3b4f72;
  font-size: 0.94rem;
}

.agenda-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-icon-only {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 12px;
  font-size: 1rem;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.login-card {
  width: 100%;
  max-width: 560px;
  color: #fff;
  border-radius: 28px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(150deg, #0f1b3f 0%, #184ba8 58%, #1f6dff 100%);
  box-shadow: 0 24px 44px rgba(18, 46, 104, 0.36);
}

.login-card p {
  color: rgba(239, 246, 255, 0.92);
}

.login-logo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 10px;
}

.login-options {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.login-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.login-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background: #ffffff;
  color: #17356e;
  border-color: rgba(255, 255, 255, 0.34);
}

.login-btn-google:hover {
  background: #f5f8ff;
}

.google-mark {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #4285f4, #34a853 55%, #fbbc05 75%, #ea4335);
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.landing-copy,
.landing-visual {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,255,0.95));
  box-shadow: var(--shadow-soft);
}

.landing-kicker {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #1d56bb;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.landing-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
}

.landing-copy p {
  max-width: 58ch;
  font-size: 1.02rem;
  color: #3c4d70;
}

.landing-visual {
  display: grid;
  place-items: center;
  min-height: 360px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(31, 109, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #edf4ff 100%);
}

.landing-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.landing-placeholder {
  width: 100%;
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #1d4db0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  background:
    radial-gradient(circle at top left, rgba(31, 109, 255, 0.16), transparent 26%),
    linear-gradient(135deg, #f4f8ff 0%, #e7f0ff 100%);
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.landing-footer-links {
  margin-top: 18px;
  text-align: right;
}

.landing-secret-link,
.guest-footer-secret a {
  color: rgba(20, 33, 58, 0.42);
  font-size: 0.78rem;
  text-decoration: none;
}

.landing-secret-link:hover,
.guest-footer-secret a:hover {
  color: rgba(20, 33, 58, 0.68);
}

.guest-footer-secret {
  padding: 8px 18px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(20, 33, 58, 0.32);
  font-size: 0.76rem;
  opacity: 0.8;
}

.landing-card {
  min-height: 170px;
}

.landing-service-card {
  overflow: hidden;
}

.portal-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-bottom: 18px;
}

.portal-hero-copy {
  border: 1px solid #d8e4f8;
  border-radius: 24px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(31, 109, 255, 0.12), transparent 38%),
    linear-gradient(160deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: var(--shadow-soft);
}

.portal-kicker {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  color: #1146a9;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #e8f1ff;
}

.portal-hero-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 3.9vw, 3.3rem);
  line-height: 1.05;
}

.portal-hero-copy p {
  margin-bottom: 14px;
  color: #38507a;
  max-width: 62ch;
}

.portal-hero-stats {
  display: grid;
  gap: 10px;
}

.barber-hero-copy {
  position: relative;
  overflow: hidden;
}

.barber-hero-copy::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(17, 70, 169, 0.16) 0%, rgba(17, 70, 169, 0) 70%);
  pointer-events: none;
}

.barber-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.barber-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #cfddf5;
  border-radius: 999px;
  background: #ffffff;
  color: #2f4b78;
  font-size: 0.88rem;
  font-weight: 700;
}

.barber-metric-chip strong {
  color: #123f96;
}

.barber-hero-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #d8e4f8;
  min-height: 340px;
  box-shadow: var(--shadow-soft);
}

.barber-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
  filter: saturate(1.1) contrast(1.02);
}

.barber-hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 18, 37, 0.12) 0%, rgba(9, 18, 37, 0.55) 100%);
}

.barber-hero-media-badge {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(6, 17, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f4f8ff;
  backdrop-filter: blur(3px);
}

.barber-hero-media-badge strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.barber-hero-media-badge span {
  display: block;
  margin-top: 4px;
  opacity: 0.9;
  font-size: 0.9rem;
}

.portal-stat-card {
  border: 1px solid #d8e4f8;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(160deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: var(--shadow-soft);
}

.portal-stat-card strong {
  display: block;
  font-size: 1.7rem;
  color: #143d8f;
  margin-bottom: 4px;
}

.portal-stat-card span {
  color: #45608d;
  font-weight: 600;
}

.portal-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portal-category-card {
  border: 1px solid #dbe6f8;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(160deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
}

.portal-category-card strong {
  color: #325283;
}

.portal-category-card p {
  color: #3e5884;
  min-height: 52px;
}

.portal-bottom-note {
  padding: 10px 4px 4px;
  color: #3b5684;
  text-align: center;
}

.coming-soon-wrap {
  display: grid;
  place-items: center;
  min-height: 70vh;
}

.coming-soon-card {
  width: min(760px, 100%);
  border: 1px solid #d7e3f8;
  border-radius: 24px;
  padding: 26px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(31, 109, 255, 0.12), transparent 34%),
    linear-gradient(160deg, #ffffff 0%, #f2f7ff 100%);
  box-shadow: var(--shadow-strong);
}

.coming-soon-pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #1946a0;
  background: #e8f1ff;
  text-transform: uppercase;
}

.coming-soon-card h1 {
  margin: 14px 0 10px;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
}

.coming-soon-card p {
  color: #3d5682;
  max-width: 58ch;
  margin: 0 auto 14px;
}

.upload-box {
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: #f7faff;
}

.upload-preview {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ecf2ff;
  margin-bottom: 10px;
}

.upload-preview-thumb {
  width: 170px !important;
  height: 96px !important;
  display: block;
  object-fit: cover;
  margin: 0 auto 10px;
  border-radius: 10px;
}

.upload-thumb-box {
  width: fit-content;
  padding: 8px;
  border: 1px dashed #c9d9f4;
  border-radius: 12px;
  background: #f7faff;
  margin: 6px auto 10px;
}

.upload-thumb-box .upload-preview-thumb {
  margin: 0;
}

.upload-control.upload-control-wide {
  width: 100%;
}

.upload-box .upload-control {
  width: 100%;
  border: 1px dashed #c9d9f4;
  border-radius: 12px;
  padding: 8px;
  background: #f5f9ff;
}

.upload-box .upload-control input[type="file"].field {
  margin: 0;
}

.upload-box small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 600;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  border: 1px solid #cfe0ff;
  background: #edf4ff;
  color: #194ba2;
  border-radius: 999px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

.tag-chip.tag-filter {
  cursor: pointer;
}

.tag-chip.tag-filter.active {
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
}

.tag-remove {
  border: 0;
  border-radius: 999px;
  width: 18px;
  height: 18px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: #1a4fac;
  cursor: pointer;
}

.market-prof {
  display: flex;
  align-items: center;
  gap: 10px;
}

.market-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #cfdbef;
  background: #eef4ff;
}

.service-checklist {
  display: grid;
  gap: 10px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.service-remove {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #eef3ff;
  color: #1f4fb3;
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.service-remove:hover {
  background: #dce8ff;
}

.day-rows {
  display: grid;
  gap: 10px;
}

.day-row {
  display: grid;
  grid-template-columns: 1fr 180px auto;
  gap: 8px;
  align-items: center;
}

.checkbox-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.service-filters {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d9e5f8;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fbff, #eef4ff);
}

.service-filter-item {
  display: grid;
  gap: 6px;
}

.service-filter-item label {
  font-size: 0.82rem;
  color: #35507f;
  font-weight: 700;
}

.service-cards-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-group-card {
  border: 1px solid #dbe6f7;
  border-radius: 14px;
  background: linear-gradient(180deg, #fafdff, #f3f8ff);
  padding: 12px;
}

.service-group-title {
  font-weight: 800;
  color: #274678;
  margin-bottom: 8px;
}

.service-group-list {
  display: grid;
  gap: 6px;
}

.service-check-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 600;
  color: #193663;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 20, 40, 0.52);
  backdrop-filter: blur(2px);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 81;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden],
.modal-backdrop[hidden] {
  display: none !important;
}

.modal-card {
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid #d8e3f6;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 60px rgba(13, 35, 79, 0.28);
  padding: 18px;
}

.modal-card-wide {
  width: min(1080px, 100%);
}

.modal-fullscreen {
  padding: 12px;
}

.modal-card-fullscreen {
  width: min(1320px, 100%);
  height: calc(100vh - 24px);
  max-height: calc(100vh - 24px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.service-catalog-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 12px;
}

.service-catalog-panel {
  border: 1px solid #d7e4fb;
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(77, 153, 255, 0.18), transparent 38%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.service-catalog-panel strong {
  font-size: 0.98rem;
  color: #183a6e;
}

.service-catalog-panel p,
.service-catalog-panel small {
  margin: 0;
  color: #45608d;
}

.service-catalog-panel label {
  color: #244779;
}

.service-catalog-content {
  min-height: 0;
  overflow: auto;
  border: 1px solid #d7e4fb;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 12px;
}

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

.service-template-card {
  border: 1px solid #dbe6f8;
  border-radius: 14px;
  padding: 8px;
  text-align: left;
  cursor: pointer;
  background:
    radial-gradient(circle at top right, rgba(79, 145, 255, 0.14), transparent 42%),
    linear-gradient(180deg, #fbfdff, #f3f8ff);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-template-card:hover {
  transform: translateY(-2px);
  border-color: #88b0ff;
  box-shadow: 0 14px 24px rgba(26, 84, 189, 0.22);
}

.service-template-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #cfddf5;
  background: #edf3ff;
}

.service-template-card-body {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.service-template-card-body span {
  color: #45608d;
  font-size: 0.8rem;
  font-weight: 700;
}

.service-template-card-body strong {
  color: #173761;
  font-size: 1.06rem;
  line-height: 1.18;
}

.service-template-card-body small {
  color: #315995;
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.3;
}

.service-template-card-body small:last-child {
  font-size: 0.78rem;
  color: #1f5fcc;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

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

.admin-service-card {
  width: 100%;
  border: 1px solid #dbe6f8;
  border-radius: 14px;
  padding: 8px;
  background: linear-gradient(180deg, #fbfdff, #f3f8ff);
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.admin-service-card img {
  width: 98px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #cfddf5;
  background: #edf3ff;
}

.admin-service-card-body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-service-card-body strong {
  color: #153462;
  font-size: 0.96rem;
}

.admin-service-card-body span {
  color: #3e5f8f;
  font-weight: 700;
  font-size: 0.82rem;
}

.admin-service-card-body small {
  color: #4c6894;
  font-size: 0.78rem;
}

.admin-service-card-edit {
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-service-card-edit:hover {
  transform: translateY(-1px);
  border-color: #9ec0ff;
  box-shadow: 0 10px 18px rgba(26, 84, 189, 0.18);
}

.prof-modal-form {
  gap: 18px;
}

.prof-modal-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr);
  gap: 12px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #edf3ff;
  color: #1b428f;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.vip-service-summary {
  padding: 14px;
}

.vip-prof-card {
  gap: 12px;
}

.vip-slot-btn {
  min-width: 112px;
}

@media (max-width: 920px) {
  .service-catalog-layout {
    grid-template-columns: 1fr;
  }

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

  .day-row {
    grid-template-columns: 1fr;
  }

  .checkbox-grid-2 {
    grid-template-columns: 1fr;
  }

  .service-filters {
    grid-template-columns: 1fr;
  }

  .prof-modal-top {
    grid-template-columns: 1fr;
  }

  .service-cards-grid {
    grid-template-columns: 1fr;
  }

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

  .saas-filter-grid {
    grid-template-columns: 1fr;
  }

  .saas-data-grid {
    grid-template-columns: 1fr;
  }

  .saas-profile-top {
    flex-direction: column;
  }

  .impersonation-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal {
    padding: 10px;
  }

  .modal-card {
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .modal-card-fullscreen {
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
  }
}

#serviceCatalogModal .modal-card-fullscreen,
#serviceCreateModal .modal-card,
#serviceEditModal .modal-card {
  border: 1px solid #c5d8fb;
  background:
    radial-gradient(circle at 12% -2%, rgba(113, 170, 255, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.95));
}

#serviceCatalogModal .modal-header h3,
#serviceCreateModal .modal-header h3,
#serviceEditModal .modal-header h3 {
  background: linear-gradient(115deg, #1a4ea0 0%, #2f7cff 45%, #60b3ff 80%, #1a4ea0 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: trial7-title-gradient-shift 8s ease-in-out infinite;
}

.service-upload-box {
  padding: 14px;
  border: 1px dashed #9ec1ff;
  border-radius: 16px;
  background: linear-gradient(180deg, #f5f9ff, #ecf3ff);
}

.service-upload-dropzone {
  width: 100%;
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 2px dashed #88b2ff;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.75);
  color: #1f5ec7;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.service-upload-dropzone:hover {
  border-color: #5c94ff;
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.service-upload-dropzone.is-dragover {
  border-color: #2e78ff;
  background: #edf4ff;
}

.service-upload-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .service-template-grid,
  .admin-service-grid {
    grid-template-columns: 1fr;
  }

  .modal-fullscreen {
    padding: 8px;
  }

  .modal-card-fullscreen {
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
  }
}

.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(145deg, #16a34a, #0f8f3f);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 10px 14px 10px 10px;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.whatsapp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(22, 163, 74, 0.5);
}

.whatsapp-fab-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 900;
}

.whatsapp-fab-text {
  line-height: 1;
}

/* Auth screens */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 26px;
  align-items: center;
  min-height: calc(100vh - 40px);
  padding: 40px 18px;
  max-width: 1200px;
  margin: 0 auto;
}

.auth-hero {
  background:
    radial-gradient(circle at 20% 0%, rgba(31, 109, 255, 0.18), transparent 45%),
    linear-gradient(140deg, #f5f8ff 0%, #e9f1ff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.auth-hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.auth-hero p {
  color: var(--muted);
}

.auth-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.auth-hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.auth-card {
  background: linear-gradient(180deg, #0f2a63 0%, #11306f 45%, #15438f 100%);
  color: #fff;
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 18px 44px rgba(15, 38, 90, 0.35);
}

.auth-card h2 {
  margin-bottom: 8px;
}

.auth-card p {
  color: rgba(227, 236, 255, 0.9);
}

.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: rgba(227, 236, 255, 0.75);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.auth-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.auth-link {
  text-decoration: none;
  color: #dfe9ff;
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-shell-home {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  position: relative;
  border-radius: 28px;
  overflow: hidden;
}

.auth-shell-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(243, 246, 252, 0.82), rgba(243, 246, 252, 0.82)),
    var(--auth-bg-image, linear-gradient(160deg, #f7fbff 0%, #eaf2ff 100%));
  background-position: center;
  background-size: cover;
  pointer-events: none;
}

.auth-shell-home > * {
  position: relative;
  z-index: 1;
}

.auth-hero-home {
  border-color: #d8e4f8;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(31, 109, 255, 0.12), transparent 38%),
    linear-gradient(160deg, #ffffff 0%, #f3f8ff 100%);
}

.auth-hero-home h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 3.9vw, 3.3rem);
  line-height: 1.05;
}

.auth-hero-home p {
  color: #38507a;
}

.auth-hero-home .auth-hero-grid {
  margin-top: 18px;
  gap: 14px;
}

.auth-hero-home .auth-hero-card {
  border: 1px solid #d8e4f8;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.auth-desktop-showcase {
  margin-top: 18px;
  display: none;
}

.auth-desktop-stage {
  position: relative;
  height: 340px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 12%, rgba(69, 143, 255, 0.22), transparent 42%),
    radial-gradient(circle at 90% 88%, rgba(17, 58, 141, 0.18), transparent 40%),
    linear-gradient(165deg, #f6faff 0%, #eaf3ff 100%);
  border: 1px solid #cfe0ff;
  overflow: hidden;
  box-shadow: 0 26px 52px -32px rgba(17, 56, 130, 0.62);
}

.auth-shot {
  position: absolute;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid #d2e1ff;
  background:
    radial-gradient(circle at 20% 16%, rgba(54, 138, 255, 0.16), transparent 40%),
    #0d162a;
  box-shadow: 0 20px 40px -28px rgba(18, 56, 120, 0.58);
  padding: 6px;
}

.auth-shot-main {
  width: 74%;
  height: 78%;
  left: 13%;
  top: 10%;
  z-index: 3;
  border-radius: 16px;
}

.auth-shot-float {
  width: 34%;
  height: 56%;
  left: 3%;
  top: 27%;
  z-index: 4;
  transform: rotate(-4deg);
}

.auth-shot-side {
  width: 30%;
  height: 52%;
  right: 3%;
  top: 30%;
  z-index: 2;
  transform: rotate(4deg);
}

.auth-desktop-steps {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-step-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #c5d9ff;
  background: #eff5ff;
  color: #2b5394;
  padding: 6px 10px;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-step-chip.is-active {
  color: #fff;
  border-color: #2f74df;
  background: linear-gradient(130deg, #2469dc, #3a96ff);
  box-shadow: 0 10px 18px -14px rgba(42, 113, 230, 0.95);
}

@media (min-width: 1024px) {
  .auth-cinematic-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .auth-shell-cinematic {
    grid-template-columns: minmax(0, 1.65fr) minmax(430px, 0.95fr);
    gap: 0;
    border-radius: 0;
    overflow: hidden;
    background: #07122b;
    border: 0;
    box-shadow: none;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    min-height: 100vh;
  }

  .auth-shell-cinematic .auth-hero {
    position: relative;
    min-height: 860px;
    padding: 48px 44px;
    color: #e8efff;
    border: 0;
    border-radius: 0;
    background:
      linear-gradient(90deg, rgba(3, 9, 24, 0.86) 0%, rgba(3, 9, 24, 0.82) 40%, rgba(3, 9, 24, 0.36) 70%, rgba(3, 9, 24, 0.1) 100%),
      url('../img/telas/login-img.webp') center/cover no-repeat;
  }

  .auth-shell-cinematic .auth-hero h1 {
    font-size: clamp(2.45rem, 3.35vw, 3.55rem);
    line-height: 1.06;
    margin: 12px 0 12px;
    max-width: 680px;
    color: #f1f6ff;
  }

  .auth-shell-cinematic .auth-hero h1 .accent,
  .auth-shell-cinematic .auth-hero h1 strong {
    color: #2f87ff;
  }

  .auth-shell-cinematic .auth-hero p {
    color: #c4d2ee;
    font-size: clamp(1.04rem, 1.08vw, 1.28rem);
    line-height: 1.44;
    max-width: 640px;
  }

  .auth-shell-cinematic .badge {
    border-color: rgba(165, 196, 255, 0.35);
    color: #e7efff;
    background: rgba(8, 29, 74, 0.64);
  }

  .auth-shell-cinematic .auth-cinematic-features {
    margin-top: 24px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 740px;
  }

  .auth-shell-cinematic .auth-cinematic-features .auth-hero-card {
    padding: 10px 10px;
    background: rgba(9, 31, 78, 0.42);
    border: 1px solid rgba(144, 179, 243, 0.18);
    backdrop-filter: blur(1px);
    border-radius: 14px;
  }

  .auth-shell-cinematic .auth-cinematic-features .trial7-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border: 1px solid rgba(123, 172, 255, 0.34);
    background: rgba(15, 51, 122, 0.46);
    color: #d8e7ff;
  }

  .auth-shell-cinematic .auth-cinematic-features .trial7-feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.1;
  }

  .auth-shell-cinematic .auth-cinematic-features .auth-hero-card strong {
    color: #f0f5ff;
    font-size: 1.02rem;
    line-height: 1.24;
    display: block;
  }

  .auth-shell-cinematic .auth-cinematic-features .auth-hero-card p {
    margin-top: 5px;
    font-size: 0.9rem;
    line-height: 1.28;
    color: #bdd0f2;
  }

  .auth-shell-cinematic .auth-card {
    margin: 40px;
    border-radius: 26px;
    border: 1px solid #d5dff0;
    background: linear-gradient(180deg, #f7faff 0%, #eff3fa 100%);
    box-shadow: 0 20px 56px -30px rgba(16, 40, 88, 0.45);
    color: #142138;
    padding: 30px 26px;
  }

  .auth-shell-cinematic .auth-card h2 {
    font-size: clamp(2rem, 2vw, 2.9rem);
    line-height: 1.1;
    color: #111b2b;
  }

  .auth-shell-cinematic .auth-card p {
    color: #5c6b85;
    font-size: 1.18rem;
  }

  .auth-shell-cinematic .auth-form .field {
    border-radius: 14px;
    min-height: 54px;
    border-color: #cfdcf2;
    font-size: 1.05rem;
    background: #ffffff;
  }

  .auth-shell-cinematic .login-btn:not(.login-btn-google) {
    min-height: 52px;
    font-size: 1.1rem;
    border-radius: 14px;
  }

  .auth-shell-cinematic .auth-links {
    margin-top: 14px;
  }

  .auth-shell-cinematic .auth-link {
    color: #2a5db7;
  }

  .trial7-wizard .trial7-step-1 .auth-desktop-steps,
  .trial7-wizard .trial7-step-1 .trial7-desktop-showcase,
  .trial7-wizard .trial7-step-1 .trial7-next-btn,
  .trial7-wizard .trial7-step-1 .trial7-gesture-hint {
    display: none !important;
  }
}

.auth-card-home {
  border: 1px solid #d8e4f8;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(31, 109, 255, 0.12), transparent 40%),
    linear-gradient(160deg, #ffffff 0%, #f3f8ff 100%);
  color: #17356e;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 1024px) {
  .auth-shell .auth-desktop-showcase {
    display: block;
  }
}

.auth-card-home p {
  color: #3c4d70;
}

.auth-card-home .field {
  border-color: #c9d9f2;
  background: #ffffff;
  color: #1a2a45;
}

.auth-card-home .field::placeholder {
  color: #6f83a8;
}

.auth-card-home .auth-divider {
  color: #6f83a8;
}

.auth-card-home .auth-divider::before,
.auth-card-home .auth-divider::after {
  background: #d4e0f2;
}

.auth-card-home .auth-link {
  color: #1d56bb;
}

.auth-card-home .login-btn:not(.login-btn-google) {
  border-color: #2f67cf;
  background: linear-gradient(135deg, #2f67cf 0%, #1f55bb 100%);
  color: #ffffff;
  text-align: center;
  font-weight: 700;
}

.auth-card-home .login-btn:not(.login-btn-google):hover {
  background: linear-gradient(135deg, #3b73da 0%, #2a5fc4 100%);
}

.auth-note {
  margin-top: 10px;
  opacity: 0.9;
}

.trial7-body {
  overflow: hidden;
  height: 100dvh;
}

.trial7-body .topbar,
.trial7-body .whatsapp-fab {
  display: none !important;
}

.trial7-body .app-shell,
.trial7-body .content-area.guest,
.trial7-body .page-wrap {
  height: 100dvh;
}

.trial7-body .content-area.guest {
  overflow: hidden;
}

.trial7-body .page-wrap {
  max-width: none;
  padding: 0;
  overflow: hidden;
}

.trial7-screen {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 8px;
  background: var(--trial7-bg-image) center/cover no-repeat;
  overflow: hidden;
}

.trial7-phone {
  position: relative;
  isolation: isolate;
  width: min(430px, 100%);
  height: calc(100dvh - 16px);
  border-radius: 32px;
  border: 1px solid #c8d8f5;
  background: var(--trial7-bg-image) center/cover no-repeat;
  box-shadow: 0 20px 54px rgba(16, 42, 92, 0.22);
  padding: 12px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  --trial7-content-width: min(362px, calc(100% - 34px));
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  overflow: hidden;
}

.trial7-phone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 34%, rgba(247, 251, 255, 0.7), rgba(247, 251, 255, 0.5) 48%, rgba(247, 251, 255, 0.28) 100%),
    linear-gradient(rgba(247, 251, 255, 0.36), rgba(247, 251, 255, 0.36));
}

.trial7-phone > * {
  position: relative;
  z-index: 1;
}

@keyframes trial7-gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.trial7-header {
  text-align: left;
  width: var(--trial7-content-width);
  margin: 0 auto;
  padding: 2px 0 0;
}

.trial7-logo {
  width: 248px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

.trial7-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid #b7cff5;
  background: rgba(240, 247, 255, 0.84);
  color: #154fb6;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.trial7-header h1 {
  margin: 10px 0 7px;
  color: #0f2d62;
  font-size: clamp(2.44rem, 9.2vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.trial7-header p {
  margin: 0;
  color: #2c4f86;
  font-size: 0.93rem;
  line-height: 1.25;
}

.trial7-benefits {
  display: grid;
  width: var(--trial7-content-width);
  margin: 0 auto;
  gap: 10px;
}

.trial7-benefit {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 84px;
  border: 1px solid #c6d7f6;
  border-radius: 18px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(242, 248, 255, 0.86) 42%,
    rgba(255, 255, 255, 0.84) 100%
  );
  background-size: 220% 220%;
  animation: trial7-gradient-shift 11s ease-in-out infinite;
  box-shadow: 0 5px 14px rgba(22, 54, 114, 0.08);
  padding: 8px 12px 8px 10px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.trial7-benefit:nth-child(2) {
  animation-delay: -2.2s;
}

.trial7-benefit:nth-child(3) {
  animation-delay: -4.4s;
}

.trial7-benefit:nth-child(4) {
  animation-delay: -6.6s;
}

.trial7-benefit::before {
  content: "";
  width: 6px;
  border-radius: 999px;
  background: #1d66de;
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  z-index: 2;
}

.trial7-benefit-hot::before {
  background: #ff4c5f;
}

.trial7-benefit-hot {
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(244, 249, 255, 0.86) 55%,
    rgba(255, 242, 245, 0.86) 100%
  );
  background-size: 230% 230%;
}

.trial7-benefit-icon {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 1px solid #d5e3fa;
  background: linear-gradient(180deg, #f3f8ff, #eaf2ff);
  display: grid;
  place-items: center;
  color: #1a57bc;
}

.trial7-benefit-icon svg {
  width: 24px;
  height: 24px;
}

.trial7-benefit > div:last-child {
  position: relative;
  z-index: 2;
}

.trial7-benefit strong {
  display: block;
  color: #0f2d62;
  font-size: 0.95rem;
  line-height: 1.1;
  margin-bottom: 2px;
}

.trial7-benefit p {
  margin: 0;
  color: #2f4f84;
  font-size: 0.78rem;
  line-height: 1.17;
}

.trial7-cta {
  width: var(--trial7-content-width);
  margin: 0 auto;
  border: 1px solid #bfd4f7;
  border-radius: 22px;
  background: linear-gradient(
    130deg,
    rgba(242, 248, 255, 0.82) 0%,
    rgba(232, 242, 255, 0.78) 48%,
    rgba(246, 251, 255, 0.8) 100%
  );
  background-size: 240% 240%;
  animation: trial7-gradient-shift 13s ease-in-out infinite;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
  padding: 11px 12px 9px;
  display: grid;
  gap: 7px;
}

.trial7-cta-logo {
  width: 132px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.trial7-cta h2 {
  margin: 0;
  text-align: center;
  color: #112f63;
  font-size: 2.02rem;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.trial7-cta p {
  margin: 0;
  text-align: center;
  color: #335485;
  font-size: 0.86rem;
  line-height: 1.26;
}

.trial7-google-btn {
  border: 1px solid #cfdcf6;
  border-radius: 14px;
  min-height: 48px;
  padding: 9px 14px;
  background: linear-gradient(140deg, #ffffff 0%, #f4f8ff 65%, #edf4ff 100%);
  color: #1d4584;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 20px -16px rgba(31, 83, 171, 0.7);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.trial7-google-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 6px 12px -10px rgba(35, 67, 120, 0.65);
}

.trial7-google-btn:hover {
  transform: translateY(-1px);
  border-color: #b8cdf2;
  box-shadow: 0 14px 22px -16px rgba(31, 83, 171, 0.9);
}

.trial7-google-btn:active {
  transform: translateY(0);
}

.trial7-google-btn span {
  font-size: 0.98rem;
}

.trial7-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5d79a5;
  font-size: 0.95rem;
}

.trial7-divider::before,
.trial7-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #cbd9ef;
}

.trial7-email-link {
  text-align: center;
  color: #1d56bb;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.trial7-email-link:hover {
  text-decoration: underline;
}

.trial7-form {
  display: grid;
  gap: 8px;
}

.trial7-form .field {
  height: 42px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
}

.trial7-form .field.trial7-field-invalid {
  border-color: #e26a7e;
  box-shadow: 0 0 0 2px rgba(226, 106, 126, 0.2);
  background: #fff8fa;
}

.trial7-field-error {
  display: block;
  margin-top: -3px;
  margin-bottom: 2px;
  padding: 0 4px;
  color: #a3273e;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.trial7-form .btn {
  min-height: 44px;
}

.trial7-cta-form {
  overflow: hidden;
}

.trial7-alert {
  border: 1px solid #ef9fac;
  border-radius: 12px;
  background: #fff2f4;
  color: #9f1f38;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 9px 10px;
}

.trial7-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.trial7-links a {
  color: #1b4ea8;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
}

.trial7-links a:hover {
  text-decoration: underline;
}

.trial7-screen.is-email-mode .trial7-phone {
  justify-content: flex-start;
}

@media (min-width: 1024px) {
  .trial7-screen {
    padding: 18px 24px;
    align-items: center;
  }

  .trial7-phone {
    width: min(1140px, calc(100% - 48px));
    height: auto;
    min-height: min(820px, calc(100dvh - 36px));
    max-height: calc(100dvh - 36px);
    padding: 24px;
    border-radius: 30px;
    overflow: hidden auto;
    --trial7-content-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 390px);
    grid-template-areas:
      "header cta"
      "benefits cta";
    align-content: start;
    gap: 16px 24px;
  }

  .trial7-header {
    grid-area: header;
    margin: 0;
    width: 100%;
    max-width: 680px;
    padding-top: 2px;
  }

  .trial7-logo {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #d4e2f8;
    margin: 0 0 8px;
  }

  .trial7-header h1 {
    font-size: clamp(2.1rem, 3.2vw, 3.1rem);
    max-width: 13ch;
    margin: 8px 0 8px;
  }

  .trial7-header p {
    max-width: 46ch;
    font-size: 0.96rem;
  }

  .trial7-benefits {
    grid-area: benefits;
    width: 100%;
    margin: 0;
    max-width: 680px;
    gap: 10px;
  }

  .trial7-benefit {
    min-height: 82px;
  }

  .trial7-cta {
    grid-area: cta;
    align-self: start;
    width: 100%;
    margin: 0;
    max-width: 390px;
    padding: 13px 13px 11px;
    position: sticky;
    top: 10px;
  }

  .trial7-cta h2 {
    font-size: 2rem;
  }

  .trial7-links {
    justify-content: flex-start;
  }

  .trial7-screen.is-email-mode .trial7-phone {
    grid-template-areas: "header cta";
    grid-template-columns: minmax(0, 1fr) minmax(330px, 360px);
  }
}

@media (max-height: 940px) and (max-width: 1023px) {
  .trial7-phone {
    padding: 8px 0 8px;
    gap: 8px;
    --trial7-content-width: min(356px, calc(100% - 28px));
  }

  .trial7-logo {
    width: 212px;
    margin-bottom: 4px;
  }

  .trial7-kicker {
    padding: 5px 14px;
    font-size: 0.78rem;
  }

  .trial7-header h1 {
    margin: 8px 0 5px;
    font-size: clamp(2.08rem, 8.2vw, 2.78rem);
  }

  .trial7-header p {
    font-size: 0.8rem;
    line-height: 1.24;
  }

  .trial7-benefits {
    gap: 7px;
  }

  .trial7-benefit {
    grid-template-columns: 52px 1fr;
    min-height: 72px;
    border-radius: 16px;
    padding: 7px 10px 7px 8px;
    background-size: 230% 230%;
  }

  .trial7-benefit::before {
    width: 4px;
    top: 9px;
    bottom: 9px;
  }

  .trial7-benefit-icon {
    width: 42px;
    height: 42px;
  }

  .trial7-benefit-icon svg {
    width: 21px;
    height: 21px;
  }

  .trial7-benefit strong {
    font-size: 0.88rem;
    margin-bottom: 2px;
  }

  .trial7-benefit p {
    font-size: 0.71rem;
    line-height: 1.2;
  }

  .trial7-cta {
    border-radius: 18px;
    padding: 9px 10px 8px;
    gap: 6px;
    background-size: 250% 250%;
  }

  .trial7-cta-logo {
    width: 116px;
  }

  .trial7-cta h2 {
    font-size: 1.64rem;
  }

  .trial7-cta p {
    font-size: 0.74rem;
  }

  .trial7-google-btn {
    min-height: 42px;
    border-radius: 12px;
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .trial7-google-btn svg {
    width: 22px;
    height: 22px;
  }

  .trial7-email-link {
    font-size: 0.84rem;
  }

  .trial7-field-error {
    font-size: 0.68rem;
  }

  .trial7-links {
    gap: 8px;
  }

  .trial7-links a {
    font-size: 0.73rem;
  }
}

@media (max-width: 560px) {
  .trial7-screen {
    padding: 0;
  }

  .trial7-phone {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}

.setup-wizard {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid #ccdbf8;
  background:
    radial-gradient(circle at 12% 8%, rgba(31, 109, 255, 0.30), transparent 40%),
    radial-gradient(circle at 86% 18%, rgba(21, 71, 173, 0.26), transparent 44%),
    radial-gradient(circle at 55% 98%, rgba(39, 178, 255, 0.18), transparent 48%),
    linear-gradient(145deg, #f4f8ff 0%, #e7f0ff 45%, #edf4ff 100%);
  background-size: 140% 140%, 140% 140%, 150% 150%, 180% 180%;
  animation: setup-gradient-float 18s ease-in-out infinite;
  box-shadow: 0 20px 54px rgba(17, 49, 106, 0.14);
}

@keyframes setup-gradient-float {
  0% {
    background-position: 0% 0%, 100% 10%, 50% 100%, 0% 50%;
  }
  50% {
    background-position: 22% 18%, 82% 34%, 60% 82%, 100% 50%;
  }
  100% {
    background-position: 0% 0%, 100% 10%, 50% 100%, 0% 50%;
  }
}

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

.setup-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #d7e5ff;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(241, 247, 255, 0.92));
}

.setup-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #0f4cb4;
  border: 1px solid #cfe0ff;
  background: #eaf2ff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.setup-hero h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.setup-hero p {
  margin: 0;
  max-width: 62ch;
  color: #35507f;
}

.setup-hero-meta {
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #d4e4ff;
  background: rgba(255, 255, 255, 0.9);
}

.setup-hero-meta strong {
  color: #1f6dff;
  font-size: 1.12rem;
}

.setup-hero-meta span {
  color: #375381;
  font-weight: 600;
}

.setup-hero-meta small {
  color: #5c76a3;
}

.setup-form {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  overflow: hidden;
}

.setup-showcase {
  margin-top: 0;
  border: 1px solid #d6e4ff;
  border-radius: 20px;
  padding: 14px;
  background:
    radial-gradient(circle at top right, rgba(58, 132, 255, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.92);
  flex: 1;
}

.setup-screen-block {
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.setup-showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.setup-showcase-head strong {
  color: #1f3558;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.setup-showcase-counter {
  color: #3e5b87;
  font-size: 0.88rem;
  font-weight: 700;
}

.setup-showcase-track {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.setup-showcase-screen {
  display: none;
  border: 1px solid #dbe7fb;
  border-radius: 16px;
  padding: 14px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.96) 100%);
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  align-content: center;
  background-size: 220% 220%;
  animation: trial7-title-gradient-shift 12s ease-in-out infinite;
}

.setup-showcase-screen::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.setup-showcase-screen.is-active {
  display: block;
  animation: setup-hero-in 0.4s ease both, trial7-title-gradient-shift 12s ease-in-out infinite;
}

.setup-showcase-screen h3 {
  margin: 0 0 8px;
  font-size: clamp(2.05rem, 6.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #1b3766;
  background: linear-gradient(115deg, #123c86 0%, #2a70dd 45%, #4da0ff 75%, #123c86 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: trial7-title-gradient-shift 10s ease-in-out infinite;
}

.setup-showcase-screen p {
  margin: 0 auto 12px;
  color: #40608d;
  font-size: 0.98rem;
  line-height: 1.42;
  max-width: 44ch;
}

.setup-showcase-screen ul {
  margin: 0 auto;
  padding-left: 0;
  list-style: none;
  color: #214878;
  text-align: left;
  max-width: 44ch;
  font-size: 0.95rem;
  line-height: 1.38;
  display: grid;
  gap: 8px;
}

.setup-showcase-screen li + li {
  margin-top: 0;
}

.setup-showcase-screen li {
  opacity: 0;
  transform: translateX(36px);
  transition: transform 0.42s cubic-bezier(0.2, 0.75, 0.25, 1), opacity 0.3s ease;
  position: relative;
  padding: 11px 12px 11px 40px;
  border: 1px solid #cdddf8;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.9));
  box-shadow: 0 10px 18px -16px rgba(32, 92, 186, 0.7);
}

.setup-showcase-screen li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #7ec0ff 0%, #2b84ff 72%);
  box-shadow: 0 6px 12px -7px rgba(23, 102, 255, 0.9);
}

.setup-showcase-screen li.is-reveal {
  opacity: 1;
  transform: translateX(0);
}

.setup-showcase-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.setup-showcase-actions .btn {
  width: 100%;
  margin-bottom: 10px;
}

.setup-showcase-actions .btn.is-pending {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
}

.setup-showcase-actions .btn.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.setup-showcase-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f6dff;
  border: 1px solid #bdd7ff;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.98), rgba(237, 246, 255, 0.95)),
    linear-gradient(135deg, #ffffff, #eaf3ff);
  box-shadow:
    0 18px 26px -18px rgba(22, 96, 245, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(0) scale(1);
  position: relative;
}

.setup-showcase-icon svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.setup-showcase-icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  border: 1px solid rgba(96, 161, 255, 0.35);
  opacity: 0;
}

.setup-showcase-icon.is-hero-ready {
  animation: setup-hero-icon-float 2.5s ease-in-out infinite;
}

.setup-showcase-icon.is-hero-ready::after {
  animation: setup-hero-icon-ring 1.8s ease-out infinite;
}

.setup-showcase-screen h3.is-typing::after,
.setup-showcase-screen p.is-typing::after {
  content: "|";
  margin-left: 2px;
  color: #1f6dff;
  animation: trial7-caret-blink 0.7s step-end infinite;
}

.setup-stage-card {
  background:
    radial-gradient(circle at top right, rgba(58, 132, 255, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.92);
}

.setup-stage-head {
  text-align: center;
  justify-content: center;
}

.setup-stage-head strong {
  font-size: clamp(1.18rem, 3.6vw, 1.55rem);
  background: linear-gradient(115deg, #123c86 0%, #2a70dd 45%, #4da0ff 75%, #123c86 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: trial7-title-gradient-shift 11s ease-in-out infinite;
}

.setup-stage-head p,
.setup-stage-why {
  font-size: 1rem;
}

@keyframes setup-hero-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes setup-hero-icon-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.03);
  }
}

@keyframes setup-hero-icon-ring {
  0% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

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

.setup-step-pill {
  border: 1px solid #d4e2fb;
  border-radius: 14px;
  padding: 10px 12px;
  color: #37517b;
  background: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.setup-step-pill:hover {
  transform: translateY(-1px);
  border-color: #9ec0ff;
}

.setup-step-pill:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.setup-step-pill.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(140deg, #2f7bff, #1a5bd6);
  box-shadow: 0 10px 20px rgba(25, 89, 208, 0.32);
}

.setup-step-pill.is-complete:not(.is-active) {
  color: #165b39;
  border-color: #b8ead2;
  background: #ebf9f1;
}

.setup-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.setup-progress-track {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #d5e5ff;
  background: #eaf2ff;
}

.setup-progress-bar {
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: linear-gradient(140deg, #2f7bff, #1a5bd6);
  transition: width 0.2s ease;
}

.setup-progress-wrap span {
  color: #3d5683;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.setup-stage-card {
  border: 1px solid #d5e4ff;
  border-radius: 24px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(58, 132, 255, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.92);
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 18px 34px -28px rgba(21, 87, 194, 0.55);
}

.setup-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.setup-stage-head strong {
  display: block;
  font-size: clamp(1.45rem, 4.8vw, 2rem);
  background: linear-gradient(115deg, #123c86 0%, #2a70dd 45%, #4da0ff 75%, #123c86 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: trial7-title-gradient-shift 11s ease-in-out infinite;
}

.setup-stage-head p {
  margin: 8px 0 0;
  color: #3f5985;
  font-size: 0.96rem;
}

.setup-stage-why {
  margin: 0;
  max-width: 40ch;
  color: #3d5b8f;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
}

.setup-stage-head strong.is-typing::after,
.setup-stage-head p.is-typing::after {
  content: "|";
  margin-left: 2px;
  color: #1f6dff;
  animation: trial7-caret-blink 0.7s step-end infinite;
}

.setup-pane {
  display: grid;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
}

.setup-pane.is-active {
  opacity: 1;
  transform: translateY(0);
  animation: setup-hero-in 0.34s ease both;
}

.setup-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.setup-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 120px;
  gap: 10px;
}

.setup-field-block {
  display: grid;
  gap: 6px;
}

.setup-field-block label {
  font-size: 1rem;
  font-weight: 800;
  color: #15325e;
}

.setup-field-block .field {
  height: 50px;
  min-height: 50px;
  box-sizing: border-box;
  padding: 0 14px;
  line-height: 1.2;
  display: block;
  border-radius: 12px;
  border-color: #bdd3f5;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(242, 248, 255, 0.95));
  font-size: 1rem;
  color: #173766;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.setup-check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #213f6f;
}

.setup-check-line input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1f6dff;
}

.setup-check-error .setup-check-line {
  color: #b42848;
}

.setup-help {
  color: #5c759f;
  font-size: 0.88rem;
  line-height: 1.38;
}

.setup-feedback {
  font-size: 0.86rem;
  font-weight: 700;
}

.setup-feedback-neutral {
  color: #5f76a0;
}

.setup-feedback-loading {
  color: #2c63bd;
}

.setup-feedback-success {
  color: #127646;
}

.setup-feedback-danger {
  color: #b42848;
}

.setup-field-invalid {
  border-color: #e1445f !important;
  box-shadow: 0 0 0 3px rgba(225, 68, 95, 0.16) !important;
}

.setup-has-error .setup-chip-grid,
.setup-has-error [data-service-list] {
  border: 1px solid #e58ea1;
  border-radius: 12px;
  padding: 8px;
  background: #fff4f6;
}

.setup-error-bubble {
  display: inline-flex;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #f0a1b1;
  color: #9f1f38;
  background: #fff0f3;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.setup-address-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #d8e6ff;
  background: #f8fbff;
}

.setup-inline-card {
  border: 1px solid #cdddf8;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(237, 246, 255, 0.92));
}

.setup-inline-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.setup-inline-card p {
  margin: 0;
  color: #3f5882;
  font-size: 0.95rem;
}

.onboard-step[data-step="4"] .setup-field-block {
  padding: 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.onboard-step[data-step="4"] .setup-field-block > label {
  font-size: 1rem;
  font-weight: 800;
  color: #1d4076;
}

.onboard-step[data-step="4"] .upload-thumb-box {
  width: 100%;
  padding: 0;
  border: 2px dashed #b7d2fb;
  border-radius: 10px;
  background: #f7fbff;
  overflow: hidden;
}

.onboard-step[data-step="4"] .upload-preview-thumb {
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: #ffffff;
  object-fit: contain;
}

.onboard-step[data-step="4"] img[data-upload-preview="setup-logo"] {
  min-height: 120px;
}

.onboard-step[data-step="4"] img[data-upload-preview="setup-bg"] {
  min-height: 96px;
  object-fit: cover;
}

body.setup-mobile-flow .onboard-step[data-step="4"] {
  gap: 6px;
}

body.setup-mobile-flow .onboard-step[data-step="4"] .setup-inline-card {
  padding: 8px;
}

body.setup-mobile-flow .onboard-step[data-step="4"] .setup-field-block > label {
  font-size: 0.92rem;
  margin-bottom: 2px;
}

body.setup-mobile-flow .onboard-step[data-step="4"] .setup-inline-card strong {
  font-size: 0.98rem;
}

body.setup-mobile-flow .onboard-step[data-step="4"] .setup-inline-card p {
  font-size: 0.82rem;
  line-height: 1.2;
  margin-top: 2px;
}

body.setup-mobile-flow .onboard-step[data-step="4"] .setup-field-block {
  padding: 4px;
  gap: 4px;
}

body.setup-mobile-flow .onboard-step[data-step="4"] .upload-thumb-box {
  border-width: 3px;
  border-color: #74a9ff;
}

body.setup-mobile-flow .onboard-step[data-step="4"] [data-upload-dropzone="setup-logo"] .upload-thumb-box {
  width: 196px;
  height: 196px;
  margin: 0 auto;
}

body.setup-mobile-flow .onboard-step[data-step="4"] [data-upload-dropzone="setup-bg"] .upload-thumb-box {
  width: 100%;
  height: 210px;
}

body.setup-mobile-flow .onboard-step[data-step="4"] .setup-field-block > label {
  text-align: center;
  margin-bottom: 8px;
}

body.setup-mobile-flow .onboard-step[data-step="4"] .setup-stage-head,
body.setup-mobile-flow .onboard-step[data-step="4"] .setup-stage-head strong,
body.setup-mobile-flow .onboard-step[data-step="4"] .setup-stage-head p {
  text-align: center;
}

body.setup-mobile-flow .onboard-step[data-step="4"] .setup-stage-head {
  margin-bottom: 12px;
}

body.setup-mobile-flow .onboard-step[data-step="4"] .setup-stage-head strong {
  font-size: 1.42rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  background: linear-gradient(115deg, #1a4ea0 0%, #2f7cff 45%, #60b3ff 80%, #1a4ea0 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: trial7-title-gradient-shift 8s ease-in-out infinite;
}

body.setup-mobile-flow .onboard-step[data-step="4"] .setup-stage-head p {
  font-size: 0.98rem;
  line-height: 1.35;
  color: #496798;
}

body.setup-mobile-flow .onboard-step[data-step="4"] .setup-field-block > label {
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #1f4f93;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .setup-inline-card {
  padding: 8px;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .setup-inline-card strong {
  font-size: 0.98rem;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .setup-inline-card p {
  font-size: 0.82rem;
  line-height: 1.2;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .card {
  padding: 8px !important;
  border-radius: 12px;
  background: #f8fbff;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-day {
  margin-bottom: 8px !important;
  padding-bottom: 8px !important;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-day .row:first-child strong {
  font-size: 0.95rem;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-day .row:first-child {
  align-items: center !important;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-day .row:first-child input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-day {
  border-bottom: 1px dashed #d6e0f5;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-day-closed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-periods {
  display: grid;
  gap: 6px;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 6px;
  align-items: center;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row .biz-sep {
  display: none;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row .biz-open-select,
body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row .biz-close-select {
  height: 40px;
  min-height: 40px;
  font-size: 0.9rem;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row .biz-close-select {
  display: none;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row.has-start .biz-close-select {
  display: block;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row.has-start {
  grid-template-columns: 1fr 1fr 34px;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row .biz-period-add-inline,
body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row .biz-period-remove {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 10px;
  font-size: 1.05rem;
  line-height: 1;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row .biz-period-add-inline svg,
body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row .biz-period-remove svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row .biz-period-add-inline {
  color: #ffffff;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row .biz-period-remove {
  color: #f2f7ff;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row .biz-period-remove {
  display: none;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row.is-secondary.has-start .biz-period-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row .biz-period-add-inline {
  display: none;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row.is-primary.has-start .biz-period-add-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.setup-mobile-flow .onboard-step[data-step="5"] .biz-period-row.is-secondary .biz-period-add-inline {
  display: none !important;
}

body.setup-mobile-flow .onboard-step[data-step="4"] [data-upload-dropzone="setup-logo"] img[data-upload-preview="setup-logo"] {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  object-fit: cover !important;
}

body.setup-mobile-flow .onboard-step[data-step="4"] [data-upload-dropzone="setup-bg"] img[data-upload-preview="setup-bg"] {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  object-fit: cover !important;
}

body.setup-mobile-flow .onboard-step[data-step="4"] .setup-field-block {
  margin-bottom: 4px;
}

.onboard-step[data-step="4"] .upload-control.upload-control-wide {
  border: 1px solid #bfd5f7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  padding: 8px;
}

.onboard-step[data-step="4"] small[data-upload-status] {
  color: #4d6896;
  font-size: 0.84rem;
  font-weight: 700;
}

.setup-pro-wrap {
  display: grid;
  gap: 10px;
}

.setup-pro-card {
  border: 1px solid #d6e5ff;
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
}

.setup-pro-head {
  margin-bottom: 8px;
}

.setup-avatar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.setup-avatar-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d6e5ff;
  border-radius: 999px;
  padding: 4px 8px 4px 4px;
  background: #f8fbff;
}

.setup-avatar-option img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #d5def1;
}

.setup-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.setup-chip-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d5e4ff;
  border-radius: 999px;
  padding: 6px 10px;
  color: #274574;
  background: #f4f8ff;
  font-weight: 600;
  font-size: 0.88rem;
}

.setup-review-box {
  border: 1px solid #d5e4ff;
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
}

.setup-review-head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.setup-review-head strong {
  font-size: 1.06rem;
}

.setup-review-head span {
  color: #3b5888;
  font-weight: 600;
}

.setup-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.setup-review-grid small {
  color: #647da8;
  font-weight: 700;
}

.setup-review-grid p {
  margin: 3px 0 0;
  color: #1e375f;
  font-weight: 700;
}

.setup-review-list {
  display: grid;
  gap: 8px;
}

.setup-review-item {
  border: 1px solid #dce8ff;
  border-radius: 12px;
  padding: 10px;
  background: #f8fbff;
  display: grid;
  gap: 4px;
}

.setup-review-item span {
  color: #3a5684;
}

.setup-review-item small {
  color: #5f78a2;
}

.setup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 8px;
}

.setup-actions .btn.btn-brand,
#nextBtn.btn.btn-brand,
#submitBtn.btn.btn-brand {
  min-height: 48px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(120deg, #1e66f5 0%, #2d86ff 45%, #54b3ff 100%);
  background-size: 200% 200%;
  animation: trial7-title-gradient-shift 8s ease-in-out infinite;
  box-shadow: 0 14px 26px -16px rgba(24, 96, 255, 0.8);
}

.setup-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.onboard-step[data-step='4'] .setup-upload-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.onboard-step[data-step='4'] .setup-upload-dropzone {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.onboard-step[data-step='4'] .setup-upload-dropzone:hover {
  transform: translateY(-1px);
  box-shadow: none;
  border-color: transparent;
}

.onboard-step[data-step='4'] .setup-upload-dropzone.is-dragover {
  box-shadow: none;
}

.setup-actions .btn {
  border-radius: 14px;
  min-height: 50px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.setup-actions .btn.btn-dark {
  border: 1px solid #20386a;
  background: linear-gradient(130deg, #203765, #1b2e54);
  color: #f2f7ff;
}

.setup-actions .btn.btn-brand {
  border: 0;
  background: linear-gradient(120deg, #1f6dff 0%, #3188ff 48%, #5ab6ff 100%);
  background-size: 220% 220%;
  animation: trial7-title-gradient-shift 8s ease-in-out infinite;
  box-shadow: 0 16px 26px -18px rgba(20, 98, 255, 0.85);
}

.setup-actions .btn.btn-brand:disabled {
  opacity: 0.58;
  filter: saturate(0.65);
  box-shadow: none;
}

.setup-next-gate-hint {
  color: #1d4f96;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid #b8d2fa;
  background: linear-gradient(120deg, #e8f3ff 0%, #d6e9ff 40%, #c8e0ff 70%, #e8f3ff 100%);
  background-size: 240% 240%;
  animation: trial7-title-gradient-shift 3.2s ease-in-out infinite;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 12px 20px -16px rgba(24, 98, 232, 0.85);
}

.setup-next-gate-hint::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #6fb0ff 0%, #2b7cff 75%);
  box-shadow: 0 4px 10px -6px rgba(25, 102, 238, 0.9);
}

.setup-tutorial-shell {
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 12px;
}

.setup-tutorial-card {
  width: 100%;
  height: min(100%, 920px);
  border: 1px solid #d5e4ff;
  border-radius: 24px;
  padding: 14px;
  background:
    radial-gradient(circle at top right, rgba(31, 109, 255, 0.16), transparent 40%),
    linear-gradient(160deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 10px;
  overflow: hidden;
}

.setup-tutorial-card h2 {
  margin: 0;
  font-size: 1.14rem;
}

.setup-tutorial-sub {
  margin: 0;
  color: #3f5985;
  font-size: 0.9rem;
}

.setup-tutorial-layout {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
}

.setup-tutorial-phone {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid #d5e4ff;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(242, 248, 255, 0.92));
}

.setup-tutorial-phone-notch {
  width: 104px;
  height: 5px;
  margin: 0 auto;
  border-radius: 999px;
  background: #b8cbed;
  opacity: 0.8;
  flex-shrink: 0;
}

.setup-tutorial-preview {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid #d6e3fb;
  overflow: hidden;
  display: grid;
  grid-template-columns: 45% 55%;
  background: linear-gradient(140deg, #dbe7fb 0%, #edf3ff 100%);
}

.setup-tutorial-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(16, 34, 69, 0.24);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.setup-tutorial-preview.has-focus::after {
  opacity: 1;
}

.setup-tutorial-preview [data-tour-anchor] {
  position: relative;
  z-index: 1;
  transition:
    opacity 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.setup-tutorial-preview [data-tour-anchor].is-muted {
  opacity: 0.32;
  filter: saturate(0.55);
}

.setup-tutorial-preview [data-tour-anchor].is-highlighted {
  opacity: 1;
  filter: none;
  transform: translateY(-1px);
  z-index: 3;
  box-shadow: 0 0 0 2px #ffbf4f, 0 10px 20px rgba(15, 49, 109, 0.32);
}

.setup-tutorial-sidebar {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding: 8px;
  background: linear-gradient(180deg, #102958 0%, #173d7d 100%);
}

.setup-tutorial-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.setup-tutorial-brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.18);
}

.setup-tutorial-brand strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.1;
}

.setup-tutorial-brand span {
  display: block;
  margin-top: 2px;
  color: rgba(232, 242, 255, 0.88);
  font-size: 0.74rem;
}

.setup-tutorial-menu {
  display: grid;
  gap: 6px;
  align-content: start;
}

.setup-tutorial-menu-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px 9px;
  text-align: left;
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  color: #e8f1ff;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  cursor: default;
}

.setup-tutorial-menu-item.is-current {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(140deg, #2f7bff, #1a5bd6);
}

.setup-tutorial-content {
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 8px;
  background: linear-gradient(180deg, #eef4ff 0%, #f6f9ff 100%);
}

.setup-tutorial-content-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #d8e5fc;
  background: #ffffff;
}

.setup-tutorial-content-head strong {
  display: block;
  font-size: 0.88rem;
  color: #16325f;
}

.setup-tutorial-content-head small {
  color: #4f6790;
  font-weight: 700;
  font-size: 0.73rem;
}

.setup-tutorial-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  color: #1850a8;
  border: 1px solid #d0e1ff;
  background: #eef4ff;
  font-size: 0.7rem;
  font-weight: 800;
}

.setup-tutorial-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.setup-tutorial-kpi-card {
  border: 1px solid #d8e6fe;
  border-radius: 10px;
  padding: 7px;
  background: #ffffff;
  display: grid;
  gap: 3px;
}

.setup-tutorial-kpi-card span {
  color: #4f6892;
  font-size: 0.72rem;
  font-weight: 700;
}

.setup-tutorial-kpi-card strong {
  color: #153462;
  font-size: 0.96rem;
  line-height: 1;
}

.setup-tutorial-list-card {
  border: 1px solid #d8e6fe;
  border-radius: 10px;
  padding: 7px;
  background: #ffffff;
}

.setup-tutorial-list-card strong {
  display: block;
  margin-bottom: 4px;
  color: #173563;
  font-size: 0.82rem;
}

.setup-tutorial-list-card ul {
  margin: 0;
  padding-left: 16px;
  color: #375683;
  font-size: 0.73rem;
  line-height: 1.28;
}

.setup-tutorial-list-card li + li {
  margin-top: 3px;
}

.setup-tutorial-list-card p {
  margin: 0;
  color: #3e5f8f;
  font-size: 0.74rem;
  line-height: 1.3;
}

.setup-tutorial-fab {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(145deg, #1eb75b, #159347);
  box-shadow: 0 8px 18px rgba(22, 131, 67, 0.28);
  font-weight: 800;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.setup-tutorial-guide {
  border: 1px solid #d5e4ff;
  border-radius: 14px;
  padding: 10px 11px;
  background: #f8fbff;
  display: grid;
  gap: 5px;
}

.setup-tutorial-guide-step {
  color: #3d5a8b;
  font-size: 0.79rem;
  font-weight: 800;
}

.setup-tutorial-guide h3 {
  margin: 0;
  color: #12305f;
  font-size: 0.96rem;
}

.setup-tutorial-guide p {
  margin: 0;
  color: #3d5f8f;
  font-size: 0.82rem;
  line-height: 1.32;
}

.setup-tutorial-guide-list {
  margin: 0;
  padding-left: 18px;
  color: #204879;
  font-size: 0.8rem;
  line-height: 1.32;
}

.setup-tutorial-guide-list li + li {
  margin-top: 4px;
}

.setup-tutorial-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.setup-tutorial-progress span {
  color: #3d5683;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.setup-tutorial-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.setup-tutorial-actions form {
  width: 100%;
}

.setup-tutorial-actions .btn {
  min-height: 40px;
}

body.setup-mobile-flow .setup-tutorial-shell {
  min-height: 100%;
  padding: 10px 12px var(--setup-flow-bottom-gap);
  align-items: center;
}

body.setup-mobile-flow .setup-tutorial-card {
  height: 100%;
  max-height: none;
  padding: 12px;
  gap: 8px;
}

body.setup-mobile-flow .setup-tutorial-sub {
  font-size: 0.8rem;
}

body.setup-mobile-flow .setup-tutorial-phone {
  padding: 7px;
  border-radius: 18px;
}

body.setup-mobile-flow .setup-tutorial-phone-notch {
  width: 92px;
  height: 4px;
}

body.setup-mobile-flow .setup-tutorial-preview {
  border-radius: 14px;
}

body.setup-mobile-flow .setup-tutorial-menu-item {
  padding: 6px 8px;
  font-size: 0.76rem;
}

body.setup-mobile-flow .setup-tutorial-content {
  gap: 6px;
  padding: 7px;
}

body.setup-mobile-flow .setup-tutorial-content-head {
  padding: 7px;
}

body.setup-mobile-flow .setup-tutorial-content-head strong {
  font-size: 0.84rem;
}

body.setup-mobile-flow .setup-tutorial-kpi-card,
body.setup-mobile-flow .setup-tutorial-list-card {
  padding: 6px;
}

body.setup-mobile-flow .setup-tutorial-kpi-card strong {
  font-size: 0.9rem;
}

body.setup-mobile-flow .setup-tutorial-guide {
  padding: 9px 10px;
  gap: 4px;
}

body.setup-mobile-flow .setup-tutorial-guide h3 {
  font-size: 0.9rem;
}

body.setup-mobile-flow .setup-tutorial-guide p,
body.setup-mobile-flow .setup-tutorial-guide-list {
  font-size: 0.76rem;
}

body.setup-mobile-flow .setup-tutorial-fab {
  width: 30px;
  height: 30px;
  font-size: 0.74rem;
}

@media (max-width: 640px) {
  .setup-tutorial-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .setup-tutorial-actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .setup-tutorial-preview {
    grid-template-columns: 46% 54%;
  }

  .setup-tutorial-menu-item {
    font-size: 0.74rem;
  }
}

@media (max-width: 1080px) {
  .setup-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 840px) {
  .setup-wizard {
    padding: 10px;
    border-radius: 0;
    height: 100dvh;
    min-height: 100dvh;
  }

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

  .setup-hero-meta {
    min-width: 0;
  }

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

  .setup-stage-head {
    flex-direction: column;
  }

  .setup-grid-2,
  .setup-grid-3,
  .setup-review-grid {
    grid-template-columns: 1fr;
  }

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

  .setup-actions-right {
    margin-left: 0;
    width: 100%;
  }

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

@media (max-width: 560px) {
  .setup-steps {
    grid-template-columns: 1fr;
  }

  .setup-showcase-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .setup-screen-block,
  .setup-stage-card {
    min-height: 0;
  }
}

input[type="file"].field {
  padding: 8px;
  background: #ffffff;
  border-style: solid;
}

input[type="file"].field::file-selector-button {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  margin-right: 10px;
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  font-weight: 700;
  cursor: pointer;
}

.grid.grid-2 > .card,
.grid.grid-3 > .card {
  min-width: 0;
}

.grid > form.grid {
  gap: 12px;
}

.saas-public-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.saas-public-summary h3 {
  margin: 0 0 8px;
}

.saas-public-summary p {
  margin: 0;
}

.saas-public-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
}

.saas-public-stats div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 10px;
  text-align: center;
}

.saas-public-stats strong {
  display: block;
  font-size: 1.12rem;
}

.saas-public-stats span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.saas-public-toolbar {
  padding: 14px;
}

.saas-public-grid {
  align-items: stretch;
}

.saas-public-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.saas-public-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.saas-public-card-head h3 {
  margin: 0;
  font-size: 1.25rem;
}

.saas-public-card-head p {
  margin: 6px 0 0;
  color: #4c5f82;
}

.saas-public-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saas-public-link {
  margin: 0;
  color: #3c5078;
  font-size: 0.94rem;
}

.saas-public-link a {
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 700;
}

.saas-public-link a:hover {
  text-decoration: underline;
}

.saas-public-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.saas-public-warning {
  margin: 0;
  color: #9b3a48;
  font-weight: 600;
}

@media (max-width: 1180px) {
  :root {
    --sidebar-w: 250px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .content-area {
    margin-left: 0;
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 14px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #17396f;
    box-shadow: 0 10px 18px -14px rgba(22, 66, 147, 0.7);
  }

  .drawer-backdrop.show {
    display: block;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .landing-hero,
  .landing-grid,
  .portal-hero {
    grid-template-columns: 1fr;
  }

  .barber-hero-media {
    min-height: 260px;
  }

  .barber-hero-media img {
    min-height: 260px;
  }

  .page-wrap {
    padding: 12px;
  }

  .topbar-title h1 {
    font-size: 1.2rem;
  }

  .card {
    padding: 14px;
    border-radius: 16px;
  }

  .table {
    display: table;
    table-layout: fixed;
    width: 100%;
  }

  .agenda-item-card {
    grid-template-columns: 1fr;
  }

  .agenda-meta-grid {
    grid-template-columns: 1fr;
  }

  .upload-preview {
    height: 170px;
  }

  .portal-categories-grid {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    padding: 12px 10px 18px;
    min-height: auto;
    align-items: stretch;
    gap: 12px;
  }

  .auth-shell-access {
    min-height: auto;
    padding: 8px 8px 16px;
    border-radius: 0;
    overflow: visible;
    gap: 10px;
    align-content: start;
  }

  .auth-shell-access::before {
    border-radius: 18px;
    inset: 6px;
    background:
      linear-gradient(rgba(243, 246, 252, 0.84), rgba(243, 246, 252, 0.84)),
      var(--auth-bg-image, linear-gradient(160deg, #f7fbff 0%, #eaf2ff 100%));
  }

  .auth-shell-access .auth-hero-access,
  .auth-shell-access .auth-card-access {
    border-radius: 18px;
    padding: 14px;
    width: 100%;
  }

  .auth-shell-access .auth-hero-access {
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(2px);
    border: 1px solid #d7e4fa;
  }

  .auth-shell-access .auth-hero-access h1 {
    font-size: 2rem;
    line-height: 1.12;
    margin: 8px 0;
    letter-spacing: -0.02em;
    background: linear-gradient(110deg, #123c86 0%, #2a70dd 40%, #4da0ff 70%, #123c86 100%);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: trial7-title-gradient-shift 10s ease-in-out infinite;
  }

  .auth-shell-access .auth-hero-grid {
    gap: 8px;
    margin-top: 10px;
  }

  .auth-shell-access .auth-hero-card {
    border-radius: 12px;
    padding: 12px;
  }

  .auth-shell-access .auth-hero-card strong {
    font-size: 1.14rem;
  }

  .auth-shell-access .auth-hero-card p {
    font-size: 1.03rem;
    line-height: 1.4;
  }

  .auth-shell-access .auth-card-access {
    background:
      radial-gradient(circle at top right, rgba(31, 109, 255, 0.1), transparent 46%),
      rgba(255, 255, 255, 0.78);
    color: #17356e;
    border: 1px solid #d8e4f8;
    box-shadow: var(--shadow-soft);
  }

  .auth-shell-access .auth-card-access p {
    color: #3c4d70;
    font-size: 1.02rem;
  }

  .auth-shell-access .auth-card-access .auth-link {
    color: #1d56bb;
    font-size: 1.08rem;
  }

  .auth-shell-access .auth-card-access h2 {
    font-size: 2.35rem;
    line-height: 1.08;
  }

  .auth-shell-access .auth-card-access .field {
    min-height: 58px;
    font-size: 1.12rem;
    padding: 15px 16px;
  }

  .auth-shell-access .auth-card-access .login-btn:not(.login-btn-google) {
    min-height: 58px;
    font-size: 1.16rem;
  }

  .auth-shell-access .trial7-google-btn,
  .auth-shell-access .btn {
    min-height: 58px !important;
    font-size: 1.16rem !important;
  }

  .auth-shell-access .auth-hero-access h1 {
    font-size: 2.4rem;
  }

  .auth-shell-access .auth-hero-access > p {
    font-size: 1.16rem;
    line-height: 1.45;
  }

  .auth-shell-access .auth-hero-card strong {
    font-size: 1.22rem;
  }

  .auth-shell-access .auth-hero-card p {
    font-size: 1.1rem;
    line-height: 1.45;
  }

  .auth-shell-access .badge {
    font-size: 0.95rem;
    padding: 7px 12px;
  }

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

  .trial7-wizard {
    gap: 12px;
  }

  .trial7-wizard .trial7-step {
    display: none !important;
  }

  .trial7-wizard .trial7-step.is-active {
    display: block !important;
  }

  .trial7-wizard .trial7-step-2.is-active.auth-card-access {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
  }

  .trial7-wizard .trial7-step-2 .trial7-cta-logo {
    display: block;
    width: 160px;
    max-width: 58%;
    margin: 0 auto 10px;
  }

  .trial7-wizard .trial7-step-2 h2 {
    text-align: center;
    font-size: 2.05rem;
    line-height: 1.04;
    margin: 0 0 10px;
  }

  .trial7-wizard .trial7-step-2 > p {
    text-align: center;
    font-size: 1.03rem;
    line-height: 1.34;
    margin: 0 0 14px;
  }

  .trial7-wizard .trial7-step-2 .trial7-google-btn {
    width: 100%;
    min-height: 56px;
    border-radius: 16px;
    font-size: 1.08rem;
    font-weight: 800;
    gap: 12px;
    padding: 12px 16px;
  }

  .trial7-wizard .trial7-step-2 .trial7-google-btn svg {
    width: 22px;
    height: 22px;
  }

  .trial7-wizard .trial7-hero-item.is-pending {
    opacity: 0;
    transform: translateX(44px);
  }

  .trial7-wizard .trial7-hero-item.is-visible {
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.46s cubic-bezier(0.2, 0.75, 0.25, 1), opacity 0.4s ease;
  }

  .trial7-wizard .trial7-next-btn {
    width: 100%;
    margin-top: 14px;
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.01em;
    background: linear-gradient(120deg, #1e66f5 0%, #2d86ff 45%, #54b3ff 100%);
    background-size: 200% 200%;
    box-shadow: 0 14px 26px -16px rgba(24, 96, 255, 0.8);
    animation: trial7-title-gradient-shift 8s ease-in-out infinite;
  }

  .trial7-wizard .trial7-next-btn:active {
    transform: translateY(1px);
  }

  .trial7-wizard .trial7-next-btn:disabled {
    cursor: not-allowed;
  }

  .trial7-wizard .trial7-next-btn.is-pending {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    pointer-events: none;
  }

  .trial7-wizard .trial7-next-btn.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition: transform 0.32s ease, opacity 0.32s ease;
  }

  .trial7-wizard .trial7-gesture-hint {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-weight: 700;
    color: #2f5da9;
    opacity: 0.88;
  }

  .trial7-wizard .trial7-typing-target.is-typing::after {
    content: "|";
    margin-left: 2px;
    color: #1f6dff;
    animation: trial7-caret-blink 0.75s step-end infinite;
  }

  .access-wizard .access-step {
    display: none !important;
  }

  .access-wizard .access-step.is-active {
    display: block !important;
  }

  .access-wizard .access-step-2.is-active.auth-card-access {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
  }

  .access-wizard .access-next-btn {
    width: 100%;
    margin-top: 12px;
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(120deg, #1e66f5 0%, #2d86ff 45%, #54b3ff 100%);
    box-shadow: 0 14px 26px -16px rgba(24, 96, 255, 0.8);
  }

  .access-wizard .access-gesture-hint {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-weight: 700;
    color: #2f5da9;
    opacity: 0.88;
  }

  .saas-public-summary {
    flex-direction: column;
  }

  .saas-public-stats {
    width: 100%;
  }
}

@media (max-width: 430px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    font-size: 18px;
  }

  .page-wrap {
    padding: 6px !important;
  }

  .auth-shell {
    padding: 8px 4px 14px !important;
    gap: 10px !important;
  }

  .auth-shell-access {
    padding: 4px !important;
    gap: 10px !important;
  }

  .auth-shell-access .auth-hero-access,
  .auth-shell-access .auth-card-access {
    padding: 14px 12px !important;
    border-radius: 16px !important;
  }

  .auth-shell-access .badge {
    font-size: 0.86rem !important;
    padding: 6px 10px !important;
  }

  .auth-shell-access .auth-hero-access h1 {
    font-size: 2.2rem !important;
    line-height: 1.08 !important;
  }

  .auth-shell-access .auth-hero-access > p {
    font-size: 1.08rem !important;
    line-height: 1.45 !important;
  }

  .auth-shell-access .auth-hero-card strong {
    font-size: 1.2rem !important;
  }

  .auth-shell-access .auth-hero-card p {
    font-size: 1.08rem !important;
    line-height: 1.45 !important;
  }

  .auth-shell-access .auth-card-access h2 {
    font-size: 2.2rem !important;
    line-height: 1.08 !important;
  }

  .auth-shell-access .auth-card-access > p {
    font-size: 1.1rem !important;
    line-height: 1.45 !important;
  }

  .auth-shell-access .auth-card-access .field {
    min-height: 56px !important;
    font-size: 1.08rem !important;
    padding: 14px 15px !important;
    border-radius: 13px !important;
  }

  .auth-shell-access .auth-card-access .login-btn,
  .auth-shell-access .auth-card-access .trial7-google-btn,
  .auth-shell-access .auth-card-access .btn {
    min-height: 56px !important;
    font-size: 1.12rem !important;
    border-radius: 13px !important;
  }

  .auth-shell-access .auth-card-access .auth-link,
  .auth-shell-access .trial7-links a {
    font-size: 1.02rem !important;
    line-height: 1.35 !important;
  }

  .trial7-wizard .trial7-gesture-hint,
  .access-wizard .access-gesture-hint {
    font-size: 0.96rem !important;
  }
}

@keyframes trial7-step-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes trial7-title-gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes trial7-caret-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 12px;
    align-items: center;
    flex-wrap: nowrap;
  }

  .btn {
    width: 100%;
  }

  .topbar .btn {
    width: auto;
  }

  .btn-icon-only {
    width: 42px;
    min-width: 42px;
  }

  .topbar .row {
    width: auto;
    justify-content: flex-end;
  }

  .topbar-title h1 {
    font-size: 1.02rem;
  }

  .topbar-title small {
    font-size: 0.74rem;
  }

  .admin-dash-grid .admin-dash-card-link {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .admin-dash-grid .admin-dash-card-link h2 {
    font-size: 1.8rem;
  }

  .row {
    gap: 8px;
  }

  .field,
  select,
  textarea {
    padding: 10px 11px;
  }

  .trial7-wizard .trial7-step-2 .trial7-cta-logo {
    width: 150px;
    max-width: 64%;
  }

  .trial7-wizard .trial7-step-2 h2 {
    font-size: 1.92rem;
  }

  .trial7-wizard .trial7-step-2 > p {
    font-size: 0.99rem;
  }

  .trial7-wizard .trial7-step-2 .trial7-google-btn {
    min-height: 54px;
    font-size: 1.03rem;
  }

  .upload-preview {
    height: 150px;
  }

  .whatsapp-fab {
    right: 12px;
    bottom: 12px;
    padding: 10px;
  }

  .whatsapp-fab-text {
    display: none;
  }

  .saas-public-stats {
    grid-template-columns: 1fr;
  }

  .saas-public-actions {
    grid-template-columns: 1fr;
  }
}

/* ===== Densidade global (sem zoom do navegador) ===== */
:root {
  --sidebar-w: 210px;
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
}

html {
  font-size: 14px;
}

body {
  font-size: 1rem;
  line-height: 1.4;
}

.sidebar {
  padding: 14px 10px;
}

.brand {
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
}

.brand strong {
  font-size: 0.98rem;
}

.brand-logo,
.brand-icon {
  width: 38px;
  height: 38px;
}

.menu-preview-box {
  padding: 8px;
}

.menu-preview-label {
  font-size: 0.72rem;
}

.menu-item {
  padding: 10px 12px;
  border-radius: 11px;
}

.topbar {
  padding: 10px 14px;
}

.topbar-title h1 {
  font-size: 1.15rem;
}

.topbar-title small {
  font-size: 0.82rem;
}

.page-wrap {
  max-width: 1240px;
  padding: 14px;
}

.card {
  padding: 14px;
  border-radius: 18px;
}

.card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.card p {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

label {
  font-size: 0.84rem;
}

.field,
select,
textarea {
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 0.95rem;
}

textarea {
  min-height: 72px;
}

.btn {
  padding: 9px 13px;
  border-radius: 11px;
  font-size: 0.92rem;
  min-height: 38px;
}

.badge {
  padding: 4px 9px;
  font-size: 0.74rem;
}

.table {
  border-radius: 12px;
}

.table th,
.table td {
  padding: 10px 8px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.table th {
  font-size: 0.78rem;
}

.table .btn {
  padding: 7px 10px;
  min-height: 34px;
}

.saas-filter-grid label {
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.saas-metric-card {
  padding: 10px;
  border-radius: 13px;
}

.saas-metric-card strong {
  font-size: 1.06rem;
}

.saas-tab-btn {
  padding: 8px 10px;
  font-size: 0.88rem;
}

.saas-dropdown-menu {
  min-width: 200px;
  padding: 6px;
}

.saas-dropdown-item {
  padding: 8px 9px;
  font-size: 0.9rem;
}

.saas-profile-meta,
.saas-alert-meta,
.agenda-meta-grid {
  font-size: 0.9rem;
}

.agenda-item-card {
  padding: 10px;
}

.impersonation-banner {
  padding: 9px 12px;
}

.modal {
  padding: 14px;
}

.modal-card {
  width: min(640px, 100%);
  max-height: calc(100vh - 28px);
  padding: 14px;
  border-radius: 14px;
}

.modal-card-wide {
  width: min(1000px, 100%);
}

.modal-header h3 {
  font-size: 1rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  font-size: 1.15rem;
}

.login-card {
  max-width: 520px;
  border-radius: 22px;
  padding: 20px;
}

.login-logo {
  width: 72px;
  height: 72px;
}

.login-btn {
  padding: 12px;
}

.auth-shell {
  gap: 20px;
  padding: 28px 14px;
}

.auth-hero,
.auth-card {
  padding: 20px;
}

.auth-hero h1 {
  font-size: 1.65rem;
}

.whatsapp-fab {
  padding: 8px 12px 8px 8px;
}

@media (max-width: 920px) {
  .page-wrap {
    padding: 10px;
  }

  .card {
    padding: 12px;
  }

  .table th,
  .table td {
    padding: 9px 7px;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 13.5px;
  }

  .btn {
    padding: 9px 10px;
  }

  .topbar-title h1 {
    font-size: 1.05rem;
  }
}

/* ===== Tema Futurista (Painel) ===== */
@keyframes panelFutureGlow {
  0% { box-shadow: 0 0 0 rgba(70, 149, 255, 0); }
  50% { box-shadow: 0 0 26px rgba(74, 156, 255, 0.26); }
  100% { box-shadow: 0 0 0 rgba(70, 149, 255, 0); }
}

@keyframes panelFutureShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body.panel-future {
  --pf-line: rgba(134, 176, 255, 0.24);
  --pf-line-strong: rgba(156, 195, 255, 0.36);
  --pf-text: #eaf3ff;
  --pf-muted: #9cb3d8;
  --pf-surface: rgba(12, 22, 42, 0.68);
  --pf-surface-2: rgba(15, 29, 54, 0.84);
  background:
    radial-gradient(circle at 95% -10%, rgba(86, 156, 255, 0.28), transparent 36%),
    radial-gradient(circle at 6% 100%, rgba(65, 110, 211, 0.26), transparent 38%),
    linear-gradient(160deg, #060d1a 0%, #0a1326 45%, #0e1d38 100%);
  color: var(--pf-text);
}

body.panel-future .sidebar {
  border-right: 1px solid rgba(151, 190, 255, 0.2);
  background:
    radial-gradient(circle at 10% 0%, rgba(92, 154, 255, 0.34), transparent 38%),
    linear-gradient(180deg, #0a1832 0%, #10264d 50%, #173b75 100%);
  box-shadow: 16px 0 44px rgba(4, 8, 18, 0.52);
}

body.panel-future .brand {
  border-color: rgba(166, 201, 255, 0.26);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 30px -24px rgba(16, 35, 72, 0.94);
}

body.panel-future .brand-logo,
body.panel-future .brand-icon {
  border-radius: 14px;
}

body.panel-future .menu-item {
  border: 1px solid rgba(149, 187, 255, 0.14);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(6px);
}

body.panel-future .menu-item-icon {
  border-color: rgba(176, 207, 255, 0.24);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
}

body.panel-future .menu-item:hover {
  transform: translateX(3px);
  border-color: rgba(165, 202, 255, 0.34);
  box-shadow: 0 14px 28px -20px rgba(77, 131, 234, 0.88);
}

body.panel-future .menu-item.active {
  background: linear-gradient(135deg, #2f7dff, #3f9fff, #1c5ede);
  background-size: 200% 200%;
  animation: panelFutureShift 9s ease infinite;
  border-color: rgba(197, 223, 255, 0.48);
  box-shadow:
    0 14px 26px -14px rgba(49, 123, 255, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.panel-future .content-area {
  background: transparent;
}

body.panel-future .topbar {
  border-bottom: 1px solid var(--pf-line);
  background: rgba(8, 15, 30, 0.8);
  backdrop-filter: blur(10px);
}

body.panel-future .topbar-title h1 {
  color: #f4f8ff;
  font-weight: 800;
}

body.panel-future .topbar-title small {
  color: var(--pf-muted);
}

body.panel-future .card {
  position: relative;
  border: 1px solid var(--pf-line);
  background: linear-gradient(160deg, rgba(14, 26, 49, 0.82), rgba(10, 20, 40, 0.7));
  box-shadow:
    0 20px 42px -30px rgba(5, 13, 26, 0.98),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.panel-future .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(156, 199, 255, 0.1), transparent 36%);
}

body.panel-future .card > * {
  position: relative;
  z-index: 1;
}

body.panel-future .card h1,
body.panel-future .card h2,
body.panel-future .card h3,
body.panel-future .card strong,
body.panel-future .card small,
body.panel-future label {
  color: #e9f3ff;
}

body.panel-future .card p,
body.panel-future .card small,
body.panel-future .badge {
  color: #c4d8f7;
}

body.panel-future .field,
body.panel-future select,
body.panel-future textarea {
  border: 1px solid var(--pf-line-strong);
  background: linear-gradient(155deg, rgba(14, 28, 54, 0.92), rgba(10, 22, 44, 0.88));
  color: #ecf4ff;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.panel-future .field::placeholder,
body.panel-future textarea::placeholder {
  color: #88a6d5;
}

body.panel-future .field:focus,
body.panel-future select:focus,
body.panel-future textarea:focus {
  border-color: #6db0ff;
  box-shadow:
    0 0 0 3px rgba(67, 148, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.panel-future .btn {
  border-radius: 14px;
  border: 1px solid rgba(169, 200, 255, 0.26);
  font-weight: 800;
  letter-spacing: 0.01em;
}

body.panel-future .btn-brand {
  background: linear-gradient(135deg, #2f7dff, #48a8ff, #2c65dc);
  background-size: 200% 200%;
  border-color: rgba(173, 211, 255, 0.5);
  box-shadow: 0 16px 30px -18px rgba(59, 133, 255, 0.95);
  animation: panelFutureShift 9s ease infinite;
}

body.panel-future .btn-brand:hover {
  animation: panelFutureGlow 1.4s ease;
}

body.panel-future .btn-dark {
  background: linear-gradient(150deg, rgba(24, 40, 74, 0.95), rgba(14, 28, 55, 0.92));
  border-color: rgba(163, 197, 255, 0.32);
}

body.panel-future .btn-whatsapp {
  background: linear-gradient(135deg, #16a85b, #0e8b46);
  border-color: rgba(125, 236, 175, 0.34);
}

body.panel-future .table {
  border-color: rgba(136, 173, 241, 0.34);
  background: rgba(9, 18, 35, 0.72);
}

body.panel-future .table th {
  background: rgba(20, 35, 65, 0.82);
  color: #dce9ff;
}

body.panel-future .table td {
  color: #c7daf8;
  border-top-color: rgba(137, 171, 236, 0.24);
}

body.panel-future .config-tab-link,
body.panel-future .config-nav-item {
  border: 1px solid rgba(151, 189, 255, 0.28);
  background: linear-gradient(150deg, rgba(17, 33, 62, 0.84), rgba(11, 24, 47, 0.74));
  color: #d9e9ff;
}

body.panel-future .config-tab-link small,
body.panel-future .config-nav-item small {
  color: #9fbae6;
}

body.panel-future .config-tab-link.active {
  border-color: rgba(188, 218, 255, 0.44);
  background: linear-gradient(135deg, #2f7dff, #43a1ff, #2867de);
}

body.panel-future .admin-link-card {
  border-color: rgba(149, 192, 255, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(67, 140, 255, 0.28), transparent 42%),
    linear-gradient(160deg, rgba(14, 30, 58, 0.88), rgba(10, 21, 43, 0.82));
}

body.panel-future .admin-link-url-box {
  border-color: rgba(152, 192, 255, 0.42);
  background: linear-gradient(160deg, rgba(16, 30, 58, 0.95), rgba(11, 23, 46, 0.92));
  color: #e7f2ff;
}

body.panel-future .admin-link-url-box svg {
  color: #72b3ff;
}

body.panel-future .menu-toggle {
  border: 1px solid rgba(153, 191, 255, 0.3);
  background: linear-gradient(150deg, rgba(26, 44, 78, 0.9), rgba(15, 28, 54, 0.86));
  color: #e7f2ff;
}

@media (max-width: 920px) {
  body.panel-future .sidebar {
    box-shadow: 0 18px 42px rgba(3, 7, 16, 0.72);
  }
  body.panel-future .topbar {
    background: rgba(7, 14, 28, 0.9);
  }
}

/* Final mobile overrides for auth/trial screens (real devices) */
@media (max-width: 430px) {
  .auth-shell-access {
    padding: 4px !important;
  }

  .auth-shell-access .auth-hero-access,
  .auth-shell-access .auth-card-access {
    padding: 16px 14px !important;
    border-radius: 16px !important;
  }

  .auth-shell-access .badge {
    font-size: 0.9rem !important;
    padding: 6px 12px !important;
  }

  .auth-shell-access .auth-hero-access h1 {
    font-size: 2.15rem !important;
    line-height: 1.08 !important;
    margin: 10px 0 !important;
  }

  .auth-shell-access .auth-hero-access > p {
    font-size: 1.1rem !important;
    line-height: 1.45 !important;
  }

  .auth-shell-access .auth-hero-card strong {
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
  }

  .auth-shell-access .auth-hero-card p {
    font-size: 1.05rem !important;
    line-height: 1.45 !important;
  }

  .auth-shell-access .auth-card-access h2 {
    font-size: 2.2rem !important;
    line-height: 1.08 !important;
  }

  .auth-shell-access .auth-card-access > p {
    font-size: 1.08rem !important;
    line-height: 1.45 !important;
  }

  .auth-shell-access .auth-form .field,
  .auth-shell-access .trial7-form .field,
  .auth-shell-access .field {
    min-height: 58px !important;
    font-size: 1.08rem !important;
    padding: 14px 15px !important;
    border-radius: 13px !important;
  }

  .auth-shell-access .login-btn,
  .auth-shell-access .trial7-google-btn,
  .auth-shell-access .btn {
    min-height: 58px !important;
    font-size: 1.12rem !important;
    border-radius: 13px !important;
  }

  .auth-shell-access .auth-link,
  .auth-shell-access .trial7-links a {
    font-size: 1.02rem !important;
    line-height: 1.35 !important;
  }
}

/* Keep real-device rendering aligned with desktop mobile emulation on trial step 1 */
@media (max-width: 920px) {
  .trial7-wizard {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .trial7-wizard.auth-shell-access .badge {
    font-size: 0.9rem !important;
    padding: 6px 12px !important;
  }

  .trial7-wizard .auth-hero-access h1 {
    font-size: 2.2rem !important;
    line-height: 1.08 !important;
    margin: 10px 0 !important;
  }

  .trial7-wizard .auth-hero-access > p {
    font-size: 1.1rem !important;
    line-height: 1.45 !important;
  }

  .trial7-wizard .auth-hero-card strong {
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
  }

  .trial7-wizard .auth-hero-card p {
    font-size: 1.05rem !important;
    line-height: 1.45 !important;
  }

  .trial7-wizard .trial7-next-btn {
    min-height: 58px !important;
    font-size: 1.12rem !important;
    border-radius: 13px !important;
  }

  .trial7-wizard .trial7-gesture-hint {
    font-size: 0.96rem !important;
  }
}

.access-auth-panel { display: none; }
.access-auth-panel.is-active { display: block; }
.access-auth-panel.is-active.auth-card-access { display: flex; flex-direction: column; }
.email-step-form .step { display: none; }
.email-step-form .step.is-active { display: block; }

/* Hard lock mobile sizing for trial page on real devices */
@media (max-width: 920px) {
  body.trial7-body .trial7-wizard,
  body.trial7-body .trial7-wizard * {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body.trial7-body .trial7-wizard .badge {
    font-size: 14px !important;
    padding: 6px 12px !important;
  }

  body.trial7-body .trial7-wizard .auth-hero-access h1 {
    font-size: 31px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
    margin: 10px 0 !important;
  }

  body.trial7-body .trial7-wizard .auth-hero-access > p {
    font-size: 16px !important;
    line-height: 1.4 !important;
  }

  body.trial7-body .trial7-wizard .auth-hero-card strong {
    font-size: 17px !important;
    line-height: 1.18 !important;
  }

  body.trial7-body .trial7-wizard .auth-hero-card p {
    font-size: 15px !important;
    line-height: 1.42 !important;
  }

  body.trial7-body .trial7-wizard .trial7-next-btn {
    min-height: 58px !important;
    font-size: 16px !important;
    border-radius: 13px !important;
  }

  body.trial7-body .trial7-wizard .trial7-gesture-hint {
    font-size: 14px !important;
  }
}

/* Trial7 mobile baseline (single source of truth, no device-specific hacks) */
@media (max-width: 920px) {
  body.trial7-body,
  body.trial7-body .page-wrap,
  body.trial7-body .auth-shell {
    overflow-x: hidden !important;
  }

  body.trial7-body {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100dvh !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active {
    position: relative !important;
    min-height: 100dvh !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: 12px !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    box-sizing: border-box !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active .auth-hero-grid {
    gap: 10px !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active h1 {
    max-width: 12.5ch !important;
    text-wrap: pretty;
    font-size: 2.18rem !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active > p {
    max-width: 36ch !important;
    text-wrap: pretty;
    font-size: 1.02rem !important;
    line-height: 1.4 !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active .auth-hero-card {
    padding: 14px !important;
    border-radius: 12px !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active .auth-hero-card strong {
    max-width: 17ch !important;
    display: block !important;
    text-wrap: pretty;
    font-size: 1.12rem !important;
    line-height: 1.22 !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active .auth-hero-card p {
    max-width: 34ch !important;
    text-wrap: pretty;
    font-size: 0.98rem !important;
    line-height: 1.4 !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active .trial7-next-btn {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: auto 0 0 !important;
    min-height: 72px !important;
    font-size: 1.14rem !important;
    margin-bottom: 14px !important;
    box-sizing: border-box !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active .trial7-gesture-hint {
    position: static !important;
    margin: 8px 0 0 !important;
    font-size: 0.85rem !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active .badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 8px 16px !important;
    font-size: 0.98rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.01em !important;
    color: #0f4fbe !important;
    background: linear-gradient(135deg, #e8f1ff 0%, #d4e7ff 100%) !important;
    border: 2px solid #8fb6ff !important;
    box-shadow: 0 10px 22px -14px rgba(37, 99, 235, 0.9) !important;
  }
}

/* Final split: desktop emulator vs real Android phone */
@media (max-width: 920px) and (orientation: portrait) {
  body.trial7-body.device-emulator .trial7-wizard .trial7-step-1 .badge {
    font-size: 0.94rem !important;
    min-height: 36px !important;
    padding: 7px 13px !important;
  }

  body.trial7-body.device-emulator .trial7-wizard .trial7-step-1 h1 {
    font-size: 2rem !important;
  }

  body.trial7-body.device-emulator .trial7-wizard .trial7-step-1 > p {
    font-size: 0.98rem !important;
  }
}

@media (max-width: 920px) and (orientation: portrait) {
  body.trial7-body.device-android.device-phone:not(.device-emulator) .trial7-wizard .trial7-step-1 .badge {
    font-size: 1.04rem !important;
    min-height: 40px !important;
    padding: 8px 15px !important;
  }

  body.trial7-body.device-android.device-phone:not(.device-emulator) .trial7-wizard .trial7-step-1 h1 {
    font-size: 2.28rem !important;
    line-height: 1.08 !important;
  }

  body.trial7-body.device-android.device-phone:not(.device-emulator) .trial7-wizard .trial7-step-1 > p {
    font-size: 1.08rem !important;
  }

  body.trial7-body.device-android.device-phone:not(.device-emulator) .trial7-wizard .trial7-step-1 .auth-hero-card strong {
    font-size: 1.16rem !important;
  }

  body.trial7-body.device-android.device-phone:not(.device-emulator) .trial7-wizard .trial7-step-1 .auth-hero-card p {
    font-size: 1.01rem !important;
  }
}

/* Trial7 mobile fit: viewport-driven sizing (vh + vw) and persistent CTA visibility */
@media (max-width: 920px) {
  body.trial7-body .trial7-wizard {
    --trial7-vh: 1dvh;
    --trial7-vw: 1vw;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active {
    height: calc(var(--trial7-vh) * 100) !important;
    min-height: calc(var(--trial7-vh) * 100) !important;
    padding: calc(var(--trial7-vh) * 1.2) calc(var(--trial7-vw) * 2.6) calc(env(safe-area-inset-bottom) + var(--trial7-vh) * 1.1) !important;
    display: grid !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
    gap: clamp(6px, calc(var(--trial7-vh) * 0.9), 10px) !important;
    overflow: hidden !important;
    align-content: stretch !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active .badge {
    font-size: clamp(0.78rem, calc(var(--trial7-vh) * 0.62 + var(--trial7-vw) * 0.95), 1rem) !important;
    padding: clamp(6px, calc(var(--trial7-vh) * 0.64), 9px) clamp(12px, calc(var(--trial7-vw) * 3.2), 18px) !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active h1 {
    font-size: clamp(1.86rem, calc(var(--trial7-vh) * 2.15 + var(--trial7-vw) * 1.25), 2.68rem) !important;
    line-height: 1.05 !important;
    margin: 0 !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active > p {
    font-size: clamp(0.92rem, calc(var(--trial7-vh) * 0.64 + var(--trial7-vw) * 0.36), 1.08rem) !important;
    line-height: 1.32 !important;
    margin: 0 !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active .auth-hero-grid {
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 2px !important;
    gap: clamp(6px, calc(var(--trial7-vh) * 0.84), 10px) !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active .auth-hero-card {
    min-height: clamp(76px, calc(var(--trial7-vh) * 10.4), 104px) !important;
    padding: clamp(9px, calc(var(--trial7-vh) * 0.95), 13px) !important;
    border-radius: clamp(10px, calc(var(--trial7-vh) * 1.15), 14px) !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active .auth-hero-card strong {
    font-size: clamp(1rem, calc(var(--trial7-vh) * 0.72 + var(--trial7-vw) * 0.2), 1.2rem) !important;
    line-height: 1.18 !important;
    margin-bottom: clamp(2px, calc(var(--trial7-vh) * 0.2), 4px) !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active .auth-hero-card p {
    font-size: clamp(0.88rem, calc(var(--trial7-vh) * 0.54 + var(--trial7-vw) * 0.14), 1.02rem) !important;
    line-height: 1.28 !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active .trial7-next-btn {
    min-height: clamp(50px, calc(var(--trial7-vh) * 6.8), 66px) !important;
    font-size: clamp(1rem, calc(var(--trial7-vh) * 0.66 + var(--trial7-vw) * 0.18), 1.2rem) !important;
    margin: 0 !important;
  }

  body.trial7-body .trial7-wizard .trial7-step-1.is-active .trial7-gesture-hint {
    margin: 0 !important;
    font-size: clamp(0.76rem, calc(var(--trial7-vh) * 0.45 + var(--trial7-vw) * 0.12), 0.9rem) !important;
    opacity: 0.9 !important;
  }
}

/* Floating account menu for full-screen public/setup flows */
.floating-account-menu {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  right: calc(env(safe-area-inset-right, 0px) + 18px);
  z-index: 1200;
  font-family: inherit;
}

.floating-account-button {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(117, 172, 255, 0.5);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #08235c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 42px rgba(31, 109, 255, 0.18);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.floating-account-button svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.4;
}

.floating-account-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(270px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid rgba(139, 186, 255, 0.55);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(232,245,255,0.94));
  box-shadow: 0 24px 52px rgba(15, 57, 122, 0.2);
  backdrop-filter: blur(18px);
}

.floating-account-panel[hidden] {
  display: none !important;
}

.floating-account-info {
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(147, 183, 231, 0.45);
  margin-bottom: 8px;
}

.floating-account-info strong,
.floating-account-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-account-info strong {
  color: #071f52;
  font-size: 0.98rem;
  font-weight: 900;
}

.floating-account-info span {
  margin-top: 2px;
  color: #5a7198;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.floating-account-link {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 16px;
  color: #0a2d6e;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.floating-account-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.72);
}

.floating-account-link svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.5;
}

.floating-account-link-panel {
  background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(16, 185, 129, 0.2);
}

.floating-account-link-logout {
  margin-top: 6px;
  color: #b91c1c;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
}

/* Full-viewport setup/onboarding screens */
body.setup-config-flow {
  width: 100vw;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(84, 165, 255, 0.18), transparent 34%),
    radial-gradient(circle at 86% 88%, rgba(31, 109, 255, 0.16), transparent 38%),
    linear-gradient(135deg, #f6fbff 0%, #eaf5ff 48%, #dff0ff 100%);
}

body.setup-config-flow .app-shell,
body.setup-config-flow .content-area.guest,
body.setup-config-flow .page-wrap {
  width: 100vw !important;
  max-width: none !important;
  min-height: 100dvh !important;
  height: 100dvh !important;
  margin: 0 !important;
}

body.setup-config-flow .content-area.guest,
body.setup-config-flow .page-wrap {
  position: fixed !important;
  inset: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

body.setup-config-flow .setup-wizard,
body.setup-config-flow .setup-tutorial-shell {
  width: 100vw !important;
  max-width: none !important;
  min-height: 100dvh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: clamp(14px, 2vw, 26px) !important;
  border-radius: 0 !important;
  box-sizing: border-box;
}

body.setup-config-flow .setup-wizard {
  display: flex;
  flex-direction: column;
}

body.setup-config-flow .setup-showcase,
body.setup-config-flow .setup-form,
body.setup-config-flow .setup-tutorial-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.setup-config-flow .setup-showcase,
body.setup-config-flow .setup-stage-card,
body.setup-config-flow .setup-tutorial-card {
  border-radius: clamp(22px, 2vw, 34px) !important;
  background:
    radial-gradient(circle at 24% 18%, rgba(75, 154, 255, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(243,249,255,0.94)) !important;
  box-shadow: 0 28px 70px rgba(68, 137, 236, 0.14);
}

body.setup-config-flow .setup-showcase {
  flex: 1 1 auto;
  min-height: 0;
  padding: clamp(18px, 3vw, 44px) !important;
}

body.setup-config-flow .setup-form {
  flex: 1 1 auto;
  min-height: 0;
  height: 100% !important;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 16px);
}

body.setup-config-flow .setup-stage-card {
  flex: 1 1 auto;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding: clamp(18px, 3vw, 42px) !important;
  overflow: auto;
}

body.setup-config-flow .setup-actions {
  flex-shrink: 0;
  padding: 0 !important;
}

body.setup-config-flow .setup-actions .btn,
body.setup-config-flow .setup-showcase-actions .btn,
body.setup-config-flow .setup-tutorial-card .btn {
  min-height: 56px;
  font-size: 1rem;
  border-radius: 16px;
}

body.setup-config-flow .setup-tutorial-shell {
  align-items: stretch !important;
  justify-content: stretch !important;
}

body.setup-config-flow .setup-tutorial-card {
  height: 100% !important;
  max-height: none !important;
  padding: clamp(18px, 2.4vw, 34px) !important;
}

@media (min-width: 921px) {
  body.setup-config-flow .setup-screen-block,
  body.setup-config-flow .setup-stage-card,
  body.setup-config-flow .setup-tutorial-card {
    min-height: 0 !important;
  }

  body.setup-config-flow .setup-showcase-screen h3 {
    font-size: clamp(2.4rem, 4vw, 4.6rem);
  }

  body.setup-config-flow .setup-showcase-screen p,
  body.setup-config-flow .setup-showcase-screen ul {
    max-width: 720px;
    font-size: clamp(1rem, 1.1vw, 1.24rem);
  }
}

@media (max-width: 920px) {
  .floating-account-menu {
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: calc(env(safe-area-inset-right, 0px) + 12px);
  }

  .floating-account-button {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  body.setup-config-flow .setup-wizard,
  body.setup-config-flow .setup-tutorial-shell {
    padding: 10px !important;
  }

  body.setup-config-flow .setup-showcase,
  body.setup-config-flow .setup-stage-card,
  body.setup-config-flow .setup-tutorial-card {
    border-radius: 22px !important;
  }
}
