/* Faixa do topo e navbar (home, /precos e demais páginas do site). Complementa as regras .navbar do form.css. */
.promo-rot { position: relative; display: inline-block; min-height: 1.3em; vertical-align: middle; }
.promo-msg { display: none; animation: promo-in .5s ease both; }
.promo-msg.on { display: inline; }
.promo_banner { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .promo_banner { font-size: 12px !important; padding-left: 10px !important; padding-right: 10px !important; } }
@keyframes promo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.nav-create, .nav-login { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font: 700 13px "Quicksand", sans-serif; letter-spacing: normal; text-decoration: none; white-space: nowrap; transition: transform .15s, filter .2s; }
.nav-create { background: linear-gradient(180deg, #ff2d9b, #e0177f); color: #fff; box-shadow: 0 8px 18px -10px rgba(224, 23, 127, .9); }
.nav-login { color: #e6e6e6; border: 1px solid #333; }
.nav-create:hover, .nav-login:hover { transform: translateY(-1px); filter: brightness(1.08); }
/* Navbar fixa ao rolar: fundo liso igual ao da página e uma linha fina, sem desfoque nem sombra */
.navbar { position: sticky; top: 0; z-index: 900; height: 64px; max-width: none; background: transparent; border-bottom: 1px solid transparent; transition: background-color .25s ease, border-color .25s ease; }
.navbar.is-scrolled { background: #0d0d0d; border-bottom-color: rgba(255, 255, 255, .07); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 0; }
.nav-links a { position: relative; display: block; padding: 8px 12px; border-radius: 999px; color: #9a9a9a; font: 600 14px "Quicksand", sans-serif; text-decoration: none; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; background: rgba(255, 255, 255, .06); }
@media (max-width: 900px) { .nav-links { display: none; } }
.navbar .nav-create, .navbar .nav-login { transition: transform .15s, filter .2s, background-color .3s; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.nav-brand img { width: 30px; height: 30px; }
.navbar .nav-brand span { width: auto; }
.navbar .nav-create span, .navbar .nav-login span { letter-spacing: normal; font-size: 13px; width: auto; color: inherit; font-family: "Quicksand", sans-serif; font-weight: 700; }
@media (max-width: 520px) {
    .navbar { padding: 0 14px; }
    .navbar-buttons { gap: 8px; }
    .navbar-buttons > hr { display: none; }
    .navbar .cronolove-logo { width: auto; flex: none; gap: 7px; }
    .navbar .nav-brand span { font-size: 1.22rem; letter-spacing: .12em; }
    .nav-brand img { width: 30px; height: 30px; }
    .nav-login { display: none; }
    .nav-create { height: 32px; padding: 0 11px; gap: 4px; }
    .navbar .nav-create span { font-size: 12px; }
}
.promo_banner {
    display: block;            
    padding: 7px;
    font-size: 13px;
    width: 100%;
    background: linear-gradient(135deg, #ff69b4 0%, #fc53a8 43%, #ff1493 100%);
    font-family: "Quicksand", sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    font-weight: 900;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}


/* Aviso de rascunho (views/js/nav.js) */
.draft-card {
    position: fixed; left: 20px; bottom: 20px; z-index: 950;
    display: flex; gap: 14px; align-items: center;
    width: min(380px, calc(100vw - 32px)); padding: 14px 16px 14px 14px;
    border-radius: 18px; border: 1px solid #2a2a2a; background: #161616; color: #fff;
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
    font-family: "Quicksand", sans-serif;
    opacity: 0; transform: translateY(16px); pointer-events: none;
    transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.draft-card.show { opacity: 1; transform: none; pointer-events: auto; }
.draft-img { flex: none; width: 64px; height: 80px; border-radius: 12px; object-fit: cover; background: #222; }
.draft-img--empty { display: block; background: linear-gradient(135deg, #2a1420, #161616); }
.draft-body { min-width: 0; }
.draft-title { margin: 0; padding-right: 18px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.draft-sub { margin: 3px 0 0; color: #9b9b9b; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draft-acts { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.draft-go { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: linear-gradient(180deg, #ff2d9b, #e0177f); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.draft-go:hover { filter: brightness(1.06); }
.draft-del { padding: 0; border: 0; background: none; color: #7d7d7d; font: 600 12.5px "Quicksand", sans-serif; cursor: pointer; }
.draft-del:hover { color: #fff; }
.draft-x { position: absolute; top: 8px; right: 10px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: #8a8a8a; font-size: 18px; line-height: 1; cursor: pointer; }
.draft-x:hover { background: #222; color: #fff; }
/* com o aviso aberto, a barra flutuante "Criar agora" sai do caminho */
body.has-draft-card .mb-bar { display: none !important; }
body.has-draft-card .wa-float { opacity: 0; pointer-events: none; }
@media (max-width: 520px) {
    .draft-card { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .draft-card { transition: none; } }

/* Escolha do presente (views/js/nav.js) */
html.gp-lock, html.gp-lock body { overflow: hidden; }
.gp-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 5, 5, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s; font-family: "Quicksand", sans-serif; }
.gp-overlay.open { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.gp-sheet { position: relative; width: 100%; max-width: 460px; padding: 28px 22px 22px; border-radius: 24px; border: 1px solid #2a2a2a; background: #141414; color: #fff; transform: translateY(14px) scale(.98); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.gp-overlay.open .gp-sheet { transform: none; }
.gp-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #222; color: #bbb; font-size: 20px; line-height: 1; cursor: pointer; }
.gp-x:hover { color: #fff; background: #2c2c2c; }
.gp-title { text-align: left; color: #fff; margin: 0 40px 6px 4px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.gp-sub { text-align: left; margin: 0 0 18px 4px; color: #9b9b9b; font-size: 14px; }
.gp-sub:empty { display: none; }
.gp-list { display: grid; gap: 10px; }
.gp-opt { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; border: 1px solid #2a2a2a; background: #191919; color: #fff; text-decoration: none; transition: border-color .2s, background-color .2s, transform .15s; outline: none; }
.gp-opt:hover, .gp-opt:focus-visible { border-color: #ff2d9b; background: #1d1218; }
.gp-opt:active { transform: scale(.99); }
.gp-thumb { flex: none; width: 56px; height: 72px; border-radius: 12px; overflow: hidden; background: #222; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 6px 16px rgba(0, 0, 0, .35); transition: transform .2s; }
.gp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gp-opt:hover .gp-thumb { transform: rotate(-3deg) scale(1.04); }
.gp-txt { flex: 1; min-width: 0; }
.gp-txt b { display: block; font-size: 16px; }
.gp-txt small { display: block; margin-top: 3px; color: #9b9b9b; font-size: 13px; line-height: 1.4; }
.gp-arrow { flex: none; color: #6a6a6a; font-size: 18px; transition: transform .2s, color .2s; }
.gp-opt:hover .gp-arrow { color: #ff2d9b; transform: translateX(3px); }
@media (max-width: 520px) {
    .gp-overlay { align-items: flex-end; padding: 0; }
    .gp-sheet { max-width: none; border-radius: 24px 24px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); }
}
@media (prefers-reduced-motion: reduce) { .gp-sheet, .gp-overlay { transition: none; } }

/* WhatsApp flutuante (partials/footer.html) */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 940;
    display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 15px;
    border-radius: 999px; background: #161616; border: 1px solid #2a2a2a; color: #25d366; text-decoration: none;
    box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .8);
    font-family: "Quicksand", sans-serif;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), bottom .3s ease, opacity .2s, border-color .2s;
}
.wa-float:hover { border-color: #3a3a3a; transform: translateY(-2px); }
.wa-float-dot { position: absolute; left: 36px; top: 13px; width: 9px; height: 9px; border-radius: 50%; background: #6a6a6a; border: 2px solid #161616; }
.wa-float.is-online .wa-float-dot { background: #25d366; }
.wa-float-txt { display: grid; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .35s ease; }
.wa-float-txt b { color: #fff; font-size: 13.5px; font-weight: 700; }
.wa-float-txt small { color: #8a8a8a; font-size: 11.5px; }
@media (hover: hover) { .wa-float:hover .wa-float-txt, .wa-float:focus-visible .wa-float-txt { max-width: 220px; padding-right: 4px; } }
@media (max-width: 520px) {
    .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; padding: 0; justify-content: center; }
    .wa-float-dot { left: 32px; top: 11px; }
    .wa-float-txt { display: none; }
    body.has-mb-bar .wa-float { bottom: 86px; }
}

/* Barra "Criar agora" do celular (home) */
.mb-bar { display: none; }
@media (max-width: 760px) {
    .mb-bar {
        position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 930;
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 10px 10px 18px; border-radius: 18px; border: 1px solid #2a2a2a; background: rgba(22, 22, 22, .96);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
        font-family: "Quicksand", sans-serif;
        transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
    }
    .mb-bar.show { transform: none; }
    .mb-bar-text { min-width: 0; }
    .mb-bar-text b { display: block; color: #fff; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
    .mb-bar-text small { display: block; margin-top: 1px; color: #8a8a8a; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mb-bar-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 999px; background: linear-gradient(180deg, #ff2d9b, #e0177f); color: #fff; font-size: 14.5px; font-weight: 700; text-decoration: none; }
    body.has-mb-bar .wa-float { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .mb-bar, .wa-float, .wa-float-txt { transition: none; } }

/* "Criar agora" só aparece na navbar ativa (depois de rolar). Escondido, não ocupa espaço:
   largura e respiro zerados, e a margem negativa anula o gap da .navbar-buttons */
.navbar-buttons { --nb-gap: 15px; gap: var(--nb-gap); }
.navbar .nav-create {
    max-width: 0; padding: 0; margin-left: calc(-1 * var(--nb-gap)); overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: max-width .35s ease, padding .35s ease, margin .35s ease, opacity .2s ease, transform .25s ease, visibility 0s .35s;
}
.navbar.is-scrolled .nav-create {
    max-width: 180px; padding: 0 14px; margin-left: 0;
    opacity: 1; visibility: visible; transform: none;
    transition: max-width .35s ease, padding .35s ease, margin .35s ease, opacity .25s .1s ease, transform .25s .1s ease;
}

/* Seletor de idioma compacto (o .navbar span do form.css aumentava a sigla) */
.navbar .lang-btn { height: 34px; gap: 6px; padding: 0 8px 0 5px; }
.navbar .lang-btn .lang-flag { width: 20px !important; height: 20px !important; }
.navbar .lang-code { width: auto; font-size: 12.5px; font-weight: 700; color: #f3f3f3; font-family: "Quicksand", sans-serif; }
.navbar .lang-chevron { width: 12px; height: 12px; }
@media (max-width: 520px) {
    .navbar-buttons { --nb-gap: 8px; }
    .navbar.is-scrolled .nav-create { padding: 0 11px; }
    .navbar .lang-btn { height: 32px; padding: 0 7px 0 4px; }
}
/* telas estreitas: com "Criar agora" na navbar, o idioma vira só a bandeira */
@media (max-width: 420px) {
    .navbar .nav-brand span { letter-spacing: .08em; }
    .navbar.is-scrolled .lang-code, .navbar.is-scrolled .lang-chevron { display: none; }
    .navbar.is-scrolled .lang-btn { padding: 0 5px; }
}
