:root {
  --ink: #172033;
  --muted: #6d7380;
  --paper: #faf8f4;
  --surface: #ffffff;
  --line: #ebe7df;
  --accent: #f18d3b;
  --accent-dark: #d96d22;
  --accent-pale: #fff0e2;
  --shadow: 0 24px 70px rgba(42, 30, 18, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-shell { min-height: 100vh; overflow: hidden; }
.topbar {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.03em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: var(--ink);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: -0.08em;
  transform: rotate(-5deg);
}
.brand-name { font-size: 16px; }
.topnav { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 14px; font-weight: 500; }
.topnav a { transition: color 160ms ease, transform 160ms ease; }
.topnav a:hover { color: var(--ink); transform: translateY(-1px); }
.nav-pill { padding: 11px 17px; border-radius: 999px; color: var(--ink); background: var(--surface); box-shadow: 0 4px 16px rgba(30, 30, 30, .06); }

main { width: min(960px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 68px; }
.profile-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.cover-art { position: relative; height: 172px; overflow: hidden; background: linear-gradient(110deg, #f3a56a 0%, #efa05e 42%, #f8c48f 100%); }
.cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 34%; filter: saturate(.9) brightness(.82); }
.cover-art::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(21, 28, 43, .3), rgba(241, 141, 59, .04) 62%, rgba(21, 28, 43, .16)); }
.cover-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 10%, rgba(255, 255, 255, .22) 40%, transparent 72%); }
.cover-orb { position: absolute; z-index: 2; display: block; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; }
.cover-orb-one { width: 260px; height: 260px; right: -42px; top: -150px; box-shadow: 0 0 0 26px rgba(255,255,255,.08), 0 0 0 52px rgba(255,255,255,.06); }
.cover-orb-two { width: 130px; height: 130px; left: 11%; top: 75px; border-color: rgba(96, 57, 28, .15); }
.cover-line { position: absolute; width: 55%; height: 1px; left: -3%; bottom: 23px; background: rgba(255,255,255,.45); transform: rotate(-13deg); }
.profile-content { padding: 0 52px 36px; }
.profile-heading { display: flex; align-items: flex-end; gap: 20px; margin-top: -48px; position: relative; }
.avatar {
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 6px solid var(--surface);
  border-radius: 36px;
  background: radial-gradient(circle at 30% 22%, #fde0c4 0 12%, transparent 13%), linear-gradient(135deg, #28334c 0%, #7d879a 54%, #f09a52 55% 100%);
  color: #fff;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.08em;
	box-shadow: 0 12px 22px rgba(49, 35, 20, .16);
	overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.eyebrow { margin-bottom: 7px; color: var(--accent-dark); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
h1, h2, h3, p { margin: 0; }
h1 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: clamp(26px, 4vw, 38px); line-height: 1.04; letter-spacing: -0.055em; }
.verified { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; vertical-align: 5px; color: white; background: #4c92d0; font-size: 12px; letter-spacing: 0; }
.handle { margin-top: 8px; color: var(--muted); font-size: 14px; }
.bio { max-width: 640px; margin: 28px 0 18px; color: #4e5666; font-size: 16px; line-height: 1.6; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 20px; color: #858b94; font-size: 12px; font-weight: 600; }
.profile-meta span { display: inline-flex; align-items: center; gap: 7px; }
.meta-dot { width: 7px; height: 7px; border-radius: 50%; background: #6db78b; box-shadow: 0 0 0 4px #e4f3e8; }

.subscription-section { width: min(760px, 100%); margin: 76px auto 0; }
.section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.section-intro h2 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: clamp(28px, 4vw, 42px); line-height: 1; letter-spacing: -0.06em; }
.section-intro > p { max-width: 280px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.plan-card { padding: 32px; border: 1px solid #eadfd5; border-radius: 26px; background: var(--surface); box-shadow: 0 16px 45px rgba(47, 32, 20, .07); }
.plan-card-top, .plan-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.plan-label { display: inline-flex; align-items: center; gap: 9px; color: var(--accent-dark); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.plan-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: #fff; background: var(--accent); font-size: 15px; }
.plan-badge { padding: 7px 10px; border-radius: 999px; color: var(--accent-dark); background: var(--accent-pale); font-size: 11px; font-weight: 700; }
.plan-main { margin: 28px 0 25px; align-items: flex-end; }
.plan-main h3 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 28px; letter-spacing: -0.06em; }
.plan-main p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.price { color: var(--ink); font-family: ui-sans-serif, system-ui, sans-serif; font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -0.07em; white-space: nowrap; }
.price span { margin-right: 2px; color: var(--muted); font-size: .48em; font-weight: 700; letter-spacing: -0.02em; vertical-align: 7px; }
.plan-divider { height: 1px; background: var(--line); }
.benefits { display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 22px 0 26px; margin: 0; list-style: none; color: #596171; font-size: 13px; }
.benefits li { display: inline-flex; align-items: center; gap: 8px; }
.check { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #3c8b60; background: #e7f5ea; font-size: 11px; font-weight: 800; }
.subscribe-button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 17px 18px 17px 22px; border: 0; border-radius: 14px; color: #fff; background: var(--accent); cursor: pointer; font-weight: 700; box-shadow: 0 10px 18px rgba(226, 117, 42, .2); transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.subscribe-button:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 14px 24px rgba(226, 117, 42, .25); }
.subscribe-button:focus-visible { outline: 3px solid rgba(76, 146, 208, .5); outline-offset: 3px; }
.button-arrow { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 17px; }
.secure-note { margin-top: 15px; color: #9a9da4; font-size: 11px; text-align: center; }
.secure-note span { margin-right: 4px; color: var(--accent); font-size: 15px; vertical-align: -1px; }
.action-feedback { min-height: 20px; margin-top: 12px; color: #3b8b5f; font-size: 13px; font-weight: 700; text-align: center; }
.footer { width: min(960px, calc(100% - 40px)); display: flex; justify-content: space-between; margin: 0 auto; padding: 20px 0 34px; color: #9a9da4; font-size: 11px; text-transform: uppercase; letter-spacing: .13em; }

@media (max-width: 680px) {
  .topbar, main, .footer { width: min(100% - 28px, 960px); }
  .topbar { height: 72px; }
  .brand-name { font-size: 14px; }
  .topnav { gap: 13px; font-size: 12px; }
  .nav-pill { padding: 9px 13px; }
  main { padding-top: 20px; }
  .profile-hero { border-radius: 23px; }
  .cover-art { height: 128px; }
  .profile-content { padding: 0 22px 26px; }
  .profile-heading { gap: 14px; margin-top: -36px; }
  .avatar { width: 84px; height: 84px; border-width: 4px; border-radius: 27px; font-size: 21px; }
  h1 { font-size: 25px; }
  .verified { width: 17px; height: 17px; font-size: 10px; vertical-align: 4px; }
  .handle { margin-top: 5px; font-size: 12px; }
  .bio { margin-top: 22px; font-size: 14px; line-height: 1.55; }
  .profile-meta { gap: 10px 15px; font-size: 11px; }
  .subscription-section { margin-top: 55px; }
  .section-intro { display: block; }
  .section-intro h2 { font-size: 34px; }
  .section-intro > p { max-width: 330px; margin-top: 12px; }
  .plan-card { padding: 23px 18px 20px; border-radius: 21px; }
  .plan-main { margin: 23px 0 20px; }
  .plan-main h3 { font-size: 24px; }
  .price { font-size: 34px; }
  .benefits { display: grid; gap: 10px; padding: 18px 0 22px; }
  .footer { padding-top: 14px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

body.modal-open { overflow: hidden; }
.checkout-modal[hidden], .pix-panel[hidden], .checkout-error[hidden], .private-access-link[hidden], .upsell-panel[hidden] { display: none; }
.checkout-modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(18, 24, 39, .72); }
@supports (backdrop-filter: blur(8px)) {
  .modal-backdrop { background: rgba(18, 24, 39, .62); backdrop-filter: blur(6px); }
}
.checkout-dialog { position: relative; z-index: 1; width: min(510px, 100%); max-height: min(760px, calc(100vh - 36px)); overflow-y: auto; padding: 30px; border: 1px solid rgba(255,255,255,.7); border-radius: 26px; background: #fffdf9; box-shadow: 0 25px 85px rgba(17, 25, 43, .24); }
.modal-close { position: absolute; top: 17px; right: 18px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #7a7f8b; background: #f3f0ea; cursor: pointer; font-size: 24px; line-height: 1; }
.checkout-header { display: flex; align-items: flex-start; gap: 14px; padding-right: 30px; }
.checkout-shield { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; color: #fff; background: #60a977; font-weight: 800; box-shadow: 0 6px 13px rgba(96,169,119,.22); }
.checkout-header h2 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 30px; letter-spacing: -.06em; }
.checkout-subtitle { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.checkout-form { display: grid; gap: 14px; margin-top: 25px; }
.checkout-form label { display: grid; gap: 7px; color: #4e5666; font-size: 12px; font-weight: 700; }
.checkout-form input:not([type="checkbox"]) { width: 100%; padding: 13px 14px; border: 1px solid #e5e0d8; border-radius: 12px; outline: none; color: var(--ink); background: #fff; font: inherit; font-size: 14px; font-weight: 500; transition: border-color 150ms ease, box-shadow 150ms ease; }
.checkout-form input:not([type="checkbox"]):focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(241, 141, 59, .14); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.optional { color: #a4a7ae; font-size: 10px; font-weight: 500; }
.consent { display: flex !important; grid-template-columns: none !important; grid-template-rows: none !important; flex-direction: row; align-items: flex-start; gap: 9px !important; color: #7c818b !important; font-size: 11px !important; font-weight: 500 !important; line-height: 1.4; }
.consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.checkout-submit, .upsell-button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 17px 15px 20px; border: 0; border-radius: 13px; color: #fff; background: var(--accent); cursor: pointer; font-weight: 800; box-shadow: 0 9px 18px rgba(226,117,42,.18); transition: background 160ms ease, transform 160ms ease; }
.checkout-submit:hover, .upsell-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.checkout-submit:disabled, .upsell-button:disabled { opacity: .65; cursor: wait; transform: none; }
.checkout-legal { color: #989ba2; font-size: 10px; text-align: center; }
.checkout-legal span { color: var(--accent); font-size: 16px; vertical-align: -2px; }
.checkout-error { padding: 11px 13px; border: 1px solid #f0c4c0; border-radius: 11px; color: #ad4c46; background: #fff2f0; font-size: 12px; line-height: 1.4; }
.pix-panel { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.pix-status-dot { width: 10px; height: 10px; margin-bottom: 12px; border-radius: 50%; background: #f3aa45; box-shadow: 0 0 0 5px #fff0dd; }
.pix-panel h3 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 23px; line-height: 1.1; letter-spacing: -.05em; }
.pix-instruction { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pix-code-row { display: flex; gap: 8px; margin-top: 17px; }
.pix-code-row input { min-width: 0; flex: 1; padding: 12px; border: 1px solid #e3ddd4; border-radius: 10px; color: #4a5362; background: #f7f4ef; font: 12px monospace; }
.pix-code-row button { flex: 0 0 auto; padding: 0 14px; border: 1px solid #eadfd5; border-radius: 10px; color: var(--accent-dark); background: #fff; cursor: pointer; font-size: 12px; font-weight: 800; }
.pix-code-row button:disabled { opacity: .5; cursor: not-allowed; }
.pix-wait { margin-top: 15px; color: #8e939c; font-size: 12px; }
.private-access-link { display: block; margin-top: 15px; color: #3c8b60; font-size: 13px; font-weight: 800; }
.upsell-panel { margin-top: 22px; padding: 18px; border: 1px solid #f2d9bd; border-radius: 16px; background: #fff5ea; }
.upsell-tag { color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.upsell-panel h4 { margin: 8px 0 5px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 19px; letter-spacing: -.04em; }
.upsell-panel p { color: #737986; font-size: 12px; line-height: 1.45; }
.upsell-button { margin-top: 14px; padding: 12px 14px; font-size: 12px; }
.upsell-feedback { min-height: 16px; margin-top: 9px; color: #3c8b60 !important; font-size: 11px !important; }
@media (max-width: 520px) {
  .checkout-modal { padding: 10px; }
  .checkout-dialog { padding: 24px 18px 22px; border-radius: 21px; }
  .checkout-header h2 { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
}
