* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body.modal-open {
  overflow: auto;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(135deg, #ffffff 0%, #f8f6ff 50%, #f3f0ff 100%);
  min-height: 100vh;
}

body.embed-template {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
  min-height: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(14, 165, 164, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body.embed-template::before {
  display: none;
}

body::after {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

body.admin-template {
  color: var(--ds-color-foreground);
  background-color: var(--ds-color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-template .ui-surface {
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-card);
  box-shadow: var(--ds-shadow-md);
}

body.admin-template .ui-muted-surface {
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-muted);
}

body.admin-template .ui-gradient-text {
  background: var(--ds-gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
