:root {
  --ink: #fff7eb;
  --paper: #111113;
  --panel: #1b191c;
  --line: #332e2a;
  --topbar: rgba(14, 14, 16, 0.94);
  --control: #242126;
  --hero-overlay-a: rgba(8, 8, 10, 0.96);
  --hero-overlay-b: rgba(8, 8, 10, 0.48);
  --hero-glow: rgba(53, 185, 230, 0.18);
  --hero-text: #ffffff;
  --hero-copy: #f9ecdc;
  --hero-mark-bg: rgba(255, 255, 255, 0.04);
  --hero-mark-border: rgba(53, 185, 230, 0.28);
  --blue: #35b9e6;
  --red: #ef4960;
  --warm: #c88a4a;
  --muted: #c5b8aa;
  --ok: #22a06b;
  --danger: #d43b4d;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

html[data-theme="light"] {
  --ink: #17161a;
  --paper: #fffaf2;
  --panel: #ffffff;
  --line: #eadfcf;
  --topbar: rgba(255, 250, 242, 0.94);
  --control: #ffffff;
  --hero-overlay-a: rgba(23, 22, 26, 0.9);
  --hero-overlay-b: rgba(23, 22, 26, 0.52);
  --hero-glow: rgba(53, 185, 230, 0.12);
  --hero-text: #17161a;
  --hero-copy: #4f463e;
  --hero-mark-bg: rgba(255, 255, 255, 0.76);
  --hero-mark-border: rgba(53, 185, 230, 0.3);
  --warm: #f2b06f;
  --muted: #706a62;
  --ok: #157a4a;
  --danger: #b42335;
  --shadow: 0 18px 45px rgba(20, 17, 12, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(53, 185, 230, 0.1), transparent 26rem),
    radial-gradient(circle at 85% 8%, rgba(239, 73, 96, 0.07), transparent 22rem),
    linear-gradient(180deg, #171519 0%, var(--paper) 36rem);
  font-family: "Space Grotesk", "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  text-rendering: geometricPrecision;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(53, 185, 230, 0.14), transparent 24rem),
    linear-gradient(180deg, #fff7eb 0%, var(--paper) 34rem);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: rgba(53, 185, 230, 0.32);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: var(--topbar);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img,
.footer img {
  width: 72px;
  height: 46px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  border: 1px solid rgba(53, 185, 230, 0.28);
  background: #fffaf2;
  padding: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.brand span,
.footer div {
  display: grid;
  gap: 3px;
}

.brand strong,
.footer strong {
  font-size: 16px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

.brand small {
  line-height: 1;
}

.brand small,
.version-pill,
.footer span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.main-nav a,
.theme-toggle,
.btn,
.ghost,
.danger,
.slot,
.tab {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.main-nav a,
.theme-toggle,
.ghost,
.tab {
  background: var(--control);
  color: var(--ink);
  border: 1px solid var(--line);
}

html[data-theme="light"] .ghost,
html[data-theme="light"] .main-nav a,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .tab {
  background: rgba(255, 255, 255, 0.72);
  border-color: #e4d4bf;
}

.main-nav a:hover,
.theme-toggle:hover,
.ghost:hover,
.tab:hover,
.card:hover {
  border-color: rgba(53, 185, 230, 0.72);
}

.main-nav a:hover,
.theme-toggle:hover,
.ghost:hover,
.tab:hover,
.btn:hover {
  transform: translateY(-1px);
}

.theme-toggle {
  gap: 8px;
}

.btn {
  background: linear-gradient(135deg, var(--red), #ad2436);
  color: #fff;
  box-shadow: 0 14px 30px rgba(239, 73, 96, 0.25);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-110%);
  transition: transform 260ms ease;
}

.btn:hover::after {
  transform: translateX(110%);
}

html[data-theme="light"] .btn {
  box-shadow: 0 14px 30px rgba(180, 47, 62, 0.18);
}

.danger {
  background: var(--danger);
  color: #fff;
}

.hero {
  min-height: min(640px, calc(100vh - 74px));
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(260px, 420px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 6vw, 76px);
  padding: clamp(28px, 5vw, 64px);
  background-image:
    linear-gradient(90deg, var(--hero-overlay-a), var(--hero-overlay-b)),
    radial-gradient(circle at 78% 48%, var(--hero-glow), transparent 20rem);
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: auto, auto;
  color: var(--hero-text);
}

html[data-theme="light"] .hero {
  background-image:
    linear-gradient(90deg, rgba(255, 250, 242, 0.96), rgba(239, 226, 207, 0.9)),
    radial-gradient(circle at 78% 48%, var(--hero-glow), transparent 20rem);
  border-bottom: 1px solid var(--line);
}

.hero-content {
  max-width: 620px;
  position: relative;
}

.hero-mark {
  width: min(34vw, 380px);
  justify-self: end;
  border-radius: 8px;
  border: 1px solid var(--hero-mark-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), var(--hero-mark-bg);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  padding: clamp(12px, 2vw, 22px);
}

html[data-theme="light"] .hero-mark {
  box-shadow: 0 28px 70px rgba(44, 35, 24, 0.18);
}

.hero-mark img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.hero h1 {
  margin: 14px 0 12px;
  max-width: 600px;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero p {
  max-width: 720px;
  color: var(--hero-copy);
  font-size: 17px;
  line-height: 1.6;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.section {
  padding: clamp(34px, 6vw, 76px) clamp(16px, 4vw, 48px);
}

.section h2 {
  position: relative;
  margin: 0 0 18px;
  padding-top: 14px;
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase;
  line-height: 1;
  text-wrap: balance;
}

.section h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card,
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--red));
  opacity: 0.62;
}

.card {
  padding: 18px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.card > * {
  position: relative;
}

button.card {
  width: 100%;
  min-height: 146px;
  background:
    linear-gradient(180deg, rgba(53, 185, 230, 0.08), rgba(255, 255, 255, 0.015)),
    var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  display: grid;
  align-content: center;
  gap: 10px;
  text-align: center;
}

button.card h3,
button.card p {
  margin: 0;
}

button.card strong {
  color: #fff7eb;
}

html[data-theme="light"] button.card strong {
  color: var(--ink);
}

.card:hover {
  transform: translateY(-2px);
}

.card h3,
.panel h3 {
  margin: 0 0 8px;
}

.professional-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0e0e10;
}

.gallery-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0e0e10;
}

.settings-logo-preview {
  display: block;
  width: min(280px, 100%);
  max-height: 180px;
  object-fit: contain;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fffaf2;
}

.professional-option {
  text-align: left;
  align-items: stretch;
  display: grid;
  gap: 8px;
}

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

.price {
  font-size: 24px;
  font-weight: 900;
  color: var(--blue);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.panel {
  padding: 18px;
}

.stepper,
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.step,
.tab.active,
.slot.selected {
  background: linear-gradient(135deg, var(--blue), #1d7fa5);
  color: #062231;
  border-color: var(--blue);
}

.step {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(53, 185, 230, 0.16);
}

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

.service-form {
  margin-bottom: 18px;
}

.service-form + .grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--control);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(53, 185, 230, 0.14);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 86px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 72px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(53, 185, 230, 0.12);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle.active {
  background: rgba(53, 185, 230, 0.22);
  color: var(--blue);
}

.password-toggle svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  padding: 8px 0;
}

.link-button:hover {
  color: var(--red);
}

textarea {
  resize: vertical;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}

.slot {
  background: var(--control);
  border: 1px solid var(--line);
}

.slot[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.qr {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  margin: 12px auto;
  background:
    repeating-linear-gradient(45deg, #111 0 8px, #fff 8px 16px),
    repeating-linear-gradient(-45deg, transparent 0 12px, rgba(53, 185, 230, 0.45) 12px 20px);
  border: 10px solid #fff;
  box-shadow: inset 0 0 0 1px var(--ink), var(--shadow);
  font-weight: 900;
}

.pix-qr-image,
.pix-qr-preview {
  display: block;
  width: min(220px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 12px auto;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.pix-qr-preview {
  width: 150px;
  margin-inline: 0;
  box-shadow: none;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--control);
  font-size: 12px;
  font-weight: 900;
}

.status.ok {
  background: rgba(34, 160, 107, 0.17);
  color: var(--ok);
}

.status.bad {
  background: rgba(212, 59, 77, 0.17);
  color: var(--danger);
}

.footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 11;
  border-radius: 999px;
  background: var(--ok);
  color: #fff;
  padding: 12px 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .topbar,
  .layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    display: grid;
  }

  .brand img,
  .footer img {
    width: 66px;
    height: 42px;
  }

  .layout {
    display: grid;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 68vh;
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .hero-mark {
    width: min(78vw, 300px);
    justify-self: start;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .topbar {
    position: relative;
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    width: 100%;
    gap: 10px;
  }

  .brand img,
  .footer img {
    width: 58px;
    height: 38px;
  }

  .brand strong,
  .footer strong {
    font-size: 14px;
  }

  .brand small,
  .version-pill,
  .footer span {
    font-size: 11px;
  }

  .main-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .main-nav a,
  .theme-toggle {
    min-height: 38px;
    padding: 8px 6px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding: 34px 18px 42px;
    gap: 26px;
  }

  .hero-content {
    max-width: none;
  }

  .hero h1 {
    margin-top: 10px;
    font-size: 40px;
    line-height: 1.05;
  }

  .hero p,
  .lead {
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-mark {
    width: 100%;
    max-width: 320px;
    justify-self: center;
    padding: 12px;
  }

  .actions,
  .login-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .actions .btn,
  .actions .ghost,
  .actions .danger,
  .login-actions .btn,
  .login-actions .link-button {
    width: 100%;
  }

  .section {
    padding: 38px 16px;
  }

  .section h2 {
    font-size: 32px;
    line-height: 1.05;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card,
  .panel {
    padding: 16px;
  }

  .gallery-image {
    aspect-ratio: 4 / 3;
  }

  .professional-photo {
    aspect-ratio: 1 / 1;
  }

  .stepper,
  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step,
  .tab {
    width: 100%;
    min-height: 38px;
    font-size: 12px;
    padding: 8px 6px;
  }

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

  .summary-card {
    position: static;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    padding: 10px 13px;
    font-size: 13px;
  }

  .footer {
    align-items: flex-start;
    padding: 18px 16px;
  }
}

@media (max-width: 390px) {
  .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: 34px;
  }

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