:root {
    --color-primary: #0e2e71;
    --color-primary-light: #1f4fa3;
    --color-secondary: #6cd96f;
    --color-accent: #00b4d8;
    --color-text: #2c3e50;
    --color-muted: #6b7785;
    --color-background: #f4f7fb;
    --color-white: #ffffff;
    --color-border: #d8e3f0;
    --shadow-soft: 0 10px 30px rgba(14, 46, 113, 0.08);
    --transition: all 0.25s ease;
    --primary: #0e2e71;
    --primary-light: #1f4fa3;
    --secondary: #6cd96f;
    --accent: #00b4d8;
    --danddis-primary: #0e2e71;
    --danddis-secondary: #6cd96f;
    --gray: #6b7785;
    --dark: #2c3e50;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--color-background);
    color: var(--color-text);
    min-height: 100%;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

#main-content {
    min-height: 60vh;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--color-primary-light);
    box-shadow: var(--shadow-soft);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover,
.btn-outline:focus {
    color: var(--color-white);
    background: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #7ce47c;
    color: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(14, 46, 113, 0.08);
}

.site-header .container {
    width: min(1400px, 96vw);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
}

.brand-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(14, 46, 113, 0) 0%, rgba(14, 46, 113, 0.45) 50%, rgba(14, 46, 113, 0) 100%);
    display: inline-block;
}

.brand-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.partner-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.primary-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding-bottom: 0.25rem;
    white-space: nowrap;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a:focus::after {
    width: 100%;
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logout-form {
    margin: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle:hover,
.nav-toggle:focus {
    box-shadow: var(--shadow-soft);
}

.nav-toggle-bar {
    width: 22px;
    height: 2px;
    background: var(--color-primary);
    position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.site-footer {
    background: var(--color-primary);
    color: var(--color-white);
    margin-top: 4rem;
    padding: 3rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    align-items: flex-start;
}

.footer-column h3,
.footer-column h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.footer-column p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--color-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.toast-container {
    position: fixed;
    top: 5.5rem;
    right: 1.5rem;
    z-index: 1200;
}

/* Notificações globais (topo direito, abaixo do header) */
.notification-container {
    position: fixed;
    top: 6rem;
    right: 1.5rem;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
}

.notification {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    color: #fff;
    animation: slideIn .28s ease;
}
.notification .notification-title { font-weight: 700; margin-bottom: 2px; }
.notification .notification-message { opacity: 0.95; font-size: 0.9rem; }
.notification .notification-icon { width: 28px; height: 28px; display: grid; place-items: center; }
.notification .notification-close { background: transparent; border: 0; color: inherit; font-size: 1.2rem; cursor: pointer; opacity: .85; }
.notification .notification-close:hover { opacity: 1; }

.notification.success { background: #10b981; }
.notification.error { background: #ef4444; }
.notification.warning { background: #f59e0b; }
.notification.info { background: #3b82f6; }
.notification.pending { background: #0ea5e9; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.flash-wrapper {
    position: fixed;
    top: 6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    display: grid;
    gap: 0.5rem;
    width: min(420px, 90vw);
}

.flash {
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: var(--shadow-soft);
    background: var(--color-white);
}

.flash-success {
    border-left: 4px solid #2ecc71;
}

.flash-warning {
    border-left: 4px solid #f1c40f;
}

.flash-danger {
    border-left: 4px solid #e74c3c;
}

.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, 60vw);
    max-width: calc(100vw - 2rem);
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    display: none;
    z-index: 2147483000;
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
    color: var(--color-text);
}

.whatsapp-fab {
    position: fixed;
    width: 58px;
    height: 58px;
    bottom: 1.75rem;
    right: 1.75rem;
    border-radius: 50%;
    background: #25d366;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 2147483100;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-soft);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .primary-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.5rem;
    }

    .auth-actions {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 0;
    }

    .brand-logo {
        height: 34px;
        width: auto;
        object-fit: contain;
    }

    .partner-logo {
        height: 34px;
        width: auto;
        object-fit: contain;
    }

    .cookie-content {
        gap: 0.75rem;
    }

    .cookie-banner {
        width: 92vw;
        left: 50%;
        transform: translateX(-50%);
        padding: 1rem;
    }

    .cookie-content .btn {
        width: 100%;
    }

    .whatsapp-fab {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }
}




.security-watermark::before {
    content: "";
    position: absolute;
    inset: -10%;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 220'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='0%' stop-color='%23ffffff' stop-opacity='0.28'/%3E%3Cstop offset='60%' stop-color='%23ffffff' stop-opacity='0.05'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M90 8l70 32v62c0 54.1-32.6 104.2-87.4 127.8a8 8 0 0 1-5.2 0C12.6 206.2-20 156.1-20 102V40z' transform='translate(20 10)'/%3E%3Cpath fill='%23ffffff' fill-opacity='0.18' d='M90 52c-18.2 0-33 14.8-33 33v18h-10a6 6 0 0 0-6 6v48a6 6 0 0 0 6 6h86a6 6 0 0 0 6-6V109a6 6 0 0 0-6-6h-10V85c0-18.2-14.8-33-33-33zm0 18c8.3 0 15 6.7 15 15v18H75V85c0-8.3 6.7-15 15-15z' transform='translate(20 10)'/%3E%3Cline x1='90' y1='28' x2='90' y2='182' stroke='%23ffffff' stroke-opacity='0.26' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 240px auto;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.55;
    mix-blend-mode: screen;
}

.security-watermark::after {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    background: radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.08), transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05), transparent 55%);
    mix-blend-mode: screen;
}

.footer-column--cta h3 {
    font-size: 1.6rem;
}

.footer-column--cta p {
    max-width: 320px;
}

.footer-cta__btn {
    margin-top: 1rem;
    padding-inline: 1.75rem;
}

.site-footer .btn-accent {
    background: #81df17;
    color: #063611;
    border: none;
    box-shadow: 0 14px 30px rgba(129, 223, 23, 0.45);
}

.site-footer .btn-accent:hover,
.site-footer .btn-accent:focus {
    transform: translateY(-3px);
    background: #a5ff3a;
    color: #063611;
    box-shadow: 0 20px 40px rgba(129, 223, 23, 0.55);
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-links li i {
    color: var(--color-secondary);
    font-size: 0.9rem;
}

.footer-links--contacts a {
    color: inherit;
}

.footer-links--contacts a:hover,
.footer-links--contacts a:focus {
    color: var(--color-secondary);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-container {
        gap: 2rem;
    }

    .footer-column--cta p {
        max-width: none;
    }
}

/* App Modal (substitui alert/confirm) */
.app-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.app-modal-overlay.app-modal-visible {
  opacity: 1;
  visibility: visible;
}
.app-modal-dialog {
  max-width: 420px;
  width: calc(100% - 2rem);
  margin: 1rem;
}
.app-modal-content {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.app-modal-icon-wrap {
  display: flex;
  justify-content: center;
  padding-top: 1.75rem;
}
.app-modal-icon {
  font-size: 3rem;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-modal-icon-info { color: var(--accent); background: rgba(0, 180, 216, 0.12); }
.app-modal-icon-success { color: var(--secondary); background: rgba(108, 217, 111, 0.15); }
.app-modal-icon-warning { color: #f59e0b; background: rgba(245, 158, 11, 0.15); }
.app-modal-icon-danger { color: #ef4444; background: rgba(239, 68, 68, 0.12); }
.app-modal-icon-confirm { color: var(--primary); background: rgba(14, 46, 113, 0.08); }
.app-modal-header { padding: 0.5rem 1.5rem 0; text-align: center; }
.app-modal-title { font-size: 1.25rem; font-weight: 600; color: var(--color-text); margin: 0; }
.app-modal-body { padding: 1rem 1.5rem; text-align: center; }
.app-modal-message { color: var(--color-muted); font-size: 0.95rem; line-height: 1.5; margin: 0; }
.app-modal-footer { padding: 1rem 1.5rem 1.5rem; display: flex; justify-content: center; gap: 0.75rem; }
.app-modal-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}
.app-modal-btn-ok {
  background: var(--primary);
  color: white;
}
.app-modal-btn-ok:hover { background: var(--color-primary-light); color: white; }
.app-modal-btn-cancel {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}
.app-modal-btn-cancel:hover { background: #e5e7eb; color: #374151; }

/* Modal de termos (compacta e visual alinhado ao AppModal) */
.terms-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}
.terms-modal-box {
  width: min(760px, 94vw);
  max-height: 84vh;
  background: var(--color-white);
  border-radius: 14px;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.terms-modal-head {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.terms-modal-title {
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 600;
  margin: 0;
}
.terms-modal-close {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-muted);
}
.terms-modal-close:hover { color: var(--color-text); }
.terms-modal-meta {
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}
.terms-modal-content {
  padding: 0.8rem 0.9rem;
  overflow: auto;
  line-height: 1.45;
  font-size: 0.9rem;
  color: var(--color-text);
}
.terms-modal-content h1,
.terms-modal-content h2,
.terms-modal-content h3 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 0.55rem;
}
.terms-modal-content p,
.terms-modal-content li {
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}
.terms-modal-actions {
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
