:root {
    --rose-50: #fff7f8;
    --rose-100: #ffe6ec;
    --rose-200: #f8c5d1;
    --rose-500: #c76783;
    --plum-700: #59314c;
    --plum-500: #7b4d70;
    --champagne: #f4d99b;
    --gold: #cda45e;
    --ivory: #fffdf9;
    --sage: #7f9887;
    --ink: #3c2734;
    --muted: #8f7483;
    --line: rgba(89, 49, 76, 0.12);
    --shadow: 0 22px 48px rgba(94, 47, 72, 0.14);
    --radius: 22px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--rose-50);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(180deg, #fff8f8, #fdf1f4 40%, #fef6ee);
    -webkit-font-smoothing: antialiased;
}

body.sem-rolagem {
    overflow: hidden;
}

.container {
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 20px 14px 100px;
    position: relative;
    z-index: 1;
}

/* ---------- Fundo moderno (auras + brilhos) ---------- */
.aura-fundo {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.aura {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: aura-flutuar 16s ease-in-out infinite;
}

.a1 {
    top: -8%;
    left: -12%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(248, 197, 209, 0.85), transparent 70%);
}

.a2 {
    top: 30%;
    right: -18%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(244, 217, 155, 0.55), transparent 70%);
    animation-delay: -5s;
}

.a3 {
    bottom: -12%;
    left: 8%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(199, 103, 131, 0.28), transparent 70%);
    animation-delay: -10s;
}

@keyframes aura-flutuar {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(3%, -4%) scale(1.08); }
}

.brilho {
    position: absolute;
    font-size: 16px;
    opacity: 0.5;
    filter: drop-shadow(0 6px 10px rgba(137, 84, 111, 0.16));
    animation: flutuar 9s ease-in-out infinite;
}

.b1 { top: 10%; right: 10%; animation-delay: 0s; }
.b2 { top: 60%; left: 6%; animation-delay: 2.4s; }
.b3 { top: 85%; right: 12%; font-size: 20px; animation-delay: 4.5s; }

@keyframes flutuar {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(9deg); }
}

/* ---------- Entrada suave ---------- */
@keyframes surgir {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.em-vista,
.reveal-imediato {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Cartões ---------- */
.cartao {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 26px 20px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.cartao::before {
    content: "";
    position: absolute;
    inset: 6px;
    pointer-events: none;
    border: 1px solid rgba(244, 217, 155, 0.5);
    border-radius: calc(var(--radius) - 6px);
}

/* ---------- Hero (convite) ---------- */
.hero {
    margin-bottom: 18px;
    animation: surgir 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-media {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 70%;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(89, 49, 76, 0.05) 0%, rgba(89, 49, 76, 0.05) 55%, rgba(255, 253, 249, 0.98) 96%);
}

.hero-selo {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 24px rgba(89, 49, 76, 0.16);
    color: var(--plum-700);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
}

.hero-foto {
    position: relative;
    z-index: 2;
    width: 108px;
    height: 108px;
    margin: -54px auto 0;
    border-radius: 50%;
    border: 4px solid rgba(255, 253, 249, 0.98);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: rgba(255, 253, 249, 0.98);
}

.hero-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero-texto {
    position: relative;
    margin: -46px 14px 0;
    padding: 58px 20px 26px;
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    text-align: center;
}

.hero-texto::before {
    content: "";
    position: absolute;
    inset: 6px;
    pointer-events: none;
    border: 1px solid rgba(244, 217, 155, 0.5);
    border-radius: calc(var(--radius) - 6px);
}

.pre-titulo,
.sub-titulo {
    position: relative;
    margin: 0;
    color: var(--plum-500);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.titulo {
    position: relative;
    margin: 6px 0 8px;
    color: var(--rose-500);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(38px, 12vw, 52px);
    font-weight: 600;
    line-height: 1;
    text-shadow: 0 12px 28px rgba(199, 103, 131, 0.18);
}

.nome-aniversariante {
    position: relative;
    display: inline-block;
    margin: 6px 0 0;
    padding: 0 6px;
    color: var(--plum-700);
    font-family: 'Pacifico', cursive;
    font-size: clamp(25px, 7.5vw, 32px);
    font-weight: 400;
    line-height: 1.15;
}

.ornamento {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px auto 14px;
    width: min(220px, 70%);
}

.ornamento i {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.ornamento i:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.ornamento b {
    color: var(--gold);
    font-size: 13px;
    font-weight: 400;
    transform: translateY(-1px);
}

.idade {
    position: relative;
    margin: 0 auto;
    max-width: 270px;
    color: var(--plum-500);
    font-size: 15px;
    line-height: 1.5;
}

.idade strong {
    color: var(--rose-500);
}

/* ---------- Detalhes do evento ---------- */
.detalhes-card {
    padding-top: 24px;
}

.data-destaque {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(120deg, #c76783, #9a567d 55%, #7b4d70);
    box-shadow: 0 16px 32px rgba(154, 86, 125, 0.32);
}

.data-destaque-bloco {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 0;
    min-width: 0;
}

.data-destaque-bloco-hora {
    flex: 0 0 auto;
}

.data-destaque-divisor {
    align-self: stretch;
    width: 1px;
    background: rgba(255, 255, 255, 0.28);
}

.data-destaque-icone {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 20px;
}

.data-destaque-rotulo {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.data-destaque-texto {
    display: block;
    margin-top: 3px;
    color: #ffffff;
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.data-destaque-bloco-hora .data-destaque-texto {
    white-space: nowrap;
}

.grade-detalhes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.detalhe-bloco {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(244, 217, 155, 0.55);
    border-radius: 16px;
    background: linear-gradient(180deg, #fffaf2, #fff5f8);
}

.detalhe-bloco .icone {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #fff4f7;
    box-shadow: inset 0 0 0 1px rgba(199, 103, 131, 0.12);
    font-size: 16px;
}

.detalhe-bloco div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.detalhe-bloco strong {
    color: var(--plum-700);
    font-size: 13px;
    font-weight: 800;
}

.detalhe-bloco span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.foto-local {
    margin: 14px 0 0;
    padding: 0;
}

.foto-local img {
    display: block;
    width: 100%;
    height: 168px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(244, 217, 155, 0.7);
    box-shadow: 0 16px 30px rgba(89, 49, 76, 0.16);
}

.foto-local figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
}

/* ---------- Botões ---------- */
.botao-mapa,
.botao-enviar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.botao-mapa::after,
.botao-enviar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 45%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.botao-mapa:hover::after,
.botao-enviar:hover::after {
    transform: translateX(120%);
}

.botao-mapa {
    width: 100%;
    margin-top: 14px;
    padding: 13px 18px;
    color: var(--plum-700);
    background: linear-gradient(135deg, #fff8ea, #f6dc9a);
    box-shadow: 0 10px 24px rgba(131, 93, 38, 0.18);
}

.botao-mapa:hover,
.botao-enviar:hover {
    transform: translateY(-1px);
}

.botao-mapa:active,
.botao-enviar:active {
    transform: translateY(1px);
}

/* ---------- Avisos ---------- */
.aviso {
    margin-bottom: 14px;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    animation: surgir 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.aviso-sucesso {
    border: 1px solid rgba(127, 152, 135, 0.25);
    background: #eef8f1;
    color: #356346;
}

.aviso-erro {
    border: 1px solid rgba(196, 61, 92, 0.18);
    background: #fff0f2;
    color: #9c3150;
}

/* ---------- Formulário ---------- */
.formulario,
.lista {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 250, 0.9)),
        var(--ivory);
}

.titulo-secao {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 14px;
    color: var(--plum-700);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.titulo-secao::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 56px;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.campo {
    margin-bottom: 16px;
}

.campo label,
.rotulo-grupo {
    display: block;
    margin-bottom: 7px;
    color: var(--plum-700);
    font-size: 13px;
    font-weight: 800;
}

input[type="text"],
input[type="password"],
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    border: 1px solid rgba(199, 103, 131, 0.24);
    border-radius: 12px;
    outline: none;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: rgba(143, 116, 131, 0.76);
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: rgba(199, 103, 131, 0.72);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(199, 103, 131, 0.12);
}

/* Rótulo flutuante (usado em nome / mensagem) */
.campo-flutuante {
    position: relative;
}

.campo-flutuante input,
.campo-flutuante textarea {
    padding-top: 20px;
    padding-bottom: 6px;
}

.campo-flutuante textarea {
    padding-top: 22px;
}

.campo-flutuante label {
    position: absolute;
    left: 14px;
    top: 15px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    pointer-events: none;
    transform-origin: left top;
    transition: transform 0.16s ease, color 0.16s ease, top 0.16s ease;
}

.campo-flutuante input:focus + label,
.campo-flutuante input:not(:placeholder-shown) + label,
.campo-flutuante textarea:focus + label,
.campo-flutuante textarea:not(:placeholder-shown) + label {
    top: 7px;
    color: var(--rose-500);
    transform: scale(0.76);
}

.opcoes-confirmacao {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.opcao {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 56px;
    padding: 10px 8px;
    border: 1px solid rgba(199, 103, 131, 0.22);
    border-radius: 12px;
    color: var(--plum-700);
    background: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.opcao input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.opcao:active {
    transform: scale(0.99);
}

.opcao-sim:has(input:checked),
.opcao-sim.opcao-marcada {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, #c76783, #9a567d);
    box-shadow: 0 12px 24px rgba(199, 103, 131, 0.22);
}

.opcao-nao:has(input:checked),
.opcao-nao.opcao-marcada {
    border-color: rgba(127, 152, 135, 0.18);
    color: #ffffff;
    background: linear-gradient(135deg, #7f9887, #557064);
    box-shadow: 0 12px 24px rgba(85, 112, 100, 0.2);
}

.campo-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.botao-enviar {
    width: 100%;
    padding: 14px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #be5878, #6f3b62);
    box-shadow: 0 14px 28px rgba(111, 59, 98, 0.26);
}

.botao-enviar:hover {
    filter: brightness(1.03);
}

/* ---------- Lista de confirmados (admin) ---------- */
.resumo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.resumo-item {
    min-height: 82px;
    padding: 12px 8px;
    border: 1px solid rgba(244, 217, 155, 0.55);
    border-radius: 12px;
    background: linear-gradient(180deg, #fffaf0, #fff3f6);
    text-align: center;
}

.resumo-item strong {
    display: block;
    color: var(--rose-500);
    font-size: 28px;
    line-height: 1;
}

.resumo-item span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.lista-vazia {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.lista-confirmados {
    list-style: none;
    margin: 0;
    padding: 0;
}

.item-confirmado {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}

.item-confirmado:last-child {
    border-bottom: none;
}

.item-icone {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff2f6;
    font-size: 16px;
}

.item-texto {
    min-width: 0;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.35;
}

.item-texto strong {
    overflow-wrap: anywhere;
}

.item-data {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.item-acompanhantes {
    display: inline-flex;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--plum-700);
    background: #fff0f4;
    font-size: 12px;
    font-weight: 800;
}

.item-mensagem {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
    overflow-wrap: anywhere;
}

.item-recusado {
    opacity: 0.68;
}

.rodape {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.rodape::before {
    content: "· 🩰 ·";
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    letter-spacing: 0.3em;
}

/* ---------- Admin ---------- */
.cabecalho-admin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.cabecalho-admin .titulo-secao {
    margin: 0;
    padding-bottom: 0;
    text-align: left;
}

.cabecalho-admin .titulo-secao::after {
    display: none;
}

.botao-sair {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--plum-700);
    background: #fff2f6;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.rodape-link {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.rodape-link a {
    color: var(--plum-700);
    text-decoration: none;
}

.lista-admin .item-confirmado {
    position: relative;
    padding-right: 42px;
}

.lista-admin + .rodape-link {
    margin-top: 18px;
}

.form-remover {
    position: absolute;
    right: 0;
    top: 8px;
}

.botao-remover {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(196, 61, 92, 0.12);
    border-radius: 10px;
    background: #fff1f3;
    cursor: pointer;
    font-size: 15px;
}

/* ---------- Modal de confirmação ---------- */
.modal-fundo {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(59, 32, 47, 0.42);
    backdrop-filter: blur(6px);
    animation: modal-fundo-surgir 0.35s ease both;
}

.modal-fundo.modal-saindo {
    animation: modal-fundo-surgir 0.2s ease reverse both;
}

.modal-fundo.modal-saindo .modal-cartao {
    animation: modal-cartao-surgir 0.2s ease reverse both;
}

@keyframes modal-fundo-surgir {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-cartao {
    position: relative;
    width: min(100%, 360px);
    padding: 34px 26px 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 250, 0.95)),
        var(--ivory);
    box-shadow: 0 30px 60px rgba(94, 47, 72, 0.28);
    text-align: center;
    animation: modal-cartao-surgir 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-cartao::before {
    content: "";
    position: absolute;
    inset: 8px;
    pointer-events: none;
    border: 1px solid rgba(244, 217, 155, 0.6);
    border-radius: 18px;
}

@keyframes modal-cartao-surgir {
    from { opacity: 0; transform: translateY(18px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-selo {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff0f4, #ffe1ea);
    box-shadow: inset 0 0 0 1px rgba(199, 103, 131, 0.18), 0 10px 22px rgba(199, 103, 131, 0.18);
    font-size: 26px;
    animation: flutuar 5s ease-in-out infinite;
}

.modal-ornamento {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(160px, 60%);
    margin: 12px auto 10px;
}

.modal-ornamento i {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.modal-ornamento i:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.modal-ornamento b {
    color: var(--gold);
    font-size: 12px;
    font-weight: 400;
}

.modal-titulo {
    margin: 0 0 10px;
    color: var(--plum-700);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.2;
}

.modal-texto {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
}

.modal-botao {
    width: auto;
    padding: 12px 28px;
}

.modal-fechar {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(199, 103, 131, 0.1);
    color: var(--plum-700);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.modal-fechar:hover {
    background: rgba(199, 103, 131, 0.2);
    transform: rotate(90deg);
}

/* ---------- Botão de música ---------- */
.musica-botao {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 15;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(255, 253, 249, 0.9);
    box-shadow: 0 14px 30px rgba(89, 49, 76, 0.2);
    color: var(--rose-500);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.18s ease;
}

.musica-botao:active {
    transform: scale(0.94);
}

.musica-icone {
    font-size: 20px;
}

.musica-onda {
    display: none;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}

.musica-onda i {
    width: 3px;
    height: 6px;
    border-radius: 999px;
    background: var(--rose-500);
    animation: onda 0.9s ease-in-out infinite;
}

.musica-onda i:nth-child(2) { animation-delay: 0.15s; }
.musica-onda i:nth-child(3) { animation-delay: 0.3s; }
.musica-onda i:nth-child(4) { animation-delay: 0.45s; }

@keyframes onda {
    0%, 100% { height: 6px; }
    50% { height: 18px; }
}

.musica-botao.tocando .musica-icone {
    display: none;
}

.musica-botao.tocando .musica-onda {
    display: flex;
}

/* ---------- Barra fixa de confirmação ---------- */
.barra-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255, 247, 248, 0), rgba(255, 247, 248, 0.96) 30%);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.barra-cta.visivel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.barra-cta .botao-enviar {
    max-width: 480px;
    margin: 0 auto;
    text-decoration: none;
}

@media (min-width: 430px) {
    .hero-media {
        height: 340px;
    }
}

@media (max-width: 360px) {
    .container {
        padding-inline: 10px;
    }

    .cartao {
        padding-inline: 14px;
    }

    .hero-media {
        height: 260px;
    }

    .hero-texto {
        margin-inline: 8px;
        padding-inline: 16px;
    }

    .opcoes-confirmacao {
        gap: 8px;
    }

    .opcao {
        font-size: 13px;
    }
}
