        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: Arial, sans-serif; background: linear-gradient(180deg, #4378BB 0%, #5C89B6 100%); min-height: 100vh; }
        body.app-locked #map, body.app-locked .container, body.app-locked .support-btn, body.app-locked .support-modal, body.app-locked .snackbar, body.app-locked .contact-btn, body.app-locked #announcementBanner, body.app-locked #announcementDetail, body.app-locked #ao8Footer { display: none !important; }
        body.app-locked { background: linear-gradient(180deg, #2471BC 0%, #77B6DC 100%); min-height: 100vh; }
        .onboarding-screen { display:none; position:fixed; top:0; left:0; width:100%; height:100%; flex-direction:column; align-items:center; justify-content:flex-start; z-index:50; padding:25px 20px 20px; }
        body.app-locked .onboarding-screen { display:flex !important; }
        .onboarding-container { max-width:380px; width:90%; text-align:center; }
        .onboarding-logo { width:120px; height:auto; margin-bottom:4px; }
        .onboarding-subtitle { font-family:"Playfair Display",serif; font-size:1.35em; font-style:italic; font-weight:600; color:white; opacity:0.9; margin-bottom:14px; letter-spacing:1px; }
        .onboarding-features { display:flex; flex-direction:column; gap:6px; margin-bottom:22px; }
        .onboarding-feature { display:flex; align-items:center; gap:12px; background:rgba(255,255,255,0.12); backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,0.2); border-radius:12px; padding:12px 16px; text-align:left; color:white; font-family:"Playfair Display",serif; font-style:italic; font-size:1.3em; line-height:1.3; }
        .onboarding-feature-icon { font-size:1.5em; flex-shrink:0; width:36px; text-align:center; }
        .onboarding-btn-primary { width:100%; padding:13px; background:white; color:#2471BC; border:none; border-radius:25px; font-family:"Playfair Display",serif; font-size:1.2em; font-weight:700; font-style:italic; cursor:pointer; margin-bottom:8px; box-shadow:0 4px 15px rgba(0,0,0,0.15); }
        .onboarding-btn-secondary { width:100%; padding:11px; background:transparent; color:white; border:2px solid rgba(255,255,255,0.6); border-radius:25px; font-family:"Playfair Display",serif; font-size:1.1em; font-weight:600; font-style:italic; cursor:pointer; }
        .onboarding-verse { margin-top:15px; font-family:"Playfair Display",serif; font-size:1em; font-style:italic; color:white; opacity:0.7; line-height:1.5; }

        
        /* Map at the top */
        #map { width: 100%; height: 50vh; }
        
        .container { max-width: 600px; margin: 0 auto; padding: 20px; }
        h1 { text-align: center; color: #333; margin-bottom: 10px; }
        .subtitle { text-align: center; color: #666; margin-bottom: 20px; }
        
        /* Gospel Response Selection Screen */
        .response-section { display: none; margin: 2px 10px 0; padding: 16px 10px; background: rgba(255,255,255,0.1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 20px; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
        .response-header { font-size: 1.2em; font-weight: bold; margin-bottom: 20px; text-align: center; }
        .response-btn { width: 100%; padding: 15px; margin-bottom: 10px; border: none; border-radius: 8px; font-size: 1.1em; cursor: pointer; text-align: left; display: flex; align-items: center; }
        .response-btn span { margin-left: 10px; }
        .rejected { background: #ffcdd2; }
        .open { background: #fff3cd; }
        .trusted { background: #c8e6c9; }
        .existing { background: #d1ecf1; }
        .response-btn:hover { opacity: 0.8; }
        
        /* Contact Form */
        .contact-form { display: none; margin-top: 15px; padding: 15px; background: white; border-radius: 8px; }
        .form-group { margin-bottom: 15px; }
        label { display: block; margin-bottom: 5px; font-weight: bold; }
        input, textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; }
        .form-buttons { display: flex; gap: 10px; }
        .form-buttons button { flex: 1; padding: 12px; border: none; border-radius: 5px; cursor: pointer; }
        .submit-btn { background: #2471BC; color: white; width: 100%; padding: 14px; font-size: 1.1em; margin-top: 15px; border-radius: 25px; border: none; cursor: pointer; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 600; }
        .cancel-btn { background: #f44336; color: white; }
        
        /* HOPE LA Menu Styles */
        .menu-section { margin: 8px 0; padding: 10px 20px 20px; background: transparent; border-radius: 10px; }
        /* Stats Glass Card - Design A FINAL */
        .stats-container { padding: 2px 10px 0; }
        .stats-glass { background: rgba(255,255,255,0.1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 20px; padding: 16px 10px; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
        .stats-grid-row { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
        .stat-box { display: flex; flex-direction: column; align-items: center; padding: 0 2px; }
        .stat-number { font-size: 3.5em !important; font-weight: 800; line-height: 1; font-family: 'Playfair Display', serif; }
        .stat-label { font-size: 0.55em !important; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-top: 4px; display: block; }
        .stat-color-shares { color: #FFD700; }
        .stat-color-salvations { color: #FF6B8A; }
        .stat-color-healings { color: #64DFDF; }
        .stat-color-baptisms { color: #A78BFA; }
        .stats-divider { display: none; }
        .stats-row { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
        .menu-btn { width: 100%; padding: 18px; margin-bottom: 8px; background: #f8f6f0; border: 2px solid #2471BC; border-radius: 10px; font-size: 1.3em; color: #2471BC; cursor: pointer; text-align: center; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 600; }
        .menu-btn:hover { background: #eeeee8; }
        .event-btn { width: 100%; padding: 20px; background: #ffc107; border: none; border-radius: 8px; font-size: 1.2em; font-weight: bold; color: #333; cursor: pointer; margin-top: 15px; }
        .event-btn:hover { background: #ffb300; }
        
        .geolocation-toggle { margin: 15px 0; display: flex; align-items: center; }
        .geolocation-toggle input { margin-right: 10px; width: 20px; height: 20px; cursor: pointer; }
        
        /* Auth Section - Design A FINAL */
        .auth-section { margin: 4px 0 0; padding: 0 10px; }
        .auth-container { display: flex; justify-content: center; align-items: center; gap: 15px; }
        .auth-btn { background: transparent; color: white; padding: 12px 30px; border: 2px solid white; border-radius: 30px; cursor: pointer; font-family: 'Playfair Display', serif; font-size: 1.1em; }
        .auth-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
        .auth-greeting { font-size: 1.25em; color: #fff; font-family: 'Playfair Display', serif; font-style: italic; }
        .auth-greeting strong { font-weight: 700; }
        .auth-icons { display: flex; gap: 10px; }
        .auth-icon-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; cursor: pointer; color: white; text-decoration: none; padding: 0; flex-shrink: 0; font-size: 18px; line-height: 1; }
        .auth-icon-btn:active { background: rgba(255,255,255,0.25); }
        .auth-logout-btn { height: 42px; border-radius: 21px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; cursor: pointer; color: white; padding: 0 16px; font-size: 0.7em; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 600; letter-spacing: 0.5px; flex-shrink: 0; }
        .auth-logout-btn:active { background: rgba(255,255,255,0.25); }
        .leader-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(118,75,162,0.25); border: 1px solid rgba(200,150,255,0.35); border-radius: 30px; padding: 14px 32px; color: #e0ccf5; font-size: 1.05em; font-weight: 600; cursor: pointer; text-decoration: none; font-family: 'Playfair Display', serif; font-style: italic; margin-top: 14px; margin-bottom: 10px; }
        .leader-pill:active { background: rgba(118,75,162,0.45); }
        .leader-pill { position: relative; }
        .leader-badge { display: none; position: absolute; top: -6px; right: -6px; background: #e53e3e; color: white; font-size: 0.65em; font-weight: 700; font-style: normal; min-width: 20px; height: 20px; border-radius: 50%; justify-content: center; align-items: center; box-shadow: 0 2px 6px rgba(229,62,62,0.5); animation: badgePulse 2s ease-in-out infinite; }
        @keyframes badgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
        .new-contact-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 5000; justify-content: center; align-items: flex-end; padding: 20px; }
        .new-contact-modal-overlay.active { display: flex; }
        .new-contact-modal { background: linear-gradient(135deg, #1a365d 0%, #2471BC 50%, #4a90d9 100%); border-radius: 24px 24px 12px 12px; width: 100%; max-width: 380px; padding: 32px 24px 24px; box-shadow: 0 -10px 40px rgba(0,0,0,0.3); animation: slideUpModal 0.5s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden; }
        .new-contact-modal::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.08) 0%, transparent 60%); pointer-events: none; }
        @keyframes slideUpModal { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
        .ncm-sparkle { font-size: 2em; text-align: center; margin-bottom: 8px; animation: sparkleFloat 2s ease-in-out infinite; }
        @keyframes sparkleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
        .ncm-title { color: white; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.35em; text-align: center; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
        .ncm-contact-card { background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.25); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
        .ncm-contact-name { color: #fff; font-weight: 700; font-size: 1.05em; margin-bottom: 4px; }
        .ncm-contact-type { color: rgba(255,255,255,0.8); font-size: 0.85em; display: inline-block; background: rgba(255,255,255,0.12); padding: 3px 10px; border-radius: 20px; }
        .ncm-btn { display: block; width: 100%; padding: 16px; margin-top: 16px; background: white; color: #2471BC; border: none; border-radius: 14px; font-size: 1.05em; font-weight: 700; font-family: 'Playfair Display', serif; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.15); transition: transform 0.15s; }
        .ncm-btn:active { transform: scale(0.97); }
        .ncm-dismiss { display: block; width: 100%; padding: 10px; margin-top: 8px; background: transparent; color: rgba(255,255,255,0.7); border: none; font-size: 0.9em; cursor: pointer; text-align: center; }
        .new-contact-highlight { background: linear-gradient(135deg, rgba(236,201,75,0.25) 0%, rgba(236,201,75,0.12) 100%) !important; border: 1px solid rgba(236,201,75,0.4) !important; border-radius: 12px; position: relative; }
        .new-contact-highlight .home-reminder-name { color: #ffd700; }
        .new-tag { display: inline-block; background: linear-gradient(135deg, #f6ad55, #ecc94b); color: #744210; font-size: 0.7em; font-weight: 700; padding: 2px 8px; border-radius: 8px; margin-left: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: 0.5px; }
        #welcomeUser { display: none; }
        
        /* Modal */

/* ============================================================
   AUTH MODAL REDESIGN - Polished card-based layout
   ============================================================ */
.modal { position:fixed; top:0; left:0; width:100%; height:100%; background:linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #2471BC 100%); z-index:1000; display:flex; justify-content:flex-start; align-items:center; flex-direction:column; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.modal-content { background:#f8f9fb; padding:0; border-radius:20px; width:92%; max-width:420px; position:relative; box-shadow:0 25px 80px rgba(0,0,0,0.35); margin:0 auto 40px; flex-shrink:0; overflow:hidden; }
.modal-logo { width:100px; margin:0 auto 16px; display:block; padding-top:40px; flex-shrink:0; filter:drop-shadow(0 4px 12px rgba(0,0,0,0.2)); }
.close-modal { position:absolute; top:12px; right:16px; font-size:24px; cursor:pointer; color:#94a3b8; z-index:10; width:32px; height:32px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:rgba(0,0,0,0.04); transition:all 0.2s; }
.close-modal:hover { background:rgba(0,0,0,0.08); color:#64748b; }

/* Form header inside modal-content */
.auth-form-header { background:linear-gradient(135deg, #2471BC 0%, #1a56a0 100%); padding:24px 24px 20px; text-align:center; }
.auth-form-header h2 { color:white !important; font-family:'Playfair Display',Georgia,serif; font-style:italic; font-weight:700; font-size:1.5em; margin:0 0 4px !important; text-shadow:0 2px 8px rgba(0,0,0,0.15); }
.auth-form-header p { color:rgba(255,255,255,0.75); font-size:0.82em; margin:0; }

/* Form body */
.auth-form-body { padding:20px 22px 24px; }

/* Updated form inputs */
.auth-form-body .form-group { margin-bottom:12px; }
.auth-form-body .form-group label { display:block; font-size:0.78em; font-weight:600; color:#475569; margin-bottom:5px; font-family:'DM Sans',-apple-system,sans-serif; }
.auth-form-body .form-group input,
.auth-form-body .form-group select {
    width:100%; padding:12px 14px; border:2px solid #e2e8f0; border-radius:12px;
    font-size:0.92em; font-family:'DM Sans',-apple-system,sans-serif; color:#1e293b;
    transition:border-color 0.2s, box-shadow 0.2s; background:white; -webkit-appearance:none;
}
.auth-form-body .form-group input:focus,
.auth-form-body .form-group select:focus {
    outline:none; border-color:#2471BC; box-shadow:0 0 0 3px rgba(36,113,188,0.12);
}
.auth-form-body .form-group input::placeholder { color:#94a3b8; }

/* Language selector special styling */
.auth-form-body #regLanguage {
    border:2px solid #2471BC !important; background:linear-gradient(135deg, #eff6ff, #dbeafe) !important;
    font-weight:600 !important; color:#1e40af !important;
}

/* Submit button */
.auth-form-body .submit-btn {
    background:linear-gradient(135deg, #2471BC, #1a56a0) !important; color:white; width:100%;
    padding:14px; font-size:1.05em; margin-top:16px; border-radius:14px; border:none;
    cursor:pointer; font-family:'Playfair Display',serif; font-style:italic; font-weight:600;
    box-shadow:0 4px 16px rgba(36,113,188,0.3); transition:all 0.2s;
}
.auth-form-body .submit-btn:active { transform:scale(0.98); }

/* Switch auth link */
.auth-form-body .switch-auth { text-align:center; margin-top:16px; color:#64748b; font-size:0.88em; }
.auth-form-body .switch-auth a { color:#2471BC; cursor:pointer; text-decoration:none; font-weight:600; }

/* Password eye icon positioning fix */
.auth-form-body .pwd-wrapper { position:relative; }
.auth-form-body .pwd-wrapper input { width:100%; padding-right:44px; }
.auth-form-body .pwd-eye { position:absolute; right:12px; top:50%; transform:translateY(-50%); cursor:pointer; font-size:1.1em; user-select:none; }

/* ===== LEADER PATH CARDS ===== */
.leader-paths { display:flex; flex-direction:column; gap:10px; margin-bottom:6px; }
.path-card {
    position:relative; border:2px solid #e2e8f0; border-radius:16px; padding:16px;
    cursor:pointer; transition:all 0.3s cubic-bezier(0.4,0,0.2,1); background:white; overflow:hidden;
}
.path-card::before {
    content:''; position:absolute; top:0; left:0; right:0; height:4px;
    border-radius:16px 16px 0 0; opacity:0; transition:opacity 0.3s;
}
.path-card:active { transform:scale(0.985); }
.path-card.leader-path::before { background:linear-gradient(90deg, #2471BC, #3b82f6); }
.path-card.youth-path::before { background:linear-gradient(90deg, #dc2626, #f97316); }
.path-card.active { box-shadow:0 4px 20px rgba(0,0,0,0.08); }
.path-card.leader-path.active { border-color:#2471BC; }
.path-card.leader-path.active::before { opacity:1; }
.path-card.youth-path.active { border-color:#dc2626; }
.path-card.youth-path.active::before { opacity:1; }

.path-card-header { display:flex; align-items:center; gap:12px; }
.path-icon {
    width:44px; height:44px; border-radius:12px; display:flex; align-items:center;
    justify-content:center; font-size:1.3em; flex-shrink:0;
}
.leader-path .path-icon { background:linear-gradient(135deg, #dbeafe, #bfdbfe); }
.youth-path .path-icon { background:linear-gradient(135deg, #fee2e2, #fecaca); }
.path-info { flex:1; }
.path-title { font-weight:700; font-size:0.92em; color:#1e293b; margin-bottom:2px; }
.path-subtitle { font-size:0.75em; color:#64748b; line-height:1.35; }
.path-checkbox {
    width:24px; height:24px; border-radius:8px; border:2px solid #cbd5e1;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
    transition:all 0.25s; font-size:0.7em; color:transparent;
}
.leader-path.active .path-checkbox { background:#2471BC; border-color:#2471BC; color:white; }
.youth-path.active .path-checkbox { background:#dc2626; border-color:#dc2626; color:white; }

/* Hidden checkboxes that store state for form submission */
.path-card input[type="checkbox"] { display:none; }

/* ===== VETTING SECTIONS ===== */
.vetting-section { display:none; }
.vetting-section.visible { display:block; animation:vettingSlide 0.4s cubic-bezier(0.4,0,0.2,1); }
@keyframes vettingSlide { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }

.section-divider { display:flex; align-items:center; gap:10px; margin:16px 0 14px; }
.section-divider::before, .section-divider::after { content:''; flex:1; height:1px; background:#e2e8f0; }
.section-divider-label {
    font-size:0.65em; font-weight:700; text-transform:uppercase; letter-spacing:1.5px;
    color:#94a3b8; white-space:nowrap;
}

/* ===== SHARED FIELDS CARD ===== */
.vetting-card {
    background:white; border:1px solid #e2e8f0; border-radius:14px;
    padding:18px; margin-bottom:14px;
}
.vetting-card-label {
    font-size:0.68em; font-weight:700; text-transform:uppercase; letter-spacing:1.2px;
    margin-bottom:14px; display:flex; align-items:center; gap:7px;
}
.vetting-card-label.blue { color:#2471BC; }
.vetting-card-label.red { color:#dc2626; }
.vetting-card-label.green { color:#059669; }

/* ===== COMMITMENT BOX ===== */
.commitment-box {
    background:linear-gradient(135deg, #f8fafc, #f1f5f9); border:1px solid #e2e8f0;
    border-radius:12px; padding:14px; margin-bottom:14px;
}
.commitment-header { display:flex; align-items:center; gap:10px; cursor:pointer; }
.commitment-check {
    width:22px; height:22px; border-radius:6px; border:2px solid #94a3b8;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
    transition:all 0.25s; font-size:0.7em; color:transparent; cursor:pointer;
}
.commitment-check.checked { background:#059669; border-color:#059669; color:white; }
.commitment-title { font-weight:700; font-size:0.85em; color:#334155; }
.commitment-text { font-size:0.75em; color:#64748b; line-height:1.5; padding-left:32px; margin-top:8px; }

/* ===== YOUTH EXTRA CARD ===== */
.youth-extra-card {
    background:linear-gradient(135deg, #fef2f2, #fff7ed); border:2px solid #fecaca;
    border-radius:14px; padding:18px; margin-bottom:14px; position:relative; overflow:hidden;
}
.youth-extra-card::before {
    content:''; position:absolute; top:0; left:0; right:0; height:3px;
    background:linear-gradient(90deg, #dc2626, #f97316);
}
.youth-warning {
    display:flex; gap:8px; background:rgba(220,38,38,0.08); border-radius:10px;
    padding:10px 12px; margin-bottom:12px;
}
.youth-warning-icon { font-size:1.1em; flex-shrink:0; line-height:1.3; }
.youth-warning-text { font-size:0.78em; color:#991b1b; line-height:1.4; font-weight:500; }

/* ===== PASTORAL CARD ===== */
.pastoral-card {
    background:white; border:1px solid #e2e8f0; border-radius:14px;
    padding:18px; margin-bottom:14px;
}
.pastoral-card.youth-pastoral { border-color:#fecaca; background:linear-gradient(to bottom, #fff5f5, white); }

/* ===== INFO FOOTER ===== */
.info-footer {
    display:flex; align-items:flex-start; gap:8px; border-radius:10px;
    padding:12px; margin-top:6px;
}
.info-footer.blue { background:linear-gradient(135deg, #eff6ff, #f0f9ff); border:1px solid #bfdbfe; }
.info-footer.warn { background:linear-gradient(135deg, #fefce8, #fff7ed); border:1px solid #fde68a; }
.info-footer-icon { font-size:0.9em; flex-shrink:0; }
.info-footer-text { font-size:0.75em; line-height:1.4; }
.info-footer.blue .info-footer-text { color:#1e40af; }
.info-footer.warn .info-footer-text { color:#92400e; }

/* ===== FOLLOW-UP WARNING ===== */
.followup-warning {
    display:flex; gap:8px; background:linear-gradient(135deg, #fefce8, #fff7ed);
    border:1px solid #fde68a; border-radius:12px; padding:12px 14px; margin:4px 0 12px;
}
.followup-warning-icon { font-size:1em; flex-shrink:0; }
.followup-warning-text { font-size:0.8em; color:#92400e; line-height:1.45; }
.followup-warning-text strong { color:#78350f; }

/* ===== PRIVACY CHECKBOX ===== */
.privacy-row { display:flex; align-items:flex-start; gap:10px; margin:14px 0 4px; }
.privacy-row input[type="checkbox"] { width:20px; height:20px; flex-shrink:0; margin-top:1px; accent-color:#2471BC; }
.privacy-row label { font-size:0.85em; color:#475569; line-height:1.4; cursor:pointer; }
.privacy-row label strong { color:#1e293b; }

/* ===== PRIVACY POLICY BOX ===== */
#privacyPolicyBox {
    background:#f8f9fb !important; border:1px solid #e2e8f0 !important;
    border-radius:12px !important; padding:16px !important; margin:10px 0 !important;
    max-height:250px; overflow-y:auto; font-size:0.76em !important; line-height:1.55 !important; color:#475569 !important;
}

/* ===== LOGIN FORM ===== */
.login-form-body { padding:28px 24px 24px; }
.login-form-body .form-group { margin-bottom:14px; }
.login-form-body .form-group input {
    width:100%; padding:14px 16px; border:2px solid #e2e8f0; border-radius:12px;
    font-size:0.95em; font-family:'DM Sans',-apple-system,sans-serif; color:#1e293b;
    transition:border-color 0.2s, box-shadow 0.2s; background:white;
}
.login-form-body .form-group input:focus { outline:none; border-color:#2471BC; box-shadow:0 0 0 3px rgba(36,113,188,0.12); }
.login-form-body .form-group input::placeholder { color:#94a3b8; }
.login-form-body .submit-btn {
    background:linear-gradient(135deg, #2471BC, #1a56a0) !important; color:white; width:100%;
    padding:14px; font-size:1.05em; margin-top:8px; border-radius:14px; border:none;
    cursor:pointer; font-family:'Playfair Display',serif; font-style:italic; font-weight:600;
    box-shadow:0 4px 16px rgba(36,113,188,0.3); transition:all 0.2s;
}
.login-form-body .submit-btn:active { transform:scale(0.98); }
.login-form-body .switch-auth { text-align:center; margin-top:16px; color:#64748b; font-size:0.88em; }
.login-form-body .switch-auth a { color:#2471BC; cursor:pointer; text-decoration:none; font-weight:600; }
.login-form-body .pwd-wrapper { position:relative; }
.login-form-body .pwd-wrapper input { padding-right:44px; }
.login-form-body .pwd-eye { position:absolute; right:12px; top:50%; transform:translateY(-50%); cursor:pointer; font-size:1.1em; user-select:none; }

        .modal-legacy-override-removed { display:none; } /* placeholder */
        .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, #2471BC 0%, #77B6DC 100%); z-index: 1000; display: flex; justify-content: flex-start; align-items: center; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; }
        .modal-content { background: rgba(255,255,255,0.95); padding: 30px; border-radius: 20px; width: 90%; max-width: 400px; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.2); margin: 0 auto 40px; flex-shrink: 0; }
        .modal-logo { width: 120px; margin: 0 auto 20px; display: block; padding-top: 50px; flex-shrink: 0; }
        .close-modal { position: absolute; top: 10px; right: 15px; font-size: 28px; cursor: pointer; color: #666; }
        .modal h2 { text-align: center; margin-bottom: 20px; color: #2471BC; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.8em; }
        .switch-auth { text-align: center; margin-top: 15px; color: #666; }
        .switch-auth a { color: #2196F3; cursor: pointer; text-decoration: underline; }
        .checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; padding: 0; width: 100%; }
        .checkbox-group label { font-weight: normal; margin: 0; flex: 1; font-size: 0.95em; line-height: 1.4; }
        .checkbox-group input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
        
    
        /* PWA Install Prompt */
        .install-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; display: flex; justify-content: center; align-items: center; }
        .install-content { background: white; padding: 30px; border-radius: 20px; width: 90%; max-width: 380px; text-align: center; }
        .install-content h2 { color: #333; margin-bottom: 10px; font-size: 1.5em; }
        .install-content p { color: #666; margin-bottom: 20px; }
        .install-icon { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 18px; }
        .install-steps { text-align: left; background: #f5f5f5; padding: 20px; border-radius: 12px; margin: 20px 0; }
        .install-step { display: flex; align-items: center; margin-bottom: 15px; }
        .install-step:last-child { margin-bottom: 0; }
        .step-num { background: #764ba2; color: white; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 12px; flex-shrink: 0; }
        .step-text { color: #333; font-size: 0.95em; }
        .step-text .icon { font-size: 1.2em; }
        .install-btn { background: #764ba2; color: white; border: none; padding: 15px 40px; border-radius: 25px; font-size: 1.1em; cursor: pointer; margin-top: 10px; }
        .install-btn:hover { background: #5a3a7e; }
        .install-later { background: none; border: none; color: #999; margin-top: 15px; cursor: pointer; font-size: 0.9em; }
        .install-later:hover { color: #666; }
    
        /* Bottom Navigation Snackbar */
        .snackbar { position: fixed; bottom: 0; left: 0; right: 0; background: #2471BC; display: flex; justify-content: space-around; align-items: center; padding: 10px 0; z-index: 900; box-shadow: 0 -2px 10px rgba(0,0,0,0.2); }
        .snackbar-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: white; font-size: 0.7em; font-family: 'Playfair Display', serif; }
        .snackbar-item img { width: 28px; height: 28px; margin-bottom: 4px; }
        body { padding-bottom: 70px; }
    
        /* Home Reminders */
        .home-reminders { background: rgba(255,255,255,0.13); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 18px; border: 1px solid rgba(255,255,255,0.2); margin: 0 16px 20px 16px; padding: 14px; display: none; }
        .home-reminders h3 { color: white; font-family: 'Playfair Display', serif; font-style: italic; margin-bottom: 10px; font-size: 0.9em; }
        .home-reminder-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: rgba(255,255,255,0.1); border-radius: 12px; margin-bottom: 6px; border: 1px solid rgba(255,255,255,0.1); }
        .home-reminder-item.overdue { background: rgba(255,255,255,0.1); }
        .home-reminder-item.upcoming { background: rgba(255,255,255,0.08); }
        .home-reminder-info { flex: 1; }
        .home-reminder-name { font-weight: 600; color: white; font-size: 0.88em; }
        .home-reminder-task { font-size: 0.75em; color: rgba(255,255,255,0.6); margin-top: 1px; }
        .home-reminder-due { font-size: 0.65em; font-weight: 600; padding: 3px 8px; border-radius: 20px; display: inline-block; } .home-reminder-due.overdue-badge { color: #ff6b6b; background: rgba(255,80,80,0.25); border: 1px solid rgba(255,80,80,0.3); } .home-reminder-due.upcoming-badge { color: #f5c842; background: rgba(245,200,66,0.2); border: 1px solid rgba(245,200,66,0.3); }
        .home-reminder-btn { background: #27ae60; color: white; border: none; padding: 8px 15px; border-radius: 6px; cursor: pointer; font-size: 0.85em; }
        .home-reminder-btn:hover { background: #2ecc71; }
        .view-all-link { text-align: right; margin-top: 8px; }
        .view-all-link a { color: rgba(255,255,255,0.6); font-size: 0.7em; text-decoration: none; }
    
        /* Support Chat */
        .contact-btn { background: white; color: #333; border: none; padding: 12px 20px; border-radius: 25px; cursor: pointer; font-family: "Playfair Display", serif; font-style: italic; font-size: 1em; position: fixed; bottom: 140px; right: 20px; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
        .contact-btn:hover { background: #3498db; color: white; }
        .support-btn { display: none !important; }
        .support-btn:hover { background: #2ecc71; }
        .support-modal { display: none; position: fixed; bottom: 150px; right: 20px; width: 320px; max-height: 450px; background: white; border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.3); z-index: 1001; overflow: hidden; }
        .support-header { background: linear-gradient(135deg, #2471BC 0%, #77B6DC 100%); color: white; padding: 15px; display: flex; justify-content: space-between; align-items: center; }
        .support-header h3 { margin: 0; font-family: 'Playfair Display', serif; font-style: italic; }
        .support-close { background: none; border: none; color: white; font-size: 1.5em; cursor: pointer; }
        .support-messages { height: 280px; overflow-y: auto; padding: 15px; background: #f8f9fa; }
        .support-message { margin-bottom: 12px; }
        .support-message.user { text-align: right; }
        .support-message.ai { text-align: left; }
        .support-bubble { display: inline-block; padding: 10px 15px; border-radius: 15px; max-width: 85%; word-wrap: break-word; }
        .support-message.user .support-bubble { background: #2471BC; color: white; border-bottom-right-radius: 5px; }
        .support-message.ai .support-bubble { background: white; color: #333; border: 1px solid #ddd; border-bottom-left-radius: 5px; }
        .support-input-area { display: flex; padding: 10px; background: white; border-top: 1px solid #eee; }
        .support-input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 20px; font-size: 0.95em; }
        .support-send { background: #2471BC; color: white; border: none; padding: 10px 15px; border-radius: 20px; margin-left: 8px; cursor: pointer; }
        .support-send:hover { background: #1a5a9e; }
        .support-typing { color: #888; font-style: italic; font-size: 0.85em; padding: 5px 15px; }
    
        /* ============ MEDIA QUERIES ============ */
        
        /* Small phones (320px - 375px) */
        @media screen and (max-width: 375px) {
            .container { padding: 10px; }
            .stat-number { font-size: 3em !important; }
            .stat-label { font-size: 0.5em !important; }
            .menu-btn { padding: 14px; font-size: 1.1em; }
            .snackbar-item { font-size: 0.6em; }
            .snackbar-item img { width: 24px; height: 24px; }
            .support-btn { padding: 10px 15px; font-size: 0.9em; bottom: 80px; right: 10px; }
            .support-modal { width: 290px; right: 10px; bottom: 130px; }
            .auth-btn { padding: 10px 15px; font-size: 0.9em; }
            .logo-container img { width: 140px; }
        }
        
        /* Regular phones (376px - 428px) */
        @media screen and (min-width: 376px) and (max-width: 428px) {
            .container { padding: 15px; }
            .stat-number { font-size: 3.2em !important; }
            .stat-label { font-size: 0.55em !important; }
            .menu-btn { padding: 16px; font-size: 1.2em; }
            .support-btn { bottom: 85px; right: 15px; }
        }
        
        /* Large phones / Small tablets (429px - 768px) */
        @media screen and (min-width: 429px) and (max-width: 768px) {
            .container { padding: 20px; max-width: 500px; }
            .stat-number { font-size: 3.5em !important; }
            .menu-btn { padding: 18px; font-size: 1.3em; }
            .snackbar-item { font-size: 0.75em; }
            .snackbar-item img { width: 30px; height: 30px; }
        }
        
        /* Tablets and Desktop (769px+) */
        @media screen and (min-width: 769px) {
            .container { max-width: 600px; padding: 30px; }
            .stat-number { font-size: 4em !important; }
            .stat-label { font-size: 0.65em !important; }
            .menu-btn { padding: 20px; font-size: 1.4em; }
            .menu-btn:hover { background: #eeeee8; transform: translateY(-2px); transition: all 0.2s; }
            .snackbar { max-width: 600px; left: 50%; transform: translateX(-50%); border-radius: 15px 15px 0 0; }
            .snackbar-item { font-size: 0.8em; }
            .snackbar-item img { width: 32px; height: 32px; }
            .support-btn { bottom: 100px; right: 30px; padding: 14px 24px; font-size: 1.1em; }
            .support-modal { width: 360px; right: 30px; bottom: 160px; }
            .logo-container img { width: 200px; }
        }
        /* Iframe overlay for in-app browsing */
        .iframe-overlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; z-index:9999; background:#fff; }
        .iframe-overlay.active { display:block; }
        .iframe-overlay iframe { width:100%; height:100%; border:none; }
        .iframe-home-btn { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); z-index:10000; background:#2471BC; color:white; border:none; padding:12px 30px; border-radius:25px; font-size:1.1em; font-family:"Playfair Display",serif; font-style:italic; font-weight:600; box-shadow:0 4px 15px rgba(0,0,0,0.3); cursor:pointer; }

        /* Gospel Share Celebration */
        .celebration-overlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.85); z-index:10000; justify-content:center; align-items:center; flex-direction:column; text-align:center; padding:20px; }
        .celebration-overlay.active { display:flex; }
        .celebration-emoji { font-size:4em; animation:celebBounce 0.6s ease; }
        .celebration-msg { color:white; font-family:'Playfair Display',serif; font-size:1.6em; font-style:italic; font-weight:700; margin:20px 0 10px; animation:celebFade 0.8s ease 0.2s both; }
        .celebration-verse { color:rgba(255,255,255,0.85); font-family:'Playfair Display',serif; font-size:1em; font-style:italic; max-width:320px; line-height:1.5; animation:celebFade 0.8s ease 0.4s both; }
        .celebration-count { color:#FFD700; font-family:'Playfair Display',serif; font-size:1.2em; font-weight:700; margin-top:15px; animation:celebFade 0.8s ease 0.6s both; }
        .celebration-close { margin-top:25px; padding:12px 40px; background:white; color:#2471BC; border:none; border-radius:25px; font-family:'Playfair Display',serif; font-size:1.1em; font-weight:700; font-style:italic; cursor:pointer; animation:celebFade 0.8s ease 0.8s both; }
        .confetti { position:fixed; width:10px; height:10px; top:-10px; z-index:10001; border-radius:2px; animation:confettiFall linear forwards; }
        @keyframes celebBounce { 0%{transform:scale(0)} 50%{transform:scale(1.3)} 100%{transform:scale(1)} }
        @keyframes celebFade { from{opacity:0;transform:translateY(15px)} to{opacity:1;transform:translateY(0)} }
        @keyframes confettiFall { to{top:110vh;transform:rotate(720deg)} }

/* ===== RESPONSE PICKER REDESIGN ===== */
.response-grid-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.response-tile {
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.response-tile:active { transform: scale(0.96); }

.response-tile.rt-not-ready { background: #FFF0F0; border-color: #F5D5D5; }
.response-tile.rt-wants-learn { background: #FFF8E8; border-color: #F0E0C0; }
.response-tile.rt-received { background: #EDFAF2; border-color: #C8E8D5; }
.response-tile.rt-already { background: #EDF4FC; border-color: #C8D8F0; }

.response-tile .rt-icon { font-size: 1.7em; margin-bottom: 8px; display: block; }
.response-tile .rt-label { font-size: 0.82em; font-weight: 700; color: #1a2a3a; line-height: 1.2; }

.response-tile.rt-selected.rt-not-ready { border-color: #DC5A5A; background: #FFE5E5; box-shadow: 0 2px 12px rgba(220,90,90,0.15); }
.response-tile.rt-selected.rt-wants-learn { border-color: #D4930A; background: #FFF2D0; box-shadow: 0 2px 12px rgba(212,147,10,0.15); }
.response-tile.rt-selected.rt-received { border-color: #2D8A55; background: #DBFAE8; box-shadow: 0 2px 12px rgba(45,138,85,0.15); }
.response-tile.rt-selected.rt-already { border-color: #2471BC; background: #DAE9FA; box-shadow: 0 2px 12px rgba(36,113,188,0.15); }

.rt-fish-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}

.response-cancel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 13px;
  background: #f5f5f5;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9em;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  transition: all 0.2s ease;
}
.response-cancel-btn:active { background: #eaeaea; transform: scale(0.98); }

@keyframes rtFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.response-tile { animation: rtFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.response-tile:nth-child(1) { animation-delay: 0.05s; }
.response-tile:nth-child(2) { animation-delay: 0.12s; }
.response-tile:nth-child(3) { animation-delay: 0.19s; }
.response-tile:nth-child(4) { animation-delay: 0.26s; }
/* ===== END RESPONSE PICKER REDESIGN ===== */
