﻿@import url("https://fonts.googleapis.com/css2?family=Alegreya:wght@400;600;700&family=Archivo:wght@400;600;700;800&family=Arimo:wght@400;600;700&family=Barlow:wght@400;600;700&family=Bebas+Neue&family=Cabin:wght@400;600;700&family=Cinzel:wght@500;700&family=Cormorant+Garamond:wght@500;600;700&family=DM+Sans:wght@400;600;700&family=Exo+2:wght@400;600;700&family=Fira+Sans:wght@400;600;700&family=Heebo:wght@400;600;700&family=Hind:wght@400;600;700&family=IBM+Plex+Sans:wght@400;600;700&family=IBM+Plex+Serif:wght@400;600;700&family=Inconsolata:wght@400;600;700&family=Inter:wght@400;600;700;800&family=Josefin+Sans:wght@400;600;700&family=Karla:wght@400;600;700&family=Lato:wght@400;700&family=Libre+Baskerville:wght@400;700&family=Manrope:wght@400;600;700;800&family=Maven+Pro:wght@400;600;700&family=Merriweather:wght@400;700&family=Montserrat:wght@400;600;700;800&family=Mulish:wght@400;600;700&family=Noto+Sans:wght@400;600;700&family=Noto+Serif:wght@400;600;700&family=Nunito:wght@400;600;700&family=Open+Sans:wght@400;600;700&family=Oswald:wght@400;600;700&family=Outfit:wght@400;600;700&family=PT+Sans:wght@400;700&family=PT+Serif:wght@400;700&family=Playfair+Display:wght@500;700&family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Poppins:wght@400;600;700&family=Prompt:wght@400;600;700&family=Quicksand:wght@400;600;700&family=Raleway:wght@400;600;700&family=Roboto:wght@400;500;700&family=Rubik:wght@400;600;700&family=Signika+Negative:wght@400;600;700&family=Sora:wght@400;600;700&family=Source+Sans+3:wght@400;600;700&family=Space+Grotesk:wght@400;600;700&family=Titillium+Web:wght@400;600;700&family=Ubuntu:wght@400;500;700&family=Urbanist:wght@400;600;700&family=Work+Sans:wght@400;600;700&display=swap");

:root {
  --bg: #161a1d;
  --surface: #1d2226;
  --surface-2: #252a2e;
  --surface-strong: #2d3338;
  --text: #bfd3e6;
  --muted: #5e7a8e;
  --line: rgba(19, 87, 94, 0.25);
  --accent: #1e5287;
  --accent-text: #4a9ad4;
  --accent-dark: #134060;
  --accent-glow: rgba(30, 82, 135, 0.28);
  --gold: #c8a45d;
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.55);
  /* --- Theming infrastructure --- */
  --sidebar-bg: #161a1d;
  --sidebar-color: #cddbe8;
  --sidebar-muted: #4a6a80;
  --nav-text: #6a8ea8;
  --nav-hover-text: #a8c8dc;
  --nav-hover-bg: rgba(30, 82, 135, 0.10);
  --nav-hover-border: rgba(30, 82, 135, 0.22);
  --nav-active-text: #4a9ad4;
  --nav-active-bg: rgba(30, 82, 135, 0.18);
  --nav-active-border: rgba(30, 82, 135, 0.38);
  --topbar-bg: rgba(13, 22, 36, 0.82);
  --topbar-border: rgba(30, 82, 135, 0.18);
  --grid-color: rgba(19, 87, 94, 0.05);
  --input-bg: rgba(7, 11, 18, 0.7);
  --input-border: rgba(30, 82, 135, 0.22);
  --input-focus-border: rgba(30, 82, 135, 0.52);
  --input-focus-glow: rgba(30, 82, 135, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden],
[data-custom-seo-field][hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

button,
input,
textarea,
select {
  font: inherit;
  max-width: 100%;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

.sidebar,
.panel-stack,
.preview-area,
.account-modal {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 113, 122, 0.55) transparent;
}

.sidebar::-webkit-scrollbar,
.panel-stack::-webkit-scrollbar,
.preview-area::-webkit-scrollbar,
.account-modal::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb,
.panel-stack::-webkit-scrollbar-thumb,
.preview-area::-webkit-scrollbar-thumb,
.account-modal::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(100, 113, 122, 0.42);
}

.app-shell {
  display: grid;
  grid-template-columns: 292px 1fr;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 26px 22px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--sidebar-bg);
  color: var(--sidebar-color);
  border-right: 1px solid var(--line);
}

.brand {
  display: grid;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e5287, #13575e);
  color: white;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(30, 82, 135, 0.42);
}

.brand-logo {
  display: block;
  width: min(182px, 100%);
  height: auto;
}

.brand span,
.publish-box span,
.section-heading span,
.preview-toolbar span,
.eyebrow,
.template-card span,
.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.sidebar .brand span,
.sidebar .publish-box span {
  color: var(--sidebar-muted);
}

.nav-list {
  display: grid;
  gap: 7px;
}

.nav-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  background: transparent;
  color: var(--nav-text);
  text-align: left;
  font-weight: 600;
  transition: all 180ms ease;
  letter-spacing: 0.01em;
}

.nav-item:hover {
  background: var(--nav-hover-bg);
  border-color: var(--nav-hover-border);
  color: var(--nav-hover-text);
}

.nav-item.active {
  background: var(--nav-active-bg);
  border-color: var(--nav-active-border);
  color: var(--nav-active-text);
  font-weight: 700;
  box-shadow: 0 0 14px rgba(30, 82, 135, 0.14);
}

.publish-box {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(30, 82, 135, 0.26);
  border-radius: 10px;
  background: rgba(30, 82, 135, 0.08);
  box-shadow: inset 0 1px 0 rgba(30, 82, 135, 0.10);
}

.auth-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(30, 82, 135, 0.20);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(30, 82, 135, 0.08), rgba(19, 87, 94, 0.04));
}

.account-summary {
  display: flex;
  align-items: start;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(30, 82, 135, 0.18);
}

.account-summary-text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 56px);
  overflow: hidden;
  display: grid;
  gap: 2px;
}

.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(30, 82, 135, 0.30);
  background: linear-gradient(135deg, #1e5287, #13575e);
  color: #ffffff;
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(30, 82, 135, 0.30);
}

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

.auth-box span,
.auth-field {
  color: #9caab4;
  font-size: 0.82rem;
}

.auth-box strong {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-box small {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 3px;
  color: #aab7c0;
  font-size: 0.74rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-summary-text span,
.account-summary-text strong,
.account-summary-text small {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-login {
  display: grid;
  gap: 8px;
}

.sidebar-login-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-box.connected .sidebar-login {
  display: none;
}

#editAccountBtn {
  display: none;
}

.auth-box.connected #editAccountBtn {
  display: inline-flex;
}

#logoutBtn {
  display: none;
}

.auth-box.connected #logoutBtn {
  display: inline-flex;
}

.editor-locked .nav-list,
.editor-locked .workspace,
.editor-locked .publish-box {
  opacity: 0.58;
}

.editor-locked .nav-item,
.editor-locked .workspace input,
.editor-locked .workspace textarea,
.editor-locked .workspace select,
.editor-locked .workspace button,
.editor-locked .publish-box button,
.editor-locked .disabled-link {
  cursor: not-allowed;
}

.disabled-link {
  pointer-events: none;
}

.auth-field {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.auth-box input {
  border-color: rgba(30, 82, 135, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: #cddbe8;
  min-height: 42px;
}

.auth-box input::placeholder {
  color: #4a6a80;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-box .ghost-action {
  background: rgba(30, 82, 135, 0.14);
  color: #7dc8e0;
  border-color: rgba(30, 82, 135, 0.28);
}

.auth-box .primary-action,
.auth-box .ghost-action,
.auth-box .google-action {
  width: 100%;
  max-width: 100%;
}

.google-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #cddbe8;
  font-weight: 700;
  transition: all 160ms ease;
}

.google-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.google-action.wide {
  grid-column: 1 / -1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 13, 0.82);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.account-modal {
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  border: 1px solid rgba(30, 82, 135, 0.22);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(30, 82, 135, 0.10), 0 32px 90px rgba(0, 0, 0, 0.72);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(30, 82, 135, 0.18);
  background: rgba(9, 14, 22, 0.94);
  backdrop-filter: blur(16px);
}

.modal-header h2 {
  margin: 2px 0 0;
}

.account-modal form {
  padding: 22px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.account-save-status {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.account-overview {
  display: grid;
  gap: 16px;
}

.account-profile-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.account-profile-card img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--surface-strong);
}

.account-profile-card strong {
  display: block;
  font-size: 1.05rem;
}

.account-profile-card span {
  color: var(--muted);
}

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

.account-data-grid div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.account-data-grid span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.account-data-grid strong {
  overflow-wrap: anywhere;
}

.profile-photo-box {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.profile-photo-box img {
  width: 112px;
  height: 112px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.profile-photo-box img.empty {
  display: none;
}

.account-profile-initial {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e5287, #13575e);
  color: white;
  font-size: 1.6rem;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(30, 82, 135, 0.36);
}

.primary-action,
.secondary-action,
.ghost-action,
.icon-button {
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  transition: all 180ms ease;
}

.primary-action {
  background: linear-gradient(135deg, #c8a45d 0%, #e0bc74 100%);
  color: #06090e;
  box-shadow: 0 0 22px rgba(200, 164, 93, 0.32);
}

.primary-action:hover {
  background: linear-gradient(135deg, #d5b777 0%, #e8c880 100%);
  box-shadow: 0 0 32px rgba(200, 164, 93, 0.48);
  transform: translateY(-1px);
}

.secondary-action {
  background: rgba(30, 82, 135, 0.14);
  color: #70c8e4;
  border: 1px solid rgba(30, 82, 135, 0.32);
}

.secondary-action:hover {
  background: rgba(30, 82, 135, 0.22);
  border-color: rgba(30, 82, 135, 0.48);
  color: #a0dcf0;
}

.ghost-action,
.icon-button {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--line);
}

.ghost-action:hover,
.icon-button:hover {
  background: rgba(30, 82, 135, 0.12);
  border-color: rgba(30, 82, 135, 0.38);
}

.nfc-status {
  line-height: 1.35;
}

.compact {
  padding: 8px 10px;
  font-size: 0.84rem;
}

.workspace {
  min-width: 0;
  min-height: 0;
  height: 100vh;
  overflow: hidden;
  padding: 28px;
  background: var(--bg);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 16px 22px;
  border-radius: 10px;
  background: var(--topbar-bg);
  border: 1px solid var(--topbar-border);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.topbar h1 {
  margin: 2px 0 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--topbar-h1-from, #bfd3e6) 30%, var(--topbar-h1-to, #4a9ad4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--accent-text);
}

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

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 24px;
  height: calc(100vh - 156px);
  min-height: 0;
  align-items: start;
}

.panel-stack,
.preview-area {
  min-width: 0;
  min-height: 0;
}

.panel-stack {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}

.panel {
  display: none;
  background: var(--surface);
  border: 1px solid rgba(30, 82, 135, 0.18);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 0 0 1px rgba(30, 82, 135, 0.08), 0 8px 32px rgba(0, 0, 0, 0.45);
}

.active-panel {
  display: block;
  animation: panelIn 220ms ease-out;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
  padding-bottom: 16px;
  padding-left: 12px;
  border-bottom: 1px solid rgba(30, 82, 135, 0.18);
  border-left: 3px solid #1e5287;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.18rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

#profileForm > label,
#seoForm > label,
#extrasForm > label,
#domainForm > label {
  align-content: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

#profileForm > label:focus-within,
#seoForm > label:focus-within,
#extrasForm > label:focus-within,
#domainForm > label:focus-within {
  border-color: rgba(30, 82, 135, 0.48);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(30, 82, 135, 0.18);
}

#extrasForm > .file-list {
  min-width: 0;
  padding: 12px 14px;
  border: 1px dashed rgba(30, 82, 135, 0.28);
  border-radius: 8px;
  background: rgba(19, 87, 94, 0.05);
}

#extrasForm > label:has(.weekday-grid) {
  gap: 11px;
}

.service-manager {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.service-manager-head,
.service-editor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.service-manager-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.service-manager-head button,
.service-editor-top button {
  width: auto;
  flex: 0 0 auto;
}

.service-add-button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #1e5287, #13575e);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: all 160ms ease;
  box-shadow: 0 0 16px rgba(30, 82, 135, 0.38);
}

.service-add-button:hover {
  box-shadow: 0 0 24px rgba(30, 82, 135, 0.56);
  transform: translateY(-1px);
}

.service-add-bottom {
  width: 100%;
  min-height: 44px;
  border: 1px dashed rgba(30, 82, 135, 0.38);
  background: rgba(30, 82, 135, 0.08);
  color: #5bb8d4;
  border-radius: 8px;
  transition: all 160ms ease;
}

.service-add-bottom:hover {
  background: rgba(30, 82, 135, 0.16);
  color: #90d8ee;
}

.service-editor-list {
  display: grid;
  gap: 12px;
}

.service-editor-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-editor-top {
  grid-column: 1 / -1;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

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

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(30, 82, 135, 0.22);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(7, 11, 18, 0.7);
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(30, 82, 135, 0.54);
  box-shadow: 0 0 0 3px rgba(30, 82, 135, 0.18);
}

select option {
  background: #1d2226;
  color: var(--text);
}

.field-help {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

input[type="color"] {
  height: 44px;
  padding: 5px;
}

input[type="file"] {
  padding: 9px;
}

input[type="range"] {
  padding: 0;
}

textarea {
  resize: vertical;
}

.design-form label:has(.segmented) {
  align-content: start;
}

.design-group {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.design-group-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.design-group-title strong {
  color: var(--text);
  font-size: 1rem;
}

.design-group-title span {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.control-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.control-card > .segmented,
.control-card > select,
.control-card > input {
  margin-top: 3px;
}

.control-card.wide {
  grid-column: 1 / -1;
}

.typography-card {
  display: grid;
  gap: 12px;
}

.typography-card select {
  width: 100%;
}

.typography-size-row {
  display: grid;
  gap: 8px;
}

.typography-style-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.typography-style-row label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 140ms ease;
  cursor: pointer;
}

.typography-style-row input {
  width: auto;
}

.typography-style-row label:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(30, 82, 135, 0.42);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 7px;
  width: 100%;
}

.segmented button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 40px;
  padding: 9px 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  transition: all 140ms ease;
}

.segmented button:hover:not(.active) {
  border-color: rgba(30, 82, 135, 0.38);
  color: var(--text);
}

.segmented button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(30, 82, 135, 0.38);
}

.option-cloud {
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
}

[data-range-value] {
  justify-self: end;
  margin-top: -25px;
  color: var(--muted);
}

.preview-area {
  position: static;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.phone-frame {
  width: min(100%, 430px);
  margin-inline: auto;
  padding: 15px;
  border-radius: 32px;
  background: linear-gradient(145deg, #050a12, #0e1924);
  box-shadow: var(--shadow), 0 0 0 1px rgba(30, 82, 135, 0.14), 0 0 40px rgba(0, 0, 0, 0.5);
}

.card-preview {
  --card-accent: #173b57;
  --card-secondary: #c8a45d;
  --card-bg: #ffffff;
  --container-bg: #f7f9fa;
  --card-text: #111820;
  --card-muted: #64717a;
  --button-bg: #173b57;
  --button-text: #ffffff;
  --card-radius: 8px;
  --card-shadow: 0 10px 24px rgba(12, 20, 28, 0.22);
  --block-spacing: 13px;
  --card-font: "Inter", sans-serif;
  --header-image: none;
  --header-padding-top: 30px;
  --header-padding-bottom: 24px;
  overflow: hidden;
  position: relative;
  min-height: 680px;
  border-radius: 24px;
  background: var(--card-bg);
  color: var(--card-text);
  font-family: var(--card-font);
  box-shadow: var(--card-shadow);
  isolation: isolate;
}

.card-preview > *:not(.motion-layer) {
  position: relative;
  z-index: 1;
}

.motion-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

.motion-aurora .card-body,
.motion-mesh .card-body,
.motion-grid .card-body,
.motion-pulse .card-body,
.motion-waves .card-body,
.motion-spotlight .card-body,
.motion-particles .card-body,
.motion-diagonal .card-body,
.motion-cosmic .card-body {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card-bg) 74%, transparent), color-mix(in srgb, var(--card-bg) 58%, transparent));
}

.motion-aurora .card-cover,
.motion-mesh .card-cover,
.motion-grid .card-cover,
.motion-pulse .card-cover,
.motion-waves .card-cover,
.motion-spotlight .card-cover,
.motion-particles .card-cover,
.motion-diagonal .card-cover,
.motion-cosmic .card-cover {
  background-blend-mode: multiply, normal, screen, normal;
}

.motion-aurora .motion-layer {
  opacity: 0.88;
  background:
    radial-gradient(circle at 12% 14%, color-mix(in srgb, var(--card-accent) 76%, transparent), transparent 34%),
    radial-gradient(circle at 90% 8%, color-mix(in srgb, var(--card-secondary) 70%, transparent), transparent 32%),
    radial-gradient(circle at 42% 94%, color-mix(in srgb, var(--button-bg) 52%, transparent), transparent 42%);
  filter: blur(8px) saturate(1.22);
  animation: auroraDrift 9s ease-in-out infinite alternate;
}

.motion-mesh .motion-layer {
  opacity: 0.78;
  background:
    linear-gradient(115deg, transparent 0 28%, color-mix(in srgb, var(--card-accent) 38%, transparent) 28% 31%, transparent 31% 100%),
    linear-gradient(35deg, transparent 0 38%, color-mix(in srgb, var(--card-secondary) 42%, transparent) 38% 41%, transparent 41% 100%),
    radial-gradient(circle at 80% 30%, color-mix(in srgb, var(--card-secondary) 32%, transparent), transparent 28%);
  background-size: 145px 145px, 175px 175px, auto;
  animation: meshSlide 14s linear infinite;
}

.motion-grid .motion-layer {
  opacity: 0.76;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-accent) 42%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--card-accent) 42%, transparent) 1px, transparent 1px),
    radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--card-secondary) 34%, transparent), transparent 28%);
  background-size: 22px 22px, 22px 22px, auto;
  animation: gridMove 8s linear infinite;
}

.motion-pulse .motion-layer {
  opacity: 0.82;
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--card-secondary) 56%, transparent), transparent 33%),
    radial-gradient(circle at 75% 22%, color-mix(in srgb, var(--card-accent) 48%, transparent), transparent 28%),
    radial-gradient(circle at 8% 80%, color-mix(in srgb, var(--button-bg) 38%, transparent), transparent 30%);
  animation: pulseGlow 4.8s ease-in-out infinite;
}

.motion-waves .motion-layer {
  opacity: 0.86;
  background:
    repeating-radial-gradient(ellipse at 50% 110%, color-mix(in srgb, var(--card-accent) 38%, transparent) 0 10px, transparent 10px 22px),
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--card-secondary) 54%, transparent), transparent 34%);
  background-size: 100% 170px, auto;
  animation: waveRise 7s ease-in-out infinite alternate;
}

.motion-spotlight .motion-layer {
  opacity: 0.9;
  background:
    radial-gradient(circle at var(--spot-x, 25%) var(--spot-y, 18%), color-mix(in srgb, var(--card-secondary) 82%, transparent), transparent 26%),
    radial-gradient(circle at 82% 74%, color-mix(in srgb, var(--card-accent) 58%, transparent), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 20%, transparent), transparent);
  animation: spotlightSweep 6s ease-in-out infinite alternate;
}

.motion-particles .motion-layer {
  opacity: 0.82;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--card-secondary) 85%, white) 0 2px, transparent 3px),
    radial-gradient(circle, color-mix(in srgb, var(--card-accent) 78%, white) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 82%, color-mix(in srgb, var(--button-bg) 42%, transparent), transparent 36%);
  background-size: 34px 34px, 52px 52px, auto;
  animation: particleFloat 12s linear infinite;
}

.motion-diagonal .motion-layer {
  opacity: 0.88;
  background:
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 42%, transparent) 0 12px, transparent 12px 28px),
    linear-gradient(90deg, color-mix(in srgb, var(--card-secondary) 38%, transparent), transparent);
  background-size: 240px 240px, auto;
  animation: diagonalRun 9s linear infinite;
}

.motion-cosmic .motion-layer {
  opacity: 0.92;
  background:
    radial-gradient(circle at 18% 24%, color-mix(in srgb, var(--card-secondary) 70%, transparent), transparent 20%),
    radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--card-accent) 64%, transparent), transparent 24%),
    radial-gradient(circle at 50% 82%, color-mix(in srgb, var(--button-bg) 56%, transparent), transparent 28%),
    radial-gradient(circle, rgba(255, 255, 255, 0.62) 0 1px, transparent 2px);
  background-size: auto, auto, auto, 42px 42px;
  filter: saturate(1.25);
  animation: cosmicOrbit 10s ease-in-out infinite alternate;
}

.card-cover {
  display: grid;
  gap: 14px;
  padding: var(--header-padding-top) 22px var(--header-padding-bottom);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 68%, transparent), rgba(17, 24, 32, 0.72)),
    var(--header-image),
    radial-gradient(circle at top right, color-mix(in srgb, var(--card-secondary) 42%, transparent), transparent 36%),
    linear-gradient(135deg, var(--card-accent), color-mix(in srgb, var(--card-accent) 55%, #111820));
  background-size: cover, cover, auto, auto;
  background-position: center, center, center, center;
  color: white;
  position: relative;
  overflow: hidden;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% -30%;
  height: 110px;
  background: color-mix(in srgb, white 16%, transparent);
  transform: rotate(-4deg);
  pointer-events: none;
}

.card-cover > * {
  position: relative;
  z-index: 1;
}

.hero-motion-tilt .card-cover {
  --hero-x: 0;
  --hero-y: 0;
  perspective: 900px;
  transform-style: preserve-3d;
  touch-action: pan-y;
}

.hero-motion-tilt .card-cover::before {
  transform: translate3d(calc(var(--hero-x) * var(--hero-intensity, 1) * 12px), calc(var(--hero-y) * var(--hero-intensity, 1) * 10px), 0);
}

.hero-motion-tilt .card-cover::after {
  transform: rotate(-4deg) translate3d(calc(var(--hero-x) * var(--hero-intensity, 1) * -10px), calc(var(--hero-y) * var(--hero-intensity, 1) * -6px), 0);
}

.hero-motion-tilt .hero-depth-1,
.hero-motion-tilt .hero-depth-2,
.hero-motion-tilt .hero-depth-3 {
  will-change: transform;
  transition: transform 140ms ease-out, filter 140ms ease-out;
}

.hero-motion-tilt .hero-depth-1 {
  transform: translate3d(calc(var(--hero-x) * var(--hero-intensity, 1) * 8px), calc(var(--hero-y) * var(--hero-intensity, 1) * 6px), 18px);
}

.hero-motion-tilt .hero-depth-2 {
  transform: translate3d(calc(var(--hero-x) * var(--hero-intensity, 1) * 13px), calc(var(--hero-y) * var(--hero-intensity, 1) * 10px), 34px);
}

.hero-motion-tilt .hero-depth-3 {
  transform: translate3d(calc(var(--hero-x) * var(--hero-intensity, 1) * 18px), calc(var(--hero-y) * var(--hero-intensity, 1) * 14px), 52px) rotateX(calc(var(--hero-y) * var(--hero-intensity, 1) * -4deg)) rotateY(calc(var(--hero-x) * var(--hero-intensity, 1) * 5deg));
  filter: drop-shadow(calc(var(--hero-x) * var(--hero-intensity, 1) * -8px) calc(var(--hero-y) * var(--hero-intensity, 1) * -6px) 18px rgba(0, 0, 0, 0.22));
}

.motion-aurora .card-cover::before,
.motion-mesh .card-cover::before,
.motion-grid .card-cover::before,
.motion-pulse .card-cover::before,
.motion-waves .card-cover::before,
.motion-spotlight .card-cover::before,
.motion-particles .card-cover::before,
.motion-diagonal .card-cover::before,
.motion-cosmic .card-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.18) 48%, transparent 56%);
  animation: headerShine 5s ease-in-out infinite alternate;
  pointer-events: none;
}

.avatar-wrap {
  width: 98px;
  height: 98px;
  border-radius: calc(var(--card-radius) + 8px);
  padding: 4px;
  background: rgba(255, 255, 255, 0.72);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--card-radius);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.2);
}

.card-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: calc(0.72rem * var(--font-scale-all, 1) * var(--font-scale-company, 1));
  font-weight: var(--font-weight-company, 800);
  font-style: var(--font-style-company, normal);
  text-decoration: var(--font-decoration-company, none);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-cover h2 {
  margin: 0 0 4px;
  font-size: calc(1.7rem * var(--font-scale-all, 1) * var(--font-scale-name, 1));
  font-weight: var(--font-weight-name, 800);
  font-style: var(--font-style-name, normal);
  text-decoration: var(--font-decoration-name, none);
  letter-spacing: 0;
}

.card-cover p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: calc(1rem * var(--font-scale-all, 1) * var(--font-scale-role, 1));
  font-weight: var(--font-weight-role, 400);
  font-style: var(--font-style-role, normal);
  text-decoration: var(--font-decoration-role, none);
}

.card-body {
  display: grid;
  gap: var(--block-spacing);
  padding: 18px;
  background: color-mix(in srgb, var(--card-bg) 82%, transparent);
  font-size: calc(1rem * var(--font-scale-all, 1) * var(--font-scale-body, 1));
  font-weight: var(--font-weight-body, 400);
  font-style: var(--font-style-body, normal);
  text-decoration: var(--font-decoration-body, none);
  position: relative;
  z-index: 1;
}

.bio {
  margin: 0;
  color: var(--card-muted);
  line-height: 1.5;
}

.action-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 16px;
  border-radius: var(--card-radius);
  background: var(--button-bg);
  color: var(--button-text);
  font-size: calc(1rem * var(--font-scale-all, 1) * var(--font-scale-buttons, 1));
  font-weight: var(--font-weight-buttons, 900);
  font-style: var(--font-style-buttons, normal);
  text-decoration: var(--font-decoration-buttons, none);
  text-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    background 180ms ease;
}

.button-pill .action-main,
.button-pill .link-grid a,
.button-pill .save-contact,
.button-pill .route-link {
  border-radius: 999px;
}

.button-luxury .action-main {
  border: 1px solid color-mix(in srgb, var(--button-bg) 72%, white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 24px rgba(0, 0, 0, 0.18);
}

.button-neon .action-main {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--button-bg) 60%, white), 0 0 24px color-mix(in srgb, var(--button-bg) 48%, transparent);
}

.interaction-subtle .action-main:hover,
.interaction-subtle .link-grid a:hover,
.interaction-subtle .save-contact:hover,
.interaction-subtle .route-link:hover,
.interaction-subtle .copy-button:hover,
.interaction-subtle .download-item:hover {
  filter: brightness(1.05);
}

.interaction-lift .action-main:hover,
.interaction-lift .link-grid a:hover,
.interaction-lift .save-contact:hover,
.interaction-lift .route-link:hover,
.interaction-lift .copy-button:hover,
.interaction-lift .download-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--card-accent) 22%, transparent);
}

.interaction-glow .action-main:hover,
.interaction-glow .link-grid a:hover,
.interaction-glow .save-contact:hover,
.interaction-glow .route-link:hover,
.interaction-glow .copy-button:hover,
.interaction-glow .download-item:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--button-bg) 42%, white), 0 0 24px color-mix(in srgb, var(--button-bg) 38%, transparent);
}

.card-block {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--card-muted) 24%, transparent);
  border-radius: var(--card-radius);
  background: var(--container-bg);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.container-soft .card-block {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--container-bg) 96%, white), color-mix(in srgb, var(--container-bg) 88%, var(--card-accent)));
  border-color: color-mix(in srgb, var(--card-muted) 18%, transparent);
  box-shadow: 0 10px 24px rgba(12, 20, 28, 0.08);
}

.container-glass .card-block {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, calc(var(--glass-opacity) * 0.38)),
      rgba(255, 255, 255, calc(var(--glass-opacity) * 0.12))
    );
  border-color: color-mix(in srgb, white 34%, var(--card-accent));
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 14px 28px rgba(0, 0, 0, 0.14);
}

.container-outline .card-block {
  background: transparent;
  border: 1.5px solid color-mix(in srgb, var(--card-accent) 64%, var(--card-muted));
  box-shadow: inset 4px 0 0 var(--card-accent);
}

.interaction-lift .card-block:hover,
.interaction-glow .card-block:hover {
  transform: translateY(-2px);
}

.card-block h3 {
  margin: 0;
  font-size: calc(0.96rem * var(--font-scale-all, 1) * var(--font-scale-body, 1));
  color: var(--card-text);
}

.business-hours-block {
  gap: 10px;
}

.business-hours-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hours-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(115, 125, 135, 0.14);
  color: var(--card-muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.hours-status[data-state="open"] {
  background: rgba(37, 211, 102, 0.16);
  color: #08773a;
}

.hours-status[data-state="ending"] {
  background: rgba(245, 158, 11, 0.18);
  color: #975a05;
}

.hours-status[data-state="closed"] {
  background: rgba(239, 68, 68, 0.13);
  color: #b42318;
}

.business-hours-block small {
  color: var(--card-muted);
  font-weight: 700;
}

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

.link-grid a,
.save-contact,
.route-link,
.copy-button,
.download-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border-radius: var(--card-radius);
  background: color-mix(in srgb, var(--container-bg) 74%, var(--card-accent));
  color: var(--card-text);
  font-size: calc(1rem * var(--font-scale-all, 1) * var(--font-scale-buttons, 1));
  font-weight: var(--font-weight-buttons, 800);
  font-style: var(--font-style-buttons, normal);
  text-decoration: var(--font-decoration-buttons, none);
  text-align: center;
  overflow-wrap: anywhere;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.copy-button {
  width: 100%;
  border: 0;
  font: inherit;
}

.file-downloads,
.service-list,
.lead-form,
.booking-form,
.file-list {
  display: grid;
  gap: 10px;
}

.download-item {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.download-item .button-label {
  overflow-wrap: anywhere;
}

.download-item small {
  color: var(--card-muted);
  font-weight: 700;
}

.service-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  width: 100%;
  border: 0;
  text-align: left;
  padding: 12px;
  border-radius: var(--card-radius);
  background: color-mix(in srgb, var(--container-bg) 76%, var(--card-bg));
  color: var(--card-text);
  cursor: pointer;
}

.service-item:hover {
  filter: brightness(0.98);
}

.service-item small {
  grid-column: 1 / -1;
  color: var(--card-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.service-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.service-item p {
  margin: 0;
  color: var(--card-muted);
}

.service-item span {
  align-self: start;
  color: var(--card-accent);
  font-weight: 900;
  white-space: nowrap;
}

.service-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 10, 16, 0.62);
}

.service-modal-backdrop[hidden] {
  display: none;
}

.service-modal {
  display: grid;
  gap: 10px;
  width: min(360px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  padding: 18px;
  border-radius: calc(var(--card-radius) + 8px);
  background: var(--card-bg);
  color: var(--card-text);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.service-modal-close {
  justify-self: end;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--container-bg);
  color: var(--card-text);
  font-weight: 900;
}

.service-modal small {
  color: var(--card-muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-modal h3,
.service-modal p {
  margin: 0;
}

.service-modal p {
  color: var(--card-muted);
  line-height: 1.55;
}

.service-modal strong {
  color: var(--card-accent);
  font-size: 1.1rem;
}

.testimonial-block p {
  margin: 0;
  color: var(--card-muted);
  font-style: italic;
  line-height: 1.55;
}

.lead-form input,
.booking-form input,
.booking-form select {
  border-color: color-mix(in srgb, var(--card-muted) 24%, transparent);
  background: color-mix(in srgb, var(--card-bg) 86%, white);
}

.booking-fields {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
}

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

.weekday-grid label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 0.82rem;
}

.weekday-grid input {
  width: auto;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--card-radius);
  background: #0f1720;
}

.file-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.file-row span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.file-row small {
  color: var(--muted);
  white-space: nowrap;
}

.file-row button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fafb;
  color: #26333d;
  font-weight: 800;
}

.button-icon {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: calc(var(--card-radius) * 0.7);
  background: color-mix(in srgb, var(--card-accent) 18%, transparent);
  color: currentColor;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
}

.action-main .button-icon {
  background: color-mix(in srgb, var(--button-text) 18%, transparent);
}

.content-icons .button-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.content-icons .force-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.content-icons .link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-icons .link-grid a,
.content-icons .save-contact,
.content-icons .route-link,
.content-icons .copy-button,
.content-icons .download-item {
  min-height: 50px;
  padding: 10px;
}

.content-icons .button-icon {
  min-width: 34px;
  height: 34px;
}

.content-text .button-icon {
  display: none;
}

.qr-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qr-block img {
  width: 92px;
  height: 92px;
  border-radius: var(--card-radius);
  border: 1px solid color-mix(in srgb, var(--card-muted) 24%, transparent);
}

.layout-executive .card-cover {
  grid-template-columns: 98px 1fr;
  align-items: end;
}

.layout-centered .card-cover {
  justify-items: center;
  text-align: center;
}

.hero-brand .card-cover {
  min-height: 260px;
  place-items: center;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: var(--header-padding-top) 22px var(--header-padding-bottom);
}

.hero-brand .avatar-wrap {
  width: 98px;
  height: 98px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-brand .avatar {
  border-radius: 14px;
}

.hero-brand .card-kicker {
  margin-top: 6px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.68);
}

.hero-brand .card-cover h2 {
  font-size: 1.9rem;
  line-height: 1.05;
}

.hero-brand .card-cover p {
  font-size: 1.03rem;
}

.hero-cover .card-cover {
  min-height: 280px;
  align-content: end;
  background-blend-mode: multiply, normal, screen, normal;
}

.hero-cover .avatar-wrap {
  width: 78px;
  height: 78px;
}

.hero-minimal .card-cover {
  min-height: 210px;
  grid-template-columns: 72px 1fr;
  align-items: end;
}

.hero-minimal .avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 14px;
}

.hero-minimal .card-cover h2 {
  font-size: 1.42rem;
}

.layout-split .card-cover {
  grid-template-columns: 105px 1fr;
  align-items: center;
  min-height: 240px;
}

.layout-tech .card-cover {
  border-bottom: 1px solid color-mix(in srgb, var(--card-accent) 55%, transparent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--card-accent) 14%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--card-accent) 14%, transparent) 1px, transparent 1px),
    linear-gradient(135deg, rgba(13, 19, 33, 0.74), color-mix(in srgb, var(--card-accent) 22%, rgba(17, 24, 39, 0.78))),
    var(--header-image),
    linear-gradient(135deg, #0d1321, color-mix(in srgb, var(--card-accent) 26%, #111827));
  background-size: 28px 28px, 28px 28px, cover, cover, auto;
  background-position: center, center, center, center, center;
}

@keyframes auroraDrift {
  from {
    transform: translate3d(-4%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(4%, 3%, 0) scale(1.08);
  }
}

@keyframes meshSlide {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 180px 120px, -220px 180px;
  }
}

@keyframes gridMove {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 26px 26px, 26px 26px;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    filter: blur(6px);
  }
  50% {
    transform: scale(1.12);
    filter: blur(14px);
  }
}

@keyframes waveRise {
  from {
    background-position: 0 34px, 0 0;
    transform: scale(1);
  }
  to {
    background-position: 0 -42px, 0 0;
    transform: scale(1.05);
  }
}

@keyframes spotlightSweep {
  from {
    transform: translate3d(-6%, -3%, 0) scale(1);
  }
  to {
    transform: translate3d(7%, 5%, 0) scale(1.1);
  }
}

@keyframes particleFloat {
  from {
    background-position: 0 0, 0 0, center;
  }
  to {
    background-position: 34px -80px, -52px -120px, center;
  }
}

@keyframes diagonalRun {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 240px 240px, 0 0;
  }
}

@keyframes cosmicOrbit {
  from {
    transform: rotate(0deg) scale(1);
    background-position: center, center, center, 0 0;
  }
  to {
    transform: rotate(2deg) scale(1.08);
    background-position: 12px -18px, -18px 16px, 8px 20px, 42px -42px;
  }
}

@keyframes headerShine {
  from {
    opacity: 0.38;
    transform: translateX(-8%);
  }
  to {
    opacity: 0.72;
    transform: translateX(8%);
  }
}

.template-grid {
  display: grid;
  gap: 18px;
}

.keyword-panel {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.compact-heading {
  margin-bottom: 12px;
  padding-bottom: 0;
  border-bottom: 0;
}

.compact-heading h2 {
  font-size: 1rem;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.icon-picker {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

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

.icon-choice {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  transition: border-color 140ms ease;
}

.icon-choice:hover {
  border-color: rgba(30, 82, 135, 0.38);
}

.icon-choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.icon-choice-main {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.icon-choice-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(30, 82, 135, 0.18);
  color: var(--accent-text);
}

.keyword-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 140ms ease;
}

.keyword-chip:hover {
  border-color: rgba(30, 82, 135, 0.42);
  color: var(--text);
}

.keyword-chip.active {
  border-color: var(--accent);
  background: rgba(30, 82, 135, 0.20);
  color: var(--accent-text);
  box-shadow: 0 0 10px rgba(30, 82, 135, 0.24);
}

.template-group {
  display: grid;
  gap: 10px;
}

.template-group h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
}

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

.template-card,
.metric-card,
.block-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
  transition: border-color 160ms ease;
}

.template-card {
  display: grid;
  gap: 10px;
  text-align: left;
}

.template-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(30, 82, 135, 0.26), 0 0 18px rgba(30, 82, 135, 0.18);
}

.template-swatch {
  height: 58px;
  border-radius: 8px;
}

.template-card strong,
.metric-card strong {
  font-size: 1rem;
}

.blocks-list {
  display: grid;
  gap: 10px;
}

.block-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
}

.block-row[draggable="true"] {
  cursor: grab;
}

.drag-handle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(30, 82, 135, 0.12);
  color: var(--muted);
  border: 1px solid var(--line);
  transition: all 140ms ease;
}

.drag-handle:hover {
  background: rgba(30, 82, 135, 0.22);
  color: var(--accent-text);
}

.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.switch input {
  width: auto;
}

.metric-card {
  display: grid;
  gap: 4px;
}

.metric-card b {
  font-size: 2rem;
}

.public-page {
  display: grid;
  justify-items: center;
  align-items: start;
  min-height: 100vh;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #eaf1ee;
}

.public-card-wrap {
  width: min(430px, 100%);
}

.public-card {
  min-height: auto;
}

.domain-helper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.domain-helper article,
.domain-status-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.domain-helper span,
.domain-status-card small {
  color: var(--muted);
  line-height: 1.45;
}

.domain-helper code,
.domain-status-card code {
  display: block;
  overflow-wrap: anywhere;
  padding: 9px 10px;
  border: 1px solid rgba(30, 82, 135, 0.28);
  border-radius: 8px;
  background: rgba(30, 82, 135, 0.08);
  color: var(--accent-text);
  font-size: 0.86rem;
  font-weight: 700;
}

.domain-status-card {
  margin-top: 14px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.domain-status-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dns-instructions {
  display: grid;
  gap: 7px;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(30, 82, 135, 0.24);
  }
  50% {
    box-shadow: 0 0 22px rgba(30, 82, 135, 0.50);
  }
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 1180px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  }

  .workspace {
    height: auto;
    overflow: visible;
  }

  .content-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .preview-area {
    position: static;
    height: auto;
    overflow: visible;
  }

  .panel-stack {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .phone-frame {
    max-width: 430px;
  }
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
    min-height: 100vh;
    height: auto;
    overflow: visible;
  }

  .sidebar {
    position: relative;
    gap: 18px;
    width: 100%;
    max-height: none;
    padding: 18px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .brand {
    padding-bottom: 14px;
  }

  .brand-logo {
    width: min(168px, 100%);
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-item {
    min-height: 44px;
    padding: 10px;
    text-align: center;
  }

  .auth-box,
  .publish-box {
    margin-top: 0;
  }

  .workspace {
    padding: 20px;
  }

  .content-grid {
    gap: 18px;
  }

  .preview-area {
    order: 2;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

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

  .workspace {
    padding: 16px;
  }

  .topbar {
    gap: 14px;
    margin-bottom: 16px;
  }

  .topbar h1 {
    font-size: clamp(1.45rem, 8vw, 1.95rem);
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .topbar-actions button,
  .preview-toolbar button {
    width: 100%;
  }

  .topbar,
  .section-heading,
  .design-group-title,
  .preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .design-group-grid,
  .service-editor-card,
  .template-row,
  .icon-options,
  .domain-helper,
  .domain-status-card,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

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

  .account-profile-card,
  .account-data-grid {
    grid-template-columns: 1fr;
  }

  .modal-header,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .wide {
    grid-column: auto;
  }

  .layout-executive .card-cover,
  .layout-split .card-cover {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 18px;
  }

  #profileForm > label,
  #seoForm > label,
  #extrasForm > label,
  #domainForm > label,
  .design-group,
  .service-manager,
  .icon-picker,
  .keyword-panel,
  .profile-photo-box {
    padding: 12px;
  }

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

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

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

  .phone-frame {
    padding: 10px;
    border-radius: 26px;
  }

  .card-preview {
    min-height: 620px;
    border-radius: 20px;
  }

  .public-page {
    padding: 14px;
  }
}

@media (max-width: 520px) {
  .sidebar {
    padding: 14px;
  }

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

  .auth-box,
  .publish-box {
    padding: 12px;
  }

  .sidebar-login-actions,
  .booking-fields,
  .lead-form,
  .booking-form {
    grid-template-columns: 1fr;
  }

  .workspace {
    padding: 12px;
  }

  .panel {
    padding: 14px;
    box-shadow: 0 10px 28px rgba(13, 28, 40, 0.1);
  }

  .section-heading {
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 14px;
  }

  .service-manager-head,
  .service-editor-top {
    align-items: stretch;
    flex-direction: column;
  }

  .service-manager-head button,
  .service-editor-top button {
    width: 100%;
  }

  .section-heading h2 {
    font-size: 1.18rem;
  }

  input,
  textarea,
  select,
  button,
  .primary-action,
  .secondary-action,
  .ghost-action,
  .icon-button,
  .google-action {
    min-height: 44px;
  }

  .template-row,
  .metrics-grid,
  .icon-options,
  .service-editor-card,
  .typography-style-row,
  .weekday-grid {
    grid-template-columns: 1fr;
  }

  .block-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .block-row .switch {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 40px;
  }

  .account-modal {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }

  .modal-backdrop {
    padding: 0;
    align-items: stretch;
  }

  .modal-header,
  .account-modal form {
    padding: 16px;
  }

  .card-cover {
    padding-inline: 18px;
  }

  .contact-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .nav-list,
  .segmented,
  .option-cloud {
    grid-template-columns: 1fr;
  }

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

  .phone-frame {
    padding: 7px;
    border-radius: 22px;
  }

  .card-preview {
    border-radius: 18px;
  }
}





/* ========================================================
   SISTEMA DE TEMAS — 5 escuros + 5 claros
   ======================================================== */

/* --- Escuro: Midnight (Roxo) --- */
[data-theme="dark-midnight"] {
  --bg: #100f1c;
  --surface: #161622;
  --surface-2: #1d1d2e;
  --surface-strong: #252438;
  --text: #d0cce8;
  --muted: #706894;
  --line: rgba(92, 66, 212, 0.22);
  --accent: #6248e0;
  --accent-text: #9b8fef;
  --accent-dark: #3d2aa0;
  --accent-glow: rgba(92, 66, 212, 0.28);
  --sidebar-bg: #0c0b16;
  --sidebar-color: #c8c4e4;
  --sidebar-muted: #605880;
  --nav-text: #7870a8;
  --nav-hover-text: #b0a8d8;
  --nav-hover-bg: rgba(92, 66, 212, 0.10);
  --nav-hover-border: rgba(92, 66, 212, 0.22);
  --nav-active-text: #9b8fef;
  --nav-active-bg: rgba(92, 66, 212, 0.16);
  --nav-active-border: rgba(92, 66, 212, 0.38);
  --topbar-bg: rgba(12, 11, 22, 0.88);
  --topbar-border: rgba(92, 66, 212, 0.18);
  --topbar-h1-from: #d0cce8;
  --topbar-h1-to: #9b8fef;
  --grid-color: rgba(92, 66, 212, 0.035);
  --input-bg: rgba(10, 9, 18, 0.85);
  --input-border: rgba(92, 66, 212, 0.22);
  --input-focus-border: rgba(92, 66, 212, 0.50);
  --input-focus-glow: rgba(92, 66, 212, 0.12);
  --gold: #c8a45d;
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.60);
}

/* --- Escuro: Forest (Esmeralda) --- */
[data-theme="dark-forest"] {
  --bg: #0c1610;
  --surface: #121e14;
  --surface-2: #192618;
  --surface-strong: #202e22;
  --text: #c4dcc8;
  --muted: #587a60;
  --line: rgba(28, 122, 62, 0.22);
  --accent: #1c7a3e;
  --accent-text: #48aa68;
  --accent-dark: #135228;
  --accent-glow: rgba(28, 122, 62, 0.28);
  --sidebar-bg: #091209;
  --sidebar-color: #b8d8bc;
  --sidebar-muted: #406848;
  --nav-text: #527a58;
  --nav-hover-text: #8ab898;
  --nav-hover-bg: rgba(28, 122, 62, 0.10);
  --nav-hover-border: rgba(28, 122, 62, 0.22);
  --nav-active-text: #48aa68;
  --nav-active-bg: rgba(28, 122, 62, 0.16);
  --nav-active-border: rgba(28, 122, 62, 0.38);
  --topbar-bg: rgba(9, 18, 10, 0.88);
  --topbar-border: rgba(28, 122, 62, 0.18);
  --topbar-h1-from: #c4dcc8;
  --topbar-h1-to: #48aa68;
  --grid-color: rgba(28, 122, 62, 0.04);
  --input-bg: rgba(6, 10, 6, 0.85);
  --input-border: rgba(28, 122, 62, 0.22);
  --input-focus-border: rgba(28, 122, 62, 0.50);
  --input-focus-glow: rgba(28, 122, 62, 0.12);
  --gold: #c8a45d;
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.60);
}

/* --- Escuro: Ember (Âmbar) --- */
[data-theme="dark-ember"] {
  --bg: #171210;
  --surface: #1e1814;
  --surface-2: #271e18;
  --surface-strong: #302620;
  --text: #e0d0bc;
  --muted: #887060;
  --line: rgba(184, 88, 32, 0.22);
  --accent: #b85820;
  --accent-text: #e0843c;
  --accent-dark: #8a3c10;
  --accent-glow: rgba(184, 88, 32, 0.28);
  --sidebar-bg: #120e0c;
  --sidebar-color: #d8c4b0;
  --sidebar-muted: #6a5040;
  --nav-text: #886050;
  --nav-hover-text: #c09070;
  --nav-hover-bg: rgba(184, 88, 32, 0.10);
  --nav-hover-border: rgba(184, 88, 32, 0.22);
  --nav-active-text: #e0843c;
  --nav-active-bg: rgba(184, 88, 32, 0.16);
  --nav-active-border: rgba(184, 88, 32, 0.38);
  --topbar-bg: rgba(18, 14, 12, 0.88);
  --topbar-border: rgba(184, 88, 32, 0.18);
  --topbar-h1-from: #e0d0bc;
  --topbar-h1-to: #e0843c;
  --grid-color: rgba(184, 88, 32, 0.04);
  --input-bg: rgba(10, 8, 6, 0.85);
  --input-border: rgba(184, 88, 32, 0.22);
  --input-focus-border: rgba(184, 88, 32, 0.50);
  --input-focus-glow: rgba(184, 88, 32, 0.12);
  --gold: #e0a050;
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.60);
}

/* --- Escuro: Slate (Aço) --- */
[data-theme="dark-slate"] {
  --bg: #111519;
  --surface: #181e24;
  --surface-2: #1e262e;
  --surface-strong: #262e38;
  --text: #c8d8e4;
  --muted: #607888;
  --line: rgba(58, 104, 128, 0.22);
  --accent: #3a6880;
  --accent-text: #68a8c8;
  --accent-dark: #2a4e60;
  --accent-glow: rgba(58, 104, 128, 0.28);
  --sidebar-bg: #0d1115;
  --sidebar-color: #b8ccd8;
  --sidebar-muted: #405868;
  --nav-text: #506878;
  --nav-hover-text: #88a8c0;
  --nav-hover-bg: rgba(58, 104, 128, 0.10);
  --nav-hover-border: rgba(58, 104, 128, 0.22);
  --nav-active-text: #68a8c8;
  --nav-active-bg: rgba(58, 104, 128, 0.16);
  --nav-active-border: rgba(58, 104, 128, 0.38);
  --topbar-bg: rgba(13, 17, 21, 0.88);
  --topbar-border: rgba(58, 104, 128, 0.18);
  --topbar-h1-from: #c8d8e4;
  --topbar-h1-to: #68a8c8;
  --grid-color: rgba(58, 104, 128, 0.04);
  --input-bg: rgba(8, 11, 14, 0.85);
  --input-border: rgba(58, 104, 128, 0.22);
  --input-focus-border: rgba(58, 104, 128, 0.50);
  --input-focus-glow: rgba(58, 104, 128, 0.12);
  --gold: #c8a45d;
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.60);
}

/* --- Claro: Clean (Azul) --- */
[data-theme="light-clean"] {
  --bg: #eaeff4;
  --surface: #ffffff;
  --surface-2: #f3f7fb;
  --surface-strong: #e4ecf3;
  --text: #1a2636;
  --muted: #527090;
  --line: rgba(30, 82, 135, 0.14);
  --accent: #1e5287;
  --accent-text: #1e5287;
  --accent-dark: #134060;
  --accent-glow: rgba(30, 82, 135, 0.18);
  --sidebar-bg: #d5e2f0;
  --sidebar-color: #1e3a56;
  --sidebar-muted: #507090;
  --nav-text: #3a6080;
  --nav-hover-text: #1e3a60;
  --nav-hover-bg: rgba(30, 82, 135, 0.08);
  --nav-hover-border: rgba(30, 82, 135, 0.18);
  --nav-active-text: #1e5287;
  --nav-active-bg: rgba(30, 82, 135, 0.12);
  --nav-active-border: rgba(30, 82, 135, 0.30);
  --topbar-bg: rgba(234, 239, 244, 0.94);
  --topbar-border: rgba(30, 82, 135, 0.12);
  --topbar-h1-from: #1a2636;
  --topbar-h1-to: #1e5287;
  --grid-color: rgba(30, 82, 135, 0.04);
  --input-bg: rgba(255, 255, 255, 0.90);
  --input-border: rgba(30, 82, 135, 0.18);
  --input-focus-border: rgba(30, 82, 135, 0.45);
  --input-focus-glow: rgba(30, 82, 135, 0.08);
  --gold: #c8a45d;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* --- Claro: Warm (Âmbar) --- */
[data-theme="light-warm"] {
  --bg: #ede8e0;
  --surface: #fdf8f0;
  --surface-2: #f5f0e6;
  --surface-strong: #e8e0d0;
  --text: #2a1e10;
  --muted: #7a6448;
  --line: rgba(154, 82, 24, 0.14);
  --accent: #9a5218;
  --accent-text: #9a5218;
  --accent-dark: #6a3408;
  --accent-glow: rgba(154, 82, 24, 0.18);
  --sidebar-bg: #dfd6c4;
  --sidebar-color: #2a1e10;
  --sidebar-muted: #6a5038;
  --nav-text: #6a5038;
  --nav-hover-text: #3e2810;
  --nav-hover-bg: rgba(154, 82, 24, 0.08);
  --nav-hover-border: rgba(154, 82, 24, 0.18);
  --nav-active-text: #9a5218;
  --nav-active-bg: rgba(154, 82, 24, 0.12);
  --nav-active-border: rgba(154, 82, 24, 0.30);
  --topbar-bg: rgba(237, 232, 224, 0.94);
  --topbar-border: rgba(154, 82, 24, 0.12);
  --topbar-h1-from: #2a1e10;
  --topbar-h1-to: #9a5218;
  --grid-color: rgba(154, 82, 24, 0.04);
  --input-bg: rgba(253, 248, 240, 0.90);
  --input-border: rgba(154, 82, 24, 0.18);
  --input-focus-border: rgba(154, 82, 24, 0.45);
  --input-focus-glow: rgba(154, 82, 24, 0.08);
  --gold: #c8841a;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

/* --- Claro: Sage (Esmeralda) --- */
[data-theme="light-sage"] {
  --bg: #e8eee8;
  --surface: #f6fbf6;
  --surface-2: #eef4ee;
  --surface-strong: #e0eae0;
  --text: #161e16;
  --muted: #527858;
  --line: rgba(42, 110, 66, 0.14);
  --accent: #2a6e42;
  --accent-text: #2a6e42;
  --accent-dark: #1a4e2c;
  --accent-glow: rgba(42, 110, 66, 0.18);
  --sidebar-bg: #d4e4d4;
  --sidebar-color: #162018;
  --sidebar-muted: #4a7050;
  --nav-text: #4a6850;
  --nav-hover-text: #1c3e22;
  --nav-hover-bg: rgba(42, 110, 66, 0.08);
  --nav-hover-border: rgba(42, 110, 66, 0.18);
  --nav-active-text: #2a6e42;
  --nav-active-bg: rgba(42, 110, 66, 0.12);
  --nav-active-border: rgba(42, 110, 66, 0.30);
  --topbar-bg: rgba(232, 238, 232, 0.94);
  --topbar-border: rgba(42, 110, 66, 0.12);
  --topbar-h1-from: #161e16;
  --topbar-h1-to: #2a6e42;
  --grid-color: rgba(42, 110, 66, 0.04);
  --input-bg: rgba(246, 251, 246, 0.90);
  --input-border: rgba(42, 110, 66, 0.18);
  --input-focus-border: rgba(42, 110, 66, 0.45);
  --input-focus-glow: rgba(42, 110, 66, 0.08);
  --gold: #b8962c;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

/* --- Claro: Rose (Rosa) --- */
[data-theme="light-rose"] {
  --bg: #eee4e8;
  --surface: #fef6f8;
  --surface-2: #f5ecee;
  --surface-strong: #e8dce0;
  --text: #28121e;
  --muted: #7a5868;
  --line: rgba(140, 48, 84, 0.14);
  --accent: #8c3054;
  --accent-text: #8c3054;
  --accent-dark: #5e1c38;
  --accent-glow: rgba(140, 48, 84, 0.18);
  --sidebar-bg: #e0ccd4;
  --sidebar-color: #281220;
  --sidebar-muted: #6a4858;
  --nav-text: #6a4858;
  --nav-hover-text: #3e1828;
  --nav-hover-bg: rgba(140, 48, 84, 0.08);
  --nav-hover-border: rgba(140, 48, 84, 0.18);
  --nav-active-text: #8c3054;
  --nav-active-bg: rgba(140, 48, 84, 0.12);
  --nav-active-border: rgba(140, 48, 84, 0.30);
  --topbar-bg: rgba(238, 228, 232, 0.94);
  --topbar-border: rgba(140, 48, 84, 0.12);
  --topbar-h1-from: #28121e;
  --topbar-h1-to: #8c3054;
  --grid-color: rgba(140, 48, 84, 0.04);
  --input-bg: rgba(254, 246, 248, 0.90);
  --input-border: rgba(140, 48, 84, 0.18);
  --input-focus-border: rgba(140, 48, 84, 0.45);
  --input-focus-glow: rgba(140, 48, 84, 0.08);
  --gold: #a8784a;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

/* --- Claro: Sky (Céu) --- */
[data-theme="light-sky"] {
  --bg: #e6f0f8;
  --surface: #f6fbff;
  --surface-2: #edf4fc;
  --surface-strong: #deeaf4;
  --text: #121e2e;
  --muted: #487090;
  --line: rgba(26, 104, 152, 0.14);
  --accent: #1a6898;
  --accent-text: #1a6898;
  --accent-dark: #104e78;
  --accent-glow: rgba(26, 104, 152, 0.18);
  --sidebar-bg: #d0e2f0;
  --sidebar-color: #12202e;
  --sidebar-muted: #406080;
  --nav-text: #3a6080;
  --nav-hover-text: #102040;
  --nav-hover-bg: rgba(26, 104, 152, 0.08);
  --nav-hover-border: rgba(26, 104, 152, 0.18);
  --nav-active-text: #1a6898;
  --nav-active-bg: rgba(26, 104, 152, 0.12);
  --nav-active-border: rgba(26, 104, 152, 0.30);
  --topbar-bg: rgba(230, 240, 248, 0.94);
  --topbar-border: rgba(26, 104, 152, 0.12);
  --topbar-h1-from: #121e2e;
  --topbar-h1-to: #1a6898;
  --grid-color: rgba(26, 104, 152, 0.04);
  --input-bg: rgba(246, 251, 255, 0.90);
  --input-border: rgba(26, 104, 152, 0.18);
  --input-focus-border: rgba(26, 104, 152, 0.45);
  --input-focus-glow: rgba(26, 104, 152, 0.08);
  --gold: #c8a45d;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

/* ---- Overrides compartilhados: temas claros ---- */
[data-theme^="light-"] .topbar h1 {
  -webkit-text-fill-color: transparent;
}
[data-theme^="light-"] .auth-box strong {
  color: var(--text);
}
[data-theme^="light-"] .auth-box span,
[data-theme^="light-"] .auth-field {
  color: var(--sidebar-muted);
}
[data-theme^="light-"] .auth-box input {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--input-border);
  color: var(--text);
}
[data-theme^="light-"] .auth-box input::placeholder {
  color: var(--muted);
}
[data-theme^="light-"] .auth-box .ghost-action {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  border-color: var(--line);
}
[data-theme^="light-"] .google-action {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border-color: var(--line);
}
[data-theme^="light-"] .secondary-action {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}
[data-theme^="light-"] .secondary-action:hover {
  background: rgba(0, 0, 0, 0.1);
}
[data-theme^="light-"] .ghost-action,
[data-theme^="light-"] .icon-button {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  border-color: var(--line);
}
[data-theme^="light-"] .ghost-action:hover,
[data-theme^="light-"] .icon-button:hover {
  background: rgba(0, 0, 0, 0.09);
}
[data-theme^="light-"] select option {
  background: var(--surface);
  color: var(--text);
}
[data-theme^="light-"] .service-editor-top {
  border-bottom-color: var(--line);
}
[data-theme^="light-"] .account-summary {
  border-bottom-color: var(--line);
}
[data-theme^="light-"] .brand {
  border-bottom-color: var(--line);
}
[data-theme^="light-"] .section-heading {
  border-left-color: var(--accent);
}


/* ---- Theme Switcher UI ---- */
.theme-switcher {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.theme-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.theme-tab {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: transparent;
  color: var(--sidebar-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
  box-shadow: none;
  padding: 6px 10px;
}

.theme-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sidebar-color);
  transform: none;
}

.theme-tab.active {
  background: rgba(255, 255, 255, 0.10);
  color: var(--sidebar-color);
  border-color: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.theme-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  background: linear-gradient(135deg, var(--s1), var(--s2));
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  padding: 0;
  box-shadow: none;
  min-height: auto;
}

.swatch:hover {
  transform: scale(1.18);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}

.swatch.active {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
}

.light-swatch {
  display: none;
}

.mode-light .light-swatch {
  display: block;
}

.mode-light .dark-swatch-group {
  display: none;
}

[data-theme^="light-"] .theme-tab {
  border-color: var(--line);
  color: var(--sidebar-muted);
}

[data-theme^="light-"] .theme-tab:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--sidebar-color);
}

[data-theme^="light-"] .theme-tab.active {
  background: rgba(0, 0, 0, 0.08);
  color: var(--sidebar-color);
  border-color: var(--line);
}

[data-theme^="light-"] .swatch:hover {
  border-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

[data-theme^="light-"] .swatch.active {
  border-color: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

[data-theme^="light-"] .theme-switcher {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--line);
}
