:root {
  color-scheme: light;
  --bg-dark:#f6f7fb; --bg-main:#f6f7fb; --bg-card:#ffffff; --bg-card-hover:#ffffff; --bg-input:#ffffff;
  --primary:#244bff; --primary-hover:#1738ce; --primary-glow:#dfe6ff;
  --success:#137547; --text-main:#182230; --text-muted:#536174; --text-faint:#5e6c7d;
  --border:#dce2eb; --border-focus:#244bff; --surface:#ffffff; --surface-raised:#eef2f8;
  --radius-sm:8px; --radius-md:12px; --radius-lg:16px; --radius-full:9999px;
  --shadow-card:0 4px 16px #18223008; --shadow-glow:none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.hidden {
  display: none !important;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  background: var(--surface);
  background-attachment:scroll;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- HEADER --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;


  background:#ffffff;
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.35rem;
  font-weight: 700;
}

.logo-icon {
  font-size: 1.6rem;
}

.logo strong {
  color: var(--primary);
}

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

/* USER DROPDOWN */
.user-dropdown {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
}

.user-email-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.user-menu-identity { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.user-menu-identity .user-email-text { display: block; max-width: 100%; }
.admin-badge { color: #244bff; font-size: .57rem; font-weight: 800; letter-spacing: .04em; line-height: 1.3; }

.chevron {
  font-size: 0.65rem;
  color: var(--text-faint);
}

.user-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow:none;
  width: 200px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  z-index: 200;
}

.user-popover.hidden {
  display: none;
}

.user-popover a {
  display: block;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-main);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.user-popover a:hover {
  background: #f0f3f8;
}

.popover-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 6px 0;
}

.logout-link {
  color: #ef4444 !important;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color:var(--text-main);
  box-shadow:none;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: #f0f3f8;
  color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: #f0f3f8;
  border-color: #f0f3f8;
}

.btn-google {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid rgba(0,0,0,0.1);
  font-weight: 600;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  box-shadow:none;
}
.btn-google:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn:focus-visible, .modal-close:focus-visible { outline: 2px solid #244bff; outline-offset: 4px; }

/* --- HERO SECTION --- */
.hero {
  padding: 60px 0 40px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
}

.badge-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #244bff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--surface);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;

  box-shadow:none;
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-weight: 500;
}

/* --- CONTROLS & FILTERS --- */
.catalog-section {
  padding: 20px 20px 80px;
}

.controls-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
}

.search-box input {
  width: 100%;
  height: 52px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 45px 0 52px;
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.search-box input:focus {
  border-color: var(--border-focus);
  box-shadow:none;
}

.btn-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.tab-btn {
  background: #f0f3f8;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: #f0f3f8;
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--primary);
  color:var(--text-main);
  border-color: var(--primary);
  box-shadow:none;
}

/* --- GRID & CARDS --- */
.grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.results-count {
  font-size: 0.88rem;
  color: var(--text-faint);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.sub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:none;
  position: relative;
  overflow: hidden;
}

.sub-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: #f0f3f8;
  box-shadow:none;
}

.sub-card.featured {
  border-color: rgba(124, 58, 237, 0.4);
}

.sub-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--surface);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #244bff;
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.2);
  color: #244bff;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 16px;
  background: #f0f3f8;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.catalog-access-method { color: #244bff; }
.catalog-slots { color: #244bff; }

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.price-tag .curr {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-tag .val {
  font-size: 1.4rem;
  font-weight: 800;
  color:var(--text-main);
}

.price-tag .per {
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* --- EMPTY STATE --- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* --- OFFICIAL INVITATION --- */
#catalogo,
#como-funciona,
#faq {
  scroll-margin-top: 100px;
}

.invite-section {
  padding-top: 16px;
  padding-bottom: 88px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #244bff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-heading-copy {
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.invite-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
}

.invite-step {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 24px 26px 28px;
  background: var(--surface);
  border: 1px solid rgba(167, 139, 250, 0.17);
  border-radius: var(--radius-lg);
  box-shadow:none;


  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.invite-step:nth-child(2) {
  background: var(--surface);
}

.invite-step:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow:none;
}

.step-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 136px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--border);
}

.step-visual::before {
  position: absolute;
  inset: 5px 15% 12px;
  content: '';
  background: var(--surface);
  pointer-events: none;
}

.invite-step:nth-child(2) .step-visual::before {
  background: var(--surface);
}

.step-illustration {
  position: relative;
  display: block;
  width: 140px;
  height: 104px;
  max-width: 100%;
  filter:none;
}

.step-number {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.1);
  color: #244bff;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step-label {
  display: block;
  margin-bottom: 8px;
  color: #244bff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step-title {
  margin-bottom: 10px;
  font-size: 1.13rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.step-copy {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

/* --- FREQUENTLY ASKED QUESTIONS --- */
.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  padding-top: 4px;
  padding-bottom: 88px;
}

.faq-intro {
  padding-top: 14px;
}

.faq-intro .section-heading-copy {
  max-width: 350px;
}

.faq-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.faq-item {
  min-width: 0;
  background:#ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);


  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(167, 139, 250, 0.32);
}

.faq-item[open] {
  background: var(--surface);
  border-color: rgba(167, 139, 250, 0.35);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 22px;
  border-radius: calc(var(--radius-md) - 1px);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline: 2px solid #244bff;
  outline-offset: 4px;
}

.faq-toggle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #244bff;
  transition: transform 0.2s ease, color 0.2s ease;
}

.faq-item[open] .faq-toggle {
  color: #244bff;
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 22px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* --- MODALS --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);

  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 28px;
  box-shadow:none;
  animation: scaleUp 0.2s ease;
}

.modal-card.modal-checkout {
  max-width: 540px;
}

.modal-card.modal-auth {
  max-width: 440px;
}

.modal-card.modal-wide {
  max-width: 780px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f0f3f8;
  border: none;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: #f0f3f8;
  color:var(--text-main);
}

.modal-header {
  margin-bottom: 20px;
}

.modal-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #244bff;
  background: rgba(124, 58, 237, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.modal-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-code {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.modal-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.price-currency {
  font-size: 1.1rem;
  color: var(--text-muted);
}
.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color:var(--text-main);
}
.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.slots-info {
  font-size: 0.9rem;
  font-weight: 600;
  color: #244bff;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.info-item {
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.info-item.full {
  flex-direction: column;
  gap: 4px;
  border-bottom: none;
}

.info-label {
  color: var(--text-faint);
}

.security-banner {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #f0f3f8;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  margin-bottom: 24px;
}

/* --- AUTH MODAL STYLES --- */
.auth-tabs {
  display: flex;
  background: #f0f3f8;
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
  margin-bottom: 12px;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-tab-btn.active {
  background: var(--primary);
  color:var(--text-main);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0 20px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.auth-divider span {
  padding: 0 10px;
  color: var(--text-faint);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- CREDIT CARD PREVIEW --- */
.credit-card-preview {
  background: var(--surface);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 22px;
  box-shadow:none;
  position: relative;
  overflow: hidden;
}

.credit-card-preview::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: var(--surface);
  border-radius: 50%;
}

.card-chip {
  width: 36px;
  height: 26px;
  background: #eab308;
  border-radius: 4px;
  margin-bottom: 18px;
  box-shadow:none;
}

.card-number-preview {
  font-family: monospace;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color:var(--text-main);
  margin-bottom: 16px;
}

.card-meta-preview {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.card-meta-preview small {
  display: block;
  color: var(--text-faint);
  font-size: 0.65rem;
  margin-bottom: 2px;
}

.card-meta-preview span {
  font-weight: 700;
  color: #182230;
}

/* --- FORM STYLING --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow:none;
}

.field-hint {
  font-size: 0.75rem;
  color: #244bff;
}

.security-badges {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-faint);
  padding-top: 8px;
}

/* --- CHECKOUT SUCCESS VIEW --- */
.checkout-success {
  text-align: center;
  padding: 20px 10px;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

.checkout-success h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color:var(--text-main);
}

.success-msg {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.next-step-box {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  text-align: left;
}

.next-step-box h4 {
  font-size: 0.95rem;
  color: #244bff;
  margin-bottom: 6px;
}

.highlight-email {
  font-size: 1.05rem;
  color: #244bff;
}

.step-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --- SUBSCRIBERS TABLE --- */
.subscribers-table-wrapper {
  overflow-x: auto;
  max-height: 60vh;
}

.sub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.sub-table th {
  background: #f0f3f8;
  padding: 10px 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.sub-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

.badge-active {
  background: rgba(37, 211, 102, 0.15);
  color: #137547;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
}

/* --- FOOTER --- */
.auth-context-message { margin-top: 18px; padding: 14px; border: 1px solid rgba(124,58,237,.3); border-radius: 10px; color: #244bff; font-size: .87rem; }
.auth-field-hint { font-size: .7rem; color: var(--text-muted); line-height: 1.7; }
.auth-form-error, .auth-status-message { padding: 12px 14px; border-radius: 8px; font-size: .8rem; line-height: 1.8; }
.auth-form-error { color: #b42318; border: 1px solid rgba(251,113,133,.3); background: rgba(251,113,133,.06); }
.auth-status-message { color: #1c6492; border: 1px solid rgba(103,216,234,.25); background: rgba(103,216,234,.06); }
.modal-checkout .modal-header { padding-right: 24px; }
.checkout-environment { display: block; border: 1px solid rgba(251,191,36,.35); color: #925000; background: rgba(251,191,36,.07); border-radius: 8px; padding: 10px 12px; font-size: .72rem; font-weight: 700; line-height: 1.7; margin-bottom: 18px; }
.checkout-notice { padding: 24px; border: 1px solid rgba(124,58,237,.25); background: rgba(124,58,237,.06); border-radius: 12px; color: #536174; font-size: .9rem; line-height: 1.8; }
.field-label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.card-field-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-brand { padding: 2px 10px; color: #244bff; border-radius: 5px; border: 1px solid rgba(167,139,250,.3); font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.card-brand[data-brand="visa"] { color: #1c6492; border-color: #3b82f6; font-style: italic; }
.card-brand[data-brand="master"] { color: #fbbf24; border-color: #fb923c; }
.card-brand[data-brand="amex"] { color: #1c6492; border-color: #06b6d4; }
.secure-card-field { min-width: 0; height: 48px; padding: 11px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; }
.secure-card-field iframe { display: block; width: 100%; height: 24px; border: 0; }
.secure-card-field:focus-within { border-color: var(--primary); box-shadow:none; }
.field-error { min-height: 0; color: #b42318; font-size: .72rem; line-height: 1.5; }
.field-error:empty { display: none; }
.checkout-error, .cancel-error { padding: 12px; border-radius: 8px; border: 1px solid rgba(251,113,133,.3); background: rgba(251,113,133,.06); color: #b42318; font-size: .8rem; line-height: 1.7; }
.checkout-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); font-size: .77rem; line-height: 1.8; margin-top: 8px; }
.checkout-consent input { flex-shrink: 0; width: 17px; height: 17px; margin-top: 4px; accent-color: var(--primary); }
.checkout-consent strong { color: #244bff; white-space: nowrap; }
.form-grid > .full { grid-column: 1 / -1; }
.form-group input[readonly] { color: #1c6492; border-color: rgba(103,216,234,.16); }
.security-badges { flex-wrap: wrap; gap: 8px; line-height: 1.6; }
.payment-state-icon { width: 82px; height: 82px; margin: 8px auto 26px; display: grid; place-items: center; border-radius: 50%; }
.approved-icon { color: #137547; background: rgba(74,222,128,.09); border: 1px solid rgba(74,222,128,.35); box-shadow:none; }
.approved-icon svg { width: 52px; height: 52px; }
.pending-icon { color: #244bff; background: rgba(103,216,234,.07); border: 1px solid rgba(103,216,234,.3); box-shadow:none; font-size: 3rem; }
.failed-icon { color: #b42318; background: rgba(251,113,133,.07); border: 1px solid rgba(251,113,133,.3); font-size: 3rem; }
.success-plan-title { color: #244bff; margin-bottom: 15px; font-weight: 600; }
.next-step-box p { font-size: .85rem; line-height: 1.8; }
.next-step-box .highlight-email { display: inline-block; font-size: .9rem; margin-top: 10px; overflow-wrap: anywhere; }
.pending-help { color: var(--text-muted); font-size: .8rem; line-height: 1.8; margin-bottom: 24px; }
#checkoutPendingView .btn + .btn { margin-top: 10px; }
.customer-subscriptions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.customer-sub-card { min-width: 0; padding: 20px; border: 1px solid rgba(167,139,250,.18); border-radius: 16px; background: var(--surface); }
.customer-sub-header { display: flex; align-items: flex-start; gap: 12px; }
.customer-sub-header > div { min-width: 0; }
.customer-sub-header h4 { font-size: .94rem; line-height: 1.5; margin-bottom: 7px; overflow-wrap: anywhere; }
.service-mark { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; border-radius: 12px; background: rgba(124,58,237,.13); border: 1px solid #f0f3f8; color: #244bff; font-size: 1.45rem; font-weight: 800; }
.service-mark.youtube { color: #b42318; background: rgba(244,63,94,.1); }
.service-mark.spotify, .service-mark.duolingo { color: #137547; background: rgba(74,222,128,.08); }
.service-mark.canva, .service-mark.freepik { color: #1c6492; background: rgba(6,182,212,.1); }
.service-mark.microsoft, .service-mark.google { color: #1c6492; background: rgba(59,130,246,.1); }
.service-mark.claude, .service-mark.strava { color: #925000; background: rgba(251,146,60,.08); }
.service-mark.apple { color: #182230; background: rgba(226,232,240,.07); }
.subscription-status { display: inline-block; padding: 3px 8px; border-radius: 100px; font-size: .65rem; font-weight: 700; }
.status-active { color: #137547; background: rgba(74,222,128,.1); }
.status-pending { color: #925000; background: rgba(251,191,36,.1); }
.status-cancelled { color: #94a3b8; background: rgba(148,163,184,.1); }
.subscription-test { color: #925000; font-size: .6rem; font-weight: 800; border: 1px solid rgba(251,191,36,.3); border-radius: 4px; padding: 2px 5px; margin-left: 6px; }
.customer-sub-price { color:var(--text-main); font-size: 1.45rem; font-weight: 800; margin: 22px 0 18px; }
.customer-sub-price span { color: var(--text-muted); font-size: .8rem; font-weight: 400; }
.customer-sub-facts { display: grid; gap: 12px; margin-bottom: 20px; }
.customer-sub-facts dt { font-size: .65rem; color: var(--text-muted); margin-bottom: 3px; }
.customer-sub-facts dd { font-size: .78rem; color: #536174; overflow-wrap: anywhere; }
.customer-sub-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.customer-sub-actions .btn { font-size: .72rem; }
.cancel-confirmation { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.cancel-confirmation > p { font-size: .77rem; color: #536174; line-height: 1.8; margin-bottom: 12px; }
.cancel-confirmation > div { display: flex; flex-wrap: wrap; gap: 8px; }
.cancel-confirmation .btn { font-size: .7rem; }
.btn-danger { background: rgba(244,63,94,.15); border: 1px solid rgba(244,63,94,.35); color: #b42318; }
.cancel-error { margin-top: 12px; }
.subscriptions-empty, .pending-order-banner { grid-column: 1 / -1; }
.subscriptions-empty { padding: 28px 14px; color: var(--text-muted); text-align: center; font-size: .87rem; line-height: 1.8; }
.subscriptions-empty h4 { color: #182230; font-size: 1.1rem; margin-bottom: 12px; }
.pending-order-banner { padding: 14px; border: 1px solid rgba(103,216,234,.2); background: rgba(103,216,234,.04); border-radius: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pending-order-banner p { font-size: .8rem; color: #1c6492; }
.pending-order-banner .btn { font-size: .72rem; white-space: nowrap; }

.footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 25px;
  background: #ffffff;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-brand .footer-desc {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 12px;
  max-width: 360px;
}

.footer-links h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 8px;
}
.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.trust-seals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.trust-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid rgba(167, 139, 250, 0.13);
  border-radius: var(--radius-md);
  color: #536174;
  font-size: 0.8rem;
  font-weight: 600;
}

.trust-seal svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #244bff;
}

/* Área do cliente, recuperação e administração */
.user-popover > button, .footer-links > button, .account-help-links > button { background: none; border: 0; color: #536174; font: inherit; text-align: left; cursor: pointer; }
.user-popover > button { display: block; width: 100%; padding: 11px 16px; font-size: .85rem; border-radius: 8px; }
.user-popover > button:hover { background: rgba(139,92,246,.12); color:var(--text-main); }
.footer-links > button { padding: 0; font-size: .85rem; line-height: 1.6; }
.footer-links > button:hover, .account-help-links > button:hover { color: #1c6492; }
.account-help-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 22px; justify-content: center; }
.account-help-links > button { font-size: .78rem; text-decoration: underline; text-underline-offset: 4px; }
.account-modal { width: 100%; max-width: 490px; }
.account-fields { display: grid; gap: 18px; margin: 24px 0; }
.account-form .form-input, .form-group textarea, .form-group select { width: 100%; background: #ffffff; border: 1px solid rgba(148,163,184,.25); color: #182230; font: inherit; padding: 12px 14px; border-radius: 10px; }
.form-group textarea { min-height: 104px; resize: vertical; line-height: 1.6; }
.account-form .form-input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #244bff; outline: 2px solid rgba(139,92,246,.2); }
.customer-section { grid-column: 1 / -1; padding: 20px; background:#ffffff; border: 1px solid rgba(148,163,184,.14); border-radius: 14px; min-width: 0; }
.customer-section > h4 { font-size: 1rem; margin-bottom: 8px; }
.section-help, .fulfillment-note { color: #536174; font-size: .8rem; line-height: 1.7; margin: 8px 0 14px; overflow-wrap: anywhere; }
.fulfillment-note { border-left: 2px solid #22d3ee; padding-left: 10px; }
.customer-order-card { background:#ffffff; border: 1px solid rgba(148,163,184,.18); padding: 17px; margin: 14px 0; border-radius: 12px; }
.customer-order-card h5 { font-size: .93rem; margin-bottom: 8px; overflow-wrap: anywhere; }
.customer-order-card > p { font-size: .8rem; color: #536174; line-height: 1.7; margin: 9px 0; overflow-wrap: anywhere; }
.refund-request-form, .admin-action-form { padding: 20px; margin-top: 18px; border: 1px solid rgba(167,139,250,.35); background: rgba(76,29,149,.12); border-radius: 12px; }
.admin-panel { max-width: 1180px; width: 100%; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 7px; border-bottom: 1px solid rgba(148,163,184,.15); padding: 0 0 17px; margin-bottom: 15px; }
.admin-tabs button { border: 1px solid rgba(148,163,184,.2); color: #536174; background:#ffffff; font: inherit; font-size: .77rem; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.admin-tabs button.active { color: #244bff; border-color: #8b5cf6; background: rgba(139,92,246,.2); }
.admin-toolbar, .admin-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0; }
.admin-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.admin-metric { background: var(--surface); color: #182230; border: 1px solid rgba(139,92,246,.3); border-radius: 12px; padding: 18px; text-align: left; cursor: pointer; }
.admin-metric strong { display: block; font-size: 1.8rem; color: #1c6492; margin-bottom: 6px; }
.admin-metric span { font-size: .78rem; line-height: 1.5; }
.admin-operation-note { padding: 17px 19px; margin: 20px 0; border-left: 3px solid #244bff; background: rgba(139,92,246,.08); border-radius: 6px; }
.admin-operation-note h4 { margin-bottom: 8px; }
.admin-operation-note p { color: #536174; font-size: .8rem; line-height: 1.7; margin: 8px 0; }
.admin-table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid rgba(148,163,184,.2); border-radius: 10px; }
.admin-table { border-collapse: collapse; width: 100%; font-size: .77rem; text-align: left; }
.admin-table th { color: #244bff; background:#ffffff; padding: 13px 14px; white-space: nowrap; }
.admin-table td { color: #536174; border-top: 1px solid rgba(148,163,184,.15); padding: 14px; line-height: 1.6; max-width: 270px; min-width: 105px; overflow-wrap: anywhere; }
.admin-table .btn { white-space: nowrap; }
.admin-list-filter { margin-bottom: 15px; max-width: 320px; }
.admin-action-form { scroll-margin: 20px; }
.admin-action-form .full { grid-column: 1 / -1; }
.btn:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #1c6492; outline-offset: 4px; }
@media (max-width: 768px) { .admin-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .admin-tabs { gap: 5px; } .admin-tabs button { font-size: .73rem; padding: 8px; } .customer-section { padding: 15px; } }

/* --- TOASTS --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--border);
  color:var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  box-shadow:none;
  animation: slideIn 0.25s ease;
}

.toast.success {
  border-left: 4px solid var(--success);
}
.toast.error {
  border-left: 4px solid #ef4444;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 768px) {
  .customer-subscriptions { grid-template-columns: 1fr; }
  .modal-card { padding: 24px 20px; }
  .pending-order-banner { align-items: flex-start; flex-direction: column; }
  .hero-title {
    font-size: 2rem;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .invite-section {
    padding-top: 0;
    padding-bottom: 64px;
  }
  .invite-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .invite-step {
    padding: 22px 24px 26px;
  }
  .step-visual {
    height: 124px;
    margin-bottom: 20px;
  }
  .faq-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 64px;
  }
  .faq-intro {
    padding-top: 0;
  }
  .faq-intro .section-heading-copy {
    max-width: none;
  }
  .faq-item summary {
    gap: 12px;
    padding: 18px;
  }
  .faq-answer {
    padding: 0 18px 20px;
  }
  .trust-seals {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .trust-seal {
    padding: 14px 18px;
  }
}

@media (max-width: 420px) {
  .header-content { gap: 10px; }
  .logo { font-size: 1rem; gap: 5px; }
  .logo-icon { font-size: 1.25rem; }
  .header-actions { min-width: 0; }
  .user-btn { max-width: 160px; }
  .header-actions > .btn { padding: 8px 10px; font-size: .75rem; }
  .modal-backdrop { padding: 12px; }
  .modal-header h3 { font-size: 1.2rem; }
  .modal-checkout .btn-lg { font-size: .86rem; padding: 14px 10px; }
  .toast-container { left: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .invite-step,
  .faq-item,
  .faq-toggle {
    transition: none;
  }
  .invite-step:hover {
    transform: none;
  }
}
