:root {
  --bg: #f5f7f4;
  --card: #ffffff;
  --text: #172019;
  --muted: #657168;
  --primary: #386641;
  --primary-dark: #2d5234;
  --line: #dfe7e0;
  --danger: #a33b3b;
  --success: #2f7a49;
  --warning: #946c19;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
.container { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 64px; }
.narrow { width: min(640px, calc(100% - 32px)); }
.hero { text-align: center; margin: 16px auto 28px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: 0 0 12px; letter-spacing: -0.04em; }
.hero p { max-width: 720px; margin: 0 auto; color: var(--muted); line-height: 1.6; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: 0 16px 48px rgba(35, 52, 39, .06); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 8px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #cbd8cd; border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--text); outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(56,102,65,.12); }
textarea { min-height: 190px; resize: vertical; line-height: 1.5; }
.help { font-weight: 400; font-size: .9rem; color: var(--muted); }
.btn { border: 0; border-radius: 12px; padding: 12px 16px; background: var(--primary); color: white; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.btn:hover { background: var(--primary-dark); }
.btn.secondary { background: #edf3ee; color: var(--primary-dark); }
.btn.danger { background: #fff0f0; color: var(--danger); }
.btn.small { padding: 8px 10px; font-size: .88rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.message { border-radius: 12px; padding: 12px 14px; margin-top: 16px; line-height: 1.45; display: none; }
.message.show { display: block; }
.message.success { background: #eaf6ed; color: var(--success); }
.message.error { background: #fff0f0; color: var(--danger); }
.message.info { background: #f2f4f2; color: var(--text); }
.result-box { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: none; }
.result-box.show { display: block; }
.codebox { background: #f5f7f5; border: 1px solid var(--line); padding: 11px 12px; border-radius: 10px; overflow-wrap: anywhere; font-size: .9rem; }
.topbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 22px; }
.topbar h1 { margin: 0; font-size: 1.6rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 22px; }
.stat { background: #f7f9f7; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat strong { display: block; font-size: 1.8rem; }
.stat span { color: var(--muted); font-size: .9rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; background: white; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { font-size: .82rem; color: var(--muted); background: #f8faf8; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.badge.ok { color: var(--success); background: #e9f6ed; }
.badge.pending { color: var(--warning); background: #fff6de; }
.event-title { margin: 0 0 6px; }
.event-meta { color: var(--muted); margin: 0 0 24px; }
.footer-note { margin-top: 18px; color: var(--muted); font-size: .88rem; text-align: center; }
.separator { height: 1px; background: var(--line); margin: 22px 0; }
@media (max-width: 720px) {
  .container { width: min(100% - 20px, 1100px); padding-top: 20px; }
  .card { border-radius: 18px; padding: 18px; }
  .grid-2, .stats { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .actions .btn { flex: 1; }
}

/* Autenticação e dashboard */
button:disabled, .btn:disabled { opacity: .58; cursor: not-allowed; }
.brand-pill, .eyebrow { display: inline-flex; align-items: center; width: fit-content; padding: 6px 10px; border-radius: 999px; background: #eaf2eb; color: var(--primary-dark); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.center-card { text-align: center; }
.center-card .actions { justify-content: center; }
.auth-shell { min-height: 100vh; display: grid; align-content: center; gap: 14px; padding-top: 40px; padding-bottom: 40px; }
.auth-card { width: min(520px, 100%); margin: 0 auto; }
.auth-heading { margin-bottom: 24px; }
.auth-heading h1 { margin: 10px 0 8px; font-size: 2rem; }
.auth-heading p { margin: 0; color: var(--muted); line-height: 1.55; }
.auth-switch { margin: 20px 0 0; text-align: center; color: var(--muted); }
.auth-switch a, .back-link { color: var(--primary-dark); font-weight: 800; }
.back-link { width: min(520px, 100%); margin: 0 auto; text-decoration: none; }
.app-header { position: sticky; top: 0; z-index: 10; background: rgba(245, 247, 244, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { width: min(1100px, calc(100% - 32px)); margin: 0 auto; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 900; text-decoration: none; color: var(--primary-dark); letter-spacing: -.02em; }
.header-user { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.dashboard-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.dashboard-head h1 { margin: 7px 0 5px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; }
.dashboard-head p { margin: 0; color: var(--muted); }
.create-card { display: none; margin-bottom: 24px; }
.create-card.show { display: block; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { margin: 0 0 5px; }
.section-heading p { margin: 0; color: var(--muted); }
.icon-btn { border: 0; background: #f1f4f1; color: var(--text); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.events-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.event-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 10px 32px rgba(35, 52, 39, .045); }
.event-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.event-card h2 { margin: 16px 0 6px; font-size: 1.3rem; }
.event-card .event-meta { margin-bottom: 18px; }
.progress { width: 100%; height: 8px; background: #edf1ed; border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.event-stats-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-size: .82rem; }
.event-actions { margin-top: 18px; }
.event-actions .btn { flex: 1; }
.empty-state { text-align: center; padding: 44px 24px; }
.empty-state h2 { margin: 12px 0 6px; }
.empty-state p { color: var(--muted); margin: 0 0 18px; }
.empty-icon { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #eaf6ed; color: var(--success); font-weight: 900; font-size: 1.4rem; }

@media (max-width: 720px) {
  .header-inner { width: min(100% - 20px, 1100px); }
  .header-user #userName { display: none; }
  .dashboard-head { align-items: stretch; flex-direction: column; }
  .dashboard-head .btn { width: 100%; }
  .events-grid { grid-template-columns: 1fr; }
  .stacked-mobile { flex-direction: column; }
  .stacked-mobile .btn { width: 100%; }
}

/* V4 */
.hidden { display: none !important; }
.stats-4 { grid-template-columns: repeat(4, 1fr); }
.guest-add-grid { align-items: stretch; }
.import-box { border: 1px dashed var(--line); border-radius: 16px; padding: 18px; background: #fafcf9; display: grid; align-content: start; gap: 14px; }
.import-box p { margin: 7px 0 0; }
.btn.ghost { background: transparent; color: var(--primary-dark); border: 1px solid var(--line); }
.row-actions { display: flex; gap: 7px; justify-content: flex-end; }
.section-heading.compact { margin-bottom: 12px; }
.modal { border: 0; padding: 0; background: transparent; width: min(560px, calc(100% - 28px)); max-width: none; }
.modal::backdrop { background: rgba(23, 35, 26, .48); backdrop-filter: blur(2px); }
.modal-card { background: white; border-radius: 20px; padding: 24px; box-shadow: 0 24px 80px rgba(20, 35, 24, .25); }
.modal-card h2 { margin: 6px 0 0; }
.info-box { padding: 14px 16px; border-radius: 13px; background: #f2f6f2; border: 1px solid var(--line); line-height: 1.5; }
.success-panel { text-align: center; padding: 14px 4px 6px; }
.success-check { width: 64px; height: 64px; border-radius: 50%; background: #e8f6ec; color: var(--success); display: grid; place-items: center; font-size: 2rem; font-weight: 900; margin: 0 auto 14px; }
.success-panel h2 { margin: 0 0 8px; }
.success-panel p { margin: 0; color: var(--muted); line-height: 1.55; }
.forgot-link { display: inline-block; text-align: center; color: var(--primary-dark); font-weight: 800; text-decoration: none; font-size: .9rem; }
.dev-box { margin-top: 14px; padding: 14px 16px; border: 1px dashed #d5a93f; background: #fff9e9; border-radius: 12px; font-size: .9rem; }
.dev-box p { margin: 6px 0; }
.dev-box a { color: var(--primary-dark); font-weight: 800; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .stats-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .stats-4 { grid-template-columns: 1fr 1fr; }
  .row-actions { flex-direction: column; }
  .modal-card { padding: 18px; }
}

/* V5 — ajustes de importação */
.import-box #guestFile { margin-bottom: 18px !important; }
.import-box .actions { display: flex !important; gap: 18px !important; margin-top: 0 !important; flex-wrap: wrap; align-items: center; }
.import-box .actions .btn { flex: 0 0 auto !important; min-width: 180px; }

/* V5 — confirmação com acompanhantes */
.companion-section { margin: 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fafcf9; }
.companion-heading h3 { margin: 7px 0 14px; font-size: 1.25rem; }
.companion-limit { padding: 12px 14px; background: #eef5ef; border-radius: 12px; color: var(--primary-dark); margin-bottom: 14px; }
.individual-invite { display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: #f2f4f2; }
.individual-invite span { color: var(--muted); font-size: .9rem; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card { display: flex; grid-template-columns: none; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px; background: white; cursor: pointer; }
.choice-card:hover { border-color: #aec4b2; }
.choice-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(56,102,65,.09); background: #f6faf6; }
.choice-card input { width: auto; margin: 0; accent-color: var(--primary); }
.choice-card span { display: grid; gap: 2px; }
.choice-card small { color: var(--muted); font-weight: 500; }
.companion-details { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.companion-fields { margin-top: 12px; }
.confirmation-actions { margin-top: 20px; }

/* V5 — assinatura */
.billing-page { padding-top: 24px; }
.billing-hero { margin-bottom: 18px; }
.plan-card { text-align: center; }
.plan-price { display: flex; justify-content: center; align-items: baseline; gap: 5px; margin: 4px 0 20px; color: var(--primary-dark); }
.plan-price span { font-size: 1.2rem; font-weight: 800; }
.plan-price strong { font-size: 4rem; line-height: 1; letter-spacing: -.06em; }
.plan-price small { color: var(--muted); font-weight: 700; }
.plan-features { list-style: none; padding: 0; margin: 0 auto 22px; max-width: 440px; display: grid; gap: 9px; text-align: left; }
.billing-status { padding: 15px 16px; border-radius: 13px; background: #f3f6f3; border: 1px solid var(--line); line-height: 1.55; margin-bottom: 14px; }
.billing-status span { color: var(--muted); }
.status-active { color: var(--success); }
.billing-actions { justify-content: center; margin-top: 16px; }
.billing-help { display: block; margin-top: 18px; }
.billing-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; margin-bottom: 20px; border-radius: 14px; background: #fff7e6; border: 1px solid #ead29b; }
.billing-banner p { margin: 4px 0 0; color: #705a2e; font-size: .9rem; }
.billing-banner.active { background: #edf7ef; border-color: #c9e5d0; }
.billing-banner.active p { color: var(--muted); }

@media (max-width: 720px) {
  .import-box .actions { flex-direction: column; align-items: stretch; }
  .import-box .actions .btn { width: 100%; }
  .choice-grid { grid-template-columns: 1fr; }
  .billing-banner { align-items: stretch; flex-direction: column; }
}

/* V5.1 — RSVP mobile-first */
.rsvp-page { min-height: 100svh; }
.rsvp-container { padding-top: 26px; }
.rsvp-hero { margin: 4px auto 22px; }
.rsvp-hero h1 { font-size: clamp(2rem, 8vw, 3rem); margin-top: 10px; }
.rsvp-card { overflow: hidden; }
.rsvp-section-heading { margin-bottom: 22px; }
.rsvp-section-heading h2 { margin: 8px 0 7px; font-size: 1.55rem; letter-spacing: -.025em; }
.rsvp-section-heading p { margin: 0; color: var(--muted); line-height: 1.55; }
.rsvp-form { gap: 18px; }
.rsvp-primary-action { margin-top: 2px; }
.guest-greeting { margin: 12px 0 5px; font-size: clamp(1.65rem, 6vw, 2.1rem); letter-spacing: -.03em; }

.companion-section { margin: 22px 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fafcf9; }
.companion-heading h3 { margin: 8px 0 5px; font-size: 1.3rem; }
.companion-intro { margin: 0 0 17px; color: var(--muted); line-height: 1.5; }
.companion-intro strong { color: var(--text); }
.choice-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.choice-card {
  position: relative;
  display: flex !important;
  align-items: flex-start !important;
  grid-template-columns: none !important;
  gap: 13px !important;
  width: 100%;
  margin: 0;
  padding: 15px 16px;
  border: 1px solid #d6e0d7;
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .16s ease;
}
.choice-card:hover { border-color: #a9bfae; }
.choice-card:active { transform: scale(.995); }
.choice-card.selected { border-color: var(--primary); background: #f5faf6; box-shadow: 0 0 0 3px rgba(56,102,65,.10); }
.choice-card input[type="radio"] {
  appearance: auto;
  -webkit-appearance: radio;
  width: 20px !important;
  min-width: 20px;
  height: 20px;
  margin: 2px 0 0 !important;
  padding: 0;
  flex: 0 0 20px;
  accent-color: var(--primary);
  box-shadow: none;
}
.choice-copy { display: grid !important; gap: 4px !important; min-width: 0; }
.choice-copy strong { font-size: 1rem; line-height: 1.3; }
.choice-copy small { color: var(--muted); font-size: .9rem; font-weight: 500; line-height: 1.35; }
.companion-details { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.companion-count-label { margin-bottom: 14px; }
.companion-fields { display: grid; gap: 13px; }
.companion-name-label { gap: 7px; }
.individual-invite { display: flex; align-items: center; gap: 13px; padding: 15px; }
.individual-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; background: #e5efe7; color: var(--primary-dark); font-weight: 900; }
.individual-invite > div:last-child { display: grid; gap: 3px; }

.confirmation-actions, .success-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.confirmation-actions .btn, .success-actions .btn { flex: 1 1 180px; min-height: 48px; }
.success-panel { padding: 8px 0 2px; }
.success-panel .success-check { margin-bottom: 12px; }
.success-panel h2 { margin: 10px 0 7px; font-size: 1.55rem; }
.success-panel > p { margin: 0 auto; max-width: 430px; }
.confirmation-summary { margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-align: left; background: #fafcf9; }
.summary-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.summary-row:last-child { border-bottom: 0; }
.summary-row > span { color: var(--muted); font-size: .9rem; }
.summary-row > strong { text-align: right; font-size: .94rem; }
.summary-row-block { display: grid; gap: 9px; }
.summary-companions { display: flex; flex-wrap: wrap; gap: 7px; }
.summary-companions span { padding: 6px 9px; border-radius: 999px; background: #e8f2ea; color: var(--primary-dark); font-size: .86rem; font-weight: 700; }

@media (max-width: 640px) {
  .rsvp-container { width: 100%; padding: max(18px, env(safe-area-inset-top)) 12px max(30px, env(safe-area-inset-bottom)); }
  .rsvp-hero { margin-bottom: 17px; padding: 0 5px; }
  .rsvp-hero h1 { font-size: clamp(1.9rem, 9vw, 2.45rem); line-height: 1.08; }
  .rsvp-card { padding: 19px 16px; border-radius: 19px; }
  .rsvp-section-heading { margin-bottom: 18px; }
  .rsvp-section-heading h2 { font-size: 1.4rem; }
  .rsvp-form input, .rsvp-form select, .companion-details input, .companion-details select { min-height: 48px; font-size: 16px; }
  .companion-section { margin: 18px -2px; padding: 16px; border-radius: 16px; }
  .choice-card { padding: 15px 14px; }
  .confirmation-actions, .success-actions { flex-direction: column; gap: 10px; }
  .confirmation-actions .btn, .success-actions .btn { flex: none; width: 100%; min-height: 50px; }
  .summary-row { padding: 13px 14px; }
  .summary-row:not(.summary-row-block) { display: grid; gap: 5px; }
  .summary-row > strong { text-align: left; }
  .footer-note { padding: 0 14px; line-height: 1.45; }
}

/* V5.2 — cancelamento de renovação */
.status-canceling { color: var(--warning); }
.billing-actions .btn.danger { border: 1px solid #efcaca; }
.billing-actions .btn.danger:hover { background: #fbe4e4; }


/* V5.3 — landing page */
.landing-page { padding-bottom: 60px; }
.landing-hero-wrap { padding: 28px 0 10px; }
.landing-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; align-items: center; }
.landing-copy h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -.05em; margin: 14px 0 16px; }
.landing-copy p { color: var(--muted); line-height: 1.65; font-size: 1.02rem; }
.landing-actions { margin-top: 22px; }
.landing-price { margin: 18px 0 12px; font-size: 1rem; }
.landing-price strong { color: var(--primary-dark); }
.landing-bullets { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; color: var(--text); }
.landing-bullets li::before { content: '✓'; color: var(--success); font-weight: 900; margin-right: 8px; }
.hero-shot { display: grid; }
.shot-window { border: 1px solid #d9e4db; background: white; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 64px rgba(32, 48, 35, .10); }
.shot-bar { display: flex; gap: 8px; align-items: center; padding: 12px 16px; background: #f2f6f2; border-bottom: 1px solid var(--line); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d0dbd2; }
.shot-body { padding: 18px; display: grid; gap: 14px; background: linear-gradient(180deg, #fcfdfc 0%, #f7faf7 100%); }
.shot-card { border: 1px solid var(--line); border-radius: 18px; background: white; padding: 16px; box-shadow: 0 8px 26px rgba(26, 40, 29, .05); }
.mock-toolbar, .mock-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini-badge { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #e9f5ec; color: var(--success); font-size: .74rem; font-weight: 800; }
.mini-badge.soft { background: #edf3ee; color: var(--primary-dark); }
.mock-stats { display: grid; gap: 10px; margin: 14px 0; }
.mock-stats.four { grid-template-columns: repeat(4, 1fr); }
.mock-stats div { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fafcf9; }
.mock-stats strong { display: block; font-size: 1.2rem; }
.mock-stats span { display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.mock-progress-card { display: grid; gap: 9px; }
.shot-rsvp h3 { margin: 10px 0 12px; }
.mock-input { height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #f7faf7; margin-bottom: 10px; }
.mock-input.short { width: 68%; }
.mock-choice-grid { display: grid; gap: 10px; margin: 10px 0 14px; }
.mock-choice { border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; background: #fff; }
.mock-choice.selected { border-color: var(--primary); background: #f5faf6; box-shadow: 0 0 0 3px rgba(56,102,65,.08); }
.mock-choice strong { display: block; margin-bottom: 2px; }
.mock-choice span { color: var(--muted); font-size: .88rem; }
.mock-button { height: 46px; border-radius: 14px; background: var(--primary); }
.landing-section { margin-top: 22px; }
.section-title h2 { margin: 8px 0 0; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; }
.landing-steps, .landing-features { display: grid; gap: 16px; }
.landing-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.landing-features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 18px; }
.step-card, .feature-card { height: 100%; }
.step-card h3, .feature-card h3 { margin: 10px 0 8px; }
.step-card p, .feature-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.step-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #eaf2eb; color: var(--primary-dark); font-weight: 900; }
.pricing-card h2 { margin: 8px 0 10px; font-size: clamp(2rem, 4vw, 3rem); }
@media (max-width: 980px) {
  .landing-grid, .landing-steps, .landing-features { grid-template-columns: 1fr; }
  .mock-stats.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .landing-hero-wrap { padding-top: 10px; }
  .landing-copy h1 { font-size: clamp(2rem, 8vw, 2.9rem); }
  .landing-actions .btn { width: 100%; }
  .shot-body { padding: 14px; }
  .mock-stats.four { grid-template-columns: 1fr 1fr; }
}

/* V5.4 — planos por assinatura ou por evento */
.site-footer { margin-top: 42px; border-top: 1px solid var(--line); background: rgba(255,255,255,.62); }
.site-footer-inner { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0; color: var(--muted); font-size: .88rem; text-align: center; }
.event-lock-note { margin: 14px 0 0; padding: 11px 12px; border-radius: 12px; background: #fff8e8; border: 1px solid #ead5a4; color: #735c2e; font-size: .86rem; line-height: 1.45; }
.billing-global-message { max-width: 760px; margin: 0 auto 18px; }
.billing-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.billing-plan-grid .plan-card { display: flex; flex-direction: column; }
.billing-plan-grid .plan-features { width: 100%; flex: 1; }
.featured-plan { border-color: #bad0be; box-shadow: 0 18px 54px rgba(39, 75, 46, .09); }
.plan-tag { display: inline-flex; align-self: center; width: fit-content; padding: 6px 10px; border-radius: 999px; background: #e9f5ec; color: var(--success); font-size: .74rem; font-weight: 900; margin-bottom: 13px; }
.plan-tag.neutral { background: #f1f3f1; color: var(--primary-dark); }
.billing-note { max-width: 820px; margin: 18px auto 0; text-align: center; }
.billing-note p { margin: 7px 0 0; color: var(--muted); line-height: 1.6; }
.billing-back-actions { justify-content: center; margin-top: 18px; }
.landing-pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.pricing-card { display: flex; flex-direction: column; align-items: center; }
.pricing-card h3 { margin: 4px 0 6px; font-size: 1.4rem; }
.pricing-card > p:not(.help) { color: var(--muted); line-height: 1.55; max-width: 440px; }
.pricing-featured { border-color: #bad0be; box-shadow: 0 18px 54px rgba(39, 75, 46, .09); }
.landing-plan-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 10px 0 4px; }
.landing-plan-price strong { color: var(--primary-dark); font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.05em; }
.landing-plan-price span { color: var(--muted); font-weight: 700; }
.pricing-list { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; gap: 8px; text-align: left; width: min(100%, 330px); }
.pricing-list li::before { content: '✓'; color: var(--success); font-weight: 900; margin-right: 8px; }
.pricing-card .btn { margin-top: auto; }
@media (max-width: 800px) {
  .billing-plan-grid, .landing-pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-footer { margin-top: 28px; }
  .site-footer-inner { width: min(100% - 24px, 1100px); padding: 18px 0 max(18px, env(safe-area-inset-bottom)); }
  .billing-plan-grid { gap: 14px; }
}

/* V5.6 — personalização do convite e controles do evento */
.event-modal { width: min(780px, calc(100% - 28px)); }
.toggle-setting {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faf8;
  cursor: pointer;
}
.toggle-setting input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}
.toggle-setting span { display: grid; gap: 4px; }
.toggle-setting small { color: var(--muted); font-weight: 500; line-height: 1.4; }
.event-media-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.media-editor { display: grid; gap: 12px; align-content: start; }
.media-preview { overflow: hidden; border: 1px solid var(--line); background: #eef3ee; }
.media-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-preview { width: 132px; height: 132px; border-radius: 50%; margin: 0 auto; box-shadow: 0 8px 24px rgba(23,32,25,.08); }
.cover-preview { width: 100%; aspect-ratio: 20 / 9; border-radius: 16px; }

.rsvp-media { position: relative; margin: 0 auto 14px; }
.rsvp-cover-frame { position: relative; overflow: hidden; width: 100%; aspect-ratio: 20 / 9; border-radius: 22px; border: 1px solid var(--line); background: #eaf0ea; box-shadow: 0 14px 38px rgba(34,50,38,.08); }
.rsvp-cover-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.rsvp-profile-frame { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; border: 5px solid var(--bg); background: #eaf0ea; box-shadow: 0 10px 30px rgba(25,40,29,.13); margin: -54px auto 0; position: relative; z-index: 2; }
.rsvp-profile-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.rsvp-media.profile-only { display: grid; place-items: center; }
.rsvp-media.profile-only .rsvp-profile-frame { margin: 0; }
.rsvp-media.cover-only .rsvp-cover-frame { margin-bottom: 0; }
.edit-policy-note { margin: 12px 0 0; padding: 11px 13px; border-radius: 12px; background: #f2f5f2; color: var(--muted); font-size: .9rem; line-height: 1.45; }

/* Landing: mockup do convite personalizado */
.mock-event-cover { position: relative; height: 92px; border-radius: 14px; margin: -2px -2px 38px; background: linear-gradient(135deg, #8bbf93, #e6d7ac 55%, #6d9e79); overflow: visible; }
.mock-event-cover::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 20% 25%, rgba(255,255,255,.45), transparent 30%), radial-gradient(circle at 78% 68%, rgba(255,255,255,.28), transparent 28%); }
.mock-event-avatar { position: absolute; left: 50%; bottom: -32px; transform: translateX(-50%); width: 68px; height: 68px; border-radius: 50%; border: 4px solid #fff; background: linear-gradient(145deg, #f5e8c6, #4f7758); box-shadow: 0 6px 18px rgba(28,45,32,.16); z-index: 2; }
.mock-personalized-label { display: block; text-align: center; color: var(--muted); font-size: .78rem; margin-bottom: 8px; }

@media (max-width: 720px) {
  .event-media-grid { grid-template-columns: 1fr; }
  .profile-preview { margin-left: 0; }
  .rsvp-cover-frame { border-radius: 18px; }
  .rsvp-profile-frame { width: 96px; height: 96px; margin-top: -46px; }
}

/* V5.7 — inscrição aberta e mensagens do evento */
.event-public-message { max-width: 720px; margin: 10px auto 0; line-height: 1.6; white-space: pre-line; }
.event-card .event-meta { line-height: 1.5; }

/* V5.8 — abas de eventos e ciclo de vida */
.event-tabs {
  display: flex;
  gap: 10px;
  margin: 18px 0;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  background: var(--card, #fff);
}
.event-tab {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  color: var(--muted, #667085);
  cursor: pointer;
  white-space: nowrap;
}
.event-tab.active {
  background: var(--primary, #1f7a5a);
  color: #fff;
}
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(127,127,127,.16);
  font-size: .78rem;
}
.event-tab.active .tab-count { background: rgba(255,255,255,.2); }

@media (max-width: 620px) {
  .event-tabs { width: 100%; }
  .event-tab { flex: 1; padding-inline: 8px; }
}

/* V5.9 — login social e Minha conta */
.social-auth-block { display: grid; gap: 18px; margin-bottom: 18px; }
.social-auth-buttons { display: grid; gap: 10px; }
.social-auth-btn {
  min-height: 48px;
  border: 1px solid #d8e1d9;
  border-radius: 12px;
  padding: 10px 14px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.social-auth-btn:hover { border-color: #aebfb1; box-shadow: 0 5px 18px rgba(35,52,39,.06); }
.social-auth-btn:active { transform: scale(.995); }
.social-auth-btn.disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.provider-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 900;
  background: #f3f5f3;
  color: #263129;
  line-height: 1;
}
.provider-mark.google { font-family: Arial, sans-serif; }
.provider-mark.apple { font-size: 1.25rem; background: #111; color: #fff; }
.provider-mark.microsoft { font-size: 1.05rem; background: #f1f3f1; }
.provider-mark.password-mark { font-size: .85rem; letter-spacing: 1px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .84rem; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.auth-divider span { padding: 0 4px; }

.account-page { display: grid; gap: 18px; }
.account-topbar { margin-bottom: 0; }
.account-topbar p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }
.account-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-profile-grid > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fafcf9; display: grid; gap: 5px; }
.account-profile-grid span { color: var(--muted); font-size: .82rem; }
.account-profile-grid strong { overflow-wrap: anywhere; }
.auth-methods-list { display: grid; gap: 10px; }
.auth-method-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fafcf9; }
.auth-method-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.auth-method-info > div { display: grid; gap: 3px; min-width: 0; }
.auth-method-info small { color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }
.method-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 9px; background: #f1f4f1; color: var(--muted); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.method-status.connected { background: #e9f6ed; color: var(--success); }
.method-status.unavailable { background: #f2f2f2; color: #7d837e; }
.account-password-card form { max-width: 520px; }
.header-user { flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 720px) {
  .account-profile-grid { grid-template-columns: 1fr; }
  .auth-method-row { align-items: flex-start; flex-direction: column; }
  .auth-method-row > .btn, .auth-method-row > a.btn { width: 100%; }
  .header-user { gap: 6px; }
  .header-user .btn.small { padding: 7px 8px; font-size: .78rem; }
}

/* V6.0 — segurança e verificação de e-mail */
.email-status { margin-top: 6px; font-size: 12px; font-weight: 700; }
.email-status.verified { color: #2f6a3e; }
.email-status.pending { color: #8a5b16; }
#verifyEmailButton { margin-top: 8px; }

@media (max-width: 720px) {
  .social-auth-buttons.compact-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .social-auth-btn.compact {
    min-height: 62px;
    padding: 10px 8px;
  }
  .compact-provider-label {
    font-size: .76rem;
  }
}


/* V6.0.1 — auth layout compacta para login/cadastro */
.auth-card-compact-social .message { margin-top: 14px; }
.social-auth-block.compact { gap: 14px; margin-top: 18px; }
.social-auth-buttons.compact-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.social-auth-btn.compact {
  min-height: 58px;
  padding: 10px 12px;
  flex-direction: column;
  gap: 7px;
  text-align: center;
}
.compact-provider-label {
  font-size: .83rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--muted);
}
.auth-divider.compact span {
  font-weight: 700;
  letter-spacing: .01em;
}
@media (max-width: 720px) {
  .social-auth-buttons.compact-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .social-auth-btn.compact {
    min-height: 62px;
    padding: 10px 8px;
  }
  .compact-provider-label {
    font-size: .76rem;
  }
}


/* V6.0.2 — login/cadastro com visual mais premium e provedores compactos */
.auth-card-modern {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px;
}
.auth-heading-modern {
  text-align: left;
}
.auth-form-modern {
  gap: 15px;
}
.social-auth-block.premium-icons {
  gap: 14px;
  margin-top: 18px;
}
.social-auth-buttons.icon-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.social-auth-btn.icon-only {
  min-height: 86px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 16px;
  text-align: center;
}
.social-auth-btn.icon-only:hover {
  transform: translateY(-1px);
}
.provider-mark.large {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1.1rem;
}
.provider-mark.apple.large {
  font-size: 1.45rem;
}
.icon-provider-label {
  font-size: .82rem;
  line-height: 1.12;
  font-weight: 800;
  color: var(--muted);
}
@media (max-width: 720px) {
  .auth-card-modern {
    padding: 22px 18px;
  }
  .social-auth-buttons.icon-row {
    gap: 10px;
  }
  .social-auth-btn.icon-only {
    min-height: 82px;
    padding: 10px 8px;
  }
  .icon-provider-label {
    font-size: .75rem;
  }
}


/* V6.0.3 — autenticação premium */
.auth-premium-body { background: radial-gradient(circle at 15% 10%, #edf5ee 0, transparent 34%), var(--bg); }
.auth-premium-shell { width: min(980px, calc(100% - 32px)); padding-top: 28px; }
.auth-premium-layout { display: grid; grid-template-columns: .78fr 1.22fr; align-items: stretch; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 70px rgba(29,50,34,.10); margin-top: 14px; }
.auth-brand-panel { background: linear-gradient(145deg, #31593a, #203f29); color: #fff; padding: 38px 34px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth-brand-lockup { display: flex; align-items: center; gap: 10px; font-size: .98rem; }
.auth-brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); border-radius: 11px; font-weight: 900; }
.auth-brand-panel h2 { margin: 30px 0 12px; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.06; letter-spacing: -.04em; }
.auth-brand-panel p { margin: 0; color: rgba(255,255,255,.76); line-height: 1.6; }
.auth-brand-features { display: grid; gap: 10px; color: rgba(255,255,255,.9); font-size: .9rem; font-weight: 700; }
.auth-card-premium { max-width: none; width: 100%; border: 0; border-radius: 0; box-shadow: none; padding: 36px 38px; }
.auth-heading-modern h1 { margin-bottom: 7px; letter-spacing: -.035em; }
.auth-heading-modern p { margin-bottom: 24px; }
.auth-primary-btn { min-height: 46px; box-shadow: 0 8px 20px rgba(56,102,65,.16); }
.premium-divider { margin-top: 2px; }
.premium-divider span { background: var(--card); padding: 0 10px; font-weight: 700; }
.premium-icon-row { max-width: 330px; margin: 0 auto; }
.social-auth-btn.premium-social { min-height: 74px; border-radius: 17px; background: #fbfcfb; border-color: #dbe5dc; box-shadow: none; }
.social-auth-btn.premium-social:hover { background: #fff; border-color: #aec3b1; box-shadow: 0 8px 22px rgba(35,52,39,.07); transform: translateY(-2px); }
.provider-mark.google-brand { color: #4285f4; background: #fff; border: 1px solid #e3e7e3; }
.provider-mark.microsoft-brand { color: #246fce; background: #fff; border: 1px solid #e3e7e3; }
.auth-switch { margin-bottom: 0; }
@media (max-width: 820px) {
  .auth-premium-layout { grid-template-columns: 1fr; overflow: visible; box-shadow: none; }
  .auth-brand-panel { border-radius: 22px 22px 0 0; padding: 24px; }
  .auth-brand-panel h2 { margin: 18px 0 8px; font-size: 1.6rem; }
  .auth-brand-features { display: none; }
  .auth-card-premium { border-radius: 0 0 22px 22px; border: 1px solid var(--line); border-top: 0; padding: 26px 22px; }
}
@media (max-width: 520px) {
  .auth-premium-shell { width: min(100% - 22px, 980px); padding-top: 18px; }
  .auth-brand-panel { padding: 20px; }
  .auth-brand-panel p { font-size: .9rem; }
  .auth-card-premium { padding: 24px 18px; }
  .premium-icon-row { gap: 9px; }
  .social-auth-btn.premium-social { min-height: 70px; padding-inline: 6px; }
}


/* V6.0.3 — inscrição aberta simplificada */
.stats.open-registration-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .stats.open-registration-stats { grid-template-columns: 1fr 1fr; } }


/* V6.0.4 — contador público da inscrição aberta */
.open-registration-count {
  width: fit-content;
  max-width: 100%;
  margin: 14px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid #d8e5da;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 8px 24px rgba(35,52,39,.05);
  color: var(--primary-dark);
}
.open-registration-count.hidden { display: none; }
.open-registration-count-icon { font-size: 1rem; line-height: 1; }
.open-registration-count strong { font-size: .9rem; line-height: 1.3; }
@media (max-width: 620px) {
  .open-registration-count {
    width: 100%;
    border-radius: 14px;
  }
}


/* V6.0.5 — local do evento */
.event-location-card {
  width: min(100%, 540px);
  margin: 14px auto 4px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  text-align: left;
}
.event-location-icon { font-size: 1.05rem; line-height: 1.3; }
.event-location-card div { display: grid; gap: 2px; min-width: 0; }
.event-location-card small { color: var(--muted); font-weight: 700; font-size: .78rem; }
.event-location-card strong { font-size: .94rem; line-height: 1.35; overflow-wrap: anywhere; }
.event-location-inline { margin: -3px 0 12px; color: var(--muted); font-size: .9rem; line-height: 1.4; }


/* V6.0.7 — visualização e política de senha */
.password-field {
  position: relative;
  display: block;
  width: 100%;
}
.password-field input {
  padding-right: 50px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #637067;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  background: #edf3ee;
  color: var(--primary-dark);
  outline: none;
}
.password-toggle img {
  width: 20px;
  height: 20px;
  display: block;
  opacity: .85;
}
.password-requirements {
  margin-top: -4px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafcf9;
  color: var(--muted);
}
.password-requirements strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: .86rem;
}
.password-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}
.password-requirements li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.3;
  transition: color .15s ease;
}
.password-rule-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf0ed;
  color: #788179;
  font-size: .72rem;
  font-weight: 900;
}
.password-requirements li.passed {
  color: var(--success);
}
.password-requirements li.passed .password-rule-icon {
  background: #e2f2e6;
  color: var(--success);
}
@media (max-width: 560px) {
  .password-requirements ul { grid-template-columns: 1fr; }
}


/* V6.0.8 — editor visual premium por evento */
.theme-editor-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr); gap:20px; align-items:start; margin-bottom:20px; }
.theme-controls { display:grid; gap:14px; }
.theme-color-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.theme-color-grid label { font-size:.84rem; }
.theme-color-grid input[type="color"] { min-height:46px; padding:5px; cursor:pointer; }
.theme-live-preview-wrap { position:sticky; top:16px; display:grid; gap:9px; }
.theme-live-preview { --preview-primary:#386641; --preview-bg:#f5f7f4; --preview-card:#fff; --preview-text:#172019; --preview-font:Inter,system-ui,sans-serif; background:var(--preview-bg); color:var(--preview-text); font-family:var(--preview-font); border:1px solid var(--line); border-radius:18px; padding:22px; text-align:center; min-height:330px; box-shadow:0 14px 34px rgba(25,40,29,.07); }
.theme-live-preview[data-alignment="left"] { text-align:left; }
.theme-live-preview h4 { margin:12px 0 6px; font-size:1.65rem; letter-spacing:-.03em; }
.theme-live-preview > p { margin:0 0 18px; opacity:.7; }
.theme-preview-pill { display:inline-flex; padding:6px 10px; border-radius:999px; background:color-mix(in srgb, var(--preview-primary) 12%, white); color:var(--preview-primary); font-size:.72rem; font-weight:900; text-transform:uppercase; letter-spacing:.04em; }
.theme-preview-card { display:grid; gap:8px; padding:18px; background:var(--preview-card); border:1px solid color-mix(in srgb, var(--preview-text) 12%, transparent); border-radius:14px; text-align:left; }
.theme-live-preview[data-card-style="rounded"] .theme-preview-card { border-radius:24px; }
.theme-live-preview[data-card-style="square"] .theme-preview-card { border-radius:4px; }
.theme-preview-card span { font-size:.85rem; opacity:.7; }
.theme-preview-card button { margin-top:7px; border:0; background:var(--preview-primary); color:#fff; min-height:42px; padding:10px 14px; border-radius:12px; font:inherit; font-weight:800; }
.theme-live-preview[data-button-style="pill"] .theme-preview-card button { border-radius:999px; }
.theme-live-preview[data-button-style="square"] .theme-preview-card button { border-radius:4px; }

.rsvp-page { font-family:var(--event-font-family, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif); background:var(--bg); color:var(--text); }
.rsvp-page[data-event-alignment="left"] .rsvp-hero { text-align:left; }
.rsvp-page[data-event-alignment="left"] .rsvp-media.profile-only { place-items:start; }
.rsvp-page[data-event-alignment="left"] .rsvp-profile-frame { margin-left:0; }
.rsvp-page[data-event-card-style="rounded"] .rsvp-card { border-radius:32px; }
.rsvp-page[data-event-card-style="square"] .rsvp-card { border-radius:6px; }
.rsvp-page[data-event-card-style="rounded"] .event-location-card,
.rsvp-page[data-event-card-style="rounded"] .companion-section { border-radius:22px; }
.rsvp-page[data-event-card-style="square"] .event-location-card,
.rsvp-page[data-event-card-style="square"] .companion-section { border-radius:4px; }
.rsvp-page[data-event-button-style="pill"] .btn { border-radius:999px; }
.rsvp-page[data-event-button-style="square"] .btn { border-radius:4px; }
.rsvp-page .brand-pill, .rsvp-page .eyebrow { color:var(--primary-dark); }
.rsvp-page .rsvp-card, .rsvp-page .theme-surface { background:var(--card); }

@media (max-width:900px) {
  .theme-editor-grid { grid-template-columns:1fr; }
  .theme-live-preview-wrap { position:static; }
}
@media (max-width:620px) {
  .theme-color-grid { grid-template-columns:1fr 1fr; }
}


/* V6.1.1 — destaque da personalização na landing page */
.landing-customization-section {
  margin-top: 34px;
}
.landing-customization-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
}
.landing-customization-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.04em;
}
.landing-customization-copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 620px;
}
.landing-customization-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 20px;
}
.landing-customization-list span {
  position: relative;
  padding-left: 24px;
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.4;
}
.landing-customization-list span::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 900;
}
.landing-theme-demo {
  padding: 20px;
  overflow: hidden;
}
.theme-demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.theme-demo-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.theme-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: .78rem;
  font-weight: 800;
}
.theme-chip.active {
  border-color: #a9c7ae;
  background: #edf6ef;
  color: var(--primary-dark);
}
.theme-demo-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.theme-demo-controls div {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafcf9;
}
.theme-demo-controls span {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
}
.theme-demo-controls strong {
  font-size: .9rem;
}
.theme-demo-colors {
  display: flex;
  gap: 9px;
  margin: 14px 0;
}
.theme-swatch {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(23,32,25,.12);
}
.swatch-one { background: #386641; }
.swatch-two { background: #f5f7f4; }
.swatch-three { background: #ffffff; }
.swatch-four { background: #172019; }
.theme-demo-preview {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 92px 22px 22px;
  border-radius: 18px;
  border: 1px solid #e1e7df;
  background: #fbfaf6;
  text-align: center;
}
.theme-demo-cover {
  position: absolute;
  inset: 0 0 auto;
  height: 76px;
  background: linear-gradient(135deg, #466a50, #d8c9a2 58%, #74947b);
}
.theme-demo-avatar {
  position: absolute;
  top: 45px;
  left: 50%;
  width: 58px;
  height: 58px;
  transform: translateX(-50%);
  border: 4px solid #fbfaf6;
  border-radius: 50%;
  background: linear-gradient(145deg, #efe4c9, #56755d);
  box-shadow: 0 6px 18px rgba(28,45,32,.14);
}
.theme-demo-preview > span {
  display: inline-block;
  color: #56705d;
  font-size: .73rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.theme-demo-preview h3 {
  margin: 8px auto 14px;
  max-width: 330px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  line-height: 1.15;
}
.theme-demo-field {
  height: 38px;
  margin: 0 auto 10px;
  max-width: 330px;
  border: 1px solid #d8ded5;
  border-radius: 12px;
  background: #fff;
}
.theme-demo-button {
  display: grid;
  place-items: center;
  min-height: 40px;
  margin: 0 auto;
  max-width: 330px;
  border-radius: 999px;
  background: #386641;
  color: #fff;
  font-size: .86rem;
  font-weight: 850;
}
@media (max-width: 800px) {
  .landing-customization-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .landing-customization-list {
    grid-template-columns: 1fr;
  }
  .theme-demo-controls {
    grid-template-columns: 1fr 1fr;
  }
  .landing-theme-demo {
    padding: 16px;
  }
}

/* V6.1.1 — criação de evento em duas etapas */
.create-wizard-step { animation: createStepIn .16s ease-out; }
.create-step-header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 15px; background: #fafcf9; }
.create-step-header > div { display: grid; gap: 3px; }
.create-step-header strong { font-size: 1rem; }
.create-step-header span:not(.create-step-number) { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.create-step-number { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #eaf2eb; color: var(--primary-dark); font-weight: 900; }
.create-step-actions { margin-top: 2px; }
@keyframes createStepIn { from { opacity: .55; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 720px) {
  .create-step-actions { flex-direction: column; }
  .create-step-actions .btn { width: 100%; }
}


/* V6.1.2 — logo da marca */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
}
.brand-logo-img {
  display: block;
  width: auto;
  height: 42px;
}
.auth-brand-logo {
  height: 54px;
}
.brand-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.hero-brand-logo {
  height: 48px;
}
.theme-preview-pill-logo {
  padding: 10px 12px;
  background: color-mix(in srgb, var(--preview-primary) 10%, white);
}
.theme-preview-brand-logo {
  display: block;
  height: 28px;
  width: auto;
}
.theme-demo-preview > .theme-preview-brand-logo {
  height: 26px;
  width: auto;
  margin-bottom: 4px;
}
@media (max-width: 720px) {
  .brand-logo-img { height: 38px; }
  .auth-brand-logo { height: 50px; }
  .hero-brand-logo { height: 44px; }
}

/* V6.1.3 — Google Maps / Places no campo de local */
.place-input-shell {
  position: relative;
  display: block;
}
.place-input-shell > input {
  margin: 0;
}
.place-suggestions {
  position: absolute;
  z-index: 80;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid #d4dfd6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(23, 32, 25, .16);
}
.place-suggestion-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf1ed;
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
}
.place-suggestion-item:hover,
.place-suggestion-item:focus-visible {
  background: #f4f8f4;
  outline: none;
}
.place-suggestion-pin {
  flex: 0 0 auto;
  line-height: 1.35;
}
.place-suggestion-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.place-suggestion-copy strong {
  font-size: .92rem;
  line-height: 1.3;
}
.place-suggestion-copy small {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.35;
}
.place-suggestion-empty {
  padding: 13px 14px 9px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
  line-height: 1.4;
}
.google-maps-attribution {
  padding: 7px 12px 8px;
  text-align: right;
  color: #5e5e5e;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  white-space: nowrap;
  background: #fff;
}
.place-selected {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: -2px;
  padding: 13px 14px;
  border: 1px solid #cfe0d2;
  border-radius: 14px;
  background: #f3f8f4;
}
.place-selected-icon {
  flex: 0 0 auto;
  line-height: 1.35;
}
.place-selected-content {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.place-selected-content strong {
  font-size: .92rem;
  line-height: 1.35;
}
.place-selected-content span {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}
.place-selected-content a,
.event-location-maps-link {
  width: fit-content;
  margin-top: 3px;
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}
.place-selected-content a:hover,
.event-location-maps-link:hover {
  text-decoration: underline;
}
.event-location-address {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .place-suggestions {
    left: -2px;
    right: -2px;
  }
}
.place-selected-actions,
.event-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.place-selected-actions a {
  width: fit-content;
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}
.place-selected-actions a:hover { text-decoration: underline; }


/* V6.1.4 — diagnóstico do autocomplete de local */
.maps-autocomplete-status {
  display: block;
  margin-top: 7px;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}
.maps-autocomplete-status.loading { color: var(--muted); }
.maps-autocomplete-status.error { color: var(--danger); }
