@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

.theme-natal::before,
.theme-anonovo::before,
.theme-pascoa::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

.theme-natal::before {
  background: rgba(255, 255, 255, 0.02);
}

.theme-anonovo::before {
  background: rgba(255, 255, 255, 0.02);
}

.theme-pascoa::before {
  background: rgba(255, 255, 255, 0.02);
}

/*
 * Escala visual global (~75%): reduz tipografia, espaçamentos em px e ícones de uma vez.
 * Altere --portal-ui-zoom (ex.: 0.85) se quiser um meio-termo.
 */
:root {
  --portal-ui-zoom: 1;
  --pf-bg: #0a0a0c;
  --pf-surface: #111114;
  --pf-border: rgba(255, 255, 255, 0.1);
  --pf-text: #ececec;
  --pf-muted: #a1a1aa;
  --pf-accent: #e4e4e7;
}

html {
  min-height: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  background: var(--pf-bg);
  background-color: var(--pf-bg);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Evita overflow por links/textos longos (mobile) */
    overflow-wrap: break-word;
    word-break: break-word;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: transparent;
    background-color: transparent;
    color: var(--pf-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100%;
    min-height: 100dvh;
    min-height: 100svh;
}

/*
 * Evita flash dos menus do cliente antes de carregar as permissões.
 * O client-modules.js adiciona .client-modules-ready após aplicar as flags.
 */
body:not(.client-modules-ready) #menuMeusDados,
body:not(.client-modules-ready) #menuOrcamento,
body:not(.client-modules-ready) #menuVerificarData,
body:not(.client-modules-ready) #menuMeuEvento,
body:not(.client-modules-ready) #menuFinanceiro,
body:not(.client-modules-ready) #menuMensagensConvidados,
body:not(.client-modules-ready) #menuDashboardPresenca,
body:not(.client-modules-ready) #menuConfiguracaoPresenca,
body:not(.client-modules-ready) #menuCheckinPresenca,
body:not(.client-modules-ready) #menuContratos,
body:not(.client-modules-ready) #menuIndiqueGanhe,
body:not(.client-modules-ready) #menuSelecaoFotos,
body:not(.client-modules-ready) #menuDepoimento {
    display: none !important;
}

/* Melhor experiência mobile: evita zoom automático em iOS */
input, select, textarea, button {
    font-size: 16px;
}

body::before,
body::after {
    content: none;
    display: none;
    pointer-events: none;
    z-index: -1;
}

/* Home (index): gradiente vem só de .bg-overlay — sem “cortes” de camadas globais */
body.home-landing::before,
body.home-landing::after {
    display: none !important;
}

img:not(.depoimento-avatar) {
    max-width: 100%;
    height: auto;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.55);
    z-index: -2;
}

/* Header — estilo editorial (menu centralizado; logo à esquerda) */
.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    padding: clamp(18px, 2.8vh, 30px) clamp(18px, 4vw, 56px);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-sizing: border-box;
    background-color: #0a0f12;
    background-image:
        radial-gradient(ellipse 130% 100% at 50% -40%, rgba(255, 255, 255, 0.04), transparent 52%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.header:has(.header-nav-cluster) {
    justify-content: center;
    position: relative;
}

.header:has(.header-nav-cluster) .logo {
    position: absolute;
    left: clamp(14px, 4vw, 48px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.header-nav-cluster {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 32px);
    margin: 0 auto;
    padding: 0;
    max-width: none;
    transform: none;
    left: auto;
    top: auto;
}

.header-nav-cluster a,
.header-nav-cluster .header-nav-btn {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(0.62rem, 0.85vw, 0.8rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f5f0e6;
    text-decoration: none;
    padding: 10px 0;
    border: none;
    background: transparent;
    border-radius: 0;
    white-space: nowrap;
    transition: opacity 0.2s ease, color 0.2s ease;
    text-shadow: 0 0 24px rgba(245, 240, 230, 0.12), 0 1px 2px rgba(0, 0, 0, 0.45);
}

.header-nav-cluster a:hover,
.header-nav-cluster .header-nav-btn:hover {
    color: #f5f0e6;
    opacity: 0.7;
    background: transparent;
    border-color: transparent;
}

.header-nav-cluster a[aria-current="page"] {
    opacity: 1;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}

.header-nav-cluster a[data-public-nav-key="loja"] {
    color: #d4c08a;
    font-weight: 600;
}

.header-nav-cluster .header-nav-btn {
    margin: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
}

.logo {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.05rem, 1.35vw, 1.45rem);
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    flex-shrink: 0;
}

.logo a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: clamp(64px, 9vh, 120px);
    width: auto;
    max-width: min(420px, 72vw);
    display: block;
    object-fit: contain;
    filter: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    color: var(--pf-accent);
    margin-bottom: 20px;
    text-shadow: none;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--pf-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    background: #fafafa;
    color: #0a0a0c;
    border: 1px solid #fafafa;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: opacity 0.2s ease, background 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: none;
    opacity: 0.92;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--pf-accent);
    border: 1px solid var(--pf-border);
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
    text-transform: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--pf-accent);
}

.btn-tertiary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 15px 40px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-tertiary:hover {
    background: rgba(255,255,255,0.2);
}

.btn-outline {
    color: #dcdcdc;
    text-decoration: none;
    border: 1px solid #dcdcdc;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #dcdcdc;
    color: #000;
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Services Section */
.section {
    padding: 80px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 2.5rem;
    color: #dcdcdc;
    text-align: center;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--pf-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: border-color 0.2s ease;
    backdrop-filter: none;
    box-shadow: none;
}

.service-card:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #dcdcdc;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: #888;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    color: #666;
    border-top: none;
    font-size: 0.9rem;
}

/* Auth Pages */
.auth-page {
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Fundo único: body + fx-global (evita “corte” de segundo gradiente) */
    background: transparent;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.auth-box {
    background: var(--pf-surface);
    border: 1px solid var(--pf-border);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: none;
}

.logo-center {
    text-align: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 3rem;
    color: #dcdcdc;
    margin-bottom: 10px;
}
.logo-center img {
    height: 100px;
    width: auto;
    max-width: 100%;
    display: inline-block;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,0.55));
}

.auth-title {
    text-align: center;
    font-family: 'Inter', system-ui, sans-serif;
    color: #fff;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #666;
    padding: 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #dcdcdc;
    border-bottom-color: #dcdcdc;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.5s;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #dcdcdc;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #dcdcdc;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}

.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.auth-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    display: none;
}

.auth-message.success {
    background: rgba(81, 207, 102, 0.1);
    border: 1px solid #51cf66;
    color: #51cf66;
    display: block;
}

.auth-message.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    display: block;
}

/* Avisos de login (CPF / senha) — destaque em verde claro */
.auth-message.notice {
    background: linear-gradient(165deg, #e8f8e8 0%, #c5edc5 100%);
    border: 2px solid #2d9d5a;
    color: #0a4d24;
    display: block;
    font-weight: 600;
    line-height: 1.45;
    box-shadow: 0 4px 18px rgba(20, 90, 45, 0.2);
}

.auth-box .auth-links {
    text-align: center;
    margin-top: 12px;
}

.auth-box .auth-links a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.auth-box .auth-links a:hover {
    color: #c4c4c8;
    border-bottom-color: rgba(240, 220, 122, 0.65);
}

.btn-back {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.btn-back:hover {
    color: #dcdcdc;
}

/* Dashboard Layout */
.dashboard-page {
    display: flex;
    min-height: 100%;
    min-height: 100dvh;
}

.sidebar {
    width: 260px;
    background: var(--pf-bg);
    border-right: 1px solid var(--pf-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    backdrop-filter: none;
}

.logo-sidebar {
    padding: 30px;
    text-align: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 2rem;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    color: var(--pf-accent);
    border-bottom: 1px solid var(--pf-border);
}

/* Logo imagem (cliente e admin) */
.logo-sidebar.logo-sidebar-img {
    padding: 18px 18px 14px;
}
.logo-sidebar.logo-sidebar-img img {
    height: 85px;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.55));
}

.menu {
    flex: 1;
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: var(--pf-muted);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    line-height: 1.35;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--pf-accent);
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--pf-accent);
    border-left-color: var(--pf-accent);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--pf-border);
}

.btn-logout {
    width: 100%;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255, 107, 107, 0.2);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

.mobile-menu-toggle {
    position: fixed;
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(14,14,20,0.95);
    color: #dcdcdc;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-menu-backdrop {
    display: none;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pf-border);
}

.page-title {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--pf-text);
    font-size: 2rem;
}

.page-title span {
    color: var(--pf-accent);
}

.user-info {
    color: var(--pf-muted);
    font-size: 0.9rem;
}

/* Dashboard Grid */
.dashboard-container {
    max-width: 1400px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background: rgba(20,20,28,0.76);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.22);
}

.dashboard-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.card-title {
    color: var(--pf-accent);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--pf-muted);
    font-size: 0.95rem;
}

.info-value {
    color: var(--pf-text);
    font-weight: 500;
}

.info-value.valor {
    color: var(--pf-accent);
    font-weight: 600;
}

.status-aprovado {
    color: #51cf66;
}

.status-aguardando {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #dcdcdc;
    color: #dcdcdc;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.link-fotos-area {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.link-fotos-area i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: #444;
}

.link-fotos-area.disponivel {
    background: rgba(81, 207, 102, 0.05);
    border: 1px dashed #51cf66;
    border-radius: 10px;
}

.btn-link-fotos {
    display: inline-block;
    background: #51cf66;
    color: #000;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s;
}

.btn-link-fotos:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(81, 207, 102, 0.3);
}

.message-box {
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.message-box.success {
    background: rgba(81, 207, 102, 0.1);
    border: 1px solid #51cf66;
    color: #51cf66;
    display: block;
}

.message-box.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    display: block;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fadeIn 1s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 10px 12px;
    }

    .header-nav-cluster {
        gap: 10px 14px;
        justify-content: center;
    }

    .header:has(.header-nav-cluster) {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .header:has(.header-nav-cluster) .logo {
        position: static;
        transform: none;
        justify-content: center;
    }

    .header:has(.header-nav-cluster) .header-nav-cluster {
        justify-content: center;
    }

    .header-nav-cluster a,
    .header-nav-cluster .header-nav-btn {
        font-size: 0.58rem;
        letter-spacing: 0.12em;
        padding: 6px 0;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo img {
        width: auto !important;
        max-width: min(420px, 78vw) !important;
        height: 80px !important;
        max-height: 80px !important;
        object-fit: contain !important;
    }
    .header .logo,
    .header:has(.header-nav-cluster) .logo {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
    }

    .section {
        padding: 50px 16px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .sidebar {
        width: min(84vw, 300px);
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        height: 100vh;
        height: 100dvh;
        transform: translateX(-110%);
        transition: transform 0.25s ease;
        z-index: 1300;
    }

    body.mobile-menu-open .sidebar {
        transform: translateX(0);
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1250;
    }

    body.mobile-menu-open .mobile-menu-backdrop {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
        padding-top: 64px;
    }

    /* Qualquer layout com sidebar dentro de .dashboard-normal (ex.: selecao-fotos) */
    .dashboard-normal .main-content {
        margin-left: 0 !important;
    }

    .dashboard-page {
        flex-direction: column;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-tertiary {
        width: 100%;
        max-width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        padding: 18px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .admin-card {
        flex-direction: column;
        gap: 12px;
    }

    /* Forms: 2 colunas -> 1 coluna */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Páginas com CSS inline que reutilizam .content-area */
    .content-area {
        padding: 16px !important;
        max-width: 100% !important;
    }

    /* Financeiro: 3 cards lado a lado -> empilha */
    .resumo-financeiro {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Orçamento: cards duplos -> empilha */
    .botoes-orcamento {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* Evita botões pequenos demais (touch target) */
    button, .btn-primary, .btn-secondary, .btn-tertiary, .btn-success, .btn-danger {
        min-height: 44px;
    }

    .card-actions {
        width: 100%;
        justify-content: stretch;
    }

    .card-actions button,
    .card-actions .btn-success,
    .card-actions .btn-danger,
    .card-actions .btn-secondary {
        width: 100%;
    }

    /* Dashboard "simplificado" (sem sidebar) - CSS inline em dashboard.html */
    .dashboard-simplificado .header-simples {
        padding: 14px 16px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .dashboard-simplificado .conteudo-principal {
        padding: 26px 16px !important;
    }
    .dashboard-simplificado .boas-vindas h1 {
        font-size: 2rem !important;
    }
    .dashboard-simplificado .cards-opcoes {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .dashboard-simplificado .card-acao {
        padding: 22px 16px !important;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.45rem;
    }
    .hero-title {
        font-size: 2.05rem;
    }
    .auth-box {
        padding: 22px;
    }
    .dashboard-card {
        padding: 16px;
    }
    .menu-item {
        padding: 14px 18px;
    }

    /* Preserva legibilidade de cards com textos longos */
    .card-info p,
    .info-label,
    .info-value {
        font-size: 0.95rem;
    }
}

/* Admin Styles */
.admin-page .sidebar {
    background: #0a0a0a;
    /* Painel admin: coluna fixa do topo ao rodapé (evita faixa do gradiente ao lado) */
    top: 0;
    bottom: 0;
    left: 0;
    height: auto;
    max-height: none;
    overflow-y: hidden;
    backdrop-filter: none;
}

.admin-header {
    background: rgba(255, 255, 255, 0.04);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #dcdcdc;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-card {
    background: rgba(21,21,30,0.78);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s;
}

@keyframes portalGlowPulse {
    from { transform: scale(1) translate3d(0, 0, 0); opacity: 0.72; }
    to { transform: scale(1.08) translate3d(1.5%, -1.5%, 0); opacity: 1; }
}

@keyframes portalFlashSweep {
    from { background-position: 0% 50%, 100% 50%; }
    to { background-position: 130% 50%, -20% 50%; }
}

@keyframes particleFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-90px); }
}

/* Modo leve para tablet/celular: reduz repinturas caras em GPUs fracas. */
@media (max-width: 1024px), (hover: none), (pointer: coarse) {
    body::before,
    body::after,
    .theme-natal::before,
    .theme-anonovo::before,
    .theme-pascoa::before {
        display: none !important;
        animation: none !important;
        filter: none !important;
    }

    .header,
    .sidebar,
    .dashboard-card,
    .admin-card,
    .form-card,
    .service-card,
    .auth-box,
    .mobile-menu-backdrop {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .animate-fade-up,
    .auth-form.active {
        animation: none !important;
    }

    .btn-primary:hover,
    .service-card:hover,
    .dashboard-card:hover,
    .admin-card:hover,
    .btn-link-fotos:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

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

.admin-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* Lista de clientes no admin: botão “Acessar portal” em linha própria (visível em túnel / telas estreitas) */
.admin-card.admin-card--cliente-lista {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}
.admin-card.admin-card--cliente-lista .admin-card-acesso-cliente .btn-success {
    width: 100%;
    min-height: 46px;
    font-size: 0.95rem;
    font-weight: 700;
}

.card-info h4 {
    color: #dcdcdc;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card-info p {
    color: #888;
    margin: 5px 0;
    font-size: 0.95rem;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-success {
    background: #51cf66;
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-danger {
    background: #ff6b6b;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #dcdcdc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}

/* ============================================================
   RESPONSIVO GLOBAL — Tablets e Celulares (revisão completa)
   Ajustes abrangentes para todas as páginas do portal:
   - Tablet grande/landscape (≤1024px)
   - Tablet pequeno + mobile (≤768px) — complemento aos blocos acima
   - Phone (≤480px) — complemento
   - Phone tiny (≤360px) — afinamentos finais
   Regras escritas defensivamente para NÃO quebrar nenhum layout.
   ============================================================ */

/* Evita scroll lateral em qualquer página */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Containers de tabelas: SEMPRE com scroll horizontal em vez de estourar */
.table-wrap,
.table-responsive,
.tabela-scroll,
.scroll-x {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== Tablets em paisagem e telas médias (≤1024px) ===== */
@media (max-width: 1024px) {
    /* Containers “content-area” passam a usar quase toda a largura */
    .content-area {
        padding: 24px 18px;
        max-width: 100%;
    }

    /* Grids automáticos: pelo menos 240px por coluna (não força 3+ colunas) */
    .dashboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 14px;
    }
    .cards-grid,
    .cards-opcoes,
    .resumo-financeiro {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    }
    .botoes-orcamento {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    }

    /* Forms em duas colunas: vira fluido */
    .form-row,
    .form-grid,
    .grid-2-col {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    }

    /* Tabelas: garante scroll lateral quando o conteúdo é largo */
    table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Abas/menus horizontais: rolagem horizontal sem estourar */
    .tabs,
    .tab-list,
    .filtros-bar,
    .filter-chips,
    .pills,
    .nav-pills,
    .horizontal-scroll {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        scroll-snap-type: x proximity;
    }
    .tabs > *,
    .tab-list > *,
    .filtros-bar > *,
    .filter-chips > *,
    .pills > *,
    .nav-pills > *,
    .horizontal-scroll > * {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    /* Modais: respeitam o viewport e ficam roláveis */
    .modal,
    .modal-content,
    .modal-box,
    .modal-card,
    .modal-dialog {
        max-width: 96vw !important;
        max-height: 92vh;
        overflow-y: auto;
    }

    /* Headers grandes: reduz padding lateral */
    .admin-header,
    .header,
    .top-bar {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ===== Tablet pequeno + mobile (≤768px) — complementos ===== */
@media (max-width: 768px) {
    /* Sempre 1 coluna nos grids genéricos */
    .dashboard-grid,
    .cards-grid,
    .cards-opcoes,
    .botoes-orcamento,
    .resumo-financeiro,
    .grid-2-col,
    .form-row,
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    /* Cards: padding mais enxuto */
    .dashboard-card,
    .admin-card,
    .card,
    .info-card,
    .stat-card {
        padding: 16px !important;
    }

    /* Botões: largura total + altura mínima de 44px para toque */
    button,
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-tertiary,
    .btn-success,
    .btn-danger,
    .btn-warning,
    a.btn,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        line-height: 1.2;
    }

    /* Inputs/selects/textareas: largura cheia + tamanho confortável (evita zoom no iOS) */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="date"],
    input[type="time"],
    input[type="number"],
    input[type="search"],
    select,
    textarea {
        width: 100%;
        max-width: 100%;
        min-height: 44px;
        font-size: 16px !important;
    }
    textarea { min-height: 88px; }

    /* Títulos de página: reduz proporcionalmente */
    h1 { font-size: 1.8rem !important; line-height: 1.2; }
    h2 { font-size: 1.5rem !important; line-height: 1.25; }
    h3 { font-size: 1.25rem !important; line-height: 1.3; }

    /* Linhas de info / KV (chave-valor) viram empilhadas */
    .info-row,
    .info-line,
    .kv-row,
    .row-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    /* Card actions / linhas de botões empilham */
    .card-actions,
    .button-row,
    .actions,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .card-actions > *,
    .button-row > *,
    .actions > *,
    .form-actions > * {
        width: 100%;
    }

    /* Modais ainda mais compactos */
    .modal,
    .modal-content,
    .modal-box,
    .modal-card,
    .modal-dialog {
        margin: 8px;
        padding: 16px !important;
        border-radius: 12px;
    }

    /* Listas longas/grids de fotos: minmax menor */
    .galeria-grid,
    .grid-fotos,
    .fotos-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 8px !important;
    }

    /* Toolbars com filtros: gap menor */
    .toolbar,
    .filtros-bar {
        gap: 6px;
        padding: 8px;
    }

    /* Imagens responsivas (exceto avatar de depoimentos — tamanho fixo no card) */
    img:not(.depoimento-avatar), video, canvas {
        max-width: 100%;
        height: auto;
    }

    img.depoimento-avatar {
        max-width: none !important;
        width: var(--dep-avatar-size, 96px) !important;
        height: var(--dep-avatar-size, 96px) !important;
        min-width: var(--dep-avatar-size, 96px) !important;
        min-height: var(--dep-avatar-size, 96px) !important;
    }

    /* Páginas que usam <pre>/code: quebra */
    pre, code {
        white-space: pre-wrap;
        word-break: break-word;
    }

    /* Flexbox children que não shrinkam (overflow comum) */
    .flex-fix,
    .min-w-0 {
        min-width: 0;
    }
}

/* ===== Phone (≤480px) — complementos ===== */
@media (max-width: 480px) {
    .content-area {
        padding: 16px 12px !important;
    }
    .dashboard-card,
    .admin-card,
    .card,
    .info-card,
    .stat-card {
        padding: 14px !important;
    }
    h1 { font-size: 1.55rem !important; }
    h2 { font-size: 1.3rem !important; }
    h3 { font-size: 1.1rem !important; }

    /* Logo no header não pode ocupar 100% da largura */
    .logo,
    .brand,
    .header-logo {
        font-size: 1.4rem !important;
    }

    /* Header simples em mobile bem estreito: empilha botão de sair */
    .header-simples,
    .top-bar {
        gap: 8px !important;
    }

    /* Grids de fotos ficam com 2 colunas */
    .galeria-grid,
    .grid-fotos,
    .fotos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===== Phone tiny (≤360px) — afinamentos ===== */
@media (max-width: 360px) {
    .content-area {
        padding: 14px 10px !important;
    }
    h1 { font-size: 1.4rem !important; }
    h2 { font-size: 1.2rem !important; }
    .galeria-grid,
    .grid-fotos,
    .fotos-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   ADMIN — reforços responsivos (admin.html, editor-orcamentos)
   ============================================================ */
@media (max-width: 1024px) {
    /* Painel admin: sidebar mais estreita em telas médias */
    .admin-page .sidebar {
        width: 220px;
    }
    .admin-page .main-content {
        margin-left: 220px;
    }
}

@media (max-width: 768px) {
    /* Painel admin: sidebar passa a ser drawer (já tem regras genéricas
       no bloco geral; aqui só garantimos overrides do admin) */
    .admin-page .main-content {
        margin-left: 0 !important;
        padding: 16px !important;
        padding-top: 64px !important;
    }

    /* Tabs do admin viram rolagem horizontal */
    .admin-tabs,
    .tab-nav {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 6px;
    }
    .admin-tabs > *,
    .tab-nav > * {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* admin-card empilha botões */
    .admin-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .admin-card .card-actions {
        width: 100%;
    }
    .admin-card .card-actions > * {
        width: 100%;
    }

    /* Inputs grid de configurações (linha dupla) viram fluidos */
    .config-row,
    .admin-form-row {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   DASHBOARD CLIENTE — reforços (cards radar, timeline)
   ============================================================ */
@media (max-width: 1024px) {
    body:has(.sidebar #menuLateral) {
        padding-top: 74px;
    }

    .sidebar:has(#menuLateral) {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 6px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        transform: none !important;
        z-index: 1700 !important;
        padding: 6px 8px 8px !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.55) rgba(255, 255, 255, 0.12);
    }

    .sidebar:has(#menuLateral) .logo-sidebar,
    .mobile-menu-toggle,
    .mobile-menu-backdrop {
        display: none !important;
    }

    .sidebar:has(#menuLateral) #menuLateral {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 0 7px !important;
        overflow: visible !important;
    }

    .sidebar:has(#menuLateral)::-webkit-scrollbar {
        height: 4px;
    }

    .sidebar:has(#menuLateral)::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.12);
        border-radius: 999px;
    }

    .sidebar:has(#menuLateral)::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.55);
        border-radius: 999px;
    }

    .sidebar:has(#menuLateral) .menu-item {
        flex: 0 0 auto !important;
        flex-direction: column !important;
        justify-content: center !important;
        width: auto !important;
        min-height: 54px !important;
        padding: 7px 10px !important;
        gap: 4px !important;
        border-left: 0 !important;
        border-bottom: 2px solid transparent !important;
        border-radius: 10px !important;
        font-size: 0.68rem !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    .sidebar:has(#menuLateral) .menu-item.active {
        border-left-color: transparent !important;
        border-bottom-color: var(--pf-accent) !important;
    }

    .sidebar:has(#menuLateral) .menu-item i {
        width: auto !important;
        min-width: 14px;
        font-size: 1.05rem !important;
    }

    .sidebar:has(#menuLateral) .sidebar-footer {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        margin-top: 0 !important;
        padding: 0 0 7px !important;
        border-top: 0 !important;
        scroll-snap-align: end;
    }

    .sidebar:has(#menuLateral) .btn-logout {
        width: 74px !important;
        min-height: 54px !important;
        padding: 7px 7px !important;
        flex-direction: column !important;
        gap: 4px !important;
        border-radius: 10px !important;
        font-size: 0.68rem !important;
        line-height: 1.15 !important;
        white-space: normal !important;
    }

    .sidebar:has(#menuLateral) .btn-logout i {
        font-size: 1.05rem !important;
    }

    body:has(.sidebar #menuLateral) .main-content,
    .dashboard-normal .main-content {
        margin-left: 0 !important;
        padding-top: 16px !important;
    }

    /* Fallback para WebViews sem suporte a :has(): o menu vira uma barra horizontal. */
    .dashboard-normal .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 6px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        transform: none !important;
        z-index: 1700 !important;
        padding: 6px 8px 8px !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    .dashboard-normal .sidebar .logo-sidebar,
    .dashboard-normal .sidebar .mobile-menu-toggle,
    .dashboard-normal .sidebar .mobile-menu-backdrop {
        display: none !important;
    }

    .dashboard-normal .sidebar #menuLateral {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
        flex: 0 0 auto !important;
        width: auto !important;
        padding: 0 0 7px !important;
        overflow: visible !important;
    }

    .dashboard-normal .sidebar #menuLateral .menu-item {
        flex: 0 0 auto !important;
        flex-direction: column !important;
        justify-content: center !important;
        width: auto !important;
        min-height: 54px !important;
        padding: 7px 10px !important;
        gap: 4px !important;
        border-left: 0 !important;
        border-bottom: 2px solid transparent !important;
        border-radius: 10px !important;
        font-size: 0.68rem !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    .dashboard-normal .sidebar .sidebar-footer {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        margin-top: 0 !important;
        padding: 0 0 7px !important;
    }

    .dashboard-normal .sidebar .btn-logout {
        width: 74px !important;
        min-height: 54px !important;
        padding: 7px !important;
        flex-direction: column !important;
        gap: 4px !important;
        border-radius: 10px !important;
        font-size: 0.68rem !important;
    }

    .dashboard-normal .main-content {
        margin-left: 0 !important;
        padding-top: 82px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 768px) {
    .radar-resumo {
        flex-direction: column;
        align-items: stretch;
    }
    .radar-score-wrap {
        min-width: 0;
        text-align: left;
    }
    .radar-timeline {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .radar-step {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* Login / cadastro: caixa ocupa todo viewport útil */
    .auth-box,
    .login-box,
    .cadastro-box {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 22px !important;
    }
}

/* ============================================================
   Site público — header comum, home só depoimentos, CTAs
   ============================================================ */
html.public-site {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body.public-site-body {
    margin: 0;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    font-family: 'Inter', system-ui, sans-serif;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
    min-height: 100%;
    min-height: 100dvh;
    min-height: 100svh;
    background: #0a0a0c;
    background-color: #0a0a0c;
}

.public-site-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    box-sizing: border-box;
    background: rgba(10, 10, 12, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.public-site-header .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.public-site-header .logo {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #dcdcdc;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    flex-shrink: 0;
}

.public-site-header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.public-site-header .logo img {
    height: 120px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.55));
}

.public-site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 10px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-site-nav__link {
    color: rgba(245, 245, 250, 0.88);
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.public-site-nav__link:hover,
.public-site-nav__link:focus-visible {
    color: #dcdcdc;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.public-site-nav__sep {
    color: rgba(255, 255, 255, 0.45);
    user-select: none;
    padding: 0 2px;
    font-weight: 400;
}

.public-site-header .header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.public-site-header .btn-header-portfolio {
    background: transparent;
    border: 1px solid #dcdcdc;
    color: #dcdcdc;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.public-site-header .btn-header-portfolio:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.home-portfolio-strip {
    text-align: center;
    padding: 32px 16px 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.home-portfolio-strip .btn-header-portfolio {
    font-size: 0.8rem;
    padding: 12px 22px;
}

.public-site-footer {
    text-align: center;
    padding: 36px 20px 48px;
    color: rgba(180, 180, 190, 0.72);
    background: transparent;
}

.depoimentos-section {
    padding: 35px 20px 70px;
    max-width: 1200px;
    margin: 0 auto;
}

.depoimentos-title {
    font-family: 'Inter', system-ui, sans-serif;
    color: #dcdcdc;
    font-size: 2rem;
    margin: 0 0 20px 0;
    text-align: center;
}

.depoimentos-row {
    display: grid;
    gap: 12px;
    padding: 4px 2px 10px;
    overflow: visible;
}

.depoimento-card {
    min-width: 0;
    max-width: 100%;
    background: rgba(17, 17, 17, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px 14px 14px;
    cursor: default;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.depoimento-card--expandable {
    cursor: pointer;
}

.depoimento-card--expandable:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(22, 22, 22, 0.62);
}

.depoimento-card--expandable:focus-visible {
    outline: 2px solid rgba(220, 220, 220, 0.55);
    outline-offset: 2px;
}

.depoimento-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 12px;
}

.depoimentos-row {
    --dep-avatar-size: 96px;
}

.depoimento-avatar,
.depoimento-avatar-btn {
    width: var(--dep-avatar-size, 96px) !important;
    height: var(--dep-avatar-size, 96px) !important;
    min-width: var(--dep-avatar-size, 96px) !important;
    min-height: var(--dep-avatar-size, 96px) !important;
    max-width: none !important;
    flex-shrink: 0;
    box-sizing: border-box;
}

.depoimento-avatar {
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 15, 15, 0.5);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.depoimento-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dcdcdc;
    font-weight: 900;
}

.depoimento-avatar-btn {
    border-radius: 50%;
    padding: 0;
}

.depoimento-nome {
    color: #f2f2f2;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    line-height: 1.25;
    width: 100%;
}

.depoimento-texto {
    color: #b9b9b9;
    font-size: 0.84rem;
    line-height: 1.45;
    margin: 0;
    white-space: normal;
    word-break: break-word;
}

.depoimento-card--truncated:not(.depoimento-card--expanded) .depoimento-texto {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.depoimento-card--expanded .depoimento-texto {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.depoimento-expand-hint {
    display: block;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(220, 220, 220, 0.65);
    text-align: center;
}

.depoimento-card--expanded .depoimento-expand-hint {
    color: rgba(220, 220, 220, 0.8);
}

.depoimento-avatar-btn {
    display: inline-flex;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    border-radius: 50%;
    line-height: 0;
    transition: transform 0.2s ease;
}

.depoimento-avatar-btn:hover {
    transform: scale(1.05);
}

.depoimento-avatar-btn:focus-visible {
    outline: 2px solid rgba(220, 220, 220, 0.7);
    outline-offset: 4px;
}

.depoimento-avatar-btn .depoimento-avatar {
    pointer-events: none;
}

.depoimento-foto-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
        max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    box-sizing: border-box;
}

.depoimento-foto-lightbox.is-open {
    display: flex;
}

body.depoimento-foto-lightbox-open {
    overflow: hidden;
}

.depoimento-foto-lightbox__frame {
    position: relative;
    width: min(920px, 96vw);
    max-height: min(82vh, 82dvh);
    display: flex;
    align-items: center;
    justify-content: center;
}

.depoimento-foto-lightbox__img {
    max-width: 100%;
    max-height: min(82vh, 82dvh);
    width: auto;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.depoimento-foto-lightbox__caption {
    margin: 14px 0 0;
    color: #e8e8e8;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    max-width: min(640px, 92vw);
}

.depoimento-foto-lightbox__close {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(12, 12, 12, 0.75);
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.depoimento-foto-lightbox__close:hover {
    background: rgba(30, 30, 30, 0.9);
}

.page-cta-orcamento {
    max-width: 520px;
    margin: 40px auto 0;
    padding: 22px 20px 28px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.page-cta-orcamento__title {
    font-family: 'Inter', system-ui, sans-serif;
    color: #dcdcdc;
    font-size: 1.35rem;
    margin: 0 0 16px;
}

.page-cta-orcamento .btn-orcamento-prim {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #e4e4e7;
    color: #111;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.page-cta-orcamento .btn-orcamento-prim:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.92;
}

.page-cta-orcamento__sem-login {
    display: inline-block;
    margin-top: 14px;
    padding: 0;
    border: none;
    background: none;
    color: rgba(200, 200, 215, 0.85);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font-family: inherit;
}

.page-cta-orcamento__sem-login:hover {
    color: #dcdcdc;
}

.public-site-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(120%);
    z-index: 2000;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.public-site-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.public-site-toast.success {
    background: rgba(30, 50, 28, 0.95);
    border: 1px solid rgba(81, 207, 102, 0.55);
    color: #c8f7c8;
}

.public-site-toast.warning {
    background: rgba(45, 38, 20, 0.95);
    border: 1px solid rgba(255, 193, 7, 0.45);
    color: #ffe8a8;
}

.bio-section-page {
    padding: 100px 20px 48px;
    max-width: 960px;
    margin: 0 auto;
    box-sizing: border-box;
}

.bio-section-page .section-title {
    text-align: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 2.25rem;
    color: #dcdcdc;
    margin-bottom: 32px;
}

.bio-grid {
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.bio-photo-wrap img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #2a2a2a;
    display: block;
}

.bio-photo-fallback {
    border: 1px dashed #444;
    border-radius: 14px;
    padding: 20px;
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    text-align: center;
}

.bio-text {
    color: #c9c9c9;
    line-height: 1.75;
    font-size: 1rem;
    white-space: pre-wrap;
}

.contato-section-page {
    padding: 100px 20px 48px;
    max-width: 720px;
    margin: 0 auto;
}

.contato-section-page .section-title {
    text-align: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 2.25rem;
    color: #dcdcdc;
    margin-bottom: 28px;
}

.contato-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 480px;
    margin: 0 auto;
}

.contato-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #111;
    border: 1px solid #262626;
    border-radius: 12px;
    text-decoration: none;
    color: #eaeaf0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.contato-item:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: #15151c;
}

.contato-item i {
    color: #dcdcdc;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.contato-item span {
    font-size: 0.95rem;
}

.contato-item small {
    display: block;
    color: #888;
    font-size: 0.78rem;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .public-site-header .logo img {
        width: auto !important;
        max-width: min(420px, 78vw) !important;
        height: 80px !important;
        max-height: 80px !important;
        object-fit: contain !important;
    }
    .bio-grid {
        grid-template-columns: 1fr;
    }
    .depoimentos-section {
        padding: 28px 14px 40px;
    }
    .depoimentos-title {
        font-size: 1.45rem;
    }
    .depoimentos-row {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    .depoimento-card--truncated:not(.depoimento-card--expanded) .depoimento-texto {
        -webkit-line-clamp: 4;
    }
    .depoimentos-row:not(.depoimentos-row--pagina) {
        --dep-avatar-size: 96px;
    }
    .depoimentos-row--pagina {
        --dep-avatar-size: min(29vw, 104px);
    }
}

@media (max-width: 480px) {
    .public-site-header .logo img {
        width: auto !important;
        max-width: min(420px, 78vw) !important;
        height: 72px !important;
        max-height: 72px !important;
        object-fit: contain !important;
    }
    .depoimentos-row:not(.depoimentos-row--pagina) {
        --dep-avatar-size: 96px;
    }
    .depoimentos-row--pagina {
        --dep-avatar-size: min(33vw, 112px);
    }
    .depoimento-top {
        margin-bottom: 14px;
    }
}

/* Cards globais para substituir popups nativos e suavizar modais do portal. */
.portal-card-layer {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30000;
    width: min(440px, calc(100vw - 28px));
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.portal-card-popup {
    width: 100%;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(21, 21, 24, 0.98);
    color: #f2f2f4;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: auto;
}

.portal-card-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.portal-card-popup__title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 800;
}

.portal-card-popup__message {
    margin: 0;
    color: #cfcfd6;
    font-size: 0.94rem;
    line-height: 1.45;
    white-space: pre-line;
}

.portal-card-popup__input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 14px;
    padding: 11px 12px;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    background: #0f0f0f;
    color: #fff;
    font: inherit;
}

.portal-card-popup__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.portal-card-popup__btn {
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #444;
    border-radius: 10px;
    background: #202024;
    color: #e8e8ec;
    cursor: pointer;
    font-weight: 700;
}

.portal-card-popup__btn--primary {
    border-color: #dcdcdc;
    background: #dcdcdc;
    color: #111;
}

.portal-card-popup__btn:hover {
    filter: brightness(1.08);
}

@media (max-width: 768px) {
    .portal-card-layer {
        top: max(12px, env(safe-area-inset-top));
        width: min(440px, calc(100vw - 20px));
    }

    .portal-card-popup {
        padding: 16px;
    }

    .portal-card-popup__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-card-popup__btn {
        width: 100%;
    }
}

body.portal-card-ui .modal:not(.hidden),
body.portal-card-ui .modal-overlay.active:not(.modal-overlay--form),
body.portal-card-ui .modal-overlay.show:not(.modal-overlay--form),
body.portal-card-ui .modal-overlay[style*="display: flex"]:not(.modal-overlay--form),
body.portal-card-ui .assinatura-modal.open,
body.portal-card-ui .foto-modal.open,
body.portal-card-ui .modal-disclaimer-selecao.open,
body.portal-card-ui .pdf-preview-modal.open {
    background: transparent !important;
    backdrop-filter: none !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 22px !important;
}

body.portal-card-ui .modal-overlay--form.active,
body.portal-card-ui .modal-overlay--form.show {
    background: rgba(0, 0, 0, 0.85) !important;
    align-items: center !important;
    justify-content: center !important;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) !important;
}

body.portal-card-ui .modal-overlay--form .modal-content {
    width: min(600px, 100%) !important;
    max-height: calc(100dvh - 32px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

body.portal-card-ui .modal-content,
body.portal-card-ui .assinatura-box,
body.portal-card-ui .foto-modal-content,
body.portal-card-ui .modal-disclaimer-selecao-box,
body.portal-card-ui .pdf-preview-panel {
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 18px !important;
    background: rgba(24, 24, 27, 0.98) !important;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.38) !important;
}

body.portal-card-ui .foto-modal-img {
    border-radius: 14px !important;
}
