/* ajustes.css */
html,
body {
  overflow-x: hidden;
}

:root {
  --bg: #111315;
  --panel: #1a1d20;
  --panel-2: #22272b;
  --panel-3: #15181a;
  --text: #f5f1e8;
  --muted: #aaa29a;
  --line: #343a40;
  --accent: #d7a84f;
  --accent-soft: rgba(215, 168, 79, 0.14);
  --green: #49c27f;
  --red: #f06b61;
  --blue: #6ea8fe;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(215, 168, 79, 0.10), transparent 32%),
    radial-gradient(circle at top right, rgba(110, 168, 254, 0.10), transparent 28%),
    var(--bg);
}

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

button {
  cursor: pointer;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
  min-height: 100vh;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(26, 29, 32, 0.92);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.page-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.header-copy {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  font-weight: 900;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: .95;
}

.btn-primary {
  background: var(--accent);
  color: #17120a;
}

.btn-secondary {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-danger-soft {
  background: rgba(240, 107, 97, 0.12);
  color: #ffd8d4;
  border: 1px solid rgba(240, 107, 97, 0.28);
}

.btn-whatsapp-connect {
  background: #25d366;
  color: #062315;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .52;
  transform: none;
}

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

.settings-sidebar {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(26, 29, 32, 0.92);
}

.sidebar-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  text-align: left;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.sidebar-item i {
  width: 18px;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transform: translateX(2px);
}

.sidebar-item.active {
  background: rgba(215, 168, 79, 0.12);
  border-color: rgba(215, 168, 79, 0.22);
  color: var(--accent);
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.settings-panel {
  display: none;
}

.settings-panel.active {
  display: block;
  animation: fade .22s ease;
}

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

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

.settings-card {
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(26, 29, 32, 0.92);
  box-shadow: var(--shadow);
}

.card-header {
  margin-bottom: 22px;
}

.card-header.split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.card-header h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.card-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.current-plan-label {
  flex-shrink: 0;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(215, 168, 79, 0.12);
  color: var(--accent);
  border: 1px solid rgba(215, 168, 79, 0.22);
  font-size: 0.78rem;
  font-weight: 900;
}

.billing-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.billing-summary > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.billing-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.billing-summary strong {
  color: var(--text);
  font-size: 0.95rem;
}

.settings-grid,
.automation-grid {
  display: grid;
  gap: 18px;
}

.whatsapp-connect-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(73, 194, 127, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 211, 102, 0.11), rgba(255, 255, 255, 0.02)),
    var(--panel-2);
}

.whatsapp-connect-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.whatsapp-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: rgba(37, 211, 102, 0.16);
  color: #39e782;
  font-size: 1.85rem;
}

.whatsapp-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.whatsapp-title-row h3 {
  margin: 0;
  font-size: 1.08rem;
}

.whatsapp-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(215, 168, 79, 0.24);
  background: rgba(215, 168, 79, 0.12);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.whatsapp-status-badge.connected {
  border-color: rgba(73, 194, 127, 0.28);
  background: rgba(73, 194, 127, 0.14);
  color: #75e2a6;
}

.whatsapp-status-badge.error {
  border-color: rgba(240, 107, 97, 0.28);
  background: rgba(240, 107, 97, 0.14);
  color: #ffafa8;
}

.whatsapp-connect-card p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.whatsapp-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
  margin-top: 16px;
}

.whatsapp-meta span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(17, 19, 21, 0.45);
}

.whatsapp-meta small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.whatsapp-meta strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: .9rem;
}

.whatsapp-actions {
  display: grid;
  gap: 10px;
  min-width: 190px;
}

.whatsapp-request-card {
  max-width: 880px;
}

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

.whatsapp-onboarding-steps article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(37, 211, 102, 0.16);
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.055);
}

.whatsapp-onboarding-steps span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.18);
  color: #51e88d;
  font-weight: 900;
}

.whatsapp-onboarding-steps strong {
  color: var(--text);
}

.whatsapp-onboarding-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.whatsapp-request-fields {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.whatsapp-request-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(215, 168, 79, 0.2);
  border-radius: 10px;
  background: rgba(215, 168, 79, 0.08);
  color: var(--muted);
  line-height: 1.45;
}

.whatsapp-request-note i {
  color: var(--accent);
  margin-top: 2px;
}

.input-group {
  display: grid;
  gap: 8px;
}

.input-group span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.input-group textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.input-group input::placeholder {
  color: #7e766f;
}

.readonly-field {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(245, 241, 232, 0.04);
  color: var(--text);
  font-weight: 900;
}

.field-hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(215, 168, 79, 0.14);
}

.toggle-card,
.automation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.toggle-card strong,
.automation-card h3 {
  display: block;
  margin: 0 0 6px;
}

.toggle-card p,
.automation-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

.automation-content {
  display: grid;
  gap: 16px;
}

.automation-field {
  display: grid;
  gap: 7px;
  max-width: 240px;
}

.automation-field span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.automation-field select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--text);
}

.automation-field select:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.switch {
  position: relative;
  width: 56px;
  height: 30px;
  flex-shrink: 0;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  transition: .18s ease;
}

.slider::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: .18s ease;
}

.switch input:checked + .slider {
  background: var(--accent);
}

.switch input:checked + .slider::before {
  transform: translateX(26px);
  background: #17120a;
}

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

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 168, 79, 0.28);
}

.pricing-card.current-plan {
  border-color: rgba(215, 168, 79, 0.42);
  background: linear-gradient(180deg, rgba(215, 168, 79, 0.10), rgba(255, 255, 255, 0.02));
}

.pricing-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.pricing-card strong {
  display: block;
  margin-bottom: 20px;
  font-size: 2.1rem;
}

.pricing-card strong small {
  color: var(--muted);
  font-size: .95rem;
}

.pricing-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
}

.pricing-card li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

.pricing-card button {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  border: none;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 900;
  transition: transform .18s ease, opacity .18s ease;
}

.pricing-card button:hover {
  transform: translateY(-2px);
  opacity: .94;
}

.pricing-card .upgrade-btn {
  background: var(--accent);
  color: #17120a;
}

.current-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: #17120a;
  font-size: .7rem;
  font-weight: 900;
}

.gallery-upload {
  display: flex;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.upload-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 50px 24px;
  border-radius: 8px;
  border: 2px dashed var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.upload-box i {
  font-size: 2.6rem;
  color: var(--accent);
}

.upload-box h3,
.upload-box p {
  margin: 0;
}

.upload-box p {
  color: var(--muted);
}

.gallery-status {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  font-weight: 750;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.gallery-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--panel-2);
}

.gallery-item footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
}

.gallery-item span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delete-gallery-btn {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(240, 107, 97, 0.28);
  border-radius: 8px;
  padding: 0 10px;
  color: #fff;
  background: rgba(240, 107, 97, 0.14);
  font-size: 0.78rem;
  font-weight: 900;
}

.delete-gallery-btn:hover {
  transform: translateY(-1px);
}

.domain-box {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(215, 168, 79, 0.18);
  background: rgba(215, 168, 79, 0.05);
}

.custom-domain-card {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(215, 168, 79, 0.26);
  background:
    linear-gradient(145deg, rgba(215, 168, 79, 0.12), rgba(17, 19, 21, 0.66)),
    rgba(17, 19, 21, 0.74);
}

.custom-domain-card.locked {
  border-color: var(--line);
  background: rgba(17, 19, 21, 0.55);
}

.custom-domain-card h3 {
  margin: 10px 0 6px;
  font-size: 1.08rem;
}

.custom-domain-card p {
  margin: 0;
  color: var(--muted);
}

.custom-domain-card input:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.domain-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.domain-check-row .btn {
  min-height: 48px;
  white-space: nowrap;
}

.domain-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 800;
}

.domain-status.available {
  color: #7ce7a3;
  background: rgba(124, 231, 163, 0.12);
}

.domain-status.taken,
.domain-status.error {
  color: #ff8179;
  background: rgba(255, 129, 121, 0.12);
}

.domain-status.pending {
  color: var(--accent);
  background: rgba(215, 168, 79, 0.14);
}

.premium-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  color: #17120a;
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.public-url-preview {
  display: grid;
  gap: 6px;
}

.public-url-preview small {
  color: var(--muted);
}

.public-url-preview strong {
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .domain-check-row {
    grid-template-columns: 1fr;
  }

  .domain-check-row .btn {
    width: 100%;
  }
}

.empty-state {
  padding: 18px;
  border-radius: 8px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(17, 19, 21, 0.55);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid rgba(215, 168, 79, 0.22);
  background: rgba(26, 29, 32, 0.98);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-sidebar {
    position: relative;
    top: 0;
  }

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

@media (max-width: 768px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .page-header,
  .card-header.split {
    flex-direction: column;
  }

  .header-actions,
  .header-actions .btn {
    width: 100%;
  }

  .automation-card,
  .toggle-card,
  .whatsapp-connect-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .whatsapp-connect-card {
    grid-template-columns: 1fr;
  }

  .whatsapp-actions,
  .whatsapp-actions .btn {
    width: 100%;
  }

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

@media (max-width: 520px) {
  .whatsapp-connect-main,
  .whatsapp-meta {
    grid-template-columns: 1fr;
  }

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

/*MODAL DE CARTÃO DE CRÉDITO*/

.modal {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: blur(3px);
}

.modal-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.modal-header h2,
.modal-header h3,
#subscriptionTitle {
  color: var(--text);
}

#subscriptionSubtitle {
  color: var(--muted);
}

.modal-header p {
  color: var(--muted);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 1.4rem;
}

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

.checkout-row.two {
  grid-template-columns: 130px 1fr;
}

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

.subscription-method {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.subscription-method.pix {
  cursor: pointer;
}

.subscription-method.pix:hover {
  border-color: #32bcad;
}

.subscription-method.active {
  border-color: var(--accent);
  background: rgba(219, 173, 84, 0.1);
  box-shadow: 0 0 0 1px rgba(219, 173, 84, 0.18);
}

.subscription-method.pix.active {
  border-color: #32bcad;
  background: rgba(50, 188, 173, 0.1);
  box-shadow: 0 0 0 1px rgba(50, 188, 173, 0.2);
}

.subscription-method:disabled {
  cursor: wait;
  opacity: 0.78;
}

.subscription-method.card i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(219, 173, 84, 0.12);
  color: var(--accent);
}

.subscription-method strong {
  display: block;
  font-size: 0.98rem;
}

.subscription-method small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.pix-brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(50, 188, 173, 0.12);
}

.pix-brand-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.subscription-pix-box {
  padding: 14px;
  border: 1px solid rgba(50, 188, 173, 0.42);
  border-radius: 8px;
  background: rgba(50, 188, 173, 0.08);
}

.subscription-pix-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: start;
}

.subscription-qr-frame {
  display: grid;
  place-items: center;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.subscription-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.subscription-pix-copy {
  display: grid;
  gap: 10px;
}

.subscription-pix-copy strong {
  color: var(--text);
}

.subscription-pix-copy textarea {
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 12px;
  font: inherit;
}

.subscription-pix-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.subscription-card-fields {
  display: grid;
  gap: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 620px) {
  .whatsapp-onboarding-steps {
    grid-template-columns: 1fr;
  }

  .whatsapp-request-card {
    max-width: calc(100vw - 20px);
  }

  .checkout-row,
  .checkout-row.two {
    grid-template-columns: 1fr;
  }

  .subscription-methods,
  .subscription-pix-grid {
    grid-template-columns: 1fr;
  }

  .subscription-qr-frame {
    width: min(100%, 220px);
    justify-self: center;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }
}
