/* Fallback styles to keep public pages readable if Bootstrap fails to load */
:root {
  color-scheme: light;
  --fm-primary: #2563eb;
  --fm-primary-contrast: #ffffff;
  --fm-muted: #6b7280;
  --fm-border: #e5e7eb;
  --fm-bg: #f8fafc;
  --fm-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --fm-radius: 16px;
  --fm-pastel-1: #e8f2ff;
  --fm-pastel-2: #f2e8ff;
  --fm-pastel-3: #eafff1;
  --fm-pastel-4: #fff4e6;
  --fm-font-size-xs: 0.75rem;
  --fm-font-size-sm: 0.875rem;
  --fm-font-size-base: 1rem;
  --fm-font-size-lg: 1.125rem;
  --fm-font-size-2xl: 1.5rem;
  --fm-line-height-tight: 1.25;
  --fm-line-height-normal: 1.45;
  --fm-line-height-relaxed: 1.6;
  --fm-space-1: 0.25rem;
  --fm-space-2: 0.5rem;
  --fm-space-3: 0.75rem;
  --fm-space-4: 1rem;
  --fm-space-5: 1.25rem;
  --fm-space-6: 1.5rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--fm-bg);
  color: #0f172a;
  line-height: 1.6;
}


a {
  color: var(--fm-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.container {
  width: min(1100px, 100% - 2rem);
  margin: 0 auto;
}

.user-stickers-toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1050;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 500;
  max-width: min(320px, calc(100vw - 3rem));
  text-wrap: balance;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.user-stickers-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.app-toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1050;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
  max-width: min(320px, calc(100vw - 3rem));
  text-wrap: balance;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 576px) {
  .user-stickers-toast {
    right: 1rem;
    left: 1rem;
    max-width: calc(100vw - 2rem);
    text-align: center;
  }
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

.app-main {
  width: 100%;
  min-width: 0;
}

.app-footer {
  width: 100%;
}

.app-language-select-wrap {
  position: relative;
  display: inline-grid;
  min-width: 7.5rem;
  width: 100%;
}

.app-language-select-trigger {
  width: 100%;
  min-width: 7.5rem;
  min-height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 2.5rem 0.25rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  border-radius: 0.375rem;
  background:
    #ffffff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 0.85rem center / 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  text-align: left;
}

.app-language-select-trigger:focus {
  outline: 0;
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.16);
}

.app-language-select-display {
  display: inline-flex;
  align-items: center;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.2;
  font-family: "Inter", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Segoe UI", system-ui, -apple-system, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-language-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.app-flag-icon {
  width: 1.1rem;
  height: 0.8rem;
  flex: 0 0 auto;
  border-radius: 0.18rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.app-flag-icon--us {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 14'%3E%3Crect width='19' height='14' fill='%23fff'/%3E%3Cg fill='%23B22234'%3E%3Crect width='19' height='1.08' y='0'/%3E%3Crect width='19' height='1.08' y='2.16'/%3E%3Crect width='19' height='1.08' y='4.32'/%3E%3Crect width='19' height='1.08' y='6.48'/%3E%3Crect width='19' height='1.08' y='8.64'/%3E%3Crect width='19' height='1.08' y='10.8'/%3E%3Crect width='19' height='1.08' y='12.92'/%3E%3C/g%3E%3Crect width='7.6' height='7.56' fill='%233C3B6E'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='1.1' cy='1.15' r='.35'/%3E%3Ccircle cx='2.65' cy='1.15' r='.35'/%3E%3Ccircle cx='4.2' cy='1.15' r='.35'/%3E%3Ccircle cx='5.75' cy='1.15' r='.35'/%3E%3Ccircle cx='1.88' cy='2.3' r='.35'/%3E%3Ccircle cx='3.43' cy='2.3' r='.35'/%3E%3Ccircle cx='4.98' cy='2.3' r='.35'/%3E%3Ccircle cx='6.53' cy='2.3' r='.35'/%3E%3Ccircle cx='1.1' cy='3.45' r='.35'/%3E%3Ccircle cx='2.65' cy='3.45' r='.35'/%3E%3Ccircle cx='4.2' cy='3.45' r='.35'/%3E%3Ccircle cx='5.75' cy='3.45' r='.35'/%3E%3Ccircle cx='1.88' cy='4.6' r='.35'/%3E%3Ccircle cx='3.43' cy='4.6' r='.35'/%3E%3Ccircle cx='4.98' cy='4.6' r='.35'/%3E%3Ccircle cx='6.53' cy='4.6' r='.35'/%3E%3Ccircle cx='1.1' cy='5.75' r='.35'/%3E%3Ccircle cx='2.65' cy='5.75' r='.35'/%3E%3Ccircle cx='4.2' cy='5.75' r='.35'/%3E%3Ccircle cx='5.75' cy='5.75' r='.35'/%3E%3Ccircle cx='1.88' cy='6.9' r='.35'/%3E%3Ccircle cx='3.43' cy='6.9' r='.35'/%3E%3Ccircle cx='4.98' cy='6.9' r='.35'/%3E%3Ccircle cx='6.53' cy='6.9' r='.35'/%3E%3C/g%3E%3C/svg%3E");
}

.app-flag-icon--es {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 14'%3E%3Crect width='19' height='14' fill='%23AA151B'/%3E%3Crect width='19' height='7' y='3.5' fill='%23F1BF00'/%3E%3C/svg%3E");
}

.app-flag-icon--it {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 14'%3E%3Crect width='6.33' height='14' fill='%23009246'/%3E%3Crect width='6.34' height='14' x='6.33' fill='%23fff'/%3E%3Crect width='6.33' height='14' x='12.67' fill='%23CE2B37'/%3E%3C/svg%3E");
}

.app-flag-icon--br {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 14'%3E%3Crect width='19' height='14' fill='%23009C3B'/%3E%3Cpath d='M9.5 2 16 7 9.5 12 3 7Z' fill='%23FFDF00'/%3E%3Ccircle cx='9.5' cy='7' r='2.35' fill='%23002177'/%3E%3Cpath d='M7.2 6.6c1.45-.55 3.25-.42 4.6.34' fill='none' stroke='%23fff' stroke-width='.42' stroke-linecap='round'/%3E%3C/svg%3E");
}

.app-language-select-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 1080;
  display: grid;
  gap: 0.1rem;
  padding: 0.3rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.app-language-select-option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 0.55rem;
  padding: 0.45rem 0.6rem;
  text-align: left;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.2;
  font-family: "Inter", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.app-language-select-option .app-language-label,
.app-language-select-display .app-language-label {
  width: 100%;
}

.app-language-select-option:hover,
.app-language-select-option:focus {
  outline: 0;
  background: #eff6ff;
}

.app-language-select-option.is-selected {
  background: #2563eb;
  color: #ffffff;
}

.app-footer__language {
  flex-wrap: wrap;
}

.form-select.app-language-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.figus-support-cta {
  bottom: 1rem;
  margin: 0;
  pointer-events: none;
  position: fixed;
  right: 1rem;
  width: min(348px, calc(100vw - 2rem));
  z-index: 1040;
}

.figus-support-cta.is-dismissed {
  display: none;
}

.figus-support-cta.is-paused {
  display: none;
}

.fm-layout-user-shell .figus-support-cta {
  width: min(300px, calc(100vw - 2rem));
}

.fm-layout-user-shell .figus-support-cta__inner {
  min-height: 46px;
  padding-bottom: 0.32rem;
  padding-top: 0.32rem;
}

.fm-layout-user-shell .figus-support-cta__icon {
  height: 30px;
  width: 30px;
}

.fm-layout-user-shell .figus-support-cta__icon svg {
  height: 21px;
  width: 21px;
}

.fm-layout-user-shell .figus-support-cta__kicker {
  font-size: 0.56rem;
}

.fm-layout-user-shell .figus-support-cta h2 {
  font-size: 0.78rem;
}

.fm-layout-user-shell .figus-support-cta__kofi-fallback,
.fm-layout-user-shell .figus-support-cta__paypal-fallback {
  font-size: 0.74rem;
  min-height: 32px;
  padding: 0.4rem 0.6rem;
}

.figus-support-cta__inner {
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  display: flex;
  gap: 0.55rem;
  justify-content: space-between;
  min-height: 52px;
  padding: 0.38rem 2.55rem 0.38rem 0.48rem;
  pointer-events: auto;
  position: relative;
}

.figus-support-cta[data-support-region="ar"] .figus-support-cta__inner {
  background:
    radial-gradient(circle at top left, rgba(255, 209, 102, 0.32), transparent 32%),
    linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(236, 254, 255, 0.98));
}

.figus-support-cta__close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  z-index: 2;
}

.figus-support-cta__close:hover,
.figus-support-cta__close:focus {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.figus-support-cta__copy {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.figus-support-cta__icon {
  align-items: center;
  background: #0f172a;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.figus-support-cta__icon svg {
  display: block;
  height: 24px;
  width: 24px;
}

.figus-support-cta__kicker {
  color: #64748b;
  display: block;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.figus-support-cta h2 {
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

.figus-support-cta__actions,
.figus-support-cta__option {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
}

.figus-support-cta__option {
  justify-content: flex-end;
}

.figus-support-cta__option--cafecito img {
  display: block;
  height: auto;
  max-width: 134px;
}

.figus-support-cta__kofi-fallback,
.figus-support-cta__paypal-fallback {
  align-items: center;
  background: #2563eb;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
  color: #ffffff;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 36px;
  padding: 0.5rem 0.72rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.figus-support-cta__paypal-fallback {
  background: #003087;
  box-shadow: 0 12px 28px rgba(0, 48, 135, 0.24);
}

.figus-support-cta__kofi-fallback:hover,
.figus-support-cta__kofi-fallback:focus,
.figus-support-cta__paypal-fallback:hover,
.figus-support-cta__paypal-fallback:focus {
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.32);
  color: #ffffff;
  transform: translateY(-1px);
}

.figus-support-cta__paypal-fallback:hover,
.figus-support-cta__paypal-fallback:focus {
  box-shadow: 0 16px 34px rgba(0, 48, 135, 0.32);
}

@media (max-width: 767.98px) {
  .app-toast,
  .user-stickers-toast {
    right: 1rem;
    left: 1rem;
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
    max-width: calc(100vw - 2rem);
    text-align: center;
  }

  .app-footer__language .app-language-select-wrap {
    width: min(100%, 9rem);
  }

  .figus-support-cta {
    bottom: calc(4.85rem + env(safe-area-inset-bottom));
    left: 0.65rem;
    right: 0.65rem;
    width: auto;
  }

  .figus-support-cta__inner {
    border-radius: 18px;
    gap: 0.45rem;
    padding: 0.48rem 2.35rem 0.48rem 0.5rem;
  }

  .figus-support-cta h2 {
    font-size: 0.84rem;
  }

  .figus-support-cta__option--cafecito img {
    max-width: 126px;
  }

  .figus-support-cta__kofi-fallback,
  .figus-support-cta__paypal-fallback {
    font-size: 0.78rem;
    min-height: 34px;
    padding: 0.45rem 0.62rem;
  }

  .fm-layout-user-shell .figus-support-cta {
    bottom: calc(4.95rem + env(safe-area-inset-bottom));
    left: auto;
    right: 0.65rem;
    width: min(224px, calc(100vw - 1.3rem));
  }

  .fm-layout-user-shell .figus-support-cta__inner {
    min-height: 42px;
    padding: 0.36rem 2rem 0.36rem 0.42rem;
  }

  .fm-layout-user-shell .figus-support-cta__copy {
    display: none;
  }

  .fm-layout-user-shell .figus-support-cta__kofi-fallback,
  .fm-layout-user-shell .figus-support-cta__paypal-fallback {
    font-size: 0.72rem;
    min-height: 31px;
    padding: 0.38rem 0.58rem;
  }

  .fm-layout-user-shell .figus-support-cta__option--cafecito img {
    max-width: 116px;
  }

  .fm-layout-user-shell .figus-support-cta__close {
    right: 0.46rem;
  }
}
/* CSP-friendly state colors for the API playground token indicator. */
.token-status-loaded {
  color: #10b981;
}

.token-status-missing {
  color: #b91c1c;
}
