:root {
  --gh-bg: #3c4452;
  --gh-bg-deep: #303744;
  --gh-panel: #39414f;
  --gh-field: #353b49;
  --gh-line: #525c6b;
  --gh-line-soft: rgba(255, 255, 255, .09);
  --gh-text: #f5f7fa;
  --gh-muted: #b6bec9;
  --gh-muted-2: #8993a1;
  --gh-blue: #55a7ff;
  --gh-blue-strong: #2f8de9;
  --gh-green: #76b47f;
  --gh-danger: #e86c6c;
  --gh-success: #91c99a;
  --gh-shadow: 0 28px 70px rgba(15, 20, 28, .3);
  --gh-shell: 1180px;
}

* { box-sizing: border-box; }

body.checkout-page,
body.account-page {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(135deg, var(--gh-bg) 0%, #363e4b 54%, var(--gh-bg-deep) 100%);
  background-size: 54px 54px, 54px 54px, auto;
  color: var(--gh-text);
  font-family: "Segoe UI", Arial, sans-serif;
}

.flow-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 74px;
  background: rgba(48, 55, 68, .97);
  border-bottom: 1px solid var(--gh-line-soft);
  box-shadow: 0 12px 30px rgba(15, 20, 28, .16);
  backdrop-filter: blur(14px);
}

.flow-shell {
  width: min(calc(100% - 40px), var(--gh-shell));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.flow-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gh-text);
  text-decoration: none;
}

.flow-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.flow-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flow-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.flow-brand-copy strong { font-size: 15px; }
.flow-brand-copy small {
  margin-top: 4px;
  color: var(--gh-muted-2);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.flow-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.flow-nav a {
  color: var(--gh-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.flow-nav a:hover,
.flow-nav a:focus-visible { color: var(--gh-text); }

.flow-nav .flow-primary-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--gh-blue-strong);
  background: var(--gh-blue-strong);
  color: #fff;
  font-weight: 600;
}

.flow-nav .flow-primary-link:hover { background: var(--gh-blue); }

.flow-footer {
  width: min(calc(100% - 40px), var(--gh-shell));
  margin: 28px auto 0;
  padding: 28px 0 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--gh-line-soft);
  color: var(--gh-muted-2);
  font-size: 11px;
}

.flow-footer a { color: var(--gh-muted); text-decoration: none; }
.flow-footer a:hover { color: var(--gh-text); }
.flow-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* Checkout: mantém a estrutura e o JavaScript existente. */
body.checkout-page {
  --bg: var(--gh-bg);
  --bg-2: var(--gh-bg-deep);
  --surface: var(--gh-panel);
  --surface-2: var(--gh-panel);
  --card: var(--gh-panel);
  --line: var(--gh-line-soft);
  --line-strong: rgba(85, 167, 255, .32);
  --text: var(--gh-text);
  --text-soft: #d3d8df;
  --muted: var(--gh-muted);
  --muted-2: var(--gh-muted-2);
  --green: var(--gh-green);
  --green-bright: var(--gh-blue);
  --green-bright-2: var(--gh-blue-strong);
  --green-soft: #b7c9af;
  --danger: var(--gh-danger);
  --success: var(--gh-success);
  font-family: "Segoe UI", Arial, sans-serif;
}

.checkout-page .page {
  max-width: 1180px;
  padding: 116px 20px 38px;
}

.checkout-page .topbar { display: none; }

.checkout-page .hero,
.checkout-page .section,
.checkout-page .demo-card,
.checkout-page .plan-card,
.checkout-page .form-panel,
.checkout-page .mini-card,
.checkout-page .faq-item,
.checkout-page .plan-highlight,
.checkout-page .selected-plan-info,
.checkout-page .form-input,
.checkout-page .badge,
.checkout-page .mini-links a,
.checkout-page .ghost-btn,
.checkout-page .btn {
  border-radius: 0;
}

.checkout-page .hero,
.checkout-page .section {
  background: var(--gh-panel);
  border-color: var(--gh-line);
  box-shadow: var(--gh-shadow);
}

.checkout-page .hero {
  margin-bottom: 20px;
  padding: 36px 34px;
  background:
    linear-gradient(135deg, rgba(85, 167, 255, .08), transparent 43%),
    var(--gh-panel);
}

.checkout-page .hero h2 {
  max-width: 960px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.checkout-page .hero h2 span { color: var(--gh-blue); text-shadow: none; }
.checkout-page .hero-kicker {
  margin-bottom: 13px;
  color: var(--gh-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.checkout-page .hero-copyline {
  max-width: 720px;
  margin-top: 18px;
  color: var(--gh-muted);
  font-size: 15px;
  line-height: 1.75;
}

.checkout-page .section { margin-top: 20px; padding: 30px; }
.checkout-page .page > .section:not([id]) { display: none; }
.checkout-page .section-title h3,
.checkout-page .panel-title,
.checkout-page .plan-name,
.checkout-page .mini-card h4 { color: var(--gh-text); }
.checkout-page .section-title h3 { font-size: 31px; }

.checkout-page .plan-card,
.checkout-page .form-panel,
.checkout-page .mini-card,
.checkout-page .faq-item {
  background: var(--gh-field);
  border-color: var(--gh-line);
}

.checkout-page .plan-card:hover,
.checkout-page .plan-card.selected {
  border-color: var(--gh-blue);
  background: #3b4655;
  box-shadow: inset 0 0 0 1px rgba(85, 167, 255, .2);
}

.checkout-page .plan-card.selected::after {
  border-radius: 0;
  background-color: var(--gh-blue);
  box-shadow: none;
}

.checkout-page .badge {
  background: #414b59;
  border-color: var(--gh-line);
  color: #d7dde4;
  box-shadow: none;
}

.checkout-page .plan-price { color: var(--gh-blue); text-shadow: none; }
.checkout-page .plan-features li::before {
  border-radius: 0;
  border-color: rgba(118, 180, 127, .45);
  background-color: rgba(118, 180, 127, .12);
  box-shadow: none;
}

.checkout-page .form-input {
  border-color: var(--gh-line);
  background: #303744;
  font-family: "Segoe UI", Arial, sans-serif;
}

.checkout-page .form-input:focus {
  border-color: var(--gh-blue);
  background: #303744;
  box-shadow: inset 0 0 0 1px rgba(85, 167, 255, .18);
}

.checkout-page .selected-plan-info {
  background: rgba(85, 167, 255, .07);
  border-color: rgba(85, 167, 255, .3);
}

.checkout-page .btn {
  background: var(--gh-blue-strong);
  color: #fff;
  box-shadow: none;
  font-family: "Segoe UI", Arial, sans-serif;
}

.checkout-page .btn:hover:not(:disabled) {
  background: var(--gh-blue);
  box-shadow: none;
}

.checkout-page .mini-links a {
  background: #414b59;
  border-color: var(--gh-line);
  color: var(--gh-text);
  box-shadow: none;
}

.checkout-page .mini-links a:hover {
  border-color: var(--gh-blue);
  background: rgba(85, 167, 255, .08);
  box-shadow: none;
}

.checkout-page .faq-item summary::after { color: var(--gh-blue); text-shadow: none; }
.checkout-page .footer-note { display: none; }

/* Ativação e cancelamento. */
body.account-page {
  display: block;
  padding: 0;
}

.account-main {
  width: min(calc(100% - 40px), 1040px);
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 124px 0 42px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 36px;
}

.account-context {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  background: var(--gh-bg-deep);
  border: 1px solid var(--gh-line);
  box-shadow: var(--gh-shadow);
}

.account-step {
  margin-bottom: 25px;
  color: var(--gh-green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.account-context h2 {
  margin: 0 0 16px;
  color: var(--gh-text);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.account-context p {
  margin: 0;
  color: var(--gh-muted);
  font-size: 14px;
  line-height: 1.75;
}

.account-points {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--gh-line-soft);
  list-style: none;
}

.account-points li {
  color: #c7cdd5;
  font-size: 12px;
}

.account-points li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 10px 2px 0;
  background: var(--gh-green);
}

.account-page .card {
  max-width: none;
  margin: 0;
  padding: 36px 32px;
  background: var(--gh-panel);
  border: 1px solid var(--gh-line);
  border-radius: 0;
  box-shadow: var(--gh-shadow);
}

.account-page .card h1 { color: var(--gh-text); font-size: 27px; }
.account-page .subtitle { color: var(--gh-muted); }
.account-page .label { color: #d7dce3; }
.account-page .input {
  color: var(--gh-text);
  background: var(--gh-field);
  border: 1px solid var(--gh-line);
  border-radius: 0;
}

.account-page .input::placeholder { color: var(--gh-muted-2); }
.account-page .input:focus {
  border-color: var(--gh-blue);
  background: var(--gh-field);
  box-shadow: inset 0 0 0 1px rgba(85, 167, 255, .18);
}

.account-page .note { color: var(--gh-muted-2); }
.account-page .box {
  background: var(--gh-field);
  border-color: var(--gh-line);
  border-radius: 0;
  color: #d0d6dd;
}

.account-page .btn {
  border-radius: 0;
  background: var(--gh-blue-strong);
  box-shadow: none;
}

.account-page .btn:hover:not(:disabled),
.account-page .btn-dark:hover:not(:disabled) { background: var(--gh-blue); }
.account-page .btn-dark { background: var(--gh-blue-strong); }
.account-page .btn-danger { background: #b84949; }
.account-page .btn-danger:hover:not(:disabled) { background: var(--gh-danger); }
.account-page .msg-error { color: #ff9c9c; }
.account-page .msg-success { color: var(--gh-success); }

.account-back {
  display: inline-flex;
  margin-top: 20px;
  color: var(--gh-muted);
  font-size: 12px;
  text-decoration: none;
}

.account-back:hover { color: var(--gh-text); }

@media (max-width: 800px) {
  .flow-header { height: auto; min-height: 74px; }
  .flow-shell { padding: 12px 0; }
  .flow-nav { gap: 12px; }
  .flow-nav a:not(.flow-primary-link) { display: none; }
  .account-main { grid-template-columns: 1fr; padding-top: 106px; }
  .account-context { padding: 30px 26px; }
  .checkout-page .page { padding-top: 102px; }
  .checkout-page .section { padding: 24px 18px; }
  .flow-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .flow-shell,
  .flow-footer,
  .account-main { width: min(calc(100% - 28px), var(--gh-shell)); }
  .flow-brand-copy small { display: none; }
  .flow-nav .flow-primary-link { padding: 0 12px; font-size: 12px; }
  .account-page .card { padding: 28px 22px; }
  .account-context { padding: 28px 22px; }
}

/* ==========================================================
   STUDIOBOARD — IDENTIDADE VISUAL INICIAL (v1)
   Extensão para Minha assinatura e fluxos auxiliares.
   ========================================================== */
:root {
  --gh-bg: #353d49;
  --gh-bg-deep: #29313d;
  --gh-panel: #37404d;
  --gh-field: #303844;
  --gh-line: #505b6a;
  --gh-line-soft: rgba(255, 255, 255, .085);
  --gh-text: #f7f8fb;
  --gh-muted: #bcc4cf;
  --gh-muted-2: #8f9aa8;
  --gh-blue: #4db9ff;
  --gh-blue-strong: #167fff;
  --gh-brand-cyan: #00c7ff;
  --gh-brand-blue: #1687ff;
  --gh-brand-indigo: #4057ff;
  --gh-brand-violet: #8a2cff;
  --gh-brand-gradient: linear-gradient(110deg, var(--gh-brand-cyan) 0%, var(--gh-brand-blue) 34%, var(--gh-brand-indigo) 63%, var(--gh-brand-violet) 100%);
  --gh-brand-glow: 0 14px 38px rgba(41, 104, 255, .22);
}

body.checkout-page,
body.account-page {
  background:
    radial-gradient(circle at 84% 8%, rgba(116, 43, 255, .085), transparent 29%),
    radial-gradient(circle at 12% 76%, rgba(0, 190, 255, .055), transparent 30%),
    linear-gradient(rgba(91, 131, 184, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 131, 184, .025) 1px, transparent 1px),
    linear-gradient(135deg, var(--gh-bg) 0%, #333b48 54%, var(--gh-bg-deep) 100%);
  background-size: auto, auto, 54px 54px, 54px 54px, auto;
}

::selection { background: rgba(67, 83, 255, .38); color: #fff; }

.flow-header {
  background: rgba(38, 45, 57, .96);
  border-bottom-color: rgba(111, 128, 151, .24);
  box-shadow: 0 14px 34px rgba(8, 12, 20, .22);
}

.flow-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--gh-brand-gradient);
  opacity: .9;
}

.flow-brand-copy strong { color: #fff; }
.flow-brand-copy small { color: #8fa7c6; }
.flow-brand-mark { position: relative; }
.flow-brand-mark img { filter: drop-shadow(0 0 8px rgba(22, 135, 255, .18)); }

@supports ((-webkit-mask: url("studioboard-logo.png")) or (mask: url("studioboard-logo.png"))) {
  .flow-brand-mark::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gh-brand-gradient);
    -webkit-mask: url("studioboard-logo.png") center / contain no-repeat;
    mask: url("studioboard-logo.png") center / contain no-repeat;
    filter: drop-shadow(0 0 8px rgba(49, 104, 255, .32));
  }

  .flow-brand-mark img { opacity: 0; }
}

.flow-nav a {
  position: relative;
  transition: color .18s ease;
}

.flow-nav a:not(.flow-primary-link)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--gh-brand-gradient);
  transition: right .18s ease;
}

.flow-nav a:not(.flow-primary-link):hover::after,
.flow-nav a:not(.flow-primary-link):focus-visible::after { right: 0; }

.flow-nav .flow-primary-link,
.account-page .btn:not(.btn-danger) {
  border-color: #337dff;
  background: var(--gh-brand-gradient);
  box-shadow: 0 10px 24px rgba(35, 92, 238, .18);
}

.flow-nav .flow-primary-link:hover,
.account-page .btn:not(.btn-danger):hover:not(:disabled),
.account-page .btn-dark:hover:not(:disabled) {
  border-color: #66b8ff;
  background: linear-gradient(110deg, #21d3ff 0%, #258dff 34%, #5165ff 65%, #9a3aff 100%);
  box-shadow: 0 13px 30px rgba(57, 83, 255, .24);
}

.account-main {
  position: relative;
  isolation: isolate;
}

.account-main::before,
.account-main::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}

.account-main::before {
  width: 430px;
  height: 430px;
  left: -235px;
  top: 150px;
  background: radial-gradient(circle, rgba(0, 199, 255, .075), transparent 68%);
}

.account-main::after {
  width: 470px;
  height: 470px;
  right: -250px;
  top: 55px;
  background: radial-gradient(circle, rgba(125, 45, 255, .085), transparent 68%);
}

.account-context,
.account-page .card {
  position: relative;
  overflow: hidden;
  border-color: #59697c;
  box-shadow: 0 26px 64px rgba(11, 16, 27, .26);
}

.account-context::before,
.account-page .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--gh-brand-gradient);
}

.account-context {
  background:
    radial-gradient(circle at 20% 13%, rgba(0, 199, 255, .075), transparent 34%),
    linear-gradient(145deg, #303946 0%, #2b333f 100%);
}

.account-context::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -145px;
  bottom: -145px;
  border: 1px solid rgba(105, 70, 255, .2);
  border-radius: 50%;
  box-shadow: 0 0 52px rgba(74, 66, 255, .05);
}

.account-step {
  color: #63c7ff;
  text-shadow: 0 0 16px rgba(22, 135, 255, .2);
}

.account-context h2::after {
  content: "";
  display: block;
  width: 68px;
  height: 3px;
  margin-top: 22px;
  background: var(--gh-brand-gradient);
  box-shadow: 0 0 18px rgba(42, 118, 255, .3);
}

.account-points li::before {
  background: #55bdff;
  box-shadow: 0 0 7px rgba(22, 135, 255, .3);
}

.account-page .card {
  background:
    radial-gradient(circle at 100% 0%, rgba(121, 45, 255, .055), transparent 31%),
    #37414e;
}

.account-page .card h1 {
  letter-spacing: -.03em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

.account-page .input {
  background: #303844;
  border-color: #556172;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.account-page .input:hover { border-color: #667489; }
.account-page .input:focus {
  border-color: #4daeff;
  background: #303844;
  box-shadow: 0 0 0 2px rgba(43, 116, 255, .13), 0 0 22px rgba(76, 65, 255, .055);
}

.account-page .forgot-link { color: #65beff; }
.account-page .forgot-link:hover { color: #93d1ff; }

.account-page .status-chip {
  border: 1px solid rgba(75, 191, 255, .35);
  background: linear-gradient(110deg, rgba(0, 199, 255, .10), rgba(112, 44, 255, .08));
  color: #d8efff;
  border-radius: 0;
}

.account-page .summary-item {
  background: #303844;
  border-color: #526071;
  border-radius: 0;
}

.account-page .summary-item small { color: #8fa7c6; }
.account-page .summary-item strong { color: var(--gh-text); }
.account-page .account-back { color: #aac6e6; }
.account-page .account-back:hover { color: #75c8ff; }

.flow-footer {
  border-top-color: rgba(111, 128, 151, .22);
}

.flow-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--gh-brand-gradient);
  opacity: .32;
}

.flow-footer { position: relative; }
.flow-footer a:hover { color: #75c8ff; }

@media (max-width: 800px) {
  .account-main::before,
  .account-main::after { opacity: .65; }
}


/* StudioBoard — logo oficial e assinatura visual */
.flow-brand-mark {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  overflow: hidden;
  background: #02050e;
  border: 1px solid rgba(78, 137, 255, .38);
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(40, 83, 255, .14);
}
.flow-brand-mark::before { display: none !important; }
.flow-brand-mark img {
  opacity: 1 !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
.flow-brand-copy strong {
  display: inline-flex;
  font-size: 16px;
  letter-spacing: -.025em;
}
.flow-brand-copy .brand-studio { color: #fff; }
.flow-brand-copy .brand-board {
  color: transparent;
  background: var(--gh-brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
}
.flow-brand-copy small { color: #9ba9bd; letter-spacing: .16em; }

@media (max-width: 640px) {
  .flow-brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .flow-brand-copy strong { font-size: 15px; }
}


/* StudioBoard v7 — logo oficial circular, sem fundo quadrado. */
.flow-brand-mark {
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(40, 83, 255, .16);
}
.flow-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
