:root {
  --ink: #172033;
  --muted: #667085;
  --line: #e6e8ef;
  --bg: #fff9ed;
  --paper: #ffffff;
  --green: #21bf73;
  --purple: #4c1d95;
  --blue: #2563eb;
  --rose: #ff5c7a;
  --yellow: #ffc857;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Fredoka, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 0 0;
}

.site-header {
  position: relative;
  z-index: 2;
  flex-direction: column;
  gap: 0;
}

.public-profile-header {
  width: min(620px, calc(100% - 32px));
  padding-top: 14px;
}

.public-profile-header .brand {
  margin-bottom: 0;
  transform: translateY(40px);
}

.brand,
.logo-stack {
  display: inline-grid;
  justify-items: center;
  gap: 2px;
  text-decoration: none;
}

.brand {
  position: relative;
  z-index: 3;
}

.brand img {
  width: 140px;
  display: block;
  border-radius: 18px;
}

.brand-wordmark {
  display: block;
  width: 250px;
  height: 66px;
  margin-top: -22px;
  overflow: visible;
  filter: drop-shadow(0 8px 16px rgba(79, 70, 229, 0.22));
  transform: rotate(-2deg);
  transform-origin: center;
}

.brand > .brand-wordmark {
  width: 286px;
  height: 74px;
  margin-top: -32px;
}

.brand > .brand-wordmark text {
  font-size: 52px;
}

.brand-wordmark text {
  stroke: rgba(49, 16, 109, 0.42);
  stroke-width: 1.25px;
  paint-order: stroke fill;
  font-family: Fredoka, system-ui, sans-serif;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 0;
}

.preview-logo {
  justify-self: start;
}

.preview-logo img {
  width: 140px;
  border-radius: 24px;
}

.preview-logo .brand-wordmark {
  width: 250px;
  height: 66px;
  margin-top: -22px;
}

.top-nav {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  min-height: 72px;
  margin-top: -38px;
  padding: 10px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(23, 32, 51, 0.12);
  backdrop-filter: blur(14px);
}

.top-nav-primary,
.top-nav-secondary {
  display: contents;
}

.site-main {
  width: min(1280px, calc(100% - 24px));
  margin: -36px auto 0;
  padding: 82px 0 28px;
  border-radius: 30px;
  background: #f6efdf;
}

.top-nav a,
.branding {
  text-decoration: none;
  font-weight: 600;
}

.top-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #475467;
  white-space: nowrap;
}

.top-nav .home-nav-link {
  min-width: 72px;
  padding-right: 12px;
  padding-left: 12px;
}

.top-nav-divider {
  width: 1px;
  height: 32px;
  margin: 0 6px;
  background: rgba(23, 32, 51, 0.14);
}

.top-nav .top-nav-account {
  min-width: 0;
  gap: 9px;
  padding: 6px 10px 6px 7px;
  border: 1px solid transparent;
  color: var(--ink);
}

.top-nav-account img,
.top-nav-account-initials {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 50%;
}

.top-nav-account img {
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--purple) 22%, white);
}

.top-nav-account-initials {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #6d28d9, #2563eb);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.top-nav-account-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-nav-account-copy {
  display: grid;
  justify-items: start;
  gap: 2px;
  min-width: 0;
  line-height: 1.1;
}

.top-nav-plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--purple) 28%, white);
  border-radius: 999px;
  background: linear-gradient(135deg, #f5efff, #e9ddff);
  color: #6840a8;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.top-nav .top-nav-account:hover,
.top-nav .top-nav-account.is-active {
  border-color: color-mix(in srgb, var(--green) 32%, white);
  background: #f0fdf4;
}

.top-nav .top-nav-account.is-active::after {
  display: none;
}

.home-nav-link img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.top-nav a:hover {
  background: #f6f8fb;
  color: var(--ink);
}

.top-nav a.active,
.top-nav a[aria-current="page"] {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.top-nav a.active:hover,
.top-nav a[aria-current="page"]:hover {
  background: transparent;
  color: var(--ink);
}

.top-nav a.active::after,
.top-nav a[aria-current="page"]::after {
  position: absolute;
  right: 14px;
  bottom: 7px;
  left: 14px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.top-nav .button.small {
  min-height: 52px;
  background: #f0fdf4;
  color: #047857;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 22%, white);
}

.top-nav .button.small:hover {
  background: #dcfce7;
  filter: none;
}

.top-nav .button.small.active,
.top-nav .button.small[aria-current="page"] {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.button,
button {
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: white;
  padding: 14px 18px;
  font: 700 1rem Fredoka, sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
}

.button:hover,
button:hover {
  filter: brightness(0.97);
}

.button.ghost {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button.small {
  min-height: 38px;
  padding: 9px 13px;
}

.button.full {
  width: 100%;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 12px auto 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 0.98;
  margin: 8px 0 18px;
  letter-spacing: 0;
}

.hero-copy p {
  font-size: 1.18rem;
  color: #344054;
  max-width: 680px;
}

.hero-copy .hero-lead {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
  color: var(--ink);
  font-weight: 700;
}

.eyebrow {
  color: var(--rose);
  font-weight: 700;
  text-transform: uppercase;
}

.hero-actions,
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-explainer,
.explain-note {
  display: grid;
  align-items: center;
  gap: 28px;
  padding: 22px 42px;
  border-radius: 26px;
  background: linear-gradient(115deg, #fff 0%, #effdf5 100%);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.07);
}

.home-explainer {
  grid-template-columns: minmax(280px, 0.54fr) 1fr;
}

.explain-note {
  grid-template-columns: minmax(160px, 0.38fr) 1fr;
}

.home-explainer img {
  width: min(330px, 100%);
  justify-self: center;
}

.explain-note img {
  width: min(210px, 100%);
  justify-self: center;
}

.home-explainer h2,
.explain-note h2,
.section-heading h2,
.practical-copy h2,
.explain-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.02;
}

.home-explainer p,
.explain-note p,
.practical-copy p {
  color: #475467;
  font-size: 1.08rem;
  line-height: 1.55;
}

.home-explainer .button {
  margin-top: 6px;
}

.home-sharing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 2px;
}

.home-sharing-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #344054;
  font-size: 0.86rem;
  font-weight: 600;
}

.home-sharing-chips img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.home-sharing-chips strong {
  color: #15803d;
  font-size: 0.78rem;
}

.explain-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 12px auto 44px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 36px;
}

.explain-copy h1 {
  max-width: 650px;
  margin: 8px 0 20px;
  font-size: clamp(2.6rem, 5.6vw, 4.8rem);
  line-height: 0.98;
}

.explain-copy > p:not(.eyebrow) {
  max-width: 610px;
  color: #475467;
  font-size: 1.18rem;
  line-height: 1.55;
}

.explain-image-wrap {
  overflow: hidden;
  border-radius: 30px;
  background: transparent;
  box-shadow: none;
}

.explain-image-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.explain-section {
  padding-top: 14px;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 22px;
}

.explain-steps,
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.explain-step,
.use-case-card {
  min-height: 230px;
  padding: 26px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
}

.explain-step > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #047857;
  font-size: 1.2rem;
  font-weight: 700;
}

.explain-step h3,
.use-case-card h3 {
  margin: 18px 0 8px;
  font-size: 1.35rem;
}

.explain-step p,
.use-case-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.sharing-examples {
  padding-top: 8px;
}

.sharing-examples .section-heading > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.sharing-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.sharing-option {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.07);
}

.profile-sharing {
  border-top: 5px solid var(--blue);
}

.widget-sharing {
  border-top: 5px solid var(--green);
}

.sharing-option-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.sharing-option-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 1.1rem;
  font-weight: 700;
}

.widget-sharing .sharing-option-icon {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.92rem;
}

.sharing-option-heading p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sharing-option h3 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.12;
}

.sharing-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.sharing-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 13px;
  background: #f8fafc;
}

.sharing-list img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sharing-list li > div {
  display: grid;
  gap: 2px;
}

.sharing-list strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.sharing-list span {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.35;
}

.sharing-tip {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

.practical-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: 34px;
}

.use-case-grid {
  grid-template-columns: 1fr;
}

.use-case-card {
  min-height: 0;
  padding: 22px 24px;
}

.use-case-card strong {
  color: #047857;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.explain-cta {
  padding: 40px;
  border-radius: 28px;
  text-align: center;
  background: #172033;
  color: white;
}

.explain-cta .eyebrow {
  color: #86efac;
}

.explain-cta h2 {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
}

.phone-preview {
  background: #1e293b;
  border-radius: 34px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.mini-card {
  background: white;
  border-radius: 26px;
  padding: 26px;
  min-height: 370px;
  display: grid;
  align-content: center;
  gap: 14px;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
}

.section.narrow {
  width: min(560px, calc(100% - 32px));
}

.grid-3,
.plans,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.panel,
.plan-card,
.support-card,
.stat {
  background: var(--paper);
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
}

.panel,
.plan-card {
  padding: 24px;
}

.panel h1,
.panel h2,
.plan-card h2 {
  margin-top: 0;
}

.plan-card ul {
  padding-left: 20px;
  color: #344054;
}

.plan-price,
.total-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.plan-price strong,
.total-offer strong {
  color: var(--purple);
  font-size: 1.55rem;
}

.plan-old-price {
  color: var(--muted);
  text-decoration: line-through;
}

.plan-price-note {
  width: 100%;
  color: var(--muted);
  font-size: 0.9rem;
}

.discount-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  background: #ede9fe;
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 700;
}

.plan-checkout-panel {
  display: grid;
  gap: 16px;
}

.total-offer > span:first-child {
  width: 100%;
  color: var(--muted);
  font-weight: 700;
}

.total-pix-checkout {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.total-pix-checkout h2,
.total-pix-checkout p {
  margin: 0;
}

.total-pix-grid {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.total-pix-details {
  display: grid;
  gap: 10px;
}

.total-pix-details textarea {
  min-height: 112px;
  font-family: Consolas, monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.payment-waiting {
  color: #92400e;
  font-weight: 700;
}

.success-text {
  color: #166534;
  font-weight: 700;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font: 500 1rem Fredoka, sans-serif;
  color: var(--ink);
  background: white;
}

textarea {
  resize: vertical;
}

.muted {
  color: var(--muted);
}

.turnstile-widget {
  min-height: 65px;
  overflow: hidden;
}

.flash {
  width: min(760px, calc(100% - 32px));
  margin: 12px auto;
  padding: 12px 16px;
  border-radius: 14px;
  background: #e0f2fe;
  color: #075985;
}

.flash.error {
  background: #ffe4e6;
  color: #9f1239;
}

.flash.success {
  background: #dcfce7;
  color: #166534;
}

.toast-stack {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 9999;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 28px));
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 3px;
  padding: 13px 16px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-left: 5px solid var(--green);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(23, 32, 51, 0.16);
  color: var(--ink);
  font-weight: 600;
  pointer-events: auto;
  animation: toast-in 320ms cubic-bezier(.22, 1, .36, 1) both;
  backdrop-filter: blur(12px);
}

.toast::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--toast-accent, var(--blue));
  animation: toast-progress 4s linear forwards;
}

.toast strong {
  font-size: 0.92rem;
}

.toast span {
  color: #344054;
  font-size: 0.94rem;
  line-height: 1.25;
}

.toast-error {
  border-left-color: #ef4444;
  --toast-accent: #ef4444;
}

.toast-success {
  border-left-color: var(--green);
  --toast-accent: var(--green);
}

.toast-info {
  border-left-color: var(--blue);
  --toast-accent: var(--blue);
}

.toast.is-leaving {
  animation: toast-out 240ms ease-in both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.96);
  }
}

@keyframes toast-progress {
  from { transform: scaleX(1); transform-origin: left; }
  to { transform: scaleX(0); transform-origin: left; }
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  .toast.is-leaving,
  .toast::after {
    animation-duration: 1ms;
  }
}

.dashboard-shell {
  width: min(1200px, calc(100% - 24px));
  margin: 24px auto;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 20px;
  align-items: start;
}

.dash-nav {
  background: white;
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 10px;
  display: grid;
  gap: 6px;
  position: sticky;
  top: 14px;
}

.dash-nav a {
  padding: 12px 14px;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 600;
}

.dash-nav a.active {
  background: #e8fff4;
  color: #047857;
}

.dashboard-content {
  display: grid;
  gap: 18px;
}

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

.admin-header {
  display: grid;
  gap: 12px;
}

.admin-header h1 {
  margin: 0;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-tabs a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.admin-tabs a:hover {
  background: #f8fafc;
}

.admin-tabs a.active {
  background: #e8fff4;
  color: #047857;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 28%, white);
}

.stat {
  padding: 18px;
  display: grid;
  gap: 6px;
}

.stat span {
  color: var(--muted);
}

.stat strong {
  font-size: 1.5rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: white;
  border-radius: 18px;
  overflow: hidden;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.log-details {
  margin: 0;
  max-width: 560px;
  white-space: pre-wrap;
  word-break: break-word;
  font: 0.9rem/1.4 Consolas, "Liberation Mono", monospace;
  color: var(--muted);
}

.inline-form {
  display: flex;
  gap: 8px;
  min-width: 260px;
}

.inline-form button {
  min-height: 42px;
  padding: 8px 12px;
}

.inline-action {
  margin-top: 14px;
}

.profile-links-editor {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-links-editor h2 {
  margin: 0;
  font-size: 1.1rem;
}

.profile-links-editor .muted {
  margin: 4px 0 0;
}

.profile-link-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1.15fr) minmax(180px, 0.75fr);
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcff;
}

.link-thumbnail-current {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-thumbnail-current img {
  width: 72px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
}

.link-thumbnail-current label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.total-theme-editor {
  display: grid;
  gap: 16px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.theme-color-control {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
}

.form .theme-color-input,
.theme-color-input {
  width: 52px;
  min-width: 52px;
  height: 38px;
  min-height: 38px;
  padding: 3px;
  border: 1px solid #cfd4df;
  border-radius: 9px;
  background: white;
  cursor: pointer;
}

.theme-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.theme-color-input::-webkit-color-swatch {
  border: 0;
  border-radius: 6px;
}

.theme-color-input::-moz-color-swatch {
  border: 0;
  border-radius: 6px;
}

.theme-color-preview {
  width: 34px;
  height: 34px;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.18), 0 4px 10px rgba(23, 32, 51, 0.16);
}

.theme-color-value {
  min-width: 76px;
  color: #344054;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 700;
}

.theme-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.theme-editor-heading h2,
.theme-editor-heading p {
  margin: 0;
}

.theme-editor-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.2fr);
  gap: 20px;
  align-items: start;
}

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

.theme-option {
  position: relative;
  cursor: pointer;
}

.theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-option span {
  display: grid;
  gap: 2px;
  min-height: 78px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: white;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.theme-option:hover span {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
}

.theme-option.is-selected span,
.theme-option input:focus-visible + span {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(33, 191, 115, 0.14);
}

.theme-option small {
  color: var(--muted);
  line-height: 1.25;
}

.theme-preview-shell {
  position: sticky;
  top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: var(--theme-page-bg, #f8fafc);
}

.theme-preview-shell .eyebrow {
  margin: 0 0 10px;
}

.theme-preview-card {
  width: 100%;
  padding: 18px;
  gap: 12px;
}

.theme-preview-card .creator-head {
  grid-template-columns: 58px 1fr;
}

.theme-preview-card .avatar {
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  height: 58px;
}

.theme-preview-card .creator-head h1 {
  font-size: 1.25rem;
}

.theme-preview-card .public-link {
  pointer-events: none;
}

.preview-thumb {
  display: grid;
  place-items: center;
}
}

.compact-upgrade {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.compact-upgrade p {
  margin: 0;
  color: #344054;
}

.public-wrap {
  display: flex;
  justify-content: center;
}

.public-page .site-main {
  margin-top: 0;
  padding-top: 12px;
}

.public-page .public-wrap {
  margin-top: -16px;
}

.support-card {
  width: min(620px, 100%);
  padding: 22px;
  display: grid;
  gap: 16px;
}

[data-theme="brisa-verde"] {
  --theme-card-bg: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
  --theme-page-bg: #f2f8ee;
  --theme-card-text: #153226;
  --theme-card-muted: #587064;
  --theme-card-border: 1px solid rgba(22, 101, 52, 0.14);
  --theme-card-radius: 28px;
  --theme-card-shadow: 0 24px 60px rgba(22, 101, 52, 0.14);
  --theme-font: Fredoka, system-ui, sans-serif;
}

[data-theme="ceu-de-verao"] {
  --theme-card-bg: linear-gradient(160deg, #ffffff 0%, #e8f7ff 58%, #dff4ff 100%);
  --theme-page-bg: #eaf7fc;
  --theme-card-text: #12334d;
  --theme-card-muted: #52728b;
  --theme-card-border: 2px solid #b9e6f7;
  --theme-card-radius: 22px;
  --theme-card-shadow: 0 22px 46px rgba(14, 116, 144, 0.18);
  --theme-font: "Trebuchet MS", Arial, sans-serif;
}

[data-theme="por-do-sol"] {
  --theme-card-bg: linear-gradient(145deg, #fff9f0 0%, #ffe5d2 56%, #ffd5c8 100%);
  --theme-page-bg: #fff0e2;
  --theme-card-text: #4c2318;
  --theme-card-muted: #86584a;
  --theme-card-border: 2px solid #f5a66f;
  --theme-card-radius: 34px 16px 34px 16px;
  --theme-card-shadow: 12px 14px 0 rgba(194, 65, 12, 0.14);
  --theme-font: Georgia, "Times New Roman", serif;
}

[data-theme="noite-estrelada"] {
  --theme-card-bg: radial-gradient(circle at top right, #24366b 0%, #111936 42%, #090d20 100%);
  --theme-page-bg: #080c1c;
  --theme-card-text: #f8fafc;
  --theme-card-muted: #bdc7e5;
  --theme-card-border: 1px solid rgba(165, 180, 252, 0.35);
  --theme-card-radius: 20px;
  --theme-card-shadow: 0 26px 70px rgba(3, 7, 18, 0.55), 0 0 32px rgba(99, 102, 241, 0.18);
  --theme-font: "Segoe UI", Arial, sans-serif;
}

[data-theme="cafe-com-leite"] {
  --theme-card-bg: linear-gradient(135deg, #fffaf2 0%, #ead8c1 100%);
  --theme-page-bg: #e9dccb;
  --theme-card-text: #3b2a21;
  --theme-card-muted: #755e50;
  --theme-card-border: 3px double #a77d5c;
  --theme-card-radius: 12px;
  --theme-card-shadow: 8px 10px 0 rgba(79, 52, 36, 0.18);
  --theme-font: Georgia, "Times New Roman", serif;
}

[data-theme="jardim-secreto"] {
  --theme-card-bg: linear-gradient(155deg, #fffef8 0%, #edf7e8 52%, #f7eaf1 100%);
  --theme-page-bg: #edf3e7;
  --theme-card-text: #263b2c;
  --theme-card-muted: #617065;
  --theme-card-border: 1px solid #bfd1b8;
  --theme-card-radius: 36px;
  --theme-card-shadow: 0 24px 48px rgba(60, 94, 67, 0.16);
  --theme-font: "Trebuchet MS", Arial, sans-serif;
}

[data-theme="oceano-profundo"] {
  --theme-card-bg: linear-gradient(150deg, #e8fbff 0%, #bce7ee 45%, #8fcbd6 100%);
  --theme-page-bg: #0f3f4c;
  --theme-card-text: #062f3a;
  --theme-card-muted: #315d68;
  --theme-card-border: 2px solid #2d8798;
  --theme-card-radius: 8px 30px 8px 30px;
  --theme-card-shadow: 0 28px 0 rgba(3, 48, 59, 0.2);
  --theme-font: Verdana, Geneva, sans-serif;
}

[data-theme="festa-pop"] {
  --theme-card-bg: linear-gradient(135deg, #fff 0%, #fff0f6 48%, #eef2ff 100%);
  --theme-page-bg: #ffe54c;
  --theme-card-text: #24123d;
  --theme-card-muted: #654c7e;
  --theme-card-border: 3px solid #5b21b6;
  --theme-card-radius: 18px;
  --theme-card-shadow: 10px 10px 0 #ff5c7a, 16px 16px 0 #4f46e5;
  --theme-font: Fredoka, system-ui, sans-serif;
}

[data-theme="papel-e-tinta"] {
  --theme-card-bg: #fffefa;
  --theme-page-bg: #e8e5dc;
  --theme-card-text: #171717;
  --theme-card-muted: #555555;
  --theme-card-border: 1px solid #222222;
  --theme-card-radius: 2px;
  --theme-card-shadow: 6px 6px 0 #171717;
  --theme-font: Georgia, "Times New Roman", serif;
}

[data-theme="doce-lavanda"] {
  --theme-card-bg: linear-gradient(150deg, #ffffff 0%, #f4efff 55%, #fcecf6 100%);
  --theme-page-bg: #eee8fa;
  --theme-card-text: #38234e;
  --theme-card-muted: #756285;
  --theme-card-border: 1px solid #d9c7ef;
  --theme-card-radius: 30px;
  --theme-card-shadow: 0 26px 55px rgba(107, 70, 145, 0.2);
  --theme-font: "Segoe UI", Arial, sans-serif;
}

.support-card[data-theme] {
  background: var(--theme-card-bg);
  color: var(--theme-card-text);
  border: var(--theme-card-border);
  border-radius: var(--theme-card-radius);
  box-shadow: var(--theme-card-shadow);
  font-family: var(--theme-font);
}

.support-card[data-theme] .creator-head p,
.support-card[data-theme] .bio,
.support-card[data-theme] .suggested-title,
.support-card[data-theme] .support-extra summary {
  color: var(--theme-card-muted);
}

.support-card[data-theme] button,
.support-card[data-theme] input,
.support-card[data-theme] textarea {
  font-family: var(--theme-font);
}

.support-card[data-theme] .amount-mini,
.support-card[data-theme] .value-row button,
.support-card[data-theme] .support-extra,
.support-card[data-theme] .public-link,
.support-card[data-theme] .support-wall blockquote {
  background: color-mix(in srgb, var(--theme-card-bg) 78%, white);
  border-color: color-mix(in srgb, var(--theme) 32%, transparent);
}

.support-card[data-theme] .value-row button.active {
  background: var(--theme);
  border-color: var(--theme);
  color: white;
}

.support-card[data-theme="noite-estrelada"] .amount-mini,
.support-card[data-theme="noite-estrelada"] .value-row button,
.support-card[data-theme="noite-estrelada"] .support-extra,
.support-card[data-theme="noite-estrelada"] .public-link,
.support-card[data-theme="noite-estrelada"] .support-wall blockquote {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.support-card[data-theme] button,
.support-card[data-theme] .button,
.support-card[data-theme] .button.ghost,
.support-card[data-theme] .value-row button,
.support-card[data-theme] .value-row button.active {
  background: var(--theme);
  border-color: var(--theme);
  color: var(--theme-contrast, #ffffff);
}

.support-card[data-theme] .amount-mini input[type="checkbox"] {
  accent-color: var(--theme);
}

.support-card[data-theme] .value-row button.active {
  position: relative;
  outline: 3px solid color-mix(in srgb, var(--theme) 34%, white);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--theme-contrast, #ffffff) 72%, transparent);
}

.support-card[data-theme] .value-row button.active::after {
  position: absolute;
  top: 5px;
  right: 8px;
  content: "✓";
  color: var(--theme-contrast, #ffffff);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.theme-page-brisa-verde { background: #f2f8ee; }
.theme-page-ceu-de-verao { background: #eaf7fc; }
.theme-page-por-do-sol { background: #fff0e2; }
.theme-page-noite-estrelada { background: #080c1c; }
.theme-page-cafe-com-leite { background: #e9dccb; }
.theme-page-jardim-secreto { background: #edf3e7; }
.theme-page-oceano-profundo { background: #0f3f4c; }
.theme-page-festa-pop { background: #ffe54c; }
.theme-page-papel-e-tinta { background: #e8e5dc; }
.theme-page-doce-lavanda { background: #eee8fa; }

.public-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 2px -4px -4px;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 32, 51, 0.08);
}

.public-card-footer > img {
  width: 68px;
  height: 50px;
  object-fit: contain;
}

.public-card-footer a {
  display: inline-flex;
}

.public-card-footer a img {
  width: 50px;
  height: auto;
  object-fit: contain;
}

.creator-head {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
}

.creator-head h1 {
  margin: 0;
  font-size: 1.75rem;
}

.creator-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.avatar {
  width: 78px;
  min-width: 78px;
  max-width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid color-mix(in srgb, var(--theme) 25%, white);
}

.bio {
  margin: 0;
  color: #344054;
}

.public-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

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

.public-links-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-links-title {
  margin: 2px 0 -2px;
  color: var(--theme-card-text, var(--ink));
  font-size: 1.05rem;
}

.public-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--theme) 32%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--theme) 8%, white);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.public-link::after {
  content: "->";
  color: color-mix(in srgb, var(--theme) 70%, #172033);
  font-weight: 700;
  margin-left: 12px;
}

.public-link:hover {
  border-color: var(--theme);
  background: color-mix(in srgb, var(--theme) 13%, white);
}

.public-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 12px 8px 8px;
}

.public-link-thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.public-link-thumb-fallback {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--theme) 14%, white);
  color: color-mix(in srgb, var(--theme) 72%, #172033);
  font-size: 1.2rem;
}

.support-wall {
  display: grid;
  gap: 10px;
}

.support-wall-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-wall-heading > span {
  color: var(--theme);
}

.support-wall-heading h2 {
  margin: 0;
  font-size: 1.05rem;
}

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

.support-wall blockquote {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--theme) 24%, white);
  border-radius: 14px;
  background: color-mix(in srgb, var(--theme) 7%, white);
}

.support-wall blockquote p {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.support-wall cite {
  color: var(--theme-card-muted, var(--muted));
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.support-wall-summary {
  margin-bottom: 16px;
}

.support-wall-summary h2,
.support-wall-summary p {
  margin-block: 0 8px;
}

.fallback-pix {
  display: grid;
  gap: 16px;
}

.campaign {
  border: 1px dashed color-mix(in srgb, var(--theme) 60%, white);
  border-radius: 16px;
  padding: 12px;
  background: color-mix(in srgb, var(--theme) 10%, white);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.support-form {
  display: grid;
  gap: 13px;
}

.form-title {
  margin: 0;
  font-weight: 700;
}

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

.value-row button,
.value-row span {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.value-row button.active {
  background: var(--theme);
  color: white;
  border-color: var(--theme);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pix-result {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 13px;
}

.qr-panel {
  width: 264px;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 12px 12px 14px;
  border-radius: 22px;
  background: #09090b;
  color: white;
  box-shadow: 0 12px 32px rgba(9, 9, 11, 0.24);
}

.qr-img {
  width: 240px;
  height: 240px;
  display: block;
  box-sizing: border-box;
  border-radius: 12px;
  border: 8px solid white;
  background: white;
}

.qr-amount {
  margin-top: 5px;
  font-size: 1.18rem;
  line-height: 1.1;
}

.qr-instruction {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.2;
  text-align: center;
}

.ad-slot {
  display: block;
  border-radius: 14px;
  padding: 12px;
  color: #7c2d12;
  background: #ffedd5;
  text-align: center;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.ad-slot:hover {
  background: #fed7aa;
}

.ad-slot.compact {
  font-size: 0.82rem;
  padding: 9px;
}

.branding {
  justify-self: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.branding.reduced {
  opacity: 0.55;
}

.embed-body {
  margin: 0;
  background: transparent;
}

.embed-body .toast-stack {
  top: 10px;
  width: min(360px, calc(100vw - 20px));
}

.embed-body .toast {
  border-radius: 14px;
  padding: 10px 12px;
}

.embed-body .toast strong {
  font-size: 0.84rem;
}

.embed-body .toast span {
  font-size: 0.86rem;
}

.embed-wrap {
  min-height: 100vh;
  padding: 8px 10px;
  display: grid;
  place-items: center;
}

.embed-wrap .support-card {
  width: min(520px, 100%);
  min-height: 0;
  box-shadow: none;
  border-radius: 20px;
  padding: 10px 12px;
  gap: 7px;
  overflow: visible;
}

.embed-wrap .creator-head {
  grid-template-columns: 94px 60px minmax(0, 1fr);
  gap: 8px;
  overflow: visible;
}

.embed-site-mark {
  display: grid;
  justify-items: center;
  gap: 1px;
  margin: -24px 0 -4px -34px;
  position: relative;
  z-index: 1;
}

.embed-site-mark img {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  object-fit: cover;
  filter: drop-shadow(0 12px 18px rgba(23, 32, 51, 0.12));
}

.embed-site-mark .brand-wordmark {
  width: 128px;
  height: 36px;
  margin-top: -20px;
  filter: drop-shadow(0 6px 10px rgba(79, 70, 229, 0.2));
}

.embed-site-mark .brand-wordmark text {
  font-size: 45px;
  stroke-width: 1.15px;
}

.embed-wrap .avatar {
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  height: 58px;
}

.embed-wrap .creator-head h1 {
  font-size: 1.18rem;
  line-height: 1.05;
}

.embed-wrap .creator-head p {
  font-size: 0.88rem;
  line-height: 1.15;
  margin-top: 3px;
}

.embed-card .support-form {
  gap: 7px;
}

.embed-card .form-title {
  font-size: 0.95rem;
}

.suggested-title {
  grid-area: title;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  align-self: end;
}

.support-money-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  grid-template-areas:
    "title amount"
    "values amount";
  gap: 5px 8px;
  align-items: end;
}

.embed-card .value-row {
  grid-area: values;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(52px, 1fr));
}

.embed-card .value-row button {
  min-height: 36px;
  padding: 6px 7px;
  border-radius: 11px;
  font-size: 0.93rem;
}

.amount-mini {
  grid-area: amount;
  font-size: 0.76rem;
  color: var(--muted);
}

.amount-mini span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.amount-mini input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--green);
}

.amount-mini input[type="text"] {
  min-height: 36px;
  padding: 6px 9px;
  border-radius: 11px;
  font-weight: 700;
  text-align: right;
}

.support-card:not(.embed-card) .amount-mini input[type="text"] {
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
}

.amount-mini.is-custom-active input[type="text"] {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(33, 191, 115, 0.16);
}

.support-extra {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 7px 9px;
  background: #fbfcff;
}

.support-extra summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
  list-style-position: inside;
}

.support-extra[open] {
  display: grid;
  gap: 8px;
}

.support-extra .split {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.support-extra label {
  font-size: 0.82rem;
}

.support-extra input,
.support-extra textarea {
  padding: 7px 9px;
  border-radius: 11px;
}

.embed-card .button.full {
  min-height: 38px;
  padding: 8px 14px;
}

.embed-card.pix-mode {
  gap: 9px;
}

.embed-card .pix-result {
  grid-template-columns: 144px 1fr;
  gap: 8px 10px;
  align-items: center;
  padding-top: 8px;
}

.embed-card .qr-panel {
  width: 144px;
  padding: 7px 7px 9px;
  border-radius: 16px;
  grid-row: span 3;
}

.embed-card .qr-img {
  width: 120px;
  height: 120px;
  border-width: 5px;
  border-radius: 9px;
}

.embed-card .qr-amount {
  margin-top: 2px;
  font-size: 0.96rem;
}

.embed-card .qr-instruction {
  font-size: 0.68rem;
}

.embed-card .payload {
  height: 62px;
  min-height: 62px;
}

.embed-card .actions-row {
  gap: 6px;
}

.embed-card .actions-row .button,
.embed-card .paid-button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.9rem;
}

.embed-card .pix-result.paid-confirmed {
  display: block;
  padding-top: 0;
  border-top: 0;
}

.embed-card .pix-result.paid-confirmed .qr-panel,
.embed-card .pix-result.paid-confirmed label,
.embed-card .pix-result.paid-confirmed .actions-row,
.embed-card .pix-result.paid-confirmed .paid-button {
  display: none;
}

.embed-card .pix-result.paid-confirmed .thanks {
  display: block;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(33, 191, 115, 0.22);
  border-radius: 16px;
  background: #dcfce7;
  color: #166534;
  text-align: center;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.18;
}

.embed-card .ad-slot.compact {
  padding: 7px 10px;
  font-size: 0.76rem;
  border-radius: 10px;
}

.embed-ad-image {
  display: block;
  width: 50%;
  max-height: 52px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 10px;
}

.embed-card .branding {
  font-size: 0.78rem;
}

.codebox {
  min-height: 140px;
  font-family: Consolas, monospace;
}

.widget-preview-panel {
  display: grid;
  gap: 14px;
}

.widget-preview-panel h2 {
  margin: 0;
}

.widget-preview-frame {
  width: 100%;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.template-form {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 46px auto 0;
  padding: 22px 0 26px;
  color: var(--muted);
  border-top: 1px solid rgba(23, 32, 51, 0.08);
}

.footer-main {
  display: grid;
  justify-items: center;
  width: 100%;
  gap: 14px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.footer-brand span {
  display: none;
}

.footer-brand img {
  width: 128px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(23, 32, 51, 0.08));
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer-link-block {
  display: contents;
}

.footer-links a {
  padding: 9px 12px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  border-color: color-mix(in srgb, var(--green) 45%, white);
  color: #047857;
}

.footer-bottom {
  display: contents;
  font-size: 0.92rem;
  text-align: center;
}

.footer-bottom > span {
  display: block;
  justify-self: center;
}

.piisk-credit {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-weight: 600;
}

.piisk-credit a {
  display: inline-flex;
  align-items: center;
}

.piisk-credit img {
  width: 42px;
  height: auto;
  display: block;
}

.piisk-details {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
}

.legal-content {
  display: grid;
  gap: 12px;
}

.legal-content h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1;
}

.legal-content h2 {
  margin: 18px 0 0;
  font-size: 1.25rem;
}

.legal-content p,
.legal-content li {
  color: #344054;
  line-height: 1.55;
}

.last-update {
  margin-top: 0;
  color: var(--muted);
  font-weight: 600;
}

.feedback-page {
  display: grid;
  gap: 18px;
}

.feedback-hero {
  background:
    linear-gradient(135deg, rgba(33, 191, 115, 0.14), rgba(255, 200, 87, 0.18)),
    white;
}

.feedback-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1;
}

.feedback-hero p:last-child {
  max-width: 680px;
  color: #344054;
  font-size: 1.08rem;
}

.feedback-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.feedback-card ul {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
  padding-left: 20px;
  color: #344054;
  line-height: 1.45;
}

.inline-flash {
  width: 100%;
  margin: 0;
}

.modal-open {
  overflow: hidden;
}

.feedback-send-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(23, 32, 51, 0.42);
  backdrop-filter: blur(10px);
}

.feedback-send-card {
  width: min(430px, 100%);
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(33, 191, 115, 0.12), rgba(255, 200, 87, 0.16)),
    var(--paper);
  box-shadow: 0 28px 80px rgba(23, 32, 51, 0.24);
  animation: feedback-modal-in 180ms ease-out both;
}

.feedback-send-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
}

.feedback-send-card .eyebrow,
.feedback-send-card h2,
.feedback-send-card p {
  margin: 0;
}

.feedback-send-card h2 {
  font-size: 1.45rem;
  line-height: 1.08;
}

.feedback-send-step {
  min-height: 1.35em;
  color: #344054;
  font-weight: 700;
}

.feedback-send-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.09);
}

.feedback-send-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  transition: width 360ms ease;
}

.feedback-send-note {
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes feedback-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: center;
    flex-direction: column;
    gap: 8px;
  }

  .top-nav {
    justify-content: center;
  }

  .brand img {
    width: 112px;
  }

  .brand-wordmark {
    width: 198px;
    height: 54px;
    margin-top: -18px;
  }

  .brand > .brand-wordmark {
    width: 226px;
    height: 62px;
    margin-top: -27px;
  }

  .hero,
  .explain-hero,
  .grid-3,
  .plans,
  .stats-grid,
  .dashboard-shell,
  .practical-section,
  .home-explainer,
  .explain-note {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: 6px;
  }

  .explain-hero {
    margin-top: 6px;
  }

  .explain-image-wrap {
    max-width: 680px;
    justify-self: center;
  }

  .home-explainer,
  .explain-note {
    justify-items: center;
    padding: 28px;
    text-align: center;
  }

  .explain-steps,
  .sharing-options {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    border-radius: 24px;
  }

  .mini-card {
    min-height: 360px;
  }

  .dash-nav {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .dash-nav a {
    white-space: nowrap;
  }

  .footer-main,
  .footer-link-block,
  .footer-bottom,
  .feedback-grid {
    grid-template-columns: 1fr;
    display: grid;
    justify-items: center;
  }

  .footer-links {
    justify-content: center;
  }

  .split,
  .campaign,
  .profile-link-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .compact-upgrade {
    align-items: stretch;
    flex-direction: column;
  }

  .total-pix-grid {
    grid-template-columns: 1fr;
  }

  .support-extra .split,
  .embed-card .pix-result {
    grid-template-columns: 1fr;
  }

  .embed-card .value-row {
    grid-template-columns: repeat(3, minmax(52px, 1fr));
    display: grid;
  }

  .embed-card .qr-panel {
    grid-row: auto;
    width: 176px;
  }

  .embed-card .qr-img {
    width: 152px;
    height: 152px;
  }
}

@media (max-width: 520px) {
  .site-main {
    width: calc(100% - 12px);
  }

  .home-explainer,
  .explain-note,
  .explain-cta {
    padding: 22px;
  }

  .explain-hero {
    width: min(100% - 20px, 1120px);
  }

  .top-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    font-size: 0.92rem;
    width: 100%;
    min-height: 0;
    gap: 4px;
    padding: 8px;
    overflow: visible;
  }

  .top-nav-primary,
  .top-nav-secondary {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .top-nav-primary {
    justify-content: center;
  }

  .top-nav-secondary {
    justify-content: center;
    margin-top: 2px;
    padding-top: 5px;
    border-top: 1px solid rgba(23, 32, 51, 0.12);
  }

  .top-nav-divider {
    display: none;
  }

  .top-nav a,
  .top-nav .button.small {
    min-width: max-content;
    min-height: 46px;
    padding: 9px 12px;
  }

  .top-nav-account-name {
    max-width: 120px;
  }

  .top-nav .top-nav-mobile-logout {
    background: #fff1f2;
    color: #be123c;
  }

  .top-nav .top-nav-mobile-logout:hover {
    background: #ffe4e6;
    color: #9f1239;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .section,
  .site-header,
  .site-footer {
    width: min(100% - 20px, 1120px);
  }

  .public-profile-header {
    width: min(620px, calc(100% - 20px));
  }

  .public-profile-header .brand {
    margin-bottom: 0;
    transform: translateY(18px);
  }

  .public-page .site-main {
    padding-top: 10px;
  }

  .public-page .public-wrap {
    margin-top: -12px;
  }

  .support-card,
  .panel,
  .plan-card {
    border-radius: 18px;
    padding: 16px;
  }

  .creator-head {
    grid-template-columns: 62px 1fr;
  }

  .embed-wrap .creator-head {
    grid-template-columns: 82px 58px minmax(0, 1fr);
    gap: 8px;
  }

  .embed-site-mark {
    margin: -18px 0 -4px -24px;
  }

  .embed-site-mark img {
    width: 78px;
    height: 78px;
    border-radius: 17px;
  }

  .embed-site-mark .brand-wordmark {
    width: 106px;
    height: 30px;
    margin-top: -17px;
  }

  .avatar {
    width: 62px;
    min-width: 62px;
    max-width: 62px;
    height: 62px;
  }

  .value-row,
  .actions-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .embed-card .value-row {
    grid-template-columns: repeat(3, minmax(48px, 1fr));
  }

  .support-money-row .value-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qr-img {
    width: 210px;
    height: 210px;
  }

  .qr-panel {
    width: 234px;
  }
}

@media (max-width: 900px) {
  .theme-editor-grid {
    grid-template-columns: 1fr;
  }

  .theme-preview-shell {
    position: static;
  }
}

@media (max-width: 640px) {
  .theme-editor-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .theme-options,
  .support-wall-grid {
    grid-template-columns: 1fr;
  }

  .theme-option span {
    min-height: 0;
  }

  .theme-preview-shell {
    padding: 10px;
  }
}
