    :root {
      --green-primary: #2d3b27;
      --green-dark: #1e291a;
      --green-light: #44563b;
      --rust: #9e4c27;
      --rust-hover: #833e1e;
      --brown-text: #4a3728;
      --text: #2f2a24;
      --text-light: #75695c;
      --paper-white: #fcfbf7;
      --cream-bg: #f4ede2;
      --gold-accent: #b8945a;
      --gold-light: #d8c5a8;
      --border: #ded4c5;
      --focus-ring: rgba(158, 76, 39, 0.15);
      --success-bg: #f2f7f4;
      --success-border: #cce3d5;
      --page-bg: #e5dcce;
      --shadow-card: 0 4px 20px rgba(45, 59, 39, 0.06);
      --shadow-invite: 0 15px 50px rgba(0, 0, 0, 0.15);
      --radius-lg: 20px;
      --radius-md: 12px;
      --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    *, *::before, *::after { box-sizing: border-box; }

    [hidden] { display: none !important; }

    html {
      scroll-behavior: smooth;
      font-size: 16px;
    }

    body {
      min-height: 100vh;
      margin: 0;
      padding-bottom: calc(96px + env(safe-area-inset-bottom));
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: var(--page-bg);
      background-image: radial-gradient(#d3c7b3 1px, transparent 1px);
      background-size: 24px 24px;
      color: var(--green-dark);
      font-family: "Montserrat", sans-serif;
      line-height: 1.6;
    }

    button, input, select { font: inherit; }

    button, a { -webkit-tap-highlight-color: transparent; }

    button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
      outline: 3px solid var(--gold-accent);
      outline-offset: 2px;
    }

    .invite-card {
      width: 100%;
      max-width: 520px;
      overflow: hidden;
      position: relative;
      background: var(--paper-white);
      box-shadow: var(--shadow-invite);
    }

    /* LISTA DE PRESENTES */
    .gifts-section {
      background: var(--paper-white);
      scroll-margin-top: 20px;
    }

    .gifts-main-title {
      margin: 0 0 6px;
      color: var(--rust);
      font-family: "Cormorant Garamond", serif;
      font-size: 2rem;
      font-weight: 700;
    }

    .gifts-desc {
      max-width: 420px;
      margin: 0 auto 24px;
      color: var(--brown-text);
      font-size: 0.85rem;
      line-height: 1.6;
    }

    .gifts-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
    }

    @media (min-width: 480px) {
      .gifts-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    .gift-card {
      background: var(--paper-white);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 20px 14px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      box-shadow: var(--shadow-card);
      transition: transform var(--transition);
    }

    .gift-card:hover {
      transform: translateY(-2px);
    }

    .gift-icon {
      font-size: 1.8rem;
      color: var(--rust);
      margin-bottom: 10px;
    }

    .gift-card h4 {
      margin: 0 0 8px;
      color: var(--green-primary);
      font-size: 0.95rem;
      font-weight: 600;
      min-height: 38px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .gift-price {
      display: block;
      color: var(--green-light);
      font-weight: 700;
      font-size: 1.1rem;
      margin-bottom: 14px;
    }

    .btn-gift {
      width: 100%;
      min-height: 40px;
      padding: 8px 12px;
      font-size: 0.8rem;
    }
    
    /* ESTILOS PARA O CARD DE VALOR LIVRE */
    .gift-card-custom {
      background: var(--paper-white);
      border: 1px dashed var(--rust);
      border-radius: var(--radius-md);
      padding: 20px 16px;
      margin-top: 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      box-shadow: var(--shadow-card);
    }

    .gift-card-custom h4 {
      margin: 0 0 4px;
      color: var(--green-primary);
      font-size: 1rem;
      font-weight: 600;
    }

    .custom-desc {
      margin: 0 0 12px;
      color: var(--brown-text);
      font-size: 0.8rem;
    }

    .btn-gift-custom {
      width: 100%;
      max-width: 280px;
      min-height: 42px;
      font-size: 0.85rem;
    }
    
    .invite-inner { width: 100%; }

    .hero {
      padding: 60px 24px 40px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      background:
        linear-gradient(180deg, rgba(252, 251, 247, 0.75), rgba(252, 251, 247, 0.75)),
        url("igreja.png") center / cover no-repeat;
      border-bottom: 1px solid var(--gold-light);
    }

    .monogram-container { margin-bottom: 24px; }

    .monogram-image {
      display: block;
      width: 150px;
      height: 150px;
      object-fit: contain;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    }

    .kicker {
      margin-bottom: 16px;
      color: var(--gold-accent);
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.3em;
      text-transform: uppercase;
    }

    .names-title {
      margin: 0 0 12px;
      color: var(--green-primary);
      font-family: "Cormorant Garamond", serif;
      font-size: clamp(2.2rem, 8vw, 3.5rem);
      font-weight: 700;
      line-height: 1.1;
    }

    .ampersand {
      display: block;
      margin-top: 15px;
      color: var(--rust);
      font-family: "Allura", cursive;
      font-size: 3.2rem;
      font-weight: 400;
      line-height: 0.8;
    }

    .hero-intro {
      max-width: 400px;
      margin: 16px 0 0;
      color: var(--brown-text);
      font-family: "Cormorant Garamond", serif;
      font-size: 1.25rem;
      font-style: italic;
    }

    .hero-tab {
    width: 100%;
    padding: 24px 20px;
    background: var(--green-primary);
    color: #f8f0e1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    }

    .hero-tab .hero-intro {
        max-width: 400px;
        margin: 0 auto;
        color: #f8f0e1;
    }
    .countdown-section {
      position: relative;
      width: 100%;
      aspect-ratio: 3 / 4;
      margin: 0;
      padding: 0;
      background: url("background.png") center / 100% 100% no-repeat;
    }

    .countdown-title { display: none; }

    .timer-grid {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: block;
      max-width: none;
      margin: 0;
    }

    .timer-box {
      position: absolute;
      right: 19.5%;
      width: 15%;
      height: auto;
      padding: 0;
      border: none;
      background: transparent;
      backdrop-filter: none;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .timer-label { display: none; }

    .timer-number {
      color: #f8f0e1;
      font-family: "Cormorant Garamond", serif;
      font-size: clamp(1.8rem, 6vw, 3rem);
      font-weight: 700;
      line-height: 1;
      padding: 0 8px;
      border-radius: 4px;
    }

    .timer-box:nth-child(1) { top: 28.5%; }
    .timer-box:nth-child(2) { top: 45%; }
    .timer-box:nth-child(3) { top: 61%; }
    .timer-box:nth-child(4) { top: 77%; }

    .section-block {
      position: relative;
      padding: 40px 24px;
      text-align: center;
    }

    .section-divider {
      width: 60px;
      height: 1px;
      margin: 0 auto 30px;
      background: var(--gold-accent);
    }

    .details-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 20px;
    }

    .detail-card {
      padding: 20px 12px;
      border: 1px solid var(--gold-light);
      border-radius: var(--radius-md);
      background: var(--paper-white);
      box-shadow: var(--shadow-card);
      transition: transform var(--transition), border-color var(--transition);
    }

    .detail-card.full-width { grid-column: 1 / -1; }

    .detail-card:hover {
      transform: translateY(-2px);
      border-color: var(--gold-accent);
    }

    .detail-icon {
      margin-bottom: 8px;
      color: var(--rust);
      font-size: 1.5rem;
    }

    .detail-title {
      margin: 0 0 4px;
      color: var(--green-primary);
      font-family: "Cormorant Garamond", serif;
      font-size: 1.35rem;
      font-weight: 700;
    }

    .detail-sub {
      margin: 0;
      color: var(--brown-text);
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .address-text {
      margin-top: 6px;
      color: var(--brown-text);
      font-size: 0.85rem;
      font-style: normal;
      line-height: 1.4;
    }

    .action-buttons {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 28px;
    }

    .btn {
      width: 100%;
      min-height: 50px;
      padding: 12px 20px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border: 0;
      border-radius: var(--radius-md);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
      cursor: pointer;
      font-size: 0.85rem;
      font-weight: 600;
      text-decoration: none;
      transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
    }

    .btn:hover { transform: translateY(-2px); }

    .btn-primary {
      background: var(--green-primary);
      color: var(--paper-white);
    }

    .btn-primary:hover {
      background: var(--green-light);
      box-shadow: 0 6px 15px rgba(45, 59, 39, 0.2);
    }

    .btn-secondary {
      background: var(--rust);
      color: var(--paper-white);
    }

    .btn-secondary:hover {
      background: var(--rust-hover);
      box-shadow: 0 6px 15px rgba(158, 76, 39, 0.2);
    }

    .btn-outline {
      border: 1px solid var(--green-primary);
      background: transparent;
      color: var(--green-primary);
    }

    .btn-outline:hover { background: rgba(45, 59, 39, 0.05); }

    .music-section { background: #f9f6f0; }

    .music-player {
      margin-bottom: 12px;
      padding: 12px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border: 1px solid var(--gold-light);
      border-radius: var(--radius-md);
      background: #ede5d8;
    }

    .music-info {
      display: flex;
      align-items: center;
      gap: 12px;
      text-align: left;
    }

    .music-icon { color: var(--rust); font-size: 1.2rem; }

    .music-text strong {
      display: block;
      color: var(--green-primary);
      font-size: 0.85rem;
    }

    .music-text span {
      color: var(--brown-text);
      font-size: 0.75rem;
    }

    .music-link {
      width: auto;
      min-height: auto;
      padding: 8px 12px;
      flex-shrink: 0;
      font-size: 0.75rem;
    }

    .pix-card {
      margin: 0 0 24px;
      padding: 20px;
      border: 1px solid var(--gold-accent);
      border-radius: var(--radius-md);
      background: #f5eedf;
      text-align: left;
    }

    .pix-header {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 16px;
    }

    .pix-icon {
      flex-shrink: 0;
      color: #32bcad;
      font-size: 2rem;
      line-height: 1;
    }

    .pix-title {
      margin: 0 0 2px;
      color: var(--green-primary);
      font-family: "Cormorant Garamond", serif;
      font-size: 1.6rem;
      font-weight: 700;
      line-height: 1.1;
    }

    .pix-desc {
      margin: 0;
      color: var(--brown-text);
      font-size: 0.8rem;
      line-height: 1.5;
    }

    .pix-info {
      width: 100%;
      min-width: 0;
    }

    .pix-key {
      margin-bottom: 12px;
      padding: 10px 14px;
      border: 1px solid var(--gold-light);
      border-radius: 8px;
      background: #fff;
      color: #333;
      font-family: monospace;
      font-size: 0.85rem;
      word-break: break-all;
      user-select: all;
    }

    .pix-info .btn {
      min-height: 44px;
      font-size: 0.8rem;
    }

    .pix-note {
      min-height: 18px;
      margin: 8px 0 0;
      color: #766756;
      font-size: 0.75rem;
      transition: color var(--transition);
    }

    .payment-divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 24px 0 18px;
      color: var(--text-light);
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .payment-divider::before,
    .payment-divider::after {
      content: "";
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    .payment-methods {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      margin-top: 22px;
      color: var(--text-light);
      font-size: 1.45rem;
    }

    .payment-secure {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin: 12px 0 0;
      color: var(--text-light);
      font-size: 0.75rem;
      line-height: 1.5;
    }

    .payment-secure i { color: var(--green-light); }

    .quote-section {
      padding: 50px 28px;
      background: var(--green-primary);
      color: #f8f0e1;
      text-align: center;
    }

    .quote-text {
      margin: 0;
      font-family: "Cormorant Garamond", serif;
      font-size: 1.6rem;
      font-style: italic;
      line-height: 1.35;
    }

    .quote-footer {
      margin-top: 16px;
      color: var(--gold-light);
      font-size: 0.7rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
    }

    .final-message {
      margin: 0;
      color: var(--brown-text);
      font-family: "Cormorant Garamond", serif;
      font-size: 1.35rem;
      line-height: 1.5;
    }

    .footer {
      padding: 30px 20px;
      border-top: 1px solid var(--gold-light);
      background: #eae1d2;
      text-align: center;
    }

    .footer-names {
      color: var(--green-primary);
      font-family: "Cormorant Garamond", serif;
      font-size: 1.4rem;
      font-weight: 600;
    }

    .footer-dev {
      margin: 6px 0 0;
      color: #887867;
      font-size: 0.75rem;
    }

    /* RSVP */
    .rsvp-section {
      background: var(--cream-bg);
      scroll-margin-top: 20px;
    }

    .rsvp-container {
      width: 100%;
      max-width: 480px;
      margin: 0 auto;
      padding: 40px 32px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--paper-white);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    }

    .rsvp-header { margin-bottom: 28px; }

    .rsvp-subtitle {
      display: block;
      margin-bottom: 8px;
      color: var(--rust);
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    .rsvp-title {
      margin: 0 0 12px;
      color: var(--green-dark);
      font-family: "Cormorant Garamond", serif;
      font-size: 1.7rem;
      font-weight: 800;
      line-height: 1.1;
    }

    .rsvp-description {
      margin: 0;
      color: var(--text-light);
      font-size: 0.9rem;
      line-height: 1.5;
    }

    .rsvp-description strong {
      color: var(--rust);
      white-space: nowrap;
    }

    .rsvp-form {
      display: flex;
      flex-direction: column;
      gap: 20px;
      text-align: left;
    }

    .names-container {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .form-group label {
      color: var(--green-dark);
      font-size: 0.85rem;
      font-weight: 500;
    }

    .input-with-remove {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .form-group input {
      width: 100%;
      padding: 14px 16px;
      border: 1px solid var(--border);
      border-radius: 8px;
      outline: 0;
      background: #faf9f6;
      color: var(--text);
      font-size: 0.95rem;
      transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    }

    .form-group input::placeholder { color: #aaa; }

    .form-group input:focus {
      border-color: var(--rust);
      background: #fff;
      box-shadow: 0 0 0 4px var(--focus-ring);
    }

    .btn-remove-person {
      padding: 0;
      width: 46px;
      height: 48px;
      flex-shrink: 0;
      border: 1px solid #e2a9a9;
      background: #fff5f5;
      color: #c53030;
      border-radius: 8px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      transition: all 0.2s ease;
    }

    .btn-remove-person:hover {
      background: #fed7d7;
      color: #9b2c2c;
    }

    .btn-add-person {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 16px;
      background: transparent;
      border: 1px dashed var(--gold-accent);
      color: var(--rust);
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      margin-top: 4px;
    }

    .btn-add-person:hover {
      background: #fdf8f2;
      border-color: var(--rust);
    }

    .btn-submit {
      margin-top: 10px;
      width: 100%;
      padding: 16px;
      border: 0;
      border-radius: 8px;
      background: var(--green-dark);
      color: #fff;
      cursor: pointer;
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      transition: background-color 0.2s ease, transform 0.1s ease;
    }

    .btn-submit:hover:not(:disabled) { background: var(--green-light); }
    .btn-submit:active:not(:disabled) { transform: scale(0.99); }

    .btn-submit:disabled {
      background: #a3b0a8;
      cursor: not-allowed;
    }

    .success-message {
      padding: 24px;
      border: 1px solid var(--success-border);
      border-radius: 8px;
      background: var(--success-bg);
      color: var(--green-dark);
      font-size: 0.95rem;
      line-height: 1.5;
      text-align: center;
    }

    .success-message strong {
      display: block;
      margin-bottom: 6px;
      font-family: "Cormorant Garamond", serif;
      font-size: 1.6rem;
      line-height: 1.1;
    }

    .success-message p {
      margin: 0 0 16px;
      font-size: 0.88rem;
    }

    .success-message .btn {
      margin-top: 8px;
      min-height: 46px;
      font-size: 0.8rem;
    }

    .success-icon {
      display: block;
      margin-bottom: 8px;
      color: #2f6b4f;
      font-size: 2rem;
    }

    .success-reset {
      display: inline-block;
      margin-top: 14px;
      padding: 4px;
      border: 0;
      background: transparent;
      color: var(--text-light);
      cursor: pointer;
      font-size: 0.75rem;
      text-decoration: underline;
    }

    .success-reset:hover { color: var(--rust); }

    .rsvp-deadline-notice {
      padding: 18px;
      border: 1px solid #e2c9a9;
      border-radius: 8px;
      background: #fdf8ef;
      color: var(--brown-text);
      font-size: 0.9rem;
      line-height: 1.5;
      text-align: center;
    }

    /* BARRA FIXA DE AÇÕES */
    .sticky-actions {
      position: fixed;
      left: 50%;
      bottom: calc(12px + env(safe-area-inset-bottom));
      z-index: 60;
      display: grid;
      grid-template-columns: 1.25fr 1fr;
      gap: 8px;
      width: calc(100% - 24px);
      max-width: 496px;
      padding: 8px;
      border: 1px solid var(--gold-light);
      border-radius: 16px;
      background: rgba(252, 251, 247, 0.94);
      box-shadow: 0 12px 34px rgba(30, 41, 26, 0.22);
      backdrop-filter: blur(10px);
      transform: translateX(-50%);
    }

    .sticky-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 48px;
      padding: 10px 12px;
      border-radius: 10px;
      color: #fff;
      font-size: 0.8rem;
      font-weight: 700;
      text-decoration: none;
      transition: transform var(--transition), background-color var(--transition);
    }

    .sticky-btn:active { transform: scale(0.98); }

    .sticky-btn-primary { background: var(--green-primary); }
    .sticky-btn-primary:hover { background: var(--green-light); }

    .sticky-btn-secondary { background: var(--rust); }
    .sticky-btn-secondary:hover { background: var(--rust-hover); }

    .sticky-btn.is-confirmed { background: #2f6b4f; }

    .fade-in.will-animate {
      opacity: 0;
      transform: translateY(15px);
      transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .fade-in.will-animate.visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (min-width: 600px) {
      body {
        padding: 40px 20px calc(96px + env(safe-area-inset-bottom));
      }
      .invite-card { border-radius: var(--radius-lg); }
    }

    @media (max-width: 380px) {
      .hero { padding-inline: 18px; }
      .section-block { padding-inline: 18px; }
      .rsvp-container { padding-inline: 20px; }
      .names-title { font-size: 2rem; }
      .music-player { align-items: flex-start; }
      .sticky-btn { font-size: 0.72rem; padding-inline: 8px; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition-duration: 0.01ms !important; }
      .fade-in.will-animate { opacity: 1; transform: none; }
    }
