/* ==========================================================================
   AppConsolidacao — Design System & Mobile-First Styling
   Lagoinha Viseu & Veiga 360 Gestão Digital
   ========================================================================== */

:root {
    --bg-dark: #0d0e12;
    --bg-card: rgba(23, 25, 32, 0.85);
    --bg-card-hover: rgba(30, 33, 42, 0.95);
    --bg-input: #15171f;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(212, 167, 53, 0.35);
    
    --gold: #D4A735;
    --gold-light: #EBC66A;
    --gold-gradient: linear-gradient(135deg, #EBC66A 0%, #D4A735 100%);
    
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --whatsapp-green: #25D366;
    --whatsapp-hover: #20ba59;
    --danger-red: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --warning-yellow: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --success-green: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-gold: 0 4px 20px rgba(212, 167, 53, 0.25);
    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(212, 167, 53, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(37, 211, 102, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Container Mobile First */
.app-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 30px;
}

/* Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 14, 18, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-crest {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #0d0e12;
    font-size: 18px;
    box-shadow: var(--shadow-gold);
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.2;
}

.brand-text p {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active, .lang-btn:hover {
    color: var(--gold-light);
    border-color: var(--border-accent);
    background: rgba(212, 167, 53, 0.1);
}

.admin-switch-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}
.admin-switch-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}
.admin-switch-btn.active {
    background: rgba(212, 167, 53, 0.22);
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 0 12px rgba(212, 167, 53, 0.35);
}

/* Banner de Boas-Vindas */
.hero-banner {
    padding: 18px 18px 16px;
    text-align: center;
}

.hero-banner h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #FFFFFF 30%, #D1D5DB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-banner p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 380px;
    margin: 0 auto;
}

/* Grid de Cards */
/* Barra de Navegação Rápida / Chips Mobile */
.category-nav-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 14px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-nav-bar::-webkit-scrollbar {
    display: none;
}

.nav-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 13px;
    box-sizing: border-box;
    background: rgba(23, 25, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}
.nav-chip > span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.nav-chip:hover, .nav-chip:active {
    color: #fff;
    background: rgba(35, 38, 50, 0.95);
    border-color: var(--border-accent);
}
.nav-chip.active {
    background: linear-gradient(135deg, rgba(235, 198, 106, 0.22) 0%, rgba(212, 167, 53, 0.16) 100%);
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: 0 2px 7px rgba(212, 167, 53, 0.2);
}
.nav-chip.chip-new {
    padding-inline: 11px;
    font-size: 11px;
}
.nav-chip.chip-gc:hover { border-color: rgba(37, 211, 102, 0.5); color: #fff; }
.nav-chip.chip-cultos:hover { border-color: rgba(56, 189, 248, 0.5); color: #fff; }
.nav-chip.chip-doacoes:hover { border-color: rgba(245, 158, 11, 0.5); color: #fff; }
.nav-chip.chip-oracao:hover { border-color: rgba(192, 132, 252, 0.5); color: #fff; }
.nav-chip.chip-whatsapp:hover { border-color: rgba(34, 197, 94, 0.5); color: #fff; }

/* Grid de Cards */
.cards-grid {
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.card-item:hover, .card-item:active {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Card Hero: Sou Novo Aqui (Destaque Principal com Alto Contraste) */
.card-hero-new {
    background: linear-gradient(135deg, #1b1e2a 0%, #12141d 100%) !important;
    border: 2px solid var(--gold) !important;
    border-radius: 18px !important;
    padding: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    box-shadow: 0 8px 32px rgba(212, 167, 53, 0.22), 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.card-hero-new:hover, .card-hero-new:active {
    border-color: var(--gold-light) !important;
    box-shadow: 0 10px 36px rgba(212, 167, 53, 0.35) !important;
    transform: translateY(-2px);
}

.card-hero-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
}

.card-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.badge-new-person {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 167, 53, 0.2);
    border: 1px solid rgba(212, 167, 53, 0.55);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.pulse-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.card-hero-main {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.card-icon.gold-hero {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(235, 198, 106, 0.3) 0%, rgba(212, 167, 53, 0.2) 100%);
    border: 1px solid rgba(212, 167, 53, 0.45);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(212, 167, 53, 0.25);
    flex-shrink: 0;
}

.card-hero-arrow {
    color: var(--gold-light);
    font-size: 20px;
    font-weight: bold;
}

.card-hero-cta {
    background: var(--gold-gradient);
    color: #0d0e12;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.01em;
    box-shadow: 0 4px 15px rgba(212, 167, 53, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.card-hero-new:hover .card-hero-cta,
.card-hero-new:active .card-hero-cta {
    filter: brightness(1.08);
}

/* Bordas temáticas para orientação visual no celular */
.card-gc-theme { border-left: 4px solid var(--whatsapp-green) !important; }
.card-cultos-theme { border-left: 4px solid #38bdf8 !important; }
.card-oracao-theme { border-left: 4px solid #c084fc !important; }
.card-batismo-theme { border-left: 4px solid #6366f1 !important; }
.card-giving-theme { border-left: 4px solid #f59e0b !important; }
.card-whatsapp-theme { border-left: 4px solid #10b981 !important; }
.card-social-theme { border-left: 4px solid #ec4899 !important; }
.card-apps-theme { border-left: 4px solid #0ea5e9 !important; }
.card-carisma-theme {
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    background:
        radial-gradient(circle at 12% 50%, rgba(119, 24, 37, 0.24), transparent 34%),
        linear-gradient(135deg, #191a20 0%, #111218 100%);
    border: 1px solid rgba(212, 167, 53, 0.38);
    border-left: 4px solid #8f2635;
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.24);
}

.card-carisma-theme:hover,
.card-carisma-theme:active {
    border-color: rgba(235, 198, 106, 0.68);
    border-left-color: #a92d40;
    background:
        radial-gradient(circle at 12% 50%, rgba(143, 38, 53, 0.3), transparent 36%),
        linear-gradient(135deg, #202129 0%, #14151c 100%);
}

.card-carisma-logo-wrap {
    width: 112px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 7px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(212, 167, 53, 0.2);
}

.card-carisma-logo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.card-icon.gold { background: rgba(212, 167, 53, 0.15); color: var(--gold); }
.card-icon.green { background: rgba(37, 211, 102, 0.15); color: var(--whatsapp-green); }
.card-icon.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.card-icon.purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.card-icon.pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; }

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: #fff !important;
}

.btn-facebook {
    background: #1877f2 !important;
    color: #fff !important;
}

.btn-youtube {
    background: #ff0000 !important;
    color: #fff !important;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.card-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.35;
}

.card-arrow {
    color: var(--text-muted);
    font-size: 18px;
    transition: var(--transition);
}

.card-item:hover .card-arrow {
    color: var(--gold-light);
    transform: translateX(3px);
}

/* Carisma Online */
.modal-carisma-sheet {
    background:
        radial-gradient(circle at 12% 0%, rgba(126, 27, 42, 0.2), transparent 34%),
        #14161d;
}

.carisma-hero {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px 20px 18px;
    margin-bottom: 18px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(119, 24, 37, 0.22), rgba(212, 167, 53, 0.08)),
        rgba(7, 8, 11, 0.72);
    border: 1px solid rgba(212, 167, 53, 0.28);
    overflow: hidden;
}

.carisma-modal-logo {
    display: block;
    width: min(310px, 90%);
    height: auto;
    object-fit: contain;
}

.carisma-hero > span {
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.carisma-welcome {
    text-align: center;
    margin-bottom: 18px;
}

.carisma-welcome h4 {
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 7px;
}

.carisma-welcome p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
    max-width: 470px;
    margin: 0 auto;
}

.carisma-primary-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-decoration: none;
    margin-bottom: 18px;
}

.carisma-links-section {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
}

.carisma-payment-grid {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.carisma-payment-link {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 10px 13px;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    background: rgba(8, 9, 13, 0.7);
    border: 1px solid rgba(212, 167, 53, 0.26);
    transition: var(--transition);
}

.carisma-payment-link:hover,
.carisma-payment-link:active {
    border-color: var(--gold);
    background: rgba(212, 167, 53, 0.09);
    transform: translateY(-1px);
}

.carisma-payment-link > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.carisma-payment-link strong {
    font-size: 14px;
}

.carisma-payment-link small {
    color: var(--text-secondary);
    font-size: 11px;
}

.carisma-payment-link > span:last-child {
    color: var(--gold-light);
    font-size: 16px;
}

.carisma-year {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #111218;
    font-weight: 900;
    background: var(--gold-gradient);
    box-shadow: 0 3px 12px rgba(212, 167, 53, 0.22);
}

.carisma-support {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border-radius: 14px;
    background: rgba(143, 38, 53, 0.12);
    border: 1px solid rgba(169, 45, 64, 0.34);
}

.carisma-support-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 11px;
    background: rgba(169, 45, 64, 0.2);
}

.carisma-support strong {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-bottom: 3px;
}

.carisma-support p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 7px;
}

.carisma-support a {
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

@media (max-width: 430px) {
    .card-carisma-theme {
        gap: 12px;
        padding: 14px;
    }

    .card-carisma-logo-wrap {
        width: 92px;
        min-height: 52px;
        padding: 6px;
    }

    .card-carisma-theme .card-content h3 {
        font-size: 14px;
        line-height: 1.25;
    }

    .card-carisma-theme .card-content p {
        font-size: 11px;
    }

    .carisma-hero {
        min-height: 128px;
        padding-inline: 12px;
    }
}

/* Modais e Bottom Sheets */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.25s ease-out;
}

.modal-sheet {
    background: #14161d;
    border-top: 1px solid var(--border-subtle);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Formulários */
.form-group {
    min-width: 0;
    margin-bottom: 18px;
}

.form-group > label:not(.checkbox-label) {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: #f4e7c4;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.form-group > label:not(.checkbox-label)::before {
    width: 3px;
    height: 13px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(212, 167, 53, 0.28);
    content: '';
    flex: 0 0 auto;
}

.form-group:focus-within > label:not(.checkbox-label) {
    color: var(--gold-light);
}

.form-group label span.req {
    color: var(--gold-light);
}

.form-control {
    width: 100%;
    min-height: 46px;
    background: #10131b;
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #fff;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--gold);
    background: #121620;
    box-shadow: 0 0 0 3px rgba(212, 167, 53, 0.14);
}

.form-control::placeholder {
    color: #717887;
    opacity: 1;
}

textarea.form-control {
    min-height: 96px;
    line-height: 1.5;
    resize: vertical;
}

.form-group > small {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.45;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-section-card {
    margin-bottom: 16px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
}

.form-section-card.accent-purple {
    border-color: rgba(192, 132, 252, 0.28);
    background: rgba(192, 132, 252, 0.045);
}

.form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -1px 0 16px;
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-section-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border: 1px solid rgba(212, 167, 53, 0.28);
    border-radius: 9px;
    background: rgba(212, 167, 53, 0.09);
    flex: 0 0 auto;
}

.form-section-heading strong {
    display: block;
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
}

.form-section-heading span:not(.form-section-heading-icon) {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.4;
}

.form-section-card > .form-group:last-child,
.form-section-card > .form-row:last-child > .form-group {
    margin-bottom: 0;
}

#form-config-portal > h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 14px !important;
    padding: 10px 12px;
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(212, 167, 53, 0.07);
    color: var(--gold-light) !important;
    font-size: 12px;
    letter-spacing: 0.025em;
}

#form-config-portal > h5:first-child {
    margin-top: 0 !important;
}

.phone-input-group {
    display: flex;
    gap: 8px;
}

.ddi-select {
    width: 95px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 13px;
    outline: none;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    cursor: pointer;
}

@media (max-width: 520px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-section-card {
        padding: 13px;
    }
}

.checkbox-label input {
    margin-top: 2px;
    accent-color: var(--gold);
}

.btn-primary {
    width: 100%;
    background: var(--gold-gradient);
    border: none;
    color: #0d0e12;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover, .btn-primary:active {
    opacity: 0.92;
    transform: scale(0.99);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Dízimos e Ofertas — Copy Box */
.donation-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.donation-info h4 {
    font-size: 13px;
    color: var(--gold-light);
    margin-bottom: 2px;
}

.donation-info p {
    font-family: monospace;
    font-size: 13px;
    color: #fff;
    word-break: break-all;
}

.btn-copy {
    background: rgba(212, 167, 53, 0.15);
    border: 1px solid var(--border-accent);
    color: var(--gold-light);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 10px;
    transition: var(--transition);
}

.btn-copy.copied {
    background: var(--success-green);
    border-color: var(--success-green);
    color: #fff;
}

/* SLA Badges & Indicators */
.sla-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.sla-badge.vermelho {
    background: var(--danger-bg);
    color: var(--danger-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.sla-badge.amarelo {
    background: var(--warning-bg);
    color: var(--warning-yellow);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.sla-badge.normal {
    background: var(--success-bg);
    color: var(--success-green);
}

/* Abas do CRM Pastoral */
.crm-tabs-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: #141722;
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 167, 53, 0.55) transparent;
}

.crm-tabs-bar::-webkit-scrollbar {
    height: 5px;
}

.crm-tabs-bar::-webkit-scrollbar-thumb {
    background: rgba(212, 167, 53, 0.55);
    border-radius: 999px;
}

.crm-nav-tab {
    flex: 0 0 auto;
    min-width: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    scroll-snap-align: center;
}

.crm-nav-tab.active {
    background: var(--gold-gradient) !important;
    color: #0d0e12 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(212, 167, 53, 0.35);
    border-color: #D4A735 !important;
}

.crm-nav-tab:not(.active):hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.crm-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(192, 132, 252, 0.18);
    color: #e9d5ff;
    font-size: 10px;
}

.crm-nav-tab.active .crm-tab-count {
    background: rgba(13, 14, 18, 0.18);
    color: #0d0e12;
}

/* Estatísticas anônimas do Hub */
.stats-heading,
.stats-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.stats-heading {
    margin-bottom: 16px;
}

.stats-heading h4,
.stats-panel-heading h5 {
    color: #fff;
}

.stats-heading h4 {
    color: var(--gold-light);
    font-size: 17px;
}

.stats-heading p,
.stats-panel-heading p {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
}

.stats-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.stats-controls label {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
}

.stats-controls .form-control {
    min-width: 148px;
    margin: 0;
    padding: 8px 10px;
    font-size: 12px;
}

.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.stats-summary-card,
.stats-panel {
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.stats-summary-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px;
}

.stats-summary-card span,
.stats-summary-card small {
    color: var(--text-muted);
    font-size: 10px;
}

.stats-summary-card strong {
    margin: 7px 0 2px;
    color: #fff;
    font-size: 25px;
    line-height: 1;
}

.stats-panel {
    margin-bottom: 14px;
    padding: 14px;
}

.stats-daily-chart {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    min-height: 190px;
    margin-top: 14px;
    padding: 12px 3px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 167, 53, 0.55) transparent;
}

.stats-day {
    display: flex;
    flex: 0 0 38px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 160px;
}

.stats-day-values {
    display: flex;
    gap: 4px;
    min-height: 16px;
    color: var(--text-muted);
    font-size: 8px;
}

.stats-day-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 136px;
}

.stats-bar {
    display: block;
    width: 9px;
    min-height: 0;
    border-radius: 5px 5px 2px 2px;
}

.stats-bar-visits {
    background: linear-gradient(180deg, #f9d976, #d4a735);
}

.stats-bar-clicks {
    background: linear-gradient(180deg, #9ae6b4, #38a169);
}

.stats-day-label {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 9px;
}

.stats-table-wrap {
    margin-top: 12px;
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 12px;
}

.stats-table th,
.stats-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: right;
    color: var(--text-secondary);
}

.stats-table th {
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.stats-table th:first-child,
.stats-table td:first-child {
    text-align: left;
}

.stats-table td strong {
    display: block;
    color: #fff;
    font-weight: 600;
}

.stats-table td small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 9px;
    text-transform: capitalize;
}

.stats-empty {
    width: 100%;
    align-self: center;
    color: var(--text-muted);
    text-align: center;
    font-size: 12px;
}

.stats-privacy-note {
    padding: 11px 13px;
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.07);
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .stats-heading {
        flex-direction: column;
    }

    .stats-controls {
        width: 100%;
        flex-wrap: wrap;
    }

    .stats-controls .form-control {
        flex: 1 1 150px;
    }

    .stats-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.prayer-manager-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.prayer-manager-heading h4 {
    color: var(--gold-light);
    font-size: 14px;
}

.prayer-manager-heading p {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 11px;
}

.prayer-status-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 12px;
}

.prayer-status-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.prayer-status-tab.active {
    border-color: rgba(192, 132, 252, 0.65);
    background: rgba(192, 132, 252, 0.12);
    color: #e9d5ff;
}

.prayer-status-tab strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 10px;
}

.prayer-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid var(--border-subtle);
    border-left: 4px solid #c084fc;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    transition: var(--transition);
}

.prayer-card:hover {
    border-color: rgba(192, 132, 252, 0.45);
    background: rgba(192, 132, 252, 0.06);
}

.prayer-card-content {
    min-width: 0;
    flex: 1;
}

.prayer-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.prayer-card h5 {
    color: #fff;
    font-size: 14px;
}

.prayer-card-request {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.prayer-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 9px;
    color: var(--text-muted);
    font-size: 10px;
}

.prayer-status-badge {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.prayer-status-badge.novo { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.prayer-status-badge.em_oracao { background: rgba(192, 132, 252, 0.15); color: #d8b4fe; }
.prayer-status-badge.concluido { background: rgba(34, 197, 94, 0.15); color: #86efac; }

.prayer-person-card,
.prayer-request-box {
    margin-bottom: 14px;
    padding: 13px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.prayer-person-card {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.65;
}

.prayer-person-card strong { color: #fff; }

.prayer-request-box {
    border-color: rgba(192, 132, 252, 0.35);
    background: rgba(192, 132, 252, 0.07);
}

.prayer-request-box > span {
    display: block;
    margin-bottom: 7px;
    color: #d8b4fe;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.prayer-request-box p {
    color: #f8fafc;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.prayer-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.prayer-modal-actions .btn-primary {
    margin-left: auto;
    width: auto;
    padding-inline: 16px;
}

.prayer-delete-button {
    color: var(--danger-red) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.journey-list-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.journey-list-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.journey-list-tab.active {
    border-color: rgba(212, 167, 53, 0.7);
    background: rgba(212, 167, 53, 0.14);
    color: var(--gold-light);
}

.journey-list-tab strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 11px;
}

.btn-primary:disabled {
    cursor: default;
    opacity: 0.62;
    filter: grayscale(0.25);
}

.journey-card-meta {
    display: grid;
    gap: 3px;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.journey-status-label {
    display: inline-flex;
    width: fit-content;
    margin-top: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
}

@media (max-width: 430px) {
    .journey-list-tab {
        align-items: flex-start;
        padding: 10px;
        font-size: 11px;
    }

    .prayer-status-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prayer-modal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .prayer-modal-actions .btn-copy,
    .prayer-modal-actions .btn-primary {
        width: 100%;
        margin-left: 0;
    }
}

/* Chat / Linha do Tempo no CRM */
.timeline-chat {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 15px 0;
}

.chat-bubble {
    width: 100%;
    max-width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    box-sizing: border-box;
}

.chat-bubble.outbound {
    background: #181b26;
    border: 1px solid rgba(212, 167, 53, 0.35);
    border-left: 4px solid var(--gold);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.chat-bubble.inbound {
    background: #151822;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--whatsapp-green);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11px;
}

.chat-author {
    font-weight: 700;
    color: var(--gold-light);
}

.chat-time {
    color: var(--text-muted);
    font-size: 11px;
}

.manual-email-composer {
    margin-bottom: 18px;
    padding: 15px;
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: var(--radius-md);
    background: rgba(197, 168, 128, 0.05);
}

.manual-email-composer h4,
.timeline-heading h4 {
    margin: 0;
    color: var(--gold-light);
    font-size: 13px;
}

.manual-email-composer p {
    margin: 7px 0 11px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.5;
}

.manual-email-composer .form-control {
    margin-bottom: 9px;
    font-size: 13px;
}

.manual-email-actions,
.timeline-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.manual-email-actions span {
    color: var(--text-muted);
    font-size: 10px;
}

.manual-email-actions .btn-primary {
    width: auto;
    padding: 9px 16px;
    font-size: 12px;
}

.timeline-heading {
    margin: 4px 0 6px;
}

.timeline-heading .btn-copy {
    font-size: 10px;
}

.email-thread-item {
    overflow: hidden;
    border: 1px solid rgba(212, 167, 53, 0.35);
    border-radius: 10px;
    background: #fff;
}

.email-thread-item.received {
    border-color: rgba(37, 211, 102, 0.45);
}

.email-thread-item summary {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 34px 11px 13px;
    color: #0f172a;
    background: #f8fafc;
    cursor: pointer;
    position: relative;
    list-style: none;
}

.email-thread-item summary::-webkit-details-marker {
    display: none;
}

.email-thread-item summary::after {
    content: '⌄';
    position: absolute;
    right: 13px;
    top: 12px;
    color: #64748b;
    font-size: 18px;
}

.email-thread-item[open] summary::after {
    transform: rotate(180deg);
}

.email-thread-title {
    font-weight: 700;
    font-size: 12px;
}

.email-thread-preview {
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-thread-content {
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.email-message-frame {
    display: block;
    width: 100%;
    min-height: 180px;
    border: 0;
    background: #fff;
}

.received-email-body {
    padding: 16px;
    color: #1e293b;
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.visitor-danger-zone {
    margin-top: 24px;
    padding: 14px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.08);
}

.visitor-danger-zone strong,
.visitor-danger-zone span {
    display: block;
}

.visitor-danger-zone strong {
    margin-bottom: 4px;
    color: #fecaca;
    font-size: 12px;
}

.visitor-danger-zone span {
    max-width: 470px;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.5;
}

.visitor-danger-zone button {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid rgba(239, 68, 68, 0.55);
    border-radius: 8px;
    background: var(--danger-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.visitor-danger-zone button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.responsible-manager {
    margin-bottom: 16px;
    padding: 13px;
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: var(--radius-md);
    background: rgba(197, 168, 128, 0.06);
}

.responsible-manager > label {
    display: block;
    margin-bottom: 6px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
}

.responsible-manager > div {
    display: flex;
    gap: 8px;
}

.responsible-manager .btn-primary {
    width: auto;
    padding: 9px 14px;
    white-space: nowrap;
}

.responsible-manager small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 10px;
}

@media (max-width: 560px) {
    .visitor-danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .visitor-danger-zone button {
        width: 100%;
    }

    .responsible-manager > div {
        align-items: stretch;
        flex-direction: column;
    }

    .responsible-manager .btn-primary {
        width: 100%;
    }
}

/* Card Branco de Visualização de E-mail (100% Legível & Profissional) */
.email-preview-wrapper {
    margin: 6px 0 2px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 167, 53, 0.4);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.email-preview-header {
    background: #202433;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(212, 167, 53, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.email-preview-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--gold-light);
    background: rgba(212, 167, 53, 0.2);
    padding: 2px 7px;
    border-radius: 4px;
}

.email-preview-subject {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.email-preview-card {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 16px 18px;
    font-size: 13px;
    line-height: 1.6;
    max-height: 480px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.email-preview-card * {
    color: #1e293b;
    box-sizing: border-box;
}

.email-preview-card h1,
.email-preview-card h2,
.email-preview-card h3,
.email-preview-card strong {
    color: #0f172a !important;
}

.email-preview-card p {
    margin-bottom: 10px;
    color: #334155 !important;
}

.email-preview-card a {
    color: #0284c7 !important;
}

.email-preview-card a[style*="background"],
.email-preview-card a[style*="BACKGROUND"],
.email-preview-card a[href*="whatsapp"],
.email-preview-card a[href*="chat.whatsapp"] {
    color: #ffffff !important;
    text-decoration: none !important;
}

.email-preview-card hr {
    border: 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    margin: 16px 0 !important;
}

/* Banner de Cookies RGPD */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 20, 26, 0.95);
    border-top: 1px solid var(--border-accent);
    padding: 14px 20px;
    backdrop-filter: blur(10px);
    z-index: 90;
    display: none;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.5);
}

.cookie-content {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cookie-content p {
    font-size: 12px;
    color: var(--text-secondary);
}

.cookie-content button {
    background: var(--gold-gradient);
    border: none;
    color: #000;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Convite de instalação do aplicativo */
.pwa-install-banner {
    position: fixed;
    top: 76px;
    left: 50%;
    width: min(92vw, 520px);
    transform: translate(-50%, -18px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    background: rgba(18, 20, 26, 0.98);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px);
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.pwa-install-banner.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.pwa-install-banner img {
    border-radius: 12px;
    flex: 0 0 auto;
}

.pwa-install-copy {
    min-width: 0;
    flex: 1;
}

.pwa-install-copy strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.25;
}

.pwa-install-copy p {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.35;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pwa-install-actions button {
    border: 0;
    cursor: pointer;
}

.pwa-install-primary {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--gold-gradient);
    color: #000;
    font-weight: 700;
}

.pwa-install-dismiss {
    padding: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 16px;
}

@media (max-width: 520px) {
    .pwa-install-banner {
        top: 68px;
        gap: 9px;
    }

    .pwa-install-banner img {
        width: 44px;
        height: 44px;
    }

    .pwa-install-copy p {
        display: none;
    }
}

/* Assinatura Obrigatória Veiga 360 (§1.13) */
.veiga-footer {
    margin-top: auto;
    padding: 24px 16px 12px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.veiga-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
}

.veiga-footer a:hover {
    color: var(--gold-light);
}

.veiga-footer img {
    height: 24px;
    width: auto;
    vertical-align: middle;
}

.form-memory-choice {
    margin: 12px 0;
    padding: 11px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
}

.form-memory-choice .checkbox-label {
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.5;
}

.form-memory-choice small {
    display: block;
    margin: 5px 0 0 25px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.5;
}

.form-memory-choice a {
    display: inline-block;
    margin: 4px 0 0 25px;
    color: var(--gold-light);
    font-size: 10px;
}

.registration-privacy-link {
    display: inline-block;
    margin-top: 7px;
    color: var(--gold-light);
    font-size: 11px;
}

.legal-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.legal-links a {
    font-size: 11px;
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cookie-content a {
    display: inline-block;
    margin-top: 5px;
    color: var(--gold-light);
    font-size: 11px;
}

.cookie-actions button:last-child {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.legal-document {
    max-width: 780px;
    min-height: 100vh;
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-header nav {
    display: flex;
    gap: 16px;
}

.legal-body {
    padding: 22px 20px;
    overflow-wrap: anywhere;
}

.legal-document a {
    color: var(--gold-light);
    text-underline-offset: 3px;
}

.legal-body h1 {
    margin: 18px 0 5px;
    color: #fff;
    font-size: 25px;
}

.legal-body h2 {
    margin: 22px 0 8px;
    color: #fff;
    font-size: 16px;
}

.legal-body p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: 10px;
}

.legal-body .legal-revision {
    color: var(--text-muted);
    font-size: 11px;
}

.legal-preferences {
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 0 14px 10px;
    margin-top: 24px;
    background: rgba(212, 167, 53, 0.04);
}

.legal-preferences .checkbox-label {
    margin: 14px 0;
    line-height: 1.5;
    font-size: 12px;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
