:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --primary: #10b981;
  --primary-dark: #059669;
  --blue: #1e3a8a;
  --border: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: #334155;
}

.nav a:hover {
  color: var(--primary-dark);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  min-height: 390px;
  border-radius: 28px;
  background-image: url('/assets/img/home-hero.svg');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-content {
  padding: 56px;
  max-width: 690px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #d1fae5;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1;
  letter-spacing: -2px;
}

.hero p {
  margin: 20px 0 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.55;
  color: #e5e7eb;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.section-title h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -1px;
}

.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.product-thumb {
  height: 128px;
  border-radius: 18px;
  background: linear-gradient(135deg, #dbeafe, #dcfce7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 18px;
}

.product-card h3 {
  margin: 0;
  font-size: 19px;
}

.product-card p {
  color: var(--muted);
  line-height: 1.45;
  min-height: 62px;
}

.price {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.card-actions {
  display: grid;
  gap: 10px;
}

.card-actions .btn {
  width: 100%;
  border-radius: 14px;
}

.btn-disabled {
  background: #e5e7eb;
  color: #64748b;
  cursor: not-allowed;
}

.trust {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-item strong {
  display: block;
  margin-bottom: 8px;
}

.trust-item span {
  color: var(--muted);
  line-height: 1.45;
}

.footer {
  background: #111827;
  color: #e5e7eb;
  margin-top: 60px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}

.footer h4 {
  margin: 0 0 12px;
  color: #ffffff;
}

.footer p,
.footer a {
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 440px;
    border-radius: 22px;
  }

  .hero-content {
    padding: 34px 24px;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

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

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Ajuste V1.1 do banner principal */
.hero {
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 760px;
}

@media (max-width: 720px) {
  .hero {
    background-position: center right;
  }
}

.empty-state {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  color: var(--muted);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.product-thumb-image {
  background-size: cover;
  background-position: center;
}

.product-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: stretch;
  margin-top: 32px;
}

.product-detail-visual,
.product-detail-info {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.product-detail-visual {
  padding: 22px;
}

.product-detail-image {
  min-height: 360px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
}

.product-detail-placeholder {
  background: linear-gradient(135deg, #dbeafe, #dcfce7);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  font-size: 28px;
  font-weight: 900;
  color: var(--blue);
}

.product-detail-info {
  padding: 34px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--primary-dark);
  font-weight: 800;
}

.product-detail-info h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -1.5px;
  margin: 0;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.product-description {
  margin-top: 22px;
  color: #334155;
  line-height: 1.65;
}

.plans-title {
  margin-top: 42px;
}

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

.plan-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.plan-duration {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 14px;
}

.plan-card h3 {
  margin: 0;
  font-size: 22px;
}

.plan-card p {
  color: var(--muted);
  line-height: 1.5;
  min-height: 52px;
}

.plan-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-dark);
  margin: 18px 0;
}

.plan-card .btn {
  width: 100%;
  border-radius: 14px;
}

@media (max-width: 920px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

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

.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
  margin-top: 32px;
}

.checkout-card,
.checkout-success {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.checkout-card h1,
.checkout-success h1 {
  margin-top: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -1px;
}

.checkout-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 800;
}

.checkout-form input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 14px;
  font-size: 16px;
  color: var(--text);
}

.checkout-form input:focus {
  outline: 2px solid rgba(16, 185, 129, 0.22);
  border-color: var(--primary);
}

.checkout-form .btn {
  border-radius: 14px;
  margin-top: 8px;
}

.checkout-summary {
  position: sticky;
  top: 100px;
}

.muted {
  color: var(--muted);
  line-height: 1.5;
}

.success-badge {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--primary-dark);
  font-weight: 900;
  margin-bottom: 16px;
}

.order-summary {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  line-height: 1.8;
  margin: 22px 0;
}

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

  .checkout-summary {
    position: static;
  }
}

.admin-login {
  max-width: 520px;
  margin: 40px auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.admin-alert {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 14px;
  margin: 18px 0;
  font-weight: 800;
}

.admin-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-title h1 {
  margin: 0;
  font-size: 38px;
  letter-spacing: -1px;
}

.admin-title p {
  color: var(--muted);
  margin: 8px 0 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-stat {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.admin-stat span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.admin-stat strong {
  font-size: 30px;
}

.admin-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.admin-card h2 {
  margin-top: 0;
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  color: #334155;
  background: #f8fafc;
}

@media (max-width: 960px) {
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }
}

.admin-login {
  max-width: 520px;
  margin: 40px auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.admin-alert {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 14px;
  margin: 18px 0;
  font-weight: 800;
}

.admin-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-title h1 {
  margin: 0;
  font-size: 38px;
  letter-spacing: -1px;
}

.admin-title p {
  color: var(--muted);
  margin: 8px 0 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-stat {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.admin-stat span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.admin-stat strong {
  font-size: 30px;
}

.admin-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.admin-card h2 {
  margin-top: 0;
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  color: #334155;
  background: #f8fafc;
}

@media (max-width: 960px) {
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }
}

.admin-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  padding: 14px;
  margin: 18px 0;
  font-weight: 800;
}

.admin-separator {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}

.checkout-form textarea,
.checkout-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 16px;
  color: var(--text);
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

.checkout-form textarea:focus,
.checkout-form select:focus {
  outline: 2px solid rgba(16, 185, 129, 0.22);
  border-color: var(--primary);
}

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

.checkbox-line {
  display: flex !important;
  grid-template-columns: auto 1fr !important;
  align-items: center;
  gap: 10px !important;
  font-weight: 800;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
}

.checkbox-line-adjust {
  align-self: end;
  min-height: 48px;
  padding-top: 24px;
}

@media (max-width: 760px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .checkbox-line-adjust {
    padding-top: 0;
  }
}
