html.apps-modal-open { overflow-y: hidden; }
.apps-trigger { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.main-header .apps-trigger { font-size: .85rem; color: white; }
.footer-cnpj { margin-top: 24px; color: #ddd; font-size: .9rem; }
.apps-dialog {
    position: fixed; margin: auto; padding: 0;
    width: min(760px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto; overscroll-behavior: contain;
    border: 1px solid rgba(255,255,255,.5); border-radius: 24px;
    background: #fff; color: #173d49;
    box-shadow: 0 28px 90px rgba(0,0,0,.3);
}
.apps-dialog::backdrop { background: rgba(5,32,42,.75); backdrop-filter: blur(6px); }
.apps-dialog[open] { animation: apps-arrive .25s ease-out; }
.apps-modal-header { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 24px; background: #edf6f8; border-bottom: 1px solid #dce8ec; }
.apps-heading-icon { display: grid; place-items: center; width: 50px; height: 50px; flex-shrink: 0; border-radius: 15px; color: white; background: var(--primary); font-size: 1.6rem; }
.apps-eyebrow { display: block; font-size: .65rem; letter-spacing: .12em; font-weight: 700; color: #367083; }
.apps-dialog h2 { font-size: clamp(1.2rem, 3.5vw, 1.7rem); margin-top: 4px; }
.apps-close { align-self: flex-start; flex-shrink: 0; margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: white; color: #173d49; font-size: 1.7rem; line-height: 1; }
.apps-close:hover { background: #dcecef; }
.apps-modal-body { padding: 20px 24px 24px; }
.apps-modal-body > p { color: #52666d; margin-bottom: 22px; font-size: .95rem; }
.apps-group-title { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; font-size: 1rem; }
.apps-group-title i { color: var(--primary); }
.apps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.apps-store { min-width: 0; padding: 16px; border: 1px solid #dce8ec; border-radius: 18px; background: #fafcfd; text-align: center; transition: border-color .2s, box-shadow .2s; }
.apps-store:hover { border-color: #81b6c7; box-shadow: 0 6px 18px rgba(39,127,157,.08); }
.apps-card-label { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; }
.apps-card-label > i { font-size: 1.15rem; }
.apps-card-label h4 { font-size: 1rem; }
.apps-card-label small { color: #52666d; font-size: .7rem; padding: 2px 7px; border-radius: 20px; background: #eaf1f4; }
.apps-store > img { display: block; width: 144px; max-width: 100%; height: auto; aspect-ratio: 1; margin: 12px auto; border-radius: 8px; background: white; }
.apps-action { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 8px; border-radius: 10px; background: var(--primary); color: white; font-size: .85rem; font-weight: 700; transition: background-color .2s; }
.apps-action:hover { background: #1d637b; color: white; }
.apps-social { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px; }
.apps-social > img { width: 90px; flex-shrink: 0; margin: 0; }
.apps-social > div { min-width: 0; }
.apps-social .apps-card-label { justify-content: flex-start; }
.apps-social p { font-size: .8rem; line-height: 1.5; color: #52666d; margin: 5px 0; }
.apps-text-link { display: inline-block; color: #22687e; font-size: .8rem; font-weight: 700; }
.apps-text-link:hover { color: #123e4d; text-decoration: underline; }
.apps-whatsapp .apps-card-label > i { color: #178548; }
.apps-instagram .apps-card-label > i { color: #b83277; }
.apps-modal-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px; background: #f4f8fa; border-top: 1px solid #e1ebef; }
.apps-modal-footer span { font-size: .75rem; color: #52666d; }
.apps-modal-footer kbd { padding: 2px 5px; border: 1px solid #c8d9df; border-radius: 4px; background: white; }
.apps-dialog :focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
@keyframes apps-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
    .apps-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 18px; }
    .apps-modal-header { gap: 10px; padding: 16px; }
    .apps-heading-icon { width: 38px; height: 38px; font-size: 1.3rem; border-radius: 12px; }
    .apps-eyebrow { font-size: .55rem; letter-spacing: .06em; }
    .apps-modal-body { padding: 16px; }
    .apps-grid { gap: 10px; }
    .apps-store { padding: 10px; border-radius: 13px; }
    .apps-card-label { gap: 5px; }
    .apps-card-label h4 { font-size: .85rem; }
    .apps-card-label small { display: none; }
    .apps-action { font-size: .75rem; padding: 10px 5px; gap: 4px; }
    .apps-action i { display: none; }
    .apps-social { display: block; text-align: center; }
    .apps-social > img { width: 112px; margin: 0 auto 10px; }
    .apps-social .apps-card-label { justify-content: center; }
    .apps-modal-footer { padding: 12px 16px; }
    .apps-modal-footer .apps-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .apps-dialog[open] { animation: none; } .apps-store, .apps-action { transition: none; } }