:root{
  --pm-purple:#6b21a8;      /* roxo identidade */
  --pm-purple-600:#5b1b91;
  --pm-purple-700:#4c177a;
  --pm-lilac:#ede9fe;
  --pm-bg:#f7f7fb;
  --pm-text:#0f172a;
  --pm-muted:#6b7280;
  --pm-card:#ffffff;
  --pm-border:#e5e7eb;
  --pm-green:#16a34a;
  --pm-orange:#f59e0b;
  --radius:18px;
  --shadow:0 10px 30px rgba(17,24,39,.06);
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--pm-bg);color:var(--pm-text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
a{color:inherit}
.wrap{max-width:1100px;margin:0 auto;padding:28px 20px 60px}
/* Header */
.brand{
  display:flex;align-items:center;gap:14px;margin-bottom:18px
}
.logo{
  width:180px;height:50px;background:
    url('https://plugar.me/wp-content/uploads/2023/07/LOGO-COMPLETA-ESCURA-e1715731360237.png') no-repeat center/contain;
  filter: saturate(1.05) drop-shadow(0 1px 0 rgba(0,0,0,.03));
}
.badge{
  font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:#fff;background:linear-gradient(90deg,var(--pm-purple),var(--pm-purple-700));
  padding:8px 12px;border-radius:999px;
}
.hero{
  display:flex;justify-content:space-between;align-items:center;gap:20px;
  background:linear-gradient(180deg,#faf8ff,transparent);
  border:1px solid var(--pm-border);border-radius:24px;padding:22px 22px 22px 22px;margin-bottom:22px
}
.hero h1{
  font-size:28px;line-height:1.15;margin:0 0 6px;font-weight:800;color:#1f2437;
}
.hero p{margin:0;color:var(--pm-muted)}
.hero .stats{display:flex;gap:18px;margin-top:10px;flex-wrap:wrap}
.pill{background:#fff;border:1px solid var(--pm-border);border-radius:999px;padding:8px 12px;font-size:12px;color:#374151}
.steps{
  display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:26px 0;
}
.step-dot{
  height:6px;border-radius:999px;background:#e9e9ef;position:relative;overflow:hidden;
}
.step-dot.active{background:var(--pm-purple)}
.step-dot.done{background:linear-gradient(90deg,var(--pm-purple),#9f67ff)}
/* Card container */
.card{
  background:var(--pm-card);border:1px solid var(--pm-border);
  border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;margin-bottom:18px;
}
.card h2{margin:0 0 14px;font-size:18px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media (max-width:900px){.grid-2,.grid-3{grid-template-columns:1fr}}
label{font-size:13px;font-weight:600;color:#374151;margin-bottom:6px;display:block}
input{
  width:100%;padding:12px 14px;border:1px solid var(--pm-border);border-radius:14px;
  background:#fff;font-size:14px;outline:0;transition:border .15s, box-shadow .15s;
}
select{
  width:100%;padding:12px 14px;border:1px solid var(--pm-border);border-radius:14px;
  background:#fff;font-size:14px;outline:0;transition:border .15s, box-shadow .15s;
  cursor:pointer;
  /* Mantém funcionalidade nativa em mobile, customiza apenas visual */
  -webkit-appearance:menulist;
  -moz-appearance:menulist;
  appearance:auto;
}
select:hover{
  border-color:#9ca3af;
}
select:focus{
  border-color:#c4a2ff;
  box-shadow:0 0 0 4px #ede9fe;
}
/* Estilo customizado apenas para desktop */
@media (min-width: 601px) {
  select {
    -webkit-appearance:none;
    -moz-appearance:none;
    appearance:none;
    background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat:no-repeat;
    background-position:right 12px center;
    background-size:16px;
    padding-right:40px;
  }
  select:focus {
    background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b21a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  }
}
textarea{
  width:100%;padding:12px 14px;border:1px solid var(--pm-border);border-radius:14px;
  background:#fff;font-size:14px;outline:0;transition:border .15s, box-shadow .15s;
  min-height:80px;resize:vertical;font-family:inherit;line-height:1.4;
}
.input-with-icon{
  position:relative;display:block;
}
.input-icon{
  position:absolute;left:14px;top:50%;transform:translateY(-50%);
  z-index:2;font-size:16px;color:var(--pm-muted);pointer-events:none;
  display:flex;align-items:center;justify-content:center;
  width:16px;height:16px;
}
.input-with-icon input{
  padding-left:42px;
}
input:focus,select:focus,textarea:focus{border-color:#c4a2ff;box-shadow:0 0 0 4px #ede9fe}
.input-with-icon:focus-within .input-icon{
  color:var(--pm-purple);
}
.actions{display:flex;justify-content:space-between;gap:12px;margin-top:10px}
.btn{
  appearance:none;border:0;border-radius:14px;padding:12px 18px;font-weight:700;cursor:pointer;
  background:#111827;color:#fff;
}
.btn.primary{background:linear-gradient(90deg,var(--pm-purple),var(--pm-purple-700))}
.btn.secondary{background:#fff;color:#111827;border:1px solid var(--pm-border)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.full-width{width:100%;font-size:16px;padding:16px 24px}
.primary-action{margin-top:16px}
.secondary-action{margin-top:8px;text-align:center}
.secondary-action .btn{width:100%;font-size:16px;padding:16px 24px}
.progress{
  height:8px;background:#eceaf6;border-radius:999px;overflow:hidden;margin:14px 0 4px
}
.progress>span{display:block;height:100%;width:0;background:linear-gradient(90deg,#9d4edd,var(--pm-purple));
  transition:width .25s ease}
.muted{color:var(--pm-muted);font-size:13px}
/* Selectable cards */
.select-list{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media (max-width:1100px){.select-list{grid-template-columns:repeat(2,1fr)}}
@media (max-width:700px){.select-list{grid-template-columns:1fr}}
@media (max-width:600px){
  .logo{width:140px;height:40px}
  .item{padding:12px;gap:12px}
  .item img{width:64px;height:44px}
}
.item{
  border:1px solid var(--pm-border);background:#fff;border-radius:16px;padding:16px;display:flex;gap:16px;align-items:flex-start;cursor:pointer;position:relative;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  min-height:110px;
}
.item:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(23,23,23,.05)}
.item.selected{border-color:#c4a2ff;box-shadow:0 0 0 4px #eee9ff}
.item img{width:80px;height:56px;border-radius:6px;object-fit:cover;border:1px solid #eee;background:#fff}
.item .content{flex:1;display:flex;flex-direction:column;justify-content:center}
.item .title{font-weight:800}
.tag{
  font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;background:#f4f3ff;color:#5b21b6;border:1px solid #e8e3ff;border-radius:999px;padding:4px 8px
}
.price{font-size:12px;color:#334155;margin-top:6px}
.right{margin-left:auto;text-align:right;align-self:flex-start;margin-top:4px}
.skeleton{background:linear-gradient(90deg,#f2f2f7 25%,#ecebf7 37%,#f2f2f7 63%);background-size:400% 100%;animation:skeleton 1.2s ease infinite;border-radius:14px;height:92px}
@keyframes skeleton{0%{background-position:100% 50%}100%{background-position:0 50%}}
@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
.error{color:#b91c1c;background:#fee2e2;border:1px solid #fecaca;padding:8px 10px;border-radius:10px;font-size:13px;margin-top:8px;display:none}
.success{color:#065f46;background:#d1fae5;border:1px solid #a7f3d0;padding:10px;border-radius:10px;font-size:14px;margin-top:12px;display:none}
/* Summary */
.summary{display:block}
.footer-note{font-size:12px;color:#475569;margin-top:10px}

/* Checkout Summary Styles */
.checkout-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--pm-lilac);
}

.checkout-header h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--pm-text);
}

.checkout-subtitle {
  margin: 0;
  color: var(--pm-muted);
  font-size: 14px;
}

.checkout-summary {
  margin-bottom: 24px;
}

.summary-section {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.summary-section:hover {
  background: #f8f9fa;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--pm-purple), var(--pm-purple-700));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.section-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--pm-text);
}

.summary-content {
  background: white;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.checkout-total {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 2px solid var(--pm-lilac);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.total-line.final {
  border-bottom: none;
  padding-top: 12px;
  font-weight: 700;
}

.total-label {
  font-size: 14px;
  color: var(--pm-muted);
}

.total-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--pm-text);
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(107, 33, 168, 0.3);
}

.checkout-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px;
}

.btn-icon {
  font-size: 18px;
}

.checkout-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid #a7f3d0;
}

.security-icon {
  font-size: 14px;
}

/* Summary content styling */
.summary-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.summary-tag {
  background: #ecfdf5;
  color: #065f46;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #a7f3d0;
}

.summary-description {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.summary-pricing {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-item {
  font-size: 13px;
  color: #374151;
}

/* Checkout Pricing Section */
.checkout-pricing {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.pricing-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--pm-text);
}

.pricing-breakdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.pricing-item:hover {
  background: #fafafa;
  border-color: var(--pm-purple);
  transform: translateY(-1px);
}

.pricing-item.recurring {
  background: linear-gradient(135deg, #fef7ff, #faf5ff);
  border-color: var(--pm-lilac);
}

.pricing-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.pricing-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--pm-purple);
}

.pricing-note {
  text-align: center;
  margin-top: 12px;
}

.pricing-note small {
  color: #6b7280;
  font-size: 12px;
  font-style: italic;
}

/* Integration Flow Styles */
.integration-flow {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.integration-item {
  flex: 1;
  text-align: center;
  background: white;
  border: 2px solid #f3f4f6;
  border-radius: 12px;
  padding: 16px 12px;
  transition: all 0.2s ease;
}

.integration-item:hover {
  border-color: var(--pm-lilac);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 33, 168, 0.1);
}

.integration-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.integration-title strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--pm-text);
}

.integration-description {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.3;
  margin-bottom: 8px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.integration-type {
  background: linear-gradient(135deg, var(--pm-lilac), #f3f4f6);
  color: var(--pm-purple);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 20px;
  display: inline-block;
}

.integration-connector {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin: 0 8px;
}

.connector-line {
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--pm-purple), #9f67ff);
  border-radius: 1px;
}

.connector-icon {
  background: linear-gradient(135deg, var(--pm-purple), var(--pm-purple-700));
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(107, 33, 168, 0.3);
}

@media (max-width: 600px) {
  select {
    font-size: 16px;
    padding: 14px 14px;
    min-height: 48px;
    /* Mantém aparência nativa no mobile para compatibilidade */
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: auto !important;
    background-image: none !important;
  }

  .checkout-header h2 {
    font-size: 20px;
  }

  .section-header {
    gap: 8px;
  }

  .section-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .section-header h3 {
    font-size: 14px;
  }

  .checkout-pricing {
    padding: 16px;
    margin-bottom: 16px;
  }

  .pricing-header h3 {
    font-size: 16px;
  }

  .pricing-item {
    padding: 12px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .pricing-value {
    font-size: 20px;
  }

  .integration-flow {
    flex-direction: column;
    gap: 12px;
  }

  .integration-connector {
    transform: rotate(90deg);
    margin: 8px 0;
  }

  .integration-item {
    padding: 12px;
  }

  .integration-title strong {
    font-size: 13px;
  }

  .integration-description {
    font-size: 11px;
    min-height: 24px;
  }
}

/* Success Page Styles */
.success-content {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  margin-bottom: 24px;
}

.success-message {
  margin-bottom: 32px;
  text-align: left;
}

.success-message h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--pm-text);
  margin-bottom: 16px;
  text-align: center;
}

.success-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.success-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.success-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 33, 168, 0.1);
}

.step-number {
  background: linear-gradient(135deg, var(--pm-purple), var(--pm-purple-700));
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--pm-text);
  margin-bottom: 4px;
}

.step-content p {
  margin: 0;
  font-size: 13px;
  color: var(--pm-muted);
  line-height: 1.4;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  border: none !important;
  transition: all 0.2s ease;
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #128c7e, #075e54) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

@media (max-width: 600px) {
  .success-steps {
    gap: 16px;
  }

  .success-step {
    padding: 12px;
    gap: 12px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .step-content strong {
    font-size: 13px;
  }

  .step-content p {
    font-size: 12px;
  }
}

/* Payment Page Styles */
.payment-summary {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 2px solid var(--pm-lilac);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.payment-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
}

.payment-label {
  color: var(--pm-text);
}

.payment-amount {
  color: var(--pm-purple);
  font-size: 24px;
}

.payment-recurring {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.payment-amount-recurring {
  color: var(--pm-green);
  font-size: 18px;
  font-weight: 700;
}

.payment-note {
  margin-top: 12px;
  text-align: center;
}

.payment-note small {
  color: var(--pm-muted);
  font-size: 11px;
  font-style: italic;
}

.payment-methods {
  margin-bottom: 24px;
}

.payment-methods h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--pm-text);
  margin-bottom: 16px;
}

.payment-options {
  display: grid;
  gap: 12px;
}

.payment-option {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.payment-option:hover {
  border-color: var(--pm-lilac);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 33, 168, 0.1);
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-option input[type="radio"]:checked + label {
  background: linear-gradient(135deg, var(--pm-lilac), #f3f4f6);
  border-color: var(--pm-purple);
}

.payment-option label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.payment-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.payment-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--pm-text);
  margin-bottom: 4px;
}

.payment-info p {
  margin: 0;
  font-size: 12px;
  color: var(--pm-muted);
}

.card-details, .boleto-details {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.card-details h3, .boleto-details h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--pm-text);
  margin-bottom: 16px;
}

.boleto-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.boleto-info ul {
  margin: 8px 0 0;
  padding-left: 16px;
}

.boleto-info li {
  font-size: 13px;
  color: var(--pm-muted);
  margin-bottom: 4px;
  line-height: 1.4;
}

.payment-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.payment-security {
  text-align: center;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .payment-total {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .payment-recurring {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .payment-amount {
    font-size: 20px;
  }

  .payment-amount-recurring {
    font-size: 16px;
  }

  .payment-option label {
    padding: 12px;
    gap: 12px;
  }

  .payment-icon {
    font-size: 20px;
  }

  .card-details, .boleto-details {
    padding: 16px;
  }

  .boleto-info {
    flex-direction: column;
    gap: 8px;
  }
}
