/* ===== GOOGLE FONTS & RESET ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.15);
    
    --accent-purple: #c77dff;
    --accent-blue: #4facfe;
    --accent-green: #25d366;
    
    --radius-card: 24px;
    --radius-btn: 16px;
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.65);
}

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at 80% 20%, rgba(235, 211, 155, 0.08) 0%, transparent 55%),
                radial-gradient(circle at 20% 10%, rgba(126, 135, 197, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(91, 142, 150, 0.12) 0%, transparent 55%),
                radial-gradient(circle at 90% 90%, rgba(104, 146, 131, 0.12) 0%, transparent 55%),
                #0e0f19;
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
}

/* ===== BACKGROUND DECORATIVE GLOWS ===== */
.bg-glow {
    display: none; /* We use CSS gradients on the body to mimic the background perfectly */
}
.bg-glow-1 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #7b3fe4, #c77dff);
    top: 5%;
    left: -10%;
}
.bg-glow-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #fc6076, #ff9a44);
    bottom: 20%;
    right: -15%;
}
.bg-glow-3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #4facfe, #00f2fe);
    top: 50%;
    left: 20%;
    opacity: 0.15;
}

/* ===== APP WRAPPER ===== */
.app-wrapper {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 90px; /* Space for fixed bottom navigation */
}

/* ===== GLASS CARD STYLE ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-card);
}

.card-margin {
    margin: 0 1.25rem 1.25rem 1.25rem;
    padding: 1.25rem;
}

/* ===== AUTH / LOGIN SCREEN ===== */
.auth-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000;
    background: radial-gradient(circle at center, #7b8b9e 0%, #4f527c 100%);
}
.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 2.2rem 1.8rem;
    animation: scaleUp 0.3s ease;
}
.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}
.auth-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}
.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #ffffff;
}
.auth-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== FORM CONTROLS ===== */
.form-group {
    margin-bottom: 1.1rem;
}
.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-input-glass, .form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid var(--glass-border);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.25s ease;
}
.form-input-glass:focus, .form-input:focus {
    border-color: #ffffff;
    background: rgba(255,255,255,0.14);
    box-shadow: 0 0 10px rgba(255,255,255,0.15);
}

/* ===== BUTTONS ===== */
.btn-primary-full {
    width: 100%;
    background: linear-gradient(135deg, #7b3fe4, #c77dff);
    color: white;
    border: none;
    border-radius: var(--radius-btn);
    padding: 0.9rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(123, 63, 228, 0.25);
    margin-bottom: 0.75rem;
    transition: transform 0.15s ease, opacity 0.15s;
}
.btn-primary-full:active { transform: scale(0.98); }

.btn-secondary-full {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-btn);
    padding: 0.9rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-secondary-full:hover { background: rgba(255, 255, 255, 0.14); }

.btn-primary-glass {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-btn);
    padding: 0.75rem 1.25rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}
.btn-primary-glass:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}
.btn-primary-glass:active { transform: translateY(0); }

.btn-danger-glass {
    background: rgba(255, 75, 75, 0.06);
    color: #ff4d4d;
    border: 1.5px solid rgba(255, 75, 75, 0.15);
    border-radius: var(--radius-btn);
    padding: 0.75rem 1.25rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-danger-glass:hover { background: rgba(255, 75, 75, 0.12); border-color: rgba(255, 75, 75, 0.3); }

/* ===== APP HEADER (GLASS BRAND) ===== */
.app-header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    margin-bottom: 0.5rem;
}
.app-title-brand {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-white);
    text-shadow: 0 4px 16px rgba(0,0,0,0.05);
    letter-spacing: -0.5px;
}
.brand-ver {
    background: linear-gradient(135deg, #3a86c8, #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.brand-day {
    background: linear-gradient(135deg, #c77dff, #ff85a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.app-title-brand-main {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1.2px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.35);
    margin: 0;
}
.user-profile-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(123, 63, 228, 0.08);
    border: 1.5px solid rgba(123, 63, 228, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.user-profile-badge:hover { transform: scale(1.08); }
.avatar-initials {
    font-size: 0.88rem;
    font-weight: 700;
}
.btn-logout-glass {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    transition: color 0.2s;
}
.btn-logout-glass:hover { color: #ff4d4d; }

.btn-admin-glass {
    background: rgba(199, 125, 255, 0.12);
    color: var(--accent-purple);
    border: 1.5px solid rgba(199, 125, 255, 0.3);
    border-radius: 12px;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-admin-glass:hover { background: rgba(199, 125, 255, 0.22); transform: translateY(-1px); }

/* ===== BIG CALENDAR BADGE ===== */
.center-calendar-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.calendar-glass-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1.5px solid var(--glass-border);
    border-radius: 20px;
    width: 84px;
    height: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glass-shadow);
}
.cal-icon-emoji {
    font-size: 1.1rem;
    margin-top: 2px;
}
.cal-day-num {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-purple);
}
.cal-month-name {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}

/* ===== TAB SYSTEM ===== */
.tab-view {
    display: none;
    animation: tabFadeIn 0.3s ease;
}
.tab-view.active {
    display: block;
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== TODAY BIRTHDAYS SECTION ===== */
.card-title-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.btn-nav-day {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-white);
    font-size: 0.8rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-nav-day:hover { background: rgba(0,0,0,0.06); transform: scale(1.08); }

.list-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Person Item styling */
.person-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.person-item:last-child { border-bottom: none; }
.person-item .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
}
.person-item .info {
    flex: 1;
    min-width: 0;
}
.person-item .info h3 {
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.1rem;
}
.person-item .info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.person-item .btn-send {
    background: linear-gradient(135deg, #4facfe, #7b6ef6);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.5rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s;
    white-space: nowrap;
}
.person-item .btn-send:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(79,172,254,0.3); }
.person-item .badge-sent {
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.4rem 0.6rem;
}

/* ===== MEUS CADASTROS / COLLAPSIBLE ===== */
.month-list-section {
    display: none;
}
.month-list-section.visible {
    display: block;
}
.month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.month-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--glass-border);
    color: var(--text-white);
    border-radius: 12px;
    padding: 0.4rem 0.75rem;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}
.month-select option {
    background: #121324;
    color: white;
}

/* Compact list details */
.person-item-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.person-item-compact:last-child { border-bottom: none; }
.person-item-compact .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}
.person-item-compact .info {
    flex: 1;
    min-width: 0;
}
.person-item-compact .info h3 {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.05rem;
}
.person-item-compact .info p {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.btn-delete {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-delete:hover { background: rgba(255, 75, 75, 0.12); color: #ff4b4b; }

.btn-whatsapp-discreet {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-whatsapp-discreet:hover { background: rgba(37, 211, 102, 0.12); color: #25d366; }

.btn-edit-discreet {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-edit-discreet:hover { background: rgba(123, 63, 228, 0.15); color: #c77dff; }

/* ===== TAB 2: BUSCAR ===== */
.search-input-glass {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border-radius: 16px;
    border: 2.2px solid var(--glass-border);
    background: rgba(255,255,255,0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 0.95rem center;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input-glass:focus {
    border-color: #4facfe;
    box-shadow: 0 0 12px rgba(79,172,254,0.25);
}

/* ===== TAB 4: IMPORT AREA ===== */
.import-area-box {
    border: 2px dashed rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 2.2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}
.import-area-box:hover {
    background: rgba(255,255,255,0.06);
    border-color: #ffd93d;
}

/* ===== MODAL & SHEETS ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: overlayFade 0.2s ease;
}
.modal.hidden { display: none; }
.modal-content {
    background: linear-gradient(135deg, rgba(30, 32, 58, 0.95) 0%, rgba(18, 19, 36, 0.98) 100%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1.5px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    width: 100%;
    max-width: 480px;
    margin: auto;
    border-radius: var(--radius-card) !important;
    padding: 1.5rem;
    animation: scaleUp 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.modal-content::-webkit-scrollbar {
    display: none;
}
.modal-handle {
    width: 36px;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    margin: -0.5rem auto 1rem;
}
.btn-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
    line-height: 1;
    font-size: 1.15rem;
    font-weight: 300;
}
.btn-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: rotate(90deg) scale(1.05);
}
.modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.25rem;
}

/* Admin Users UI */
.admin-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-user-item:last-child { border-bottom: none; }
.admin-user-info p { font-size: 0.85rem; font-weight: 600; }
.admin-user-info span { font-size: 0.7rem; color: var(--text-muted); }
.badge-status {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}
.badge-status.approved { background: rgba(37,211,102,0.12); color: #25d366; }
.badge-status.pending  { background: rgba(255,217,61,0.12);  color: #ffd93d; }
.btn-approve {
    background: #25d366;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}
.btn-revoke {
    background: rgba(255, 255, 255, 0.06);
    color: #ff4b4b;
    border: 1px solid rgba(255, 75, 75, 0.25);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}

/* ===== FIXED BOTTOM NAVIGATION BAR ===== */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: 82px;
    background: rgba(18, 18, 30, 0.88);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1.5px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px 24px 0 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.4rem;
    z-index: 500;
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.55);
}
.nav-item {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    cursor: pointer;
    flex: 1;
    width: auto;
    height: 100%;
    padding: 0.4rem 0;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    width: 0px;
    height: 3.5px;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    border-radius: 0 0 4px 4px;
    transition: width 0.25s ease;
}
.nav-item.active::before {
    width: 28px;
    box-shadow: 0 2px 10px rgba(0, 242, 254, 0.7);
}
.nav-item.active {
    color: #ffffff;
}
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
    filter: grayscale(25%) opacity(0.75);
}
.nav-item.active .nav-icon {
    transform: scale(1.18) translateY(-2px);
    filter: grayscale(0%) opacity(1) drop-shadow(0 4px 12px rgba(78, 168, 222, 0.5));
}
.nav-item:hover .nav-icon {
    filter: grayscale(0%) opacity(0.95);
    transform: translateY(-1px);
}
.nav-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: color 0.2s ease, font-weight 0.2s ease;
}
.nav-item.active .nav-label {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.35);
}
.badge-notif-nav {
    position: absolute;
    top: 4px;
    right: 18px;
    background: #ff4d6d;
    color: white;
    font-size: 0.58rem;
    font-weight: 800;
    border-radius: 10px;
    padding: 0.1rem 0.35rem;
    border: 1.5px solid rgba(255,255,255,0.15);
}

/* ===== STATUS MESSAGES ===== */
.status-message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    animation: fadeIn 0.2s ease;
}
.status-message.success { background: rgba(37,211,102,0.12); color: #25d366; border: 1.2px solid rgba(37,211,102,0.2); }
.status-message.error   { background: rgba(255,77,109,0.12);  color: #ff4d6d; border: 1.2px solid rgba(255,77,109,0.2); }
.status-message.hidden  { display: none; }

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes overlayFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp     { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes scaleUp     { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fadeIn      { from { opacity: 0; } to { opacity: 1; } }

/* ===== DONATION FLOW & GOLDEN THEME ===== */
.btn-donate-glass {
    background: rgba(255, 217, 61, 0.08);
    border: 1.5px solid rgba(255, 217, 61, 0.25);
    color: #ffd93d;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.btn-donate-glass:hover {
    background: rgba(255, 217, 61, 0.16);
    border-color: rgba(255, 217, 61, 0.45);
    transform: scale(1.04);
}

.btn-about-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid var(--glass-border);
    color: var(--text-white);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.btn-about-glass:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.04);
}


.modal-donate-content {
    background: linear-gradient(135deg, #1b0f3a 0%, #3a1c1c 50%, #4a341a 100%) !important;
    border: 1px solid rgba(255, 217, 61, 0.2) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6) !important;
}

.modal-donate-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    color: #ffd93d;
    text-shadow: 0 2px 10px rgba(255, 217, 61, 0.2);
    margin-bottom: 1.25rem;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.modal-donate-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-bottom: 1.5rem;
}

.btn-golden-full {
    width: 100%;
    background: linear-gradient(135deg, #ffd93d, #d4af37);
    color: #121324;
    border: none;
    border-radius: 28px;
    padding: 0.95rem;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 217, 61, 0.25);
    transition: transform 0.15s ease, opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-golden-full:active {
    transform: scale(0.98);
}
.btn-golden-full:hover {
    opacity: 0.95;
    box-shadow: 0 6px 24px rgba(255, 217, 61, 0.35);
}

@keyframes pulseGold {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

.gold-star-anim {
    display: inline-block;
    animation: pulseGold 2s infinite ease-in-out;
}

.hidden {
    display: none !important;
}

/* ===== MEDIA QUERIES FOR RESPONSIVENESS ===== */

/* For Tablet and Desktop Screens */
@media (min-width: 768px) {
    .app-wrapper {
        max-width: 640px; /* Let it stretch slightly wider on tablet/desktop for a more dashboard-like experience */
    }
    .bottom-nav-bar {
        max-width: 640px;
        border-radius: 20px 20px 0 0;
        bottom: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    }
}

/* For Mid-size Phones (e.g., iPhone 11/12/13/14, Galaxy S21) */
@media (max-width: 400px) {
    .card-margin {
        margin: 0 0.85rem 0.85rem 0.85rem;
        padding: 1rem;
    }
    .app-title-brand {
        font-size: 1.6rem;
    }
}

/* For Small/Compact Phones (e.g., iPhone SE, older Androids, narrow screens) */
@media (max-width: 350px) {
    .card-margin {
        margin: 0 0.5rem 0.5rem 0.5rem;
        padding: 0.8rem;
    }
    .app-header-nav {
        padding: 0.85rem;
    }
    .app-title-brand {
        font-size: 1.4rem;
    }
    .calendar-glass-box {
        width: 72px;
        height: 72px;
    }
    .cal-day-num {
        font-size: 1.35rem;
    }
    .person-item .avatar, .person-item-compact .avatar {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    .person-item .info h3, .person-item-compact .info h3 {
        font-size: 0.8rem;
    }
    .person-item .info p, .person-item-compact .info p {
        font-size: 0.68rem;
    }
    .person-item .btn-send {
        padding: 0.4rem 0.65rem;
        font-size: 0.7rem;
    }
    .nav-icon {
        font-size: 1.1rem;
    }
    .nav-label {
        font-size: 0.58rem;
    }
    .bottom-nav-bar {
        height: 64px;
    }
}

/* ===== MENSAGENS / MODELOS DE MENSAGENS ===== */
.theme-group-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.theme-title-badge {
    font-size: 0.82rem;
    font-weight: 800;
    color: #4ea8de;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.25rem;
    border-left: 3px solid #4ea8de;
    padding-left: 0.5rem;
}
.template-item-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.2s ease;
}
.template-item-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
}
.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.template-title-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}
.template-actions {
    display: flex;
    gap: 0.25rem;
}
.template-preview-text {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    white-space: pre-wrap;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* ===== PROGRESS METER BAR ===== */
.progress-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.85rem 1.2rem;
    box-shadow: var(--glass-shadow);
}
.progress-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}
.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    width: 0%;
    transition: width 0.4s ease;
}

/* ===== LOCKED CONTACTS STYLE ===== */
.locked-contact-item {
    opacity: 0.6;
    background: rgba(0, 0, 0, 0.35) !important;
    position: relative;
    border-color: rgba(255, 255, 255, 0.04) !important;
}
.locked-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffd93d;
    background: rgba(255, 217, 61, 0.12);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 217, 61, 0.25);
    margin-left: 0.5rem;
}

/* ===== PAYWALL PLANS MODAL & CARDS ===== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
    width: 100%;
}
.plan-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}
.plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Plan Pro Highlight */
.plan-card.pro-highlight {
    background: linear-gradient(135deg, rgba(79, 82, 124, 0.25) 0%, rgba(199, 125, 255, 0.15) 100%);
    border: 2px solid #c77dff;
    box-shadow: 0 0 20px rgba(199, 125, 255, 0.2);
}
.plan-card.pro-highlight:hover {
    box-shadow: 0 0 30px rgba(199, 125, 255, 0.35);
    border-color: #ffd93d;
}

.plan-badge {
    position: absolute;
    top: -12px;
    background: linear-gradient(135deg, #ffd93d, #ff9a44);
    color: #0e0f19;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(255, 217, 61, 0.3);
}

.plan-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.35rem;
}
.plan-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffd93d;
    margin-bottom: 0.65rem;
}
.plan-price span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
}
.plan-ideal {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.75rem;
    min-height: 36px;
    line-height: 1.3;
}
.plan-features {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.25rem;
    list-style: none;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.plan-features li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}
.plan-btn {
    width: 100%;
    padding: 0.6rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}
.plan-btn-free {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}
.plan-btn-free:hover {
    background: rgba(255, 255, 255, 0.15);
}
.plan-btn-pay {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}
.plan-btn-pay:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 172, 254, 0.45);
}
.plan-btn-pro {
    background: linear-gradient(135deg, #c77dff, #7b3fe4);
    color: #fff;
    box-shadow: 0 4px 12px rgba(199, 125, 255, 0.3);
}
.plan-btn-pro:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(199, 125, 255, 0.45);
}

/* ===== ADMIN DASHBOARD PLENO ===== */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}
.admin-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.stat-icon {
    font-size: 1.8rem;
}
.stat-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-top: 0.15rem;
}

/* Tabs & content switcher */
.admin-tab-btn:hover {
    color: #fff !important;
}
.admin-tab-btn.active {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.admin-tab-content.hidden {
    display: none !important;
}
@media (max-width: 600px) {
    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== ASSINATURAS E CHECKOUT PIX ===== */
.spinner-checkout {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #4ea8de;
    border-radius: 50%;
    animation: spin-anim 1s linear infinite;
}

@keyframes spin-anim {
    to { transform: rotate(360deg); }
}

@keyframes pulse-anim {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ===== ABA DECIDIDOS / RECONCILIADOS ===== */
.btn-filter-decision {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    flex: 1;
    text-align: center;
}
.btn-filter-decision.active {
    background: rgba(78, 168, 222, 0.15);
    border-color: #4ea8de;
    color: #4ea8de;
    box-shadow: 0 0 10px rgba(78, 168, 222, 0.2);
}
.decision-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s ease;
}
.decision-item-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}
.decision-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.decision-badge.decidido {
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.2);
}
.decision-badge.reconciliado {
    background: rgba(78, 168, 222, 0.12);
    color: #4ea8de;
    border: 1px solid rgba(78, 168, 222, 0.2);
}
.decision-notes-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    word-break: break-word;
    max-height: 80px;
    overflow-y: auto;
}

/* Custom fix for mobile card-title-nav overflow */
@media (max-width: 500px) {
    .card-title-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .card-title-nav > div {
        justify-content: center;
        width: 100%;
    }
    .card-title-nav .btn-donate-glass {
        width: 100%;
        justify-content: center;
    }
}

/* ===== ANTI-SPAM SECURITY & PACING SYSTEM ===== */

/* Security Thermometer */
.security-thermometer-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.95rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}
.security-thermometer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.thermometer-status-text {
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    text-transform: uppercase;
}
.thermometer-status-safe {
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.25);
}
.thermometer-status-warning {
    background: rgba(255, 217, 61, 0.12);
    color: #ffd93d;
    border: 1px solid rgba(255, 217, 61, 0.25);
}
.thermometer-status-danger {
    background: rgba(255, 77, 109, 0.12);
    color: #ff4d6d;
    border: 1px solid rgba(255, 77, 109, 0.25);
}
.thermometer-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}
.thermometer-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.thermometer-bar-fill.safe {
    background: linear-gradient(90deg, #25d366, #4facfe);
}
.thermometer-bar-fill.warning {
    background: linear-gradient(90deg, #ffd93d, #ff9a44);
}
.thermometer-bar-fill.danger {
    background: linear-gradient(90deg, #ff4d6d, #ff2a5f);
}

/* Operator Badge & Filter */
.operator-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #4ea8de;
    background: rgba(78, 168, 222, 0.1);
    border: 1px solid rgba(78, 168, 222, 0.25);
    padding: 0.15rem 0.45rem;
    border-radius: 8px;
}
.operator-badge-icon {
    font-size: 0.7rem;
}

/* Cooldown Suggestions & Floating Alert */
.cooldown-alert-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(78, 168, 222, 0.1);
    border: 1.5px solid rgba(78, 168, 222, 0.25);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    animation: fadeIn 0.3s ease;
}
.cooldown-timer-number {
    font-size: 1.15rem;
    font-weight: 900;
    font-family: monospace;
    color: #00f2fe;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    min-width: 32px;
    text-align: center;
}

/* Operator settings table/row */
.operator-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.5rem;
}
.operator-name-info {
    text-align: left;
}
.operator-name-info h4 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}
.operator-name-info p {
    margin: 0.15rem 0 0 0;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
}
.btn-operator-action {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.2rem;
    display: inline-flex;
    align-items: center;
}

/* ===== VISITANTES STYLES ===== */
.visitor-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.visitor-badge.no-church {
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.25);
}
.visitor-badge.has-church {
    background: rgba(79, 172, 254, 0.12);
    color: #4facfe;
    border: 1px solid rgba(79, 172, 254, 0.25);
}

.visitor-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s ease;
}
.visitor-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

/* ===== CHURCH SUB-NAVIGATION SYSTEM (SEGMENTED CONTROL) ===== */
.church-subnav-container {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 4px;
    margin: 1rem 1rem 0.5rem 1rem;
    gap: 4px;
}
.church-subnav-btn {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: inherit;
}
.church-subnav-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.church-subnav-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.85);
}







