:root {
  color-scheme: light;
  --ink: #101010;
  --muted: #646464;
  --line: #050505;
  --paper: #ffffff;
  --soft: #f4f4f2;
  --service: #f2c94c;
  --service-soft: #fff7d6;
  --pro: #2f80ed;
  --pro-soft: #eaf3ff;
  --shadow: 0 12px 34px rgba(16, 16, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

button,
input,
textarea {
  font: inherit;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 340px) minmax(220px, auto);
  gap: 12px;
  align-items: center;
  padding: 10px clamp(14px, 2.5vw, 34px);
  border-bottom: 2px solid var(--ink);
  background: var(--soft);
}

.auth-copy {
  min-width: 0;
}

.auth-title {
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  font-weight: 900;
  line-height: 1;
}

#auth-status {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.25;
}

.auth-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.auth-form button {
  white-space: nowrap;
}

.auth-verified {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.auth-verified span,
.verified-contact span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-verified strong,
.verified-contact strong {
  overflow-wrap: anywhere;
}

.is-hidden {
  display: none !important;
}

.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  background: var(--paper);
}

.column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 22px clamp(14px, 2.6vw, 38px) 18px;
}

.pros-column {
  border-left: 2px solid var(--line);
}

.column-header {
  max-width: 620px;
}

.right-header {
  margin-left: auto;
  text-align: right;
}

.kicker {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.7vw, 3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.feed {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 2px 4px 10px;
}

.post {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  max-width: 660px;
  animation: rise 180ms ease-out;
}

.pros-column .post {
  grid-template-columns: minmax(0, 1fr) 34px;
  margin-left: auto;
}

.pros-column .post .avatar {
  grid-column: 2;
  grid-row: 1;
}

.pros-column .post .bubble {
  grid-column: 1;
  grid-row: 1;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 34px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--service);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pros-column .avatar {
  background: var(--pro);
  color: #ffffff;
}

.bubble {
  position: relative;
  padding: 10px 12px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 6px 6px 6px 2px;
  background: var(--service-soft);
  box-shadow: 3px 3px 0 var(--ink);
}

.pros-column .bubble {
  border-radius: 6px 6px 2px 6px;
  background: var(--pro-soft);
  box-shadow: -3px 3px 0 var(--ink);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
  margin-bottom: 5px;
}

.post-meta strong {
  min-width: 0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.post-meta a {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.post-meta a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.post-message {
  margin: 0 0 7px;
  font-size: 0.9rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

time {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.composer {
  order: 3;
  display: grid;
  gap: 8px;
  width: min(100%, 740px);
  padding: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(16, 16, 16, 0.08);
}

.pros-column .composer {
  margin-left: auto;
}

.composer-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr) minmax(0, 0.9fr);
  gap: 8px;
}

label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

label span,
.verified-contact span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.verified-contact {
  display: grid;
  gap: 4px;
  min-width: 0;
  align-content: end;
}

.verified-contact strong {
  display: flex;
  min-height: 34px;
  align-items: center;
  padding: 0 9px;
  border: 1.5px solid #bdbdbd;
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.88rem;
}

.payment-note {
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--soft);
}

.payment-note span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-note strong {
  font-size: 0.9rem;
}

.payment-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1.5px solid #bdbdbd;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

input {
  height: 34px;
  padding: 0 9px;
}

textarea {
  min-height: 52px;
  max-height: 120px;
  padding: 8px 9px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(16, 16, 16, 0.12);
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.composer-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

button {
  min-height: 36px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  padding: 0 12px;
  font-size: 0.9rem;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

button:hover {
  box-shadow: 3px 3px 0 rgba(16, 16, 16, 0.32);
  transform: translate(-1px, -1px);
}

button:disabled:hover {
  box-shadow: none;
  transform: none;
}

button:active {
  box-shadow: none;
  transform: translate(0, 0);
}

.ghost-button {
  background: transparent;
  color: var(--ink);
}

.pix-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 16, 16, 0.38);
}

.pix-card {
  width: min(760px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.pix-card-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 2px solid var(--ink);
}

.pix-card h2 {
  font-size: 1.55rem;
}

.pix-content {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
}

#pix-qr-image {
  width: 220px;
  height: 220px;
  border: 1.5px solid #bdbdbd;
  border-radius: 6px;
  background: var(--soft);
  object-fit: contain;
}

.pix-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

#pix-payload {
  min-height: 116px;
  resize: none;
}

.pix-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pix-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 800;
  padding: 0 16px;
  text-decoration: none;
}

#pix-status {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 9px clamp(14px, 2.5vw, 34px);
  border-top: 2px solid var(--ink);
  background: var(--paper);
}

.site-footer .kicker {
  margin-bottom: 5px;
}

.site-footer strong {
  overflow-wrap: anywhere;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .auth-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

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

  .auth-verified {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
  }

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

  .pros-column {
    border-top: 2px solid var(--line);
    border-left: 0;
  }

  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

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

  #pix-qr-image {
    justify-self: center;
  }

  .right-header,
  .pros-column .composer,
  .pros-column .post {
    margin-left: 0;
    text-align: left;
  }

  .pros-column .post {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .pros-column .post .avatar,
  .pros-column .post .bubble {
    grid-column: auto;
    grid-row: auto;
  }

  .pros-column .bubble {
    border-radius: 6px 6px 6px 2px;
    box-shadow: 3px 3px 0 var(--ink);
  }
}

@media (max-width: 560px) {
  .column {
    padding: 18px 12px 14px;
  }

  h1,
  h2 {
    font-size: 1.8rem;
  }

  .composer-fields {
    grid-template-columns: 1fr;
  }

  .composer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
