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

:root {
    --clr-primary: #3DA3D4;
    --clr-primary-light: #A8D8EA;
    --clr-primary-dark: #2E8BC0;
    --clr-surface: #E6F3FB;
    --clr-text-title: #1A3A5C;
    --clr-text-body: #5A7D9A;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 4px 20px rgba(46, 139, 192, 0.08);
    --border-radius-lg: 20px;
    --border-radius-md: 16px;
}

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

body {
    background: url('assets/sky_bg.png') center top / cover no-repeat fixed, #e4f1f9;
    font-family: 'Inter', sans-serif;
    color: var(--clr-text-body);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Mobile Header Navigation */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    background: url('assets/sky_bg.png') center / cover no-repeat, rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 230, 255, 0.4);
    box-shadow: 0 2px 12px rgba(46, 139, 192, 0.1);
}

.mobile-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
}

.hamburger-btn {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--clr-text-title);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.mobile-header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
}

.mobile-header-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--clr-text-title);
}

.mobile-header-nav {
    display: none;
    flex-direction: column;
    padding: 0 12px 8px;
    gap: 2px;
}

.mobile-header-nav.open {
    display: flex;
}

.mobile-header-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--clr-text-title);
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
}

.mobile-header-nav a i { font-size: 1rem; }

.mobile-header-nav a.active {
    background: var(--clr-primary);
    color: white;
}

.mobile-header-nav a:not(.active):hover {
    background: rgba(46, 139, 192, 0.1);
}

@media (min-width: 1024px) {
    .mobile-header { display: none; }
}

/* Responsive Container */
#app-container {
    width: 100vw;
    height: 100vh;
    background: var(--clr-surface);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 500px) and (max-width: 1023px) {
    #app-container {
        max-width: 600px;
        margin: 0 auto;
        border-radius: 32px;
        height: 95vh;
        border: 6px solid #ffffff;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    }
}

/* Typography */
.logo-title {
    font-family: 'Crimson Text', serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--clr-text-title);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.logo-subtitle {
    font-size: 1rem;
    color: var(--clr-text-title);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.page-title {
    font-size: 1.8rem;
    text-align: center;
    margin-top: 1rem;
}

.page-subtitle {
    text-align: center;
    color: var(--clr-text-body);
}

/* Screen System */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
    background: url('assets/sky_bg.png') center top / cover no-repeat;
    z-index: 1;
    padding-top: 50px;
}

#screen-splash {
    padding-top: 0;
}

#screen-map {
    padding-top: 0;
    background: var(--clr-surface);
}

.screen.active {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
    z-index: 2;
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius-lg);
}

.gradient-bg {
    background: url('assets/sky_bg.png') center top / cover no-repeat, linear-gradient(to bottom, #CFEBF9, #E6F3FB);
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-radius: 0;
    z-index: 10;
    flex-shrink: 0;
}

.top-bar h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-text-title);
}

.top-bar.transparent { background: transparent; border: none; box-shadow: none; backdrop-filter: none; }

.icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    font-size: 1.3rem;
    color: var(--clr-text-title);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Buttons */
.btn {
    border: none;
    border-radius: 14px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter';
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 139, 192, 0.3);
}

.btn-primary:hover { box-shadow: 0 6px 20px rgba(46, 139, 192, 0.4); transform: translateY(-1px); }

.btn-secondary-outline {
    background: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}

.btn-glass-secondary {
    background: rgba(255, 255, 255, 0.4);
    color: var(--clr-primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-glow {
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0%,100% { box-shadow: 0 4px 15px rgba(46, 139, 192, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(46, 139, 192, 0.5); }
}

.btn-logout {
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
    width: 100%;
    margin-top: 8px;
}

/* 1. SPLASH */
#screen-splash {
    padding-top: 0;
    background: linear-gradient(to bottom, rgba(207,235,249,0.55), rgba(230,243,251,0.65)), url('assets/splash_landscape.png') center / cover no-repeat;
}

.splash-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 2rem 20px 0;
    text-align: center;
}

.mary-avatar-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mary-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 8px 30px rgba(46, 139, 192, 0.15);
}

.bead-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: rotateBeads 15s linear infinite;
}

.bead-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border: 2px solid var(--clr-primary-light);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(46, 139, 192, 0.15);
}

@keyframes rotateBeads { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.splash-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 1.5rem 32px 2rem;
    width: 100%;
}

/* 2. MAP */
.map-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--clr-text-body);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: var(--clr-primary);
    border-bottom-color: var(--clr-primary);
    font-weight: 600;
}

.rosary-list-container {
    flex: 1;
    position: relative;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rosary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Buscar Map Layout */
.buscar-map-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.buscar-map-container {
    height: 40%;
    min-height: 200px;
    position: relative;
    flex-shrink: 0;
}

#buscar-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Custom Map Markers */
.custom-map-marker {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(46, 139, 192, 0.4);
    border: 3px solid white;
    animation: markerDrop 0.4s ease-out;
    position: relative;
}

.marker-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.custom-map-marker.user-marker {
    background: linear-gradient(135deg, #56d992, #27ae60);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.custom-map-marker.picker-pin {
    background: linear-gradient(135deg, #F4D35E, #f0a500);
    box-shadow: 0 4px 12px rgba(240, 165, 0, 0.4);
}

@keyframes markerDrop {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mis Intenciones Screen */
#screen-intenciones {
    padding-top: 50px;
}

.intenciones-scrollarea {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.intenciones-hero {
    text-align: center;
    padding: 20px 16px;
}

.intenciones-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E8A0BF, #C4B5FD);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 12px;
    box-shadow: 0 6px 20px rgba(196, 181, 253, 0.4);
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(196, 181, 253, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 8px 28px rgba(196, 181, 253, 0.6); }
}

.intenciones-hero h2 {
    font-family: 'Crimson Text', serif;
    font-size: 1.6rem;
    color: var(--clr-text-title);
    margin-bottom: 6px;
}

.intenciones-hero p {
    font-size: 0.9rem;
    color: var(--clr-text-body);
}

.mystery-day {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--clr-text-body);
    margin-left: 4px;
    background: rgba(255, 255, 255, 0.5);
    padding: 2px 10px;
    border-radius: 10px;
}

/* Intention Form */
.intencion-form-section {
    margin-top: 8px;
}

.intencion-form-card {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.intencion-form-card h3 {
    font-size: 1.1rem;
    color: var(--clr-text-title);
    font-family: 'Crimson Text', serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.intencion-form-card h3 i {
    color: var(--clr-primary);
}

.intencion-form-card p {
    font-size: 0.85rem;
    color: var(--clr-text-body);
}

.intencion-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.intencion-input-wrapper textarea {
    width: 100%;
    padding: 14px;
    border: 1.5px solid rgba(46, 139, 192, 0.2);
    border-radius: 14px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.6);
    color: var(--clr-text-title);
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.intencion-input-wrapper textarea:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(61, 163, 212, 0.15);
    background: rgba(255, 255, 255, 0.85);
}

.intencion-input-wrapper textarea::placeholder {
    color: #a0bdd0;
}

/* Community Intentions */
.community-intentions {
    margin-bottom: 20px;
}

.community-intentions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.community-intention {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    transition: transform 0.2s;
}

.community-intention:hover {
    transform: translateX(4px);
}

.ci-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.ci-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--clr-text-title);
}

.ci-content p {
    font-size: 0.8rem;
    color: var(--clr-text-body);
    margin-top: 2px;
    line-height: 1.4;
}

.ci-time {
    font-size: 0.72rem;
    color: var(--clr-text-body);
    flex-shrink: 0;
}

.ci-heart-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.ci-heart-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: #ccc;
    padding: 4px;
    transition: transform 0.2s, color 0.2s;
    line-height: 1;
}

.ci-heart-btn:hover {
    transform: scale(1.15);
    color: #E8A0BF;
}

.ci-heart-btn.liked {
    color: #e74c3c;
    animation: heartBounce 0.4s ease;
}

.ci-heart-btn.liked i {
    font-weight: 700;
}

.ci-heart-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--clr-text-body);
    line-height: 1;
}

.ci-heart-btn.liked + .ci-heart-count {
    color: #e74c3c;
}

@keyframes heartBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mysteries Gallery */
.mysteries-section {
    margin-bottom: 8px;
}

.mysteries-title {
    font-size: 1.05rem;
    font-family: 'Crimson Text', serif;
    color: var(--clr-text-title);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mysteries-title i {
    color: var(--clr-primary);
    font-size: 1.1rem;
}

.mysteries-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 8px;
}

.mysteries-gallery::-webkit-scrollbar {
    height: 4px;
}

.mysteries-gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.mysteries-gallery::-webkit-scrollbar-thumb {
    background: var(--clr-primary-light);
    border-radius: 4px;
}

.mystery-card {
    width: calc(33.33% - 8px);
    min-width: 90px;
    max-width: 140px;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    flex-shrink: 0;
}

.mystery-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 28px rgba(46, 139, 192, 0.2);
}

.mystery-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.mystery-label {
    padding: 8px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-text-title);
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

/* ===== BUSCAR ROSARIO - PRO REDESIGN ===== */
.buscar-screen {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.buscar-topbar h2 {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

/* Overlay Controls */
.buscar-overlay-controls {
    padding: 8px 16px 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.buscar-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(200,220,240,0.5);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
}
.buscar-search-bar i { color: var(--clr-text-muted); font-size: 1.1rem; flex-shrink: 0; }
.buscar-search-bar input {
    flex: 1; border: none; outline: none; background: transparent;
    font-size: 0.88rem; color: var(--clr-text-title); font-family: inherit;
}
.buscar-search-bar input::placeholder { color: #adb5bd; }
.buscar-location-btn {
    width: 34px; height: 34px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
    color: white; font-size: 1rem; cursor: pointer; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
    transition: transform 0.2s;
}
.buscar-location-btn:hover { transform: scale(1.06); }

/* Filter Chips */
.buscar-filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.buscar-filter-chips::-webkit-scrollbar { display: none; }

.buscar-chip {
    display: flex; align-items: center; gap: 5px;
    padding: 7px 14px; border-radius: 20px;
    border: 1.5px solid rgba(46,139,192,0.2);
    background: rgba(255,255,255,0.7); backdrop-filter: blur(6px);
    font-size: 0.78rem; font-weight: 600; white-space: nowrap;
    color: var(--clr-text-body); cursor: pointer;
    transition: all 0.25s; font-family: inherit;
}
.buscar-chip i { font-size: 0.85rem; }
.buscar-chip:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.buscar-chip.active {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
    color: white; border-color: transparent;
    box-shadow: 0 3px 12px rgba(46,139,192,0.3);
}

/* Map Section */
.buscar-map-section {
    position: relative;
    height: 220px;
    min-height: 180px;
    flex-shrink: 0;
}
.buscar-map-section #buscar-map {
    width: 100%; height: 100%; z-index: 1;
}
.buscar-map-gradient-top {
    position: absolute; top: 0; left: 0; right: 0; height: 30px;
    background: linear-gradient(to bottom, rgba(234,244,252,0.8), transparent);
    z-index: 2; pointer-events: none;
}
.buscar-map-gradient-bottom {
    position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
    background: linear-gradient(to top, rgba(234,244,252,1), transparent);
    z-index: 2; pointer-events: none;
}

/* Stats Banner */
.buscar-stats-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px 20px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(200,220,240,0.3);
    border-bottom: 1px solid rgba(200,220,240,0.3);
}
.buscar-stat {
    display: flex; align-items: center; gap: 6px;
    flex: 1; justify-content: center;
}
.buscar-stat i { font-size: 1.1rem; }
.buscar-stat-num {
    font-weight: 800; font-size: 1rem;
    color: var(--clr-text-title);
}
.buscar-stat-label {
    font-size: 0.72rem; color: var(--clr-text-muted); font-weight: 500;
}
.buscar-stat-divider {
    width: 1px; height: 24px;
    background: rgba(200,220,240,0.5);
}

/* Cards Area */
.buscar-cards-area {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px 100px;
}

.buscar-cards-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.buscar-cards-header h3 {
    font-size: 0.95rem; font-weight: 700;
    color: var(--clr-text-title);
    display: flex; align-items: center; gap: 6px;
}
.buscar-cards-header h3 i { color: var(--clr-primary); }
.buscar-cards-count {
    font-size: 0.75rem; font-weight: 600;
    color: var(--clr-primary);
    background: rgba(46,139,192,0.08);
    padding: 4px 10px; border-radius: 12px;
}

/* Rosary Cards */
.rosary-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rosary-card {
    position: relative;
    padding: 16px 16px 16px 20px;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    overflow: hidden;
    border-radius: 16px !important;
}
.rosary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(46,139,192,0.15);
}

.rosary-card-accent {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.rosary-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.rosary-card-icon {
    width: 44px; height: 44px; border-radius: 14px;
    background: linear-gradient(135deg, #e8f4fd, #d0e8f7);
    display: flex; justify-content: center; align-items: center;
    color: var(--clr-primary); font-size: 1.3rem;
    flex-shrink: 0;
}

.rosary-card-info { flex: 1; min-width: 0; }
.rosary-card-info h3 {
    font-size: 0.95rem; font-weight: 700;
    color: var(--clr-text-title);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rosary-card-info p {
    font-size: 0.78rem; color: var(--clr-text-muted); margin-top: 3px;
    display: flex; align-items: center; gap: 4px;
}
.rosary-card-info p i { font-size: 0.85rem; color: var(--clr-primary); }

.rosary-card-participants {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; flex-shrink: 0;
}
.rosary-card-participants span {
    font-size: 1.1rem; font-weight: 800;
    color: var(--clr-primary); line-height: 1;
}
.rosary-card-participants i {
    font-size: 0.75rem; color: var(--clr-text-muted);
}

.rosary-card-details {
    display: flex; flex-wrap: wrap; gap: 6px 14px;
    margin-bottom: 12px; padding-left: 2px;
}

.rosary-card-detail {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.8rem; color: var(--clr-text-body); font-weight: 500;
}
.rosary-card-detail i { font-size: 0.9rem; }

.rosary-card-footer {
    display: flex; align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(200,220,240,0.3);
}

/* Avatars */
.rosary-card-avatars {
    display: flex; align-items: center;
}
.rc-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.65rem; font-weight: 700;
    border: 2px solid white;
    margin-right: -8px;
}
.rc-avatar-more {
    font-size: 0.7rem; font-weight: 700;
    color: var(--clr-text-muted);
    margin-left: 12px;
}

/* Join Button */
.btn-join-new {
    padding: 8px 18px;
    font-size: 0.8rem;
    border-radius: 12px;
    display: flex; align-items: center; gap: 5px;
    font-weight: 700;
}

/* Empty State */
.buscar-empty-state {
    text-align: center; padding: 40px 20px;
}
.buscar-empty-state i {
    font-size: 3rem; color: var(--clr-text-muted); opacity: 0.4;
    margin-bottom: 12px;
}
.buscar-empty-state h4 {
    font-size: 1rem; color: var(--clr-text-title); margin-bottom: 6px;
}
.buscar-empty-state p {
    font-size: 0.85rem; color: var(--clr-text-body); margin-bottom: 16px;
}

/* Extended FAB */
.fab-create-new {
    position: absolute;
    bottom: 24px;
    right: 16px;
    display: flex; align-items: center; gap: 6px;
    padding: 14px 22px;
    border-radius: 16px; border: none;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white; font-size: 0.9rem; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(46,139,192,0.35);
    z-index: 10;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: inherit;
}
.fab-create-new i { font-size: 1.2rem; }
.fab-create-new:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 32px rgba(46,139,192,0.45);
}

/* Map Popups - continued */

/* Map Marker */
.custom-marker-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-pin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(46, 139, 192, 0.35);
    border: 3px solid white;
}

.marker-pulse {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(61, 163, 212, 0.3);
    margin-top: -6px;
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Progress bar */
.progress-bar { height: 8px; background: rgba(255,255,255,0.3); border-radius: 4px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #3DA3D4, #2E8BC0); width: 20px; }

/* 2.5 REZO / Unirme Screen */
/* ===== REZAR PAGE - PRO REDESIGN ===== */
.unirme-bg { background: linear-gradient(to bottom, #CFEBF9, #D4EBF7, #E6F3FB); }
.unirme-scrollarea { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:16px; padding-top:16px; padding-bottom: 100px; }
.rezo-topbar h2 { display: flex; align-items: center; font-size: 1rem; }

/* Event Card */
.rz-event-card { padding: 18px 18px 14px 22px; position: relative; overflow: hidden; border-radius: 16px !important; }
.rz-event-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(to bottom, #e74c3c, #3DA3D4); border-radius: 5px 0 0 5px; }
.rz-event-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rz-event-icon {
    width: 46px; height: 46px; border-radius: 14px;
    background: linear-gradient(135deg, #e8f4fd, #d0e8f7);
    display: flex; justify-content: center; align-items: center;
    color: var(--clr-primary); font-size: 1.3rem; flex-shrink: 0;
}
.rz-event-info { flex: 1; min-width: 0; }
.rz-event-info h3 { font-size: 1.05rem; font-weight: 700; color: var(--clr-text-title); }
.rz-event-info p { font-size: 0.82rem; color: var(--clr-text-muted); margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.rz-event-info p i { font-size: 0.85rem; color: var(--clr-primary); }
.rz-live-badge {
    display: flex; align-items: center; gap: 5px;
    background: rgba(231,76,60,0.1); color: #e74c3c;
    padding: 5px 12px; border-radius: 12px;
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.3px;
    flex-shrink: 0;
}
.rz-intention {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 12px;
    background: rgba(230,126,34,0.06);
    border: 1px solid rgba(230,126,34,0.15);
    font-size: 0.88rem; color: var(--clr-text-title); font-weight: 500;
}
.rz-intention i { font-size: 1.1rem; flex-shrink: 0; }

/* Pulse Dot */
.pulse-dot { width:8px; height:8px; border-radius:50%; background:#e74c3c; animation:pulseDot 1.5s infinite; flex-shrink: 0; }
.pulse-dot.small { width:6px; height:6px; }
@keyframes pulseDot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }

/* Coordinator */
.rz-coordinator { padding: 14px 16px; border-radius: 16px !important; }
.rz-coord-row { display: flex; align-items: center; gap: 12px; }
.rz-coord-avatar {
    width: 46px; height: 46px; border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex; justify-content: center; align-items: center;
    font-weight: 700; font-size: 1.1rem; color: white;
    border: 2px solid white; box-shadow: 0 4px 14px rgba(99,102,241,0.3);
    flex-shrink: 0;
}
.rz-coord-info { flex: 1; }
.rz-coord-label {
    display: flex; align-items: center; gap: 4px;
    font-size: 0.7rem; color: #6366f1; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.rz-coord-label i { font-size: 0.75rem; }
.rz-coord-info h4 { font-size: 0.95rem; color: var(--clr-text-title); font-weight: 700; margin-top: 2px; }
.rz-coord-status {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.78rem; color: #27ae60; font-weight: 600;
    background: rgba(39,174,96,0.08); padding: 4px 10px;
    border-radius: 8px; flex-shrink: 0;
}

/* Online Counter */
.rz-counter-section { display: flex; justify-content: center; }
.rz-counter { display: flex; align-items: center; gap: 20px; padding: 18px 28px; border-radius: 16px !important; }
.rz-counter-ring {
    width: 70px; height: 70px; position: relative;
    display: flex; align-items: center; justify-content: center;
}
.rz-counter-ring-inner {
    position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid rgba(61,163,212,0.15);
    animation: rzRingPulse 2.5s ease-in-out infinite;
}
@keyframes rzRingPulse {
    0%, 100% { transform: scale(1); border-color: rgba(61,163,212,0.15); }
    50% { transform: scale(1.1); border-color: rgba(61,163,212,0.4); }
}
.rz-counter-number {
    font-size: 2.2rem; font-weight: 800; color: var(--clr-primary);
    font-family: 'Crimson Text', serif; z-index: 1;
}
.rz-counter-text { display: flex; flex-direction: column; gap: 4px; }
.rz-counter-label { font-size: 0.95rem; font-weight: 700; color: var(--clr-text-title); }
.rz-counter-sub {
    font-size: 0.78rem; color: var(--clr-text-body);
    display: flex; align-items: center; gap: 6px;
}

/* Sections */
.rz-section { }
.rz-section-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
}
.rz-section-icon {
    width: 32px; height: 32px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.95rem; flex-shrink: 0;
}
.rz-section-header h4 { font-size: 0.95rem; font-weight: 700; color: var(--clr-text-title); flex: 1; }
.rz-section-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 24px; height: 24px; border-radius: 12px;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white; font-size: 0.72rem; font-weight: 800;
    padding: 0 7px;
}

/* Confirmed Items */
.confirmed-list { display: flex; flex-direction: column; gap: 6px; }
.confirmed-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 14px;
    background: rgba(255,255,255,0.5); backdrop-filter: blur(6px);
    border: 1px solid rgba(200,220,240,0.3);
    animation: fadeInUp 0.3s ease-out both;
}
.confirmed-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: 700; font-size: 0.9rem; color: white;
    border: 2px solid white; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.confirmed-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.confirmed-name { font-size: 0.88rem; font-weight: 700; color: var(--clr-text-title); }
.confirmed-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.68rem; font-weight: 700; padding: 2px 8px;
    border-radius: 8px; width: fit-content;
    background: rgba(39,174,96,0.1); color: #27ae60;
}
.confirmed-badge.coord-badge { background: rgba(99,102,241,0.1); color: #6366f1; }
.confirmed-badge i { font-size: 0.72rem; }

/* Participants */
.participants-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin-bottom: 10px; }
.participant-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.participant-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: 700; font-size: 0.9rem; color: white;
    border: 2px solid white; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.participant-name { font-size: 0.68rem; color: var(--clr-text-body); text-align: center; }
.rz-overflow {
    text-align: center; padding: 8px; font-size: 0.82rem;
    color: var(--clr-text-body); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.rz-overflow i { color: var(--clr-primary); }

/* Intentions */
.rz-intentions-list { display: flex; flex-direction: column; gap: 8px; }
.rz-intention-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 14px;
    transition: transform 0.2s;
}
.rz-intention-item:hover { transform: translateX(4px); }
.rz-int-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: 700; color: white; font-size: 0.85rem;
    flex-shrink: 0; border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.rz-int-content { flex: 1; min-width: 0; }
.rz-int-name { font-size: 0.82rem; font-weight: 700; color: var(--clr-text-title); }
.rz-int-content p { font-size: 0.8rem; color: var(--clr-text-body); margin-top: 2px; }
.rz-int-time { font-size: 0.7rem; color: var(--clr-text-muted); flex-shrink: 0; font-weight: 500; }

/* Videocall Button */
.rz-actions { display: flex; flex-direction: column; gap: 10px; }
.rz-videocall-btn {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 14px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white; border: none; border-radius: 16px;
    font-size: 0.95rem; font-weight: 700;
    cursor: pointer; font-family: inherit;
    box-shadow: 0 6px 24px rgba(99,102,241,0.35);
    transition: transform 0.3s, box-shadow 0.3s;
}
.rz-videocall-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(99,102,241,0.45); }
.rz-vc-icon {
    width: 38px; height: 38px; border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.rz-videocall-btn > span { flex: 1; text-align: left; }
.rz-videocall-btn > i:last-child { opacity: 0.6; }
.rz-vc-lock {
    text-align: center; padding: 10px 14px;
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 12px; font-size: 0.8rem;
    color: var(--clr-text-muted);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.rz-vc-lock i { color: #6366f1; }

/* 3. EVENT */
.event-scrollarea { flex:1; overflow-y:auto; padding:20px; display:flex; flex-direction:column; gap:16px; align-items:center; }
.intention-pill { display:inline-flex; align-items:center; gap:8px; padding:8px 16px; font-size:0.85rem; color:var(--clr-primary-dark); font-weight:500; border-radius:20px; }
.action-buttons-stack { display:flex; flex-direction:column; gap:10px; width:100%; }
.details-list { display:flex; flex-direction:column; gap:8px; width:100%; }
.detail-item { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,0.4); }
.detail-icon { width:36px; height:36px; border-radius:50%; background:rgba(61,163,212,0.12); display:flex; justify-content:center; align-items:center; color:var(--clr-primary); font-size:1.1rem; }
.detail-text { font-size:0.9rem; color:var(--clr-text-title); font-weight:500; }
.btn-nav { width:100%; display:flex; align-items:center; justify-content:center; gap:8px; }

/* ===== ROSARIO CONTINUO - PRO REDESIGN ===== */
.continuo-scrollarea { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:16px; }

/* Hero */
.rc-hero {
    text-align: center;
    padding: 10px 16px 6px;
}
.rc-hero-circle {
    width: 80px; height: 80px;
    margin: 0 auto 14px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.rc-hero-ring {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(230,126,34,0.2);
    animation: rcPulseRing 2.5s ease-in-out infinite;
}
@keyframes rcPulseRing {
    0%, 100% { transform: scale(1); opacity: 0.6; border-color: rgba(230,126,34,0.2); }
    50% { transform: scale(1.15); opacity: 1; border-color: rgba(230,126,34,0.5); }
}
.rc-hero-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: white;
    box-shadow: 0 6px 24px rgba(230,126,34,0.35);
    z-index: 1;
}
.rc-hero h2 {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem; color: var(--clr-text-title);
    margin-bottom: 4px;
}
.rc-hero p {
    font-size: 0.88rem; color: var(--clr-text-body);
    max-width: 340px; margin: 0 auto; line-height: 1.4;
}

/* Date Navigator */
.rc-date-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 8px; text-align: center;
}
.rc-date-arrow {
    width: 38px; height: 38px; border-radius: 12px;
    border: 1.5px solid rgba(46,139,192,0.15);
    background: rgba(255,255,255,0.5); color: var(--clr-primary);
    font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.rc-date-arrow:hover { background: var(--clr-primary); color: white; border-color: var(--clr-primary); }
.rc-date-center { flex: 1; }
.rc-date-badge {
    display: inline-block;
    padding: 2px 10px; border-radius: 8px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white; font-size: 0.65rem; font-weight: 800;
    letter-spacing: 0.5px; margin-bottom: 4px;
}
.rc-date-center h3 { font-size: 1.15rem; color: var(--clr-text-title); font-family: 'Crimson Text', serif; }
.rc-date-center p { font-size: 0.82rem; color: var(--clr-text-body); margin-top: 2px; }

/* Stats Row */
.rc-stats-row {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;
}
.rc-stat-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 12px 8px; gap: 4px; text-align: center;
}
.rc-stat-card i { font-size: 1.3rem; }
.rc-stat-value { font-size: 1.3rem; font-weight: 800; color: var(--clr-text-title); line-height: 1; }
.rc-stat-label { font-size: 0.7rem; font-weight: 500; color: var(--clr-text-muted); }

/* Progress Bar */
.rc-progress-wrap {
    background: rgba(255,255,255,0.65); backdrop-filter: blur(8px);
    border-radius: 14px; padding: 12px 16px;
    border: 1px solid rgba(200,220,240,0.3);
}
.rc-progress-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.rc-progress-header span { font-size: 0.82rem; font-weight: 600; color: var(--clr-text-title); display: flex; align-items: center; gap: 6px; }
.rc-progress-pct { color: #27ae60 !important; font-weight: 800; }
.rc-progress-bar {
    height: 8px; border-radius: 4px;
    background: rgba(0,0,0,0.06);
    overflow: hidden;
}
.rc-progress-fill {
    height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, #27ae60, #2ecc71, #1abc9c);
    transition: width 0.6s ease;
}

/* Hint */
.rc-hint {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 14px;
    background: rgba(46,139,192,0.06);
    border: 1px dashed rgba(46,139,192,0.25);
}
.rc-hint-icon {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.1rem;
}
.rc-hint-text strong { font-size: 0.85rem; color: var(--clr-text-title); display: block; margin-bottom: 2px; }
.rc-hint-text p { font-size: 0.78rem; color: var(--clr-text-body); margin: 0; line-height: 1.3; }

/* Period Labels */
.rc-period { margin-bottom: -8px; }
.rc-period-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.8rem; font-weight: 700; color: var(--clr-text-title);
    padding: 4px 0;
}
.rc-period-label i { font-size: 1rem; }
.rc-period-label span { font-size: 0.72rem; font-weight: 500; color: var(--clr-text-muted); margin-left: auto; }

/* Slots Grid */
.continuo-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.slot-card {
    border-radius: 14px; padding: 12px 6px; text-align: center;
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
    border: 1.5px solid rgba(200,220,240,0.4); position: relative;
    overflow: hidden; background: rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);
}
.slot-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.slot-hour { font-size: 0.85rem; font-weight: 800; color: var(--clr-text-title); margin-bottom: 3px; }
.slot-status { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.slot-count { font-size: 1.3rem; font-weight: 800; color: var(--clr-text-title); line-height: 1; margin: 3px 0; }

.slot-card.free { border-color: rgba(39,174,96,0.3); }
.slot-card.free .slot-status { color: #27ae60; }
.slot-card.free .slot-count { color: #bdc3c7; }
.slot-card.free::before { content:''; position:absolute; top:4px; right:4px; width:7px; height:7px; border-radius:50%; background:#27ae60; animation: dotPulse 2s infinite; }
@keyframes dotPulse { 0%,100%{opacity:0.4} 50%{opacity:1} }

.slot-card.taken { border-color: rgba(46,139,192,0.3); background: rgba(46,139,192,0.06); }
.slot-card.taken .slot-status { color: var(--clr-primary); }
.slot-card.taken .slot-count { color: var(--clr-primary); }

.slot-card.mine {
    background: linear-gradient(135deg, rgba(46,139,192,0.1), rgba(61,163,212,0.15));
    border: 2px solid var(--clr-primary);
}
.slot-card.mine .slot-status { color: var(--clr-primary); font-weight: 800; }
.slot-card.mine .slot-count { color: var(--clr-primary-dark); }
.slot-card.mine::after { content:'✓'; position:absolute; top:3px; right:6px; font-size:0.75rem; color:var(--clr-primary); font-weight:800; }

/* Signup Modal */
.slot-signup-modal { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.4); z-index:500; display:flex; justify-content:center; align-items:center; padding:20px; }
.slot-signup-card { background:white; border-radius:20px; padding:28px 24px; max-width:340px; width:100%; text-align:center; box-shadow:0 20px 60px rgba(0,0,0,0.2); animation:popIn 0.25s ease-out; }
@keyframes popIn { from{transform:scale(0.9);opacity:0} to{transform:scale(1);opacity:1} }
.slot-signup-card h3 { font-size:1.3rem; color:var(--clr-text-title); margin-bottom:4px; font-family:'Crimson Text',serif; }
.slot-signup-card .slot-signup-time { font-size:1.1rem; color:var(--clr-primary); font-weight:700; margin-bottom:4px; }
.slot-signup-card .slot-signup-date { font-size:0.9rem; color:var(--clr-text-body); margin-bottom:20px; }
.slot-signup-actions { display:flex; gap:10px; }
.slot-signup-actions .btn { flex:1; }

/* Mis Turnos */
.continuo-my-slots { margin-top: 4px; }
.rc-my-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px;
}
.rc-my-header i { font-size: 1.2rem; color: var(--clr-primary); }
.rc-my-header h4 { font-size: 1rem; font-weight: 700; color: var(--clr-text-title); }

.my-slot-item { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-radius:14px; margin-bottom:8px; background:rgba(255,255,255,0.7); backdrop-filter:blur(8px); border:1px solid rgba(200,220,240,0.3); transition: transform 0.2s; }
.my-slot-item:hover { transform: translateX(4px); }
.my-slot-info { display:flex; align-items:center; gap:10px; }
.my-slot-icon { width:38px; height:38px; border-radius:12px; background:linear-gradient(135deg,#3DA3D4,#2E8BC0); display:flex; justify-content:center; align-items:center; color:white; font-size:1rem; }
.my-slot-text h4 { font-size:0.9rem; color:var(--clr-text-title); font-weight: 700; }
.my-slot-text p { font-size:0.78rem; color:var(--clr-text-body); }
.my-slot-cancel { background:rgba(231,76,60,0.08); border:none; color:#e74c3c; font-size:0.8rem; padding:7px 14px; border-radius:10px; cursor:pointer; font-weight:600; transition: background 0.2s; }
.my-slot-cancel:hover { background:rgba(231,76,60,0.15); }

/* Ahora Rezando Button */
.rezando-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 0 10px;
}

.rezando-btn {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #ddd, #bbb);
    color: #888;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
}

.rezando-btn i {
    font-size: 2.2rem;
    transition: transform 0.3s;
}

.rezando-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.rezando-btn.active {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 0 30px rgba(231, 76, 60, 0.5), 0 0 60px rgba(231, 76, 60, 0.2);
    animation: rezandoPulse 2s ease-in-out infinite;
}

.rezando-btn.active i {
    transform: scale(1.1);
}

@keyframes rezandoPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(231, 76, 60, 0.5), 0 0 60px rgba(231, 76, 60, 0.2); }
    50% { box-shadow: 0 0 40px rgba(231, 76, 60, 0.7), 0 0 80px rgba(231, 76, 60, 0.3); }
}

.rezando-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--clr-text-title);
    background: rgba(231, 76, 60, 0.08);
    padding: 8px 18px;
    border-radius: 20px;
    animation: fadeInUp 0.4s ease-out;
}

.rezando-counter .pulse-dot {
    background: #e74c3c;
}

.rezando-map-wrapper {
    width: 100%;
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(46, 139, 192, 0.12);
    animation: fadeInUp 0.4s ease-out;
}

.rezando-marker {
    background: none !important;
    border: none !important;
}

.map-user-popup { padding: 4px 0; }
.map-user-popup-header { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.map-user-popup-avatar { width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,#3DA3D4,#2E8BC0); color:white; font-weight:700; display:flex; justify-content:center; align-items:center; font-size:0.95rem; flex-shrink:0; }
.map-user-popup-header b { font-size:0.9rem; color:#1a365d; }
.map-user-popup-header small { font-size:0.75rem; color:#5a7896; }
.map-user-msg-btn { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; padding:8px 0; border:none; border-radius:10px; background:linear-gradient(135deg,#3DA3D4,#2E8BC0); color:white; font-size:0.82rem; font-weight:600; cursor:pointer; transition:transform 0.2s; font-family:'Inter',sans-serif; }
.map-user-msg-btn:hover { transform:scale(1.03); }
.map-user-leaflet-popup .leaflet-popup-content-wrapper { border-radius:14px; padding:6px; box-shadow:0 8px 24px rgba(0,0,0,0.15); }
.map-user-leaflet-popup .leaflet-popup-tip { background:white; }

.rezando-marker-dot {
    width: 14px;
    height: 14px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.5);
    animation: markerPulse 2s infinite;
}

.rezando-marker-dot-me {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 12px rgba(61, 163, 212, 0.6), 0 0 24px rgba(61, 163, 212, 0.3);
    animation: myMarkerPulse 1.5s infinite;
}

@keyframes myMarkerPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(61,163,212,0.6), 0 0 24px rgba(61,163,212,0.3); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(61,163,212,0.8), 0 0 36px rgba(61,163,212,0.4); transform: scale(1.15); }
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(231, 76, 60, 0.6); transform: scale(1); }
    50% { box-shadow: 0 0 16px rgba(231, 76, 60, 0.9); transform: scale(1.2); }
}

/* Profile Notifications */
.profile-notifications-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px !important;
    transition: transform 0.2s, box-shadow 0.2s;
    background: linear-gradient(135deg, #f87171, #f56565) !important;
    border: none !important;
}

.notif-card:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(46, 139, 192, 0.12);
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.2) !important;
}

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

.notif-content h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.notif-content p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.notif-time {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.notif-reply-btn {
    border: none;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.notif-reply-btn:hover { background: rgba(255, 255, 255, 0.4); }

.notif-chat-new {
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0) !important;
    animation: fadeInUp 0.4s ease;
}

/* Profile Slots */
.profile-slots-container { display:flex; flex-direction:column; gap:10px; flex-shrink:0; position:relative; z-index:auto; }
.profile-slot-card { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; transition:transform 0.2s, box-shadow 0.2s; flex-shrink:0; }
.profile-slot-card:hover { transform:translateX(4px); box-shadow:0 6px 20px rgba(46,139,192,0.15); }
.profile-slot-left { display:flex; align-items:center; gap:10px; min-width:0; }
.profile-slot-icon { width:38px; height:38px; border-radius:50%; background:linear-gradient(135deg,#3DA3D4,#2E8BC0); display:flex; justify-content:center; align-items:center; color:white; font-size:1.1rem; box-shadow:0 4px 12px rgba(46,139,192,0.3); flex-shrink:0; }
.profile-slot-info { min-width:0; }
.profile-slot-info h4 { font-size:0.9rem; color:var(--clr-text-title); font-weight:600; }
.profile-slot-info p { font-size:0.78rem; color:var(--clr-text-body); margin-top:1px; display:flex; align-items:center; gap:4px; }
.profile-slot-info p i { font-size:0.8rem; color:var(--clr-primary); }
.profile-slot-people { font-size:0.7rem; color:var(--clr-primary); font-weight:500; display:flex; align-items:center; gap:4px; margin-top:2px; }
.profile-slot-people i { font-size:0.75rem; }
.profile-slot-cancel { width:30px; height:30px; border-radius:50%; border:none; background:rgba(231,76,60,0.08); color:#e74c3c; font-size:1rem; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background 0.2s, transform 0.2s; flex-shrink:0; }
.profile-slot-cancel:hover { background:rgba(231,76,60,0.15); transform:scale(1.1); }
.profile-no-slots { display:flex; flex-direction:column; align-items:center; gap:10px; padding:20px 16px; text-align:center; flex-shrink:0; }
.profile-no-slots i { font-size:2rem; color:var(--clr-primary-light); }
.profile-no-slots p { font-size:0.85rem; color:var(--clr-text-body); }

/* Profile Rosary Cards */
.profile-rosary-card { padding:16px; transition:transform 0.2s, box-shadow 0.2s; }
.profile-rosary-card:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(46,139,192,0.15); }
.profile-rosary-header { display:flex; align-items:flex-start; gap:12px; margin-bottom:14px; }
.profile-rosary-icon { width:42px; height:42px; border-radius:50%; display:flex; justify-content:center; align-items:center; color:white; font-size:1.1rem; flex-shrink:0; box-shadow:0 4px 12px rgba(0,0,0,0.15); }
.profile-rosary-icon.coord-icon { background:linear-gradient(135deg,#6366f1,#8b5cf6); }
.profile-rosary-icon.joined-icon { background:linear-gradient(135deg,#56d992,#27ae60); }
.profile-rosary-info { flex:1; min-width:0; }
.profile-rosary-info h4 { font-size:0.95rem; font-weight:600; color:var(--clr-text-title); margin-bottom:2px; }
.profile-rosary-info p { font-size:0.78rem; color:var(--clr-text-body); display:flex; align-items:center; gap:4px; margin-bottom:3px; }
.profile-rosary-info p i { font-size:0.82rem; color:var(--clr-primary); }
.profile-rosary-intention { font-size:0.76rem; color:var(--clr-primary-dark); display:flex; align-items:center; gap:4px; font-weight:500; }
.profile-rosary-intention i { font-size:0.82rem; color:var(--clr-primary); }
.profile-rosary-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:12px; border-top:1px solid rgba(255,255,255,0.4); }
.profile-rosary-stats { display:flex; flex-direction:column; gap:4px; }
.profile-rosary-badge { display:inline-flex; align-items:center; gap:4px; font-size:0.7rem; font-weight:600; padding:3px 8px; border-radius:8px; width:fit-content; }
.profile-rosary-badge.coord-badge { background:rgba(99,102,241,0.1); color:#6366f1; }
.profile-rosary-badge.joined-badge { background:rgba(45,143,78,0.1); color:#2d8f4e; }
.profile-rosary-badge i { font-size:0.72rem; }
.profile-rosary-confirmed { font-size:0.72rem; color:var(--clr-text-muted); display:flex; align-items:center; gap:4px; }
.profile-rosary-confirmed i { font-size:0.78rem; color:var(--clr-primary); }
.profile-rosary-btn { padding:8px 18px !important; font-size:0.82rem !important; border-radius:12px !important; white-space:nowrap; display:flex; align-items:center; gap:6px; }
.profile-rosary-actions { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.profile-rosary-cancel-btn { 
    padding:8px 14px !important; font-size:0.78rem !important; border-radius:12px !important; 
    white-space:nowrap; display:flex; align-items:center; gap:4px; cursor:pointer;
    background:rgba(231,76,60,0.08) !important; color:#e74c3c !important; border:1px solid rgba(231,76,60,0.25) !important;
    transition:all 0.2s ease;
}
.profile-rosary-cancel-btn:hover { background:rgba(231,76,60,0.18) !important; border-color:#e74c3c !important; }
.profile-rosary-leave-btn {
    padding:8px 14px !important; font-size:0.78rem !important; border-radius:12px !important;
    white-space:nowrap; display:flex; align-items:center; gap:4px; cursor:pointer;
    background:rgba(240,165,0,0.08) !important; color:#e09600 !important; border:1px solid rgba(240,165,0,0.25) !important;
    transition:all 0.2s ease;
}
.profile-rosary-leave-btn:hover { background:rgba(240,165,0,0.18) !important; border-color:#e09600 !important; }

/* Map Popup Styles */
.rosary-map-popup .leaflet-popup-content-wrapper {
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(46, 139, 192, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

.rosary-map-popup .leaflet-popup-content {
    margin: 0;
    width: 240px !important;
}

.rosary-map-popup .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 12px rgba(46, 139, 192, 0.1);
}

.map-popup-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.map-popup-name {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-text-title);
    margin-bottom: 4px;
}

.map-popup-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--clr-text-body);
    line-height: 1.4;
}

.map-popup-detail i {
    font-size: 0.85rem;
    color: var(--clr-primary);
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.map-popup-btn {
    margin-top: 8px;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
}

.popup-btn-join {
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 139, 192, 0.3);
}

.popup-btn-join:hover {
    box-shadow: 0 6px 18px rgba(46, 139, 192, 0.4);
    transform: translateY(-1px);
}

.popup-btn-leave {
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.popup-btn-leave:hover {
    background: rgba(231, 76, 60, 0.15);
}

/* 5. Profile Screen */
#screen-profile {
    overflow: hidden;
}

.profile-scrollarea {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    padding-bottom: 100px;
    min-height: 0;
    height: 0;
}

.profile-scrollarea > * {
    margin-bottom: 16px;
}

.profile-scrollarea > *:last-child {
    margin-bottom: 0;
}

.card {
    border-radius: var(--border-radius-lg);
    padding: 16px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar-wrapper {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.profile-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A8D8EA, #3DA3D4);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-avatar-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.profile-avatar-wrapper:hover .profile-avatar-overlay {
    transform: scale(1.15);
}
.profile-info h3 {
    font-size: 1.2rem;
    font-family: 'Inter';
    font-weight: 600;
}

.profile-info p {
    font-size: 0.9rem;
    color: #6b8ca8;
}

.section-heading {
    font-size: 1rem;
    color: var(--clr-primary-dark);
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 4px;
    padding-left: 8px;
}

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

.card-title-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--clr-primary-dark);
}

.heart-icon { color: #8FACC5; }

.devotion-img {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}

.list-card {
    display: flex;
    flex-direction: column;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    font-weight: 500;
    color: var(--clr-primary-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    gap: 12px;
}

.icon-blue { color: var(--clr-primary); }
.end-icon { margin-left: auto; color: var(--clr-primary-light); }

.rosary-history-item {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    gap: 12px;
}

.history-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.history-info h4 {
    font-size: 0.9rem;
    color: var(--clr-text-title);
}

.history-info p {
    font-size: 0.8rem;
    color: var(--clr-text-body);
}

.history-stats {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.history-stats .date {
    font-size: 0.78rem;
    color: var(--clr-text-body);
}

/* Bottom Navigation */
#main-nav {
    display: flex;
    justify-content: flex-start;
    padding: 6px 8px 10px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(200, 230, 255, 0.5);
    box-shadow: 0 -2px 12px rgba(46, 139, 192, 0.08);
    transition: transform 0.3s, opacity 0.3s;
    flex-shrink: 0;
    z-index: 10;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#main-nav::-webkit-scrollbar { display: none; }

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--clr-text-body);
    font-size: 0.62rem;
    font-weight: 500;
    min-width: 56px;
    padding: 4px 6px;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-item i { font-size: 1.2rem; }
.nav-item span { line-height: 1; }
.nav-item.active { color: var(--clr-primary); background: rgba(46, 139, 192, 0.08); font-weight: 600; }
.nav-item:not(.active):hover { color: var(--clr-primary-dark); background: rgba(46, 139, 192, 0.05); }
.nav-item.nav-profile { color: #e67e22; }
.nav-item.nav-profile.active { color: #d35400; background: rgba(230, 126, 34, 0.1); }

/* Nav item needs relative for badge positioning */
.nav-item, .nav-chat-link { position: relative; }

/* Unread Message Badge */
.nav-msg-badge {
    position: absolute;
    top: 0px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(231,76,60,0.5), 0 0 0 2px white;
    z-index: 10;
    animation: badgePulse 2s ease-in-out infinite;
    line-height: 1;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Badge in sidebar */
.nav-chat-link { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.nav-chat-link .nav-msg-badge {
    position: relative;
    top: auto;
    right: auto;
    margin-left: 6px;
    box-shadow: 0 2px 8px rgba(231,76,60,0.5);
}

[data-theme="dark"] .nav-msg-badge {
    box-shadow: 0 2px 8px rgba(231,76,60,0.5), 0 0 0 2px rgba(15,20,35,0.9);
}

@media (min-width: 1024px) {
    #main-nav { display: none; }
}

/* Auth Screens */
.auth-scrollarea {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    border-radius: var(--border-radius-lg);
    padding: 28px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.auth-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.auth-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A8D8EA, #3DA3D4);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
}

.auth-header h3 {
    font-size: 1.4rem;
    color: var(--clr-text-title);
    font-family: 'Crimson Text', serif;
}

.auth-header p {
    font-size: 0.85rem;
    color: var(--clr-text-body);
}

.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group { display: flex; flex-direction: column; gap: 4px; }

.form-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--clr-text-title);
    padding-left: 4px;
}

.form-group input, .form-group select {
    padding: 12px 14px;
    border: 1px solid rgba(46, 139, 192, 0.2);
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: 'Inter';
    background: rgba(255, 255, 255, 0.6);
    color: var(--clr-text-title);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(61, 163, 212, 0.15);
}

.auth-form .btn { width: 100%; }

.auth-footer {
    font-size: 0.85rem;
    color: var(--clr-text-body);
}

.auth-footer a {
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-message {
    font-size: 0.82rem;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    display: none;
}

.auth-message.error {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.auth-message.success {
    display: block;
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

/* ========================================= */
/* AUTH FORM FIELDS                            */
/* ========================================= */

/* Auth Field (form group) */
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.auth-field label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--clr-text-title);
    padding-left: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-field label i {
    font-size: 0.95rem;
    color: var(--clr-primary);
}

.label-hint {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--clr-text-body);
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 12px 14px;
    padding-right: 40px;
    border: 1.5px solid rgba(46, 139, 192, 0.2);
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.6);
    color: var(--clr-text-title);
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    outline: none;
}

.input-wrapper input::placeholder { color: #a0bdd0; }

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(61, 163, 212, 0.15);
    background: rgba(255, 255, 255, 0.85);
}

.auth-select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid rgba(46, 139, 192, 0.2);
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.6);
    color: var(--clr-text-title);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%235A7D9A'%3E%3Cpath d='M12 16l-6-6h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-select:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(61, 163, 212, 0.15);
}

/* Field Check (success indicator) */
.field-check {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #27ae60;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.auth-field.has-success .field-check {
    opacity: 1;
}

/* Field Error */
.field-error {
    font-size: 0.75rem;
    color: #e74c3c;
    min-height: 0;
    padding-left: 4px;
    transition: all 0.3s;
}

.auth-field.has-error .input-wrapper input,
.auth-field.has-error .input-wrapper select {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.auth-field.has-success .input-wrapper input,
.auth-field.has-success .input-wrapper select {
    border-color: #27ae60;
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--clr-text-body);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.toggle-password:hover { color: var(--clr-primary); }

/* Password Strength Meter */
.password-strength-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.password-strength-meter {
    display: flex;
    gap: 4px;
    flex: 1;
}

.password-strength-meter .strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.08);
    transition: background 0.4s;
}

.password-strength-meter.strength-weak .strength-bar:nth-child(1) { background: #e74c3c; }

.password-strength-meter.strength-medium .strength-bar:nth-child(1),
.password-strength-meter.strength-medium .strength-bar:nth-child(2) { background: #f39c12; }

.password-strength-meter.strength-strong .strength-bar:nth-child(1),
.password-strength-meter.strength-strong .strength-bar:nth-child(2),
.password-strength-meter.strength-strong .strength-bar:nth-child(3) { background: #27ae60; }

.password-strength-meter.strength-very-strong .strength-bar { background: #00b894; }

.password-strength-label {
    font-size: 0.72rem;
    font-weight: 600;
    min-width: 65px;
    text-align: right;
}

.password-strength-label.strength-weak { color: #e74c3c; }
.password-strength-label.strength-medium { color: #f39c12; }
.password-strength-label.strength-strong { color: #27ae60; }
.password-strength-label.strength-very-strong { color: #00b894; }

/* Password Requirements Checklist */
.password-checklist {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
    border: 1px solid rgba(200,230,255,0.4);
}
.password-checklist.visible { display: flex; }

.pw-check-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    transition: color 0.3s;
}
.pw-check-item .check-on { display: none; color: #27ae60; }
.pw-check-item .check-off { display: inline; color: #ccc; }
.pw-check-item.passed { color: #27ae60; }
.pw-check-item.passed .check-on { display: inline; }
.pw-check-item.passed .check-off { display: none; }

/* Terms of Service */
.auth-tos {
    margin: 4px 0 8px;
}
.tos-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--clr-text-body);
    line-height: 1.4;
}
.tos-check input { display: none; }
.tos-checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 1px;
}
.tos-checkmark i { font-size: 0.7rem; color: white; opacity: 0; transition: opacity 0.2s; }
.tos-check input:checked ~ .tos-checkmark {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
}
.tos-check input:checked ~ .tos-checkmark i { opacity: 1; }
.tos-text a { color: var(--clr-primary); text-decoration: underline; }
.auth-tos.has-error .tos-checkmark { border-color: #e74c3c; }

/* Security Badge */
.auth-security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--clr-text-muted);
    margin-top: 12px;
    opacity: 0.7;
}
.auth-security-badge i { font-size: 0.9rem; color: #27ae60; }

/* Lockout State */
.btn-auth-submit.locked-out {
    background: #95a5a6 !important;
    cursor: not-allowed;
}

/* Auth Submit Button */
.btn-auth-submit {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    width: 100%;
    margin-top: 4px;
}

.btn-auth-submit .btn-text {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s, transform 0.3s;
}

.btn-auth-submit .btn-loader {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s, transform 0.3s;
}

.btn-auth-submit .btn-loader i {
    font-size: 1.3rem;
    animation: spin 0.8s linear infinite;
}

.btn-auth-submit.loading .btn-text {
    opacity: 0;
    transform: scale(0.8);
}

.btn-auth-submit.loading .btn-loader {
    opacity: 1;
    transform: scale(1);
}

/* Auth Switch Link */
.auth-switch {
    font-size: 0.85rem;
    color: var(--clr-text-body);
    text-align: center;
    margin-top: 4px;
}

.auth-switch a {
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover { text-decoration: underline; }

/* Glass Button Variant */
.glass-btn {
    background: rgba(255, 255, 255, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: var(--clr-text-title);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Forgot Password Link */
.forgot-password-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 500;
    align-self: flex-end;
    transition: color 0.3s;
}

.forgot-password-link:hover { color: var(--clr-primary-dark); }

/* Auth Icon Circle Variants */
.forgot-icon { background: linear-gradient(135deg, #F4D35E, #f0a500); }
.create-icon { background: linear-gradient(135deg, #56d992, #27ae60); }

/* Recovery Code Display */
.recovery-code-display {
    background: rgba(46, 204, 113, 0.08);
    border: 2px solid rgba(46, 204, 113, 0.25);
    border-radius: 16px;
    padding: 18px 20px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recovery-label {
    font-size: 0.82rem;
    color: var(--clr-text-body);
    font-weight: 500;
}

.recovery-code {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: #27ae60;
    font-family: 'Inter', monospace;
    cursor: pointer;
}

.recovery-hint {
    font-size: 0.75rem;
    color: var(--clr-text-body);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.recovery-hint i { font-size: 0.85rem; }

/* Form Error/Success Banners */
.form-error-banner,
.form-success-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s, transform 0.3s;
    max-height: 0;
    overflow: hidden;
}

.form-error-banner.visible,
.form-success-banner.visible {
    opacity: 1;
    transform: translateY(0);
    max-height: 60px;
    margin-bottom: 4px;
}

.form-error-banner {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.form-success-banner {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

/* Shake Animation */
@keyframes shakeForm {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-6px); }
    30%, 60%, 90% { transform: translateX(6px); }
}

.auth-form.shake {
    animation: shakeForm 0.4s ease-in-out;
}

/* ========================================= */
/* PICKER MAP & CREATE ROSARY FORM           */
/* ========================================= */

/* Create Rosary */
.picker-map-container { width:100%; height:200px; border-radius:var(--border-radius-lg); overflow:hidden; border:2px solid rgba(255,255,255,0.6); position:relative; }

#picker-map { width:100%; height:100%; z-index:1; }

.picker-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(230, 243, 251, 0.6);
    z-index: 2;
    color: var(--clr-primary);
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
    transition: opacity 0.3s;
}

.picker-map-overlay i { font-size: 2rem; }

.picker-map-overlay.hidden { opacity: 0; }

.picker-coords {
    font-size: 0.78rem;
    color: var(--clr-text-body);
    padding-left: 4px;
    margin-top: 2px;
}

/* Detail Map */
.detail-map { width:100%; height:100%; }

/* Detail Success Badge */
.detail-success-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #27ae60;
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 12px;
    margin-bottom: 8px;
}

.detail-success-badge i { font-size: 1.2rem; }

/* Create Rosary Success Banner */
.create-success-banner {
    text-align: center;
    padding: 10px 0;
    animation: popIn 0.4s ease-out;
}

.create-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.3);
}

.create-success-icon i {
    font-size: 2.2rem;
    color: white;
}

.create-success-banner h3 {
    font-size: 1.3rem;
    color: var(--clr-text-title);
    margin-bottom: 20px;
    font-family: 'Crimson Text', serif;
}

.create-success-details {
    text-align: left;
    background: rgba(46, 204, 113, 0.06);
    border: 1px solid rgba(46, 204, 113, 0.15);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
}

.success-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--clr-text-body);
    border-bottom: 1px solid rgba(46, 204, 113, 0.08);
}

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

.success-detail-row i {
    font-size: 1.1rem;
    color: #27ae60;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.create-success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Detail Info Header */
.detail-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A8D8EA, #3DA3D4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.detail-info-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Desktop Park Image (Event Screen) */
.desktop-park-image { margin-top: 8px; }
.park-img-wrapper { border-radius: 12px; overflow: hidden; }
.park-img-wrapper img { width: 100%; height: 200px; object-fit: cover; display: block; }

/* Feature Card Center BG */
.feature-card-center-bg { display: none; }

/* Rosary Detail */
.rosary-detail-layout { display:flex; flex-direction:column; flex:1; overflow:hidden; }
.detail-map-side { flex:1; min-height:200px; position:relative; }
.detail-map-side #detail-leaflet-map { width:100%; height:100%; }
.detail-info-side { padding:20px; display:flex; flex-direction:column; justify-content:flex-start; overflow-y:auto; }
.detail-info-card { background:var(--glass-bg); backdrop-filter:blur(14px); border:1px solid var(--glass-border); border-radius:var(--border-radius-lg); padding:20px; display:flex; flex-direction:column; gap:12px; }
.detail-info-header h3 { font-size:1.2rem; color:var(--clr-text-title); font-family:'Crimson Text',serif; }
.detail-info-header p { font-size:0.85rem; color:var(--clr-text-body); }
.detail-info-row { display:flex; align-items:center; gap:10px; font-size:0.9rem; color:var(--clr-text-body); padding:6px 0; }
.detail-info-row i { color:var(--clr-primary); font-size:1.1rem; }
.detail-actions { display:flex; flex-direction:column; gap:10px; margin-top:8px; }

/* Loading */
.loading-spinner { display:inline-block; width:18px; height:18px; border:2px solid rgba(255,255,255,0.3); border-top-color:white; border-radius:50%; animation:spin 0.6s linear infinite; }
@keyframes spin { to{transform:rotate(360deg)} }

/* Mobile responsive breakpoints */
@media (max-width: 359px) {
    .logo-title { font-size: 2.4rem; }
    .mary-avatar-container { width: 120px; height: 120px; }
    .mary-avatar { width: 90px; height: 90px; }
    .auth-card { padding: 20px 14px 18px; }
    .continuo-grid { grid-template-columns: repeat(3,1fr); }
}

@media (min-width: 360px) and (max-width: 414px) {
    .auth-card { padding: 24px 18px 20px; }
}

/* ========================================= */
/* DESKTOP RESPONSIVE LAYOUT (Min 1024px)    */
/* ========================================= */

.desktop-header,
.splash-extended-content,
.desktop-park-image,
.desktop-recent-rosaries {
    display: none;
}

@media (min-width: 1024px) {
    #app-container {
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border: none;
        border-radius: 0;
        margin: 0;
        background: linear-gradient(to bottom, #cfebf9, #e4f1f9);
        background-attachment: fixed;
        box-shadow: none;
    }

    body { margin: 0; padding: 0; overflow-y: hidden; }

    /* DESKTOP HEADER */
    .desktop-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 80px;
        padding: 0 40px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        background: url('assets/sky_bg.png') center / cover no-repeat;
        border-bottom: 1px solid rgba(200, 230, 255, 0.4);
        box-shadow: 0 4px 20px rgba(46, 139, 192, 0.1);
    }
    .header-logo { display:flex; align-items:center; gap:12px; font-family:'Crimson Text',serif; font-size:1.8rem; color:var(--clr-text-title); font-weight:600; }
    .header-avatar { width:40px; height:40px; border-radius:50%; border:2px solid white; }
    .header-nav { display:flex; gap:32px; }
    .header-nav a { text-decoration:none; color:var(--clr-text-title); font-weight:500; font-size:1rem; padding-bottom:4px; }
    .header-nav a.active { border-bottom:2px solid var(--clr-primary); color:var(--clr-primary); }
    .header-user { display:flex; align-items:center; gap:16px; }
    .user-dropdown { display:flex; align-items:center; gap:8px; padding:6px 12px 6px 8px; border-radius:20px; font-size:0.9rem; font-weight:500; color:var(--clr-text-title); cursor:pointer; }
    .header-avatar-mini { width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,#A8D8EA,#3DA3D4); color:white; font-size:0.75rem; font-weight:700; display:flex; justify-content:center; align-items:center; flex-shrink:0; }
    .header-avatar-mini-img { width:28px; height:28px; border-radius:50%; object-fit:cover; flex-shrink:0; border:1px solid rgba(255,255,255,0.5); }

    /* Header Dropdown */
    .header-dropdown { position:relative; display:inline-flex; }
    .header-dropdown-trigger { display:flex; align-items:center; gap:3px; text-decoration:none; color:var(--clr-text-title); font-weight:500; font-size:1rem; padding-bottom:4px; cursor:pointer; }
    .header-dropdown-trigger i { font-size:0.8rem; transition:transform 0.3s; }
    .header-dropdown:hover .header-dropdown-trigger i { transform:rotate(180deg); }
    .header-dropdown:hover .header-dropdown-trigger { color:var(--clr-primary); border-bottom:2px solid var(--clr-primary); }
    .header-dropdown-menu { position:absolute; top:100%; left:50%; transform:translateX(-50%); min-width:180px; padding:8px 0; border-radius:14px; box-shadow:0 12px 32px rgba(0,0,0,0.15); opacity:0; visibility:hidden; transition:opacity 0.25s, transform 0.25s; transform:translateX(-50%) translateY(8px); z-index:100; background:rgba(255,255,255,0.95); backdrop-filter:blur(12px); }
    .header-dropdown:hover .header-dropdown-menu { opacity:1; visibility:visible; transform:translateX(-50%) translateY(4px); }
    .header-dropdown-menu a { display:flex; align-items:center; gap:8px; padding:9px 16px; text-decoration:none; color:var(--clr-text-title); font-size:0.88rem; font-weight:500; transition:background 0.2s; white-space:nowrap; border-bottom:none !important; }
    .header-dropdown-menu a:hover { background:rgba(61,163,212,0.08); color:var(--clr-primary); }
    .header-dropdown-menu a i { font-size:0.95rem; color:var(--clr-primary); }

    /* Translate Dropdown */
    .translate-dropdown { position:relative; display:inline-flex; }
    .translate-menu { position:absolute; top:100%; right:0; min-width:200px; max-height:380px; overflow-y:auto; padding:8px 0; border-radius:14px; box-shadow:0 12px 32px rgba(0,0,0,0.15); opacity:0; visibility:hidden; transition:opacity 0.25s,transform 0.25s; transform:translateY(8px); z-index:200; background:rgba(255,255,255,0.97); backdrop-filter:blur(12px); }
    .translate-menu.open { opacity:1; visibility:visible; transform:translateY(4px); }
    .translate-menu-title { font-size:0.78rem; font-weight:700; color:var(--clr-primary-dark); padding:8px 16px; display:flex; align-items:center; gap:6px; border-bottom:1px solid rgba(200,230,255,0.3); margin-bottom:4px; }
    .translate-menu a { display:block; padding:8px 16px; text-decoration:none; color:var(--clr-text-title); font-size:0.85rem; font-weight:500; cursor:pointer; transition:background 0.2s; }
    .translate-menu a:hover { background:rgba(61,163,212,0.08); color:var(--clr-primary); }
    /* Hide Google Translate bar */
    .goog-te-banner-frame { display:none !important; }
    body > .skiptranslate { display:none !important; height:0 !important; overflow:hidden !important; }
    body { top:0px !important; position:static !important; }
    iframe.goog-te-banner-frame { display:none !important; visibility:hidden !important; }
    #goog-gt-tt { display:none !important; }
    .goog-te-balloon-frame { display:none !important; }

    /* Translate Loader */
    #translate-loader { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.4); z-index:9999; display:flex; justify-content:center; align-items:center; backdrop-filter:blur(4px); }
    .translate-loader-inner { background:white; padding:30px 50px; border-radius:18px; text-align:center; font-size:0.9rem; font-weight:600; color:var(--clr-text-title); box-shadow:0 12px 40px rgba(0,0,0,0.2); animation:fadeInUp 0.3s ease; }

    #google_translate_element { display:none !important; }
    .header-logout-link { display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; background:rgba(231,76,60,0.08); color:#e74c3c; font-size:1.2rem; text-decoration:none; transition:background 0.3s,transform 0.2s; }
    .header-logout-link:hover { background:rgba(231,76,60,0.15); transform:scale(1.08); }

    /* HOME / SPLASH SCREEN DESKTOP */
    #screen-splash { padding-top:80px; background: linear-gradient(to bottom, rgba(207,235,249,0.45), rgba(230,243,251,0.55)), url('assets/splash_landscape.png') center / cover no-repeat fixed; overflow-y:auto; }
    .splash-header { padding-top:4rem; }
    .mary-avatar-container { width:200px; height:200px; }
    .mary-avatar { width:160px; height:160px; border-width:6px; }
    .splash-bottom { flex-direction:row; justify-content:center; max-width:600px; margin:0 auto; }
    .splash-bottom .btn { width:200px; }
    .splash-extended-content { display:flex; flex-direction:column; align-items:center; padding:2rem 40px 4rem; }
    .splash-intro-text { font-size:1.4rem; text-align:center; color:var(--clr-text-title); margin-bottom:3rem; line-height:1.4; font-weight:500; }
    .splash-cards { display:flex; gap:24px; max-width:1000px; margin-bottom:4rem; position:relative; }
    .feature-card { flex:1; padding:24px; display:flex; flex-direction:column; align-items:center; text-align:center; background:rgba(255,255,255,0.6); transition:transform 0.3s; }
    .feature-card:hover { transform:translateY(-5px); }
    .feature-icon { width:60px; height:60px; border-radius:50%; background:white; display:flex; justify-content:center; align-items:center; font-size:2rem; color:var(--clr-primary); margin-bottom:16px; box-shadow:0 4px 10px rgba(0,0,0,0.05); }
    .feature-card h4 { font-size:1.2rem; color:var(--clr-text-title); margin-bottom:12px; font-family:'Crimson Text',serif; }
    .feature-card p { font-size:0.9rem; line-height:1.5; }
    .feature-img-wrapper { width:100%; height:120px; border-radius:12px; overflow:hidden; margin-bottom:16px; }
    .feature-img-wrapper img { width:100%; height:100%; object-fit:cover; }
    .splash-how-it-works { font-size:2.5rem; margin-bottom:2rem; }
    .how-it-works-steps { display:flex; align-items:center; justify-content:center; gap:12px; max-width:1000px; margin-bottom:4rem; }
    .step-item { flex:1; padding:28px 20px; display:flex; flex-direction:column; align-items:center; text-align:center; background:rgba(255,255,255,0.55); transition:transform 0.3s,box-shadow 0.3s; position:relative; }
    .step-item:hover { transform:translateY(-6px); box-shadow:0 12px 30px rgba(46,139,192,0.15); }
    .step-number { position:absolute; top:-14px; left:50%; transform:translateX(-50%); width:32px; height:32px; background:linear-gradient(135deg,#3DA3D4,#2E8BC0); color:white; border-radius:50%; display:flex; justify-content:center; align-items:center; font-weight:700; font-size:0.95rem; box-shadow:0 4px 10px rgba(46,139,192,0.3); border:3px solid white; }
    .step-icon { width:56px; height:56px; border-radius:50%; background:linear-gradient(135deg,#E6F3FB,#D4EBF7); display:flex; justify-content:center; align-items:center; font-size:1.6rem; color:var(--clr-primary); margin:8px 0 14px; }
    .step-item h4 { font-size:1.1rem; color:var(--clr-text-title); margin-bottom:8px; font-family:'Crimson Text',serif; }
    .step-item p { font-size:0.85rem; line-height:1.5; color:var(--clr-text-body); }
    .step-connector { color:var(--clr-primary-light); font-size:1.5rem; flex-shrink:0; opacity:0.6; }

    /* DASHBOARD MODE */
    #app-container.dashboard-mode { background:linear-gradient(to bottom,#cfebf9,#e4f1f9); overflow:hidden; }
    #app-container.dashboard-mode #screen-splash { display:none !important; }
    #app-container.dashboard-mode #main-nav { display:none; }
    #app-container.dashboard-mode .screen { position:absolute; pointer-events:auto; opacity:1; transform:none !important; background:transparent; transition:none; }

    /* Map in Dashboard */
    #app-container.dashboard-mode #screen-map { top:90px; left:20px; width:46%; height:calc(100vh - 110px); background:transparent; z-index:3; }
    #app-container.dashboard-mode #screen-map .top-bar { display:flex; background:var(--glass-bg); border-radius:20px 20px 0 0; padding:14px 20px; border:1px solid var(--glass-border); border-bottom:none; }
    #app-container.dashboard-mode #screen-map .map-tabs { border-radius:0; }
    #app-container.dashboard-mode #screen-map .map-container { border-radius:0 0 var(--border-radius-lg) var(--border-radius-lg); box-shadow:0 4px 20px rgba(0,0,0,0.08); border:1px solid rgba(255,255,255,0.6); border-top:none; }
    #app-container.dashboard-mode #screen-map .bottom-sheet { position:absolute; bottom:20px; }

    /* Hide Event in Dashboard */
    #app-container.dashboard-mode #screen-event { display:none !important; }

    /* Profile in Dashboard - full right column */
    #app-container.dashboard-mode #screen-profile { top:90px; left:calc(46% + 40px); width:calc(54% - 60px); height:calc(100vh - 110px); background:transparent; z-index:3; display:flex; flex-direction:column; overflow:hidden; }
    #app-container.dashboard-mode #screen-profile .top-bar { display:none; }
    #app-container.dashboard-mode #screen-profile .profile-scrollarea { flex:1; min-height:0; height:0; overflow-y:auto; padding:20px; padding-bottom:60px; }

    /* Only hide nav spacer in dashboard mode */
    #app-container.dashboard-mode .mobile-nav-spacer { display:none; }

    /* Hide screens in dashboard mode */
    #app-container.dashboard-mode #screen-live,
    #app-container.dashboard-mode #screen-rezo { display:none !important; }
    #app-container.dashboard-mode #screen-register,
    #app-container.dashboard-mode #screen-login { display:none !important; }
    #app-container.dashboard-mode #screen-forgot-password,
    #app-container.dashboard-mode #screen-reset-password,
    #app-container.dashboard-mode #screen-create-rosary,
    #app-container.dashboard-mode #screen-intenciones { display:none !important; }

    /* ALL SCREENS DESKTOP - offset fixed header */
    #screen-register, #screen-login, #screen-forgot-password, #screen-reset-password,
    #screen-create-rosary, #screen-map, #screen-intenciones, #screen-rezo, #screen-live,
    #screen-event, #screen-profile, #screen-rosary-detail {
        padding-top: 80px;
        overflow-y: auto;
    }

    #screen-register, #screen-login, #screen-forgot-password,
    #screen-reset-password, #screen-create-rosary { background:transparent; }

    /* Hide all mobile top-bars on desktop */
    #screen-register .top-bar, #screen-login .top-bar, #screen-forgot-password .top-bar,
    #screen-reset-password .top-bar, #screen-create-rosary .top-bar, #screen-profile .top-bar,
    #screen-rezo .top-bar, #screen-live .top-bar, #screen-event .top-bar,
    #screen-map .top-bar, #screen-rosary-detail .top-bar, #screen-intenciones .top-bar { display:none; }

    .auth-scrollarea { justify-content:flex-start; padding:30px 20px; min-height:calc(100vh - 80px); }
    .auth-card { max-width:480px; padding:40px 36px 32px; background:rgba(255,255,255,0.65); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); box-shadow:0 12px 40px rgba(46,139,192,0.12); }
    .auth-icon-circle { width:72px; height:72px; font-size:2rem; }
    .auth-header h3 { font-size:1.8rem; }

    /* PROFILE DESKTOP - standalone */
    #screen-profile { display:flex; flex-direction:column; overflow:hidden !important; }
    #screen-profile .profile-scrollarea { flex:1; min-height:0; height:0; overflow-y:auto; max-width:800px; width:100%; margin:0 auto; padding:20px 40px 80px; }
    #screen-profile .profile-header { gap:24px; padding:20px 24px; }
    #screen-profile .profile-avatar-placeholder { width:70px; height:70px; font-size:1.8rem; }
    #screen-profile .profile-info h3 { font-size:1.3rem; }
    #screen-profile .profile-info p { font-size:0.9rem; }
    #screen-profile .devotion-card { padding:18px; }
    #screen-profile .devotion-img { height:130px; border-radius:14px; }
    #screen-profile .section-heading { font-size:1rem; margin-top:4px; }
    #screen-profile .list-card { padding:6px 14px; }
    #screen-profile .list-item { padding:12px 8px; font-size:0.95rem; }
    #screen-profile .btn-logout { max-width:300px; margin:12px auto 0; }
    #screen-profile .mobile-nav-spacer { display:none; }

    /* ROSARY DETAIL DESKTOP */
    .rosary-detail-layout { flex-direction:row; height:calc(100vh - 80px); }
    .detail-map-side { flex:3; min-height:unset; }
    .detail-info-side { flex:2; padding:40px 32px; max-width:480px; justify-content:center; }
    .detail-info-card { padding:28px; }
    .detail-info-header h3 { font-size:1.5rem; }

    /* Rosario Continuo Desktop */
    .continuo-scrollarea { max-width:800px; margin:0 auto; padding:30px 40px; }
    .continuo-grid { grid-template-columns:repeat(6,1fr); }

    /* Intenciones Desktop */
    #screen-intenciones { padding-top:80px; }
    .intenciones-scrollarea { max-width:900px; margin:0 auto; padding:30px 40px; }
    .intenciones-hero h2 { font-size:2rem; }
    .mysteries-gallery { gap:16px; }
    .mystery-card { min-width:160px; max-width:160px; }
    .mystery-card img { height:140px; }
    .intencion-form-card { max-width:600px; margin:0 auto; }
    .community-intentions { max-width:600px; margin:0 auto; }
}

/* ========================================= */
/* 14" LAPTOP (1024-1439px)                   */
/* ========================================= */
@media (min-width: 1024px) and (max-width: 1439px) {
    .desktop-header { padding:0 24px; height:70px; }
    .header-logo { font-size:1.5rem; gap:8px; }
    .header-avatar { width:34px; height:34px; }
    .header-nav { gap:18px; }
    .header-nav a { font-size:0.88rem; }
    .user-dropdown { font-size:0.82rem; padding:5px 10px 5px 14px; }
    #screen-splash { padding-top:70px; }
    .splash-header { padding-top:2rem; }
    .mary-avatar-container { width:160px; height:160px; }
    .mary-avatar { width:120px; height:120px; }
    .logo-title { font-size:2.8rem; }
    .splash-bottom .btn { width:180px; }
    .splash-intro-text { font-size:1.2rem; }
    .splash-cards { max-width:820px; gap:16px; }
    .feature-card { padding:18px; }
    .splash-how-it-works { font-size:2rem; }
    .how-it-works-steps { max-width:820px; }
    .step-item { padding:22px 16px; }

    #app-container.dashboard-mode #screen-map { top:80px; left:16px; width:48%; height:calc(100vh - 96px); }
    #app-container.dashboard-mode #screen-profile { top:80px; left:calc(48% + 32px); width:calc(52% - 48px); height:calc(100vh - 96px); }
    #app-container.dashboard-mode #screen-profile .profile-scrollarea { top:0; padding:16px; padding-bottom:40px; }
    #app-container.dashboard-mode #screen-profile .profile-header { padding:16px 20px; }
    #app-container.dashboard-mode #screen-profile .devotion-img { height:100px; }
    #app-container.dashboard-mode #screen-profile .devotion-card { padding:14px; }
    #app-container.dashboard-mode #screen-profile .profile-slot-card { padding:10px 12px; }
    #app-container.dashboard-mode #screen-profile .profile-slot-icon { width:34px; height:34px; font-size:1rem; }

    .auth-scrollarea { padding:40px 16px; }
    .auth-card { max-width:440px; padding:32px 28px 24px; }
    .auth-header h3 { font-size:1.5rem; }
    .auth-icon-circle { width:60px; height:60px; font-size:1.7rem; }
    .detail-info-side { padding:28px 24px; max-width:400px; }
    .rosary-detail-layout { height:calc(100vh - 70px); }

    #screen-rosary-detail, #screen-register, #screen-login, #screen-forgot-password,
    #screen-reset-password, #screen-create-rosary, #screen-map, #screen-intenciones, #screen-rezo,
    #screen-live, #screen-event, #screen-profile, #screen-splash { padding-top:70px; }
}

/* ========================================= */
/* 15-16" LAPTOP (1440-1679px)                */
/* ========================================= */
@media (min-width: 1440px) and (max-width: 1679px) {
    .desktop-header { padding:0 48px; }
    .header-nav { gap:28px; }
    .splash-cards { max-width:960px; }
    .how-it-works-steps { max-width:960px; }
    #app-container.dashboard-mode #screen-map { left:24px; width:45%; }
    #app-container.dashboard-mode #screen-profile { left:calc(45% + 48px); width:calc(55% - 72px); }
}

/* ========================================= */
/* 17"+ & LARGE SCREENS (1680px+)             */
/* ========================================= */
@media (min-width: 1680px) {
    .desktop-header { padding:0 60px; }
    .header-logo { font-size:2rem; }
    .header-nav { gap:36px; }
    .header-nav a { font-size:1.05rem; }
    .splash-header { padding-top:5rem; }
    .mary-avatar-container { width:220px; height:220px; }
    .mary-avatar { width:180px; height:180px; }
    .logo-title { font-size:4rem; }
    .logo-subtitle { font-size:1.3rem; }
    .splash-bottom .btn { width:220px; padding:16px 32px; font-size:1.05rem; }
    .splash-intro-text { font-size:1.6rem; }
    .splash-cards { max-width:1200px; gap:28px; }
    .feature-card { padding:32px; }
    .feature-card h4 { font-size:1.4rem; }
    .feature-icon { width:70px; height:70px; font-size:2.2rem; }
    .splash-how-it-works { font-size:2.8rem; }
    .how-it-works-steps { max-width:1200px; }
    .step-item { padding:32px 24px; }
    #app-container.dashboard-mode #screen-map { left:30px; width:44%; top:100px; height:calc(100vh - 120px); }
    #app-container.dashboard-mode #screen-profile { top:100px; left:calc(44% + 60px); width:calc(56% - 90px); height:calc(100vh - 120px); }
    .auth-card { max-width:520px; padding:48px 44px 36px; }
    .auth-header h3 { font-size:2rem; }
    .auth-icon-circle { width:80px; height:80px; font-size:2.2rem; }
    .detail-info-side { max-width:520px; padding:48px 40px; }
    .detail-info-header h3 { font-size:1.7rem; }
    .recovery-code { font-size:2.4rem; letter-spacing:10px; }
    .continuo-grid { grid-template-columns:repeat(8,1fr); }
}

/* ========================================= */
/* CÃ“MO REZAR EL ROSARIO                     */
/* ========================================= */
#screen-como-rezar {
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.rezar-scrollarea {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Hero */
.rezar-hero {
    text-align: center;
    padding: 24px 16px 8px;
}

.rezar-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3DA3D4, #A8D8EA);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 14px;
    box-shadow: 0 8px 28px rgba(61, 163, 212, 0.35);
    animation: gentlePulse 3s ease-in-out infinite;
}

.rezar-hero h2 {
    font-family: 'Crimson Text', serif;
    font-size: 1.7rem;
    color: var(--clr-text-title);
    margin-bottom: 6px;
}

.rezar-hero p {
    font-size: 0.9rem;
    color: var(--clr-text-body);
    line-height: 1.5;
}

/* Video Card */
.rezar-video-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rezar-video-card h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    color: var(--clr-text-title);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rezar-video-card h3 i {
    color: #e74c3c;
    font-size: 1.3rem;
}

.rezar-video-card p {
    font-size: 0.85rem;
    color: var(--clr-text-body);
    line-height: 1.5;
}

.rezar-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    margin-top: 4px;
}

.rezar-video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-radius: 14px;
    overflow: hidden;
}

.rezar-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.rezar-video-thumbnail:hover img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

.rezar-video-play-btn {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 6px 24px rgba(231, 76, 60, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.rezar-video-thumbnail:hover .rezar-video-play-btn {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(231, 76, 60, 0.65);
}

.rezar-video-play-btn i {
    margin-left: 4px;
}

/* Intro Card */
.rezar-intro-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.rezar-intro-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C4B5FD, #E8A0BF);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 4px 14px rgba(196, 181, 253, 0.3);
}

.rezar-intro-card h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.25rem;
    color: var(--clr-text-title);
}

.rezar-intro-card p {
    font-size: 0.88rem;
    color: var(--clr-text-body);
    line-height: 1.6;
}

.rezar-intro-card p strong {
    color: var(--clr-text-title);
}

/* Section Title */
.rezar-section-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    color: var(--clr-text-title);
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rezar-section-title i {
    color: var(--clr-primary);
    font-size: 1.2rem;
}

/* Prayer Steps */
.rezar-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rezar-step {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rezar-step:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(46, 139, 192, 0.12);
}

.rezar-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(46, 139, 192, 0.25);
}

.rezar-step-content h4 {
    font-size: 0.95rem;
    color: var(--clr-text-title);
    font-weight: 600;
    margin-bottom: 6px;
}

.rezar-prayer-text {
    font-size: 0.82rem;
    color: var(--clr-text-body);
    line-height: 1.6;
    font-style: italic;
    background: rgba(255, 255, 255, 0.4);
    padding: 10px 14px;
    border-radius: 12px;
    border-left: 3px solid var(--clr-primary-light);
    margin-top: 4px;
}

.rezar-prayer-sub {
    font-size: 0.82rem;
    color: var(--clr-primary-dark);
    font-weight: 500;
    margin-bottom: 6px;
}

/* Days Card */
.rezar-days-card {
    padding: 24px;
}

.rezar-days-card h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.15rem;
    color: var(--clr-text-title);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rezar-days-card h3 i {
    color: var(--clr-primary);
}

.rezar-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.rezar-day-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: transform 0.2s;
}

.rezar-day-item:hover {
    transform: scale(1.03);
}

.rezar-day-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--clr-text-title);
}

.rezar-day-mystery {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    color: white;
}

.rezar-day-mystery.gozoso {
    background: linear-gradient(135deg, #56d992, #27ae60);
}

.rezar-day-mystery.doloroso {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.rezar-day-mystery.glorioso {
    background: linear-gradient(135deg, #f0a500, #d4940a);
}

.rezar-day-mystery.luminoso {
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
}

.rezar-today-highlight {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    color: var(--clr-text-title);
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rezar-today-highlight i {
    font-size: 1.1rem;
    color: var(--clr-primary);
}

/* Mystery Section Headers */
.rezar-mystery-section {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(46, 139, 192, 0.08);
}

.rezar-mystery-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.rezar-mystery-header i {
    font-size: 1.4rem;
}

.rezar-mystery-header h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    font-weight: 600;
    flex: 1;
}

.rezar-mystery-days {
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
}

.gozoso-bg {
    background: linear-gradient(135deg, #56d992, #27ae60);
}

.doloroso-bg {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.glorioso-bg {
    background: linear-gradient(135deg, #f0a500, #d4940a);
}

.luminoso-bg {
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
}

/* Mystery List */
.rezar-mystery-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rezar-mystery-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    align-items: flex-start;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rezar-mystery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(46, 139, 192, 0.15);
}

.rezar-mystery-num {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(61, 163, 212, 0.9), rgba(46, 139, 192, 0.9));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.72rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(46, 139, 192, 0.3);
}

.rezar-mystery-item img {
    width: 90px;
    height: 90px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.rezar-mystery-info {
    flex: 1;
    min-width: 0;
}

.rezar-mystery-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-text-title);
    margin-bottom: 4px;
    line-height: 1.3;
}

.rezar-mystery-info p {
    font-size: 0.8rem;
    color: var(--clr-text-body);
    line-height: 1.5;
    margin-bottom: 6px;
}

/* Hide inline meditations - they show in the popup modal */
.rezar-mystery-info p.rezar-meditation {
    display: none !important;
}

/* Make mystery images clickable */
.rezar-mystery-item img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rezar-mystery-item img:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(46, 139, 192, 0.3);
}

.rezar-mystery-item img:active {
    transform: scale(0.96);
}

/* Meditation Modal */
.meditation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.meditation-modal-card {
    background: linear-gradient(145deg, #f8f4ff, #ffffff);
    border-radius: 24px;
    padding: 28px 24px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(107, 76, 138, 0.25), 0 0 0 1px rgba(196, 181, 253, 0.3);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: meditationSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes meditationSlideIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.meditation-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(107, 76, 138, 0.1);
    color: #6b4c8a;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, transform 0.2s;
}

.meditation-modal-close:hover {
    background: rgba(107, 76, 138, 0.2);
    transform: scale(1.1);
}

.meditation-modal-img {
    width: 140px;
    height: 140px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(196, 181, 253, 0.4);
}

.meditation-modal-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.meditation-modal-divider {
    width: 50px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #C4B5FD, #E8A0BF);
}

.meditation-modal-text {
    font-size: 0.9rem;
    color: #6b4c8a;
    line-height: 1.65;
    font-style: italic;
    padding: 12px 16px;
    background: rgba(196, 181, 253, 0.1);
    border-radius: 14px;
    border-left: 3px solid #C4B5FD;
    text-align: left;
}

.meditation-modal-fruit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
}

.meditation-modal-fruit i {
    font-size: 0.9rem;
}

.rezar-fruit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
}

.rezar-fruit i {
    font-size: 0.85rem;
}

/* CTA Card */
.rezar-cta {
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.rezar-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E8A0BF, #C4B5FD);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    color: white;
    box-shadow: 0 6px 20px rgba(232, 160, 191, 0.4);
    animation: gentlePulse 3s ease-in-out infinite;
}

.rezar-cta h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    color: var(--clr-text-title);
}

.rezar-cta p {
    font-size: 0.88rem;
    color: var(--clr-text-body);
    max-width: 320px;
}

/* Por quÃ© Rezar - History Cards */
.porque-card {
    position: relative;
    padding: 20px 20px 20px 60px !important;
}

.porque-num {
    position: absolute;
    left: 14px;
    top: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(46, 139, 192, 0.3);
}

.porque-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-text-title);
    margin-bottom: 8px;
    font-family: 'Crimson Text', serif;
}

.porque-card p {
    font-size: 0.85rem;
    color: var(--clr-text-body);
    line-height: 1.6;
    margin-bottom: 6px;
}

.porque-card p strong {
    color: var(--clr-text-title);
}

.porque-table-card {
    padding: 20px !important;
}

.porque-table-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-text-title);
    margin-bottom: 14px;
    font-family: 'Crimson Text', serif;
}

.porque-table-card h3 i {
    color: var(--clr-primary);
    margin-right: 6px;
}

.porque-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.porque-table th {
    text-align: left;
    padding: 8px 10px;
    font-weight: 600;
    color: var(--clr-text-title);
    border-bottom: 2px solid var(--clr-primary-light);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.porque-table td {
    padding: 10px 10px;
    color: var(--clr-text-body);
    border-bottom: 1px solid rgba(200, 230, 255, 0.3);
}

.porque-table td i {
    margin-right: 4px;
}

.gozoso-row td:first-child { color: #f0a500; font-weight: 600; }
.doloroso-row td:first-child { color: #e74c3c; font-weight: 600; }
.glorioso-row td:first-child { color: #27ae60; font-weight: 600; }
.luminoso-row td:first-child { color: #3DA3D4; font-weight: 600; }

/* Por quÃ© Rezar - Divider & Lists */
.porque-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 8px;
}

.porque-divider::before,
.porque-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-primary-light), transparent);
}

.porque-divider-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--clr-primary-dark);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Crimson Text', serif;
}

.porque-divider-text i {
    color: #e74c3c;
    font-size: 1rem;
}

.porque-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.porque-list li {
    font-size: 0.84rem;
    color: var(--clr-text-body);
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.porque-list li::before {
    content: 'âœ¦';
    position: absolute;
    left: 0;
    color: var(--clr-primary);
    font-size: 0.7rem;
    top: 2px;
}

.porque-list li strong {
    color: var(--clr-text-title);
}

/* Por quÃ© Rezar - Saints Quotes */
.porque-intro {
    padding: 16px 20px !important;
    text-align: center;
}

.porque-intro p {
    font-size: 0.88rem;
    color: var(--clr-text-body);
    line-height: 1.6;
    font-style: italic;
}

.santo-quote {
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(46, 139, 192, 0.04);
    border-left: 3px solid var(--clr-primary);
    border-radius: 0 12px 12px 0;
}

.santo-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--clr-primary-dark);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.santo-quote blockquote {
    margin: 0;
    padding: 0;
    font-size: 0.84rem;
    color: var(--clr-text-body);
    line-height: 1.55;
    font-style: italic;
}

/* ===== CHAT SYSTEM — PREMIUM DESIGN ===== */
#screen-chat { display: flex; flex-direction: column; }

.chat-header-section { flex-shrink: 0; }

.chat-contacts-view { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.chat-search-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px; background: rgba(255,255,255,0.45);
    border-bottom: 1px solid rgba(200,230,255,0.2);
}
.chat-search-bar i { color: var(--clr-primary); font-size: 1.15rem; flex-shrink: 0; }
.chat-search-bar input {
    flex: 1; border: none; background: transparent;
    font-size: 0.9rem; color: var(--clr-text-title);
    outline: none; font-family: 'Inter', sans-serif;
}
.chat-search-bar input::placeholder { color: #a0bdd0; }

/* Chat Tabs */
.chat-tabs {
    display: flex; gap: 6px; padding: 8px 18px 12px;
    background: rgba(255,255,255,0.25);
    border-bottom: 1px solid rgba(200,230,255,0.15);
}
.chat-tab {
    padding: 6px 16px; border-radius: 20px;
    border: 1.5px solid rgba(46,139,192,0.15);
    background: rgba(255,255,255,0.4); color: var(--clr-text-body);
    font-size: 0.78rem; font-weight: 600; font-family: 'Inter', sans-serif;
    cursor: pointer; transition: all 0.25s ease;
}
.chat-tab:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.chat-tab.active {
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white; border-color: transparent;
    box-shadow: 0 3px 12px rgba(46,139,192,0.3);
}

/* Contacts List */
.chat-contacts-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.chat-contact {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    border-bottom: 1px solid rgba(200,230,255,0.1);
}
.chat-contact:hover { background: rgba(46,139,192,0.06); }
.chat-contact:active { background: rgba(46,139,192,0.1); transform: scale(0.995); }

/* Avatar with Online Dot */
.chat-avatar-wrapper { position: relative; flex-shrink: 0; }
.chat-contact-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: 700; color: white; font-size: 1.15rem;
    border: 2.5px solid rgba(255,255,255,0.8);
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}
.chat-online-dot {
    position: absolute; bottom: 2px; right: 2px;
    width: 13px; height: 13px; border-radius: 50%;
    background: #27ae60; border: 2.5px solid white;
    box-shadow: 0 1px 4px rgba(39,174,96,0.4);
}

/* Contact Info */
.chat-contact-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.chat-contact-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-contact-top h4 {
    font-size: 0.92rem; font-weight: 600; color: var(--clr-text-title);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-contact-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-time { font-size: 0.7rem; color: var(--clr-text-body); flex-shrink: 0; font-weight: 500; }
.chat-last-msg {
    font-size: 0.8rem; color: var(--clr-text-body);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0;
}
.chat-unread {
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white; font-size: 0.65rem; font-weight: 700;
    min-width: 22px; height: 22px; border-radius: 11px;
    display: flex; justify-content: center; align-items: center;
    padding: 0 6px; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(46,139,192,0.3);
}

/* Conversation View */
.chat-conversation-view { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.chat-conv-header {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-bottom: 1px solid rgba(200,230,255,0.3); flex-shrink: 0;
}
.chat-conv-user { display: flex; align-items: center; gap: 12px; flex: 1; cursor: pointer; }
.chat-conv-avatar-wrap { position: relative; flex-shrink: 0; }
.chat-conv-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #A8C4DE, #6a9cc4);
    display: flex; justify-content: center; align-items: center;
    font-weight: 700; color: white; font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.6);
}
.chat-conv-online-dot {
    position: absolute; bottom: 0; right: 0;
    width: 11px; height: 11px; border-radius: 50%;
    background: #27ae60; border: 2px solid white;
}
.chat-conv-user-info h4 { font-size: 0.92rem; font-weight: 600; color: var(--clr-text-title); }
.chat-conv-status { font-size: 0.72rem; color: #27ae60; font-weight: 500; }
.chat-conv-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.chat-conv-actions .icon-btn { color: var(--clr-primary); font-size: 1.1rem; }

/* Messages */
.chat-messages {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 18px 16px; display: flex; flex-direction: column; gap: 8px;
}
.chat-msg {
    max-width: 78%; padding: 11px 16px; border-radius: 18px;
    font-size: 0.85rem; line-height: 1.5; animation: fadeInUp 0.3s ease;
}
.chat-msg.received {
    align-self: flex-start; background: #f0f0f0;
    color: var(--clr-text-title); border-bottom-left-radius: 6px;
    border: none; box-shadow: none;
}
.chat-msg.sent {
    align-self: flex-end; background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white; border-bottom-right-radius: 6px;
    box-shadow: 0 3px 12px rgba(46,139,192,0.25);
}
.chat-msg-time { font-size: 0.65rem; margin-top: 5px; opacity: 0.55; }
.chat-msg.sent .chat-msg-time { text-align: right; }

/* Typing Indicator */
.chat-typing-indicator {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 20px; font-size: 0.78rem;
    color: var(--clr-text-body); font-style: italic;
}
.typing-dots { display: flex; gap: 4px; align-items: center; }
.typing-dots span {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--clr-primary); opacity: 0.4;
    animation: typingBounce 1.4s infinite ease-in-out;
}
.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Input Bar */
.chat-input-bar {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px;
    background: rgba(255,255,255,0.75); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(200,230,255,0.3); flex-shrink: 0;
}
[data-theme="dark"] .chat-input-bar { background: rgba(15,20,35,0.6); }

.chat-attach-btn {
    width: 38px; height: 38px; border-radius: 50%; border: none;
    background: transparent; color: var(--clr-text-body); font-size: 1.2rem;
    cursor: pointer; display: flex; justify-content: center; align-items: center;
    flex-shrink: 0; transition: color 0.2s, background 0.2s;
}
.chat-attach-btn:hover { color: var(--clr-primary); background: rgba(46,139,192,0.08); }

.chat-input-bar input {
    flex: 1; border: 1.5px solid rgba(200,230,255,0.4);
    background: rgba(255,255,255,0.5); border-radius: 24px;
    padding: 10px 18px; font-size: 0.88rem; color: var(--clr-text-title);
    outline: none; font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}
[data-theme="dark"] .chat-input-bar input { background: rgba(30,40,60,0.5); border-color: rgba(80,110,160,0.3); }
.chat-input-bar input:focus { border-color: var(--clr-primary); box-shadow: 0 0 0 3px rgba(61,163,212,0.1); }

.chat-send-btn {
    width: 42px; height: 42px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white; font-size: 1.1rem; cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    flex-shrink: 0; transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(46,139,192,0.35);
}
.chat-send-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(46,139,192,0.45); }
.chat-send-btn:active { transform: scale(0.95); }

/* Chat More Menu */
.chat-more-menu-wrap {
    position: relative;
}

.chat-more-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 200px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(200,230,255,0.3);
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp 0.2s ease;
}

[data-theme="dark"] .chat-more-menu {
    background: rgba(20,30,50,0.95);
    border-color: rgba(80,110,160,0.3);
}

.chat-more-menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border: none;
    background: transparent;
    font-size: 0.88rem;
    color: var(--clr-text-title);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s;
    white-space: nowrap;
}

.chat-more-menu button:hover {
    background: rgba(46,139,192,0.08);
}

.chat-more-menu button i {
    font-size: 1.15rem;
    color: var(--clr-primary);
    width: 20px;
    text-align: center;
}

.chat-more-menu button:first-child i {
    color: #e74c3c;
}

.chat-more-menu button:first-child:hover {
    background: rgba(231,76,60,0.08);
}

/* === Blocked User State === */
.chat-conv-avatar.blocked-avatar {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    color: rgba(255,255,255,0.4);
    position: relative;
}
.chat-conv-avatar.blocked-avatar::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(231,76,60,0.8);
    box-sizing: border-box;
}
.chat-conv-avatar.blocked-avatar::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 3px;
    background: rgba(231,76,60,0.8);
    transform: rotate(-45deg);
    border-radius: 2px;
    z-index: 1;
}

.chat-contact-avatar.blocked-avatar {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    color: rgba(255,255,255,0.35);
    position: relative;
}
.chat-contact-avatar.blocked-avatar::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(231,76,60,0.8);
    box-sizing: border-box;
}
.chat-contact-avatar.blocked-avatar::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 3px;
    background: rgba(231,76,60,0.8);
    transform: rotate(-45deg);
    border-radius: 2px;
    z-index: 1;
}

.chat-contact.blocked-contact {
    opacity: 0.5;
}
.chat-contact.blocked-contact .chat-online-dot {
    display: none !important;
}

.chat-blocked-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px;
    background: rgba(231,76,60,0.06);
    border-top: 1px solid rgba(231,76,60,0.15);
    flex-shrink: 0;
    animation: fadeInUp 0.3s ease;
}

.chat-blocked-banner i {
    font-size: 1.4rem;
    color: #e74c3c;
}

.chat-blocked-banner p {
    font-size: 0.82rem;
    color: var(--clr-text-body);
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

.chat-blocked-banner .unblock-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1.5px solid rgba(231,76,60,0.3);
    background: rgba(231,76,60,0.08);
    color: #e74c3c;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}
.chat-blocked-banner .unblock-btn:hover {
    background: rgba(231,76,60,0.15);
    border-color: rgba(231,76,60,0.5);
    transform: scale(1.03);
}

[data-theme="dark"] .chat-blocked-banner {
    background: rgba(231,76,60,0.08);
    border-top-color: rgba(231,76,60,0.2);
}

/* Media Messages */
.chat-msg img,
.chat-msg video {
    max-width: 100%;
    border-radius: 10px;
    cursor: pointer;
    display: block;
    border: none;
    outline: none;
    box-shadow: none;
}

/* === Message Wrapper with Actions === */
.chat-msg-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 82%;
}
.chat-msg-wrapper.sent { align-self: flex-end; align-items: flex-end; }
.chat-msg-wrapper.received { align-self: flex-start; align-items: flex-start; }

/* Message Action Buttons */
.chat-msg-actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transform: translateY(-4px) scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    margin-top: 2px;
    padding: 0 4px;
}

.chat-msg-wrapper:hover .chat-msg-actions,
.chat-msg-wrapper:focus-within .chat-msg-actions,
.chat-msg-actions.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* On mobile: tap to show actions */
@media (hover: none) {
    .chat-msg-actions {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: all;
    }
}

.msg-action-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--clr-text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(200,230,255,0.25);
}

.msg-action-btn:hover {
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white;
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(46,139,192,0.3);
    border-color: transparent;
}

.msg-action-btn:active {
    transform: scale(0.92);
}

.msg-action-btn.msg-action-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: white !important;
    border-color: transparent !important;
    animation: msgActionPop 0.3s ease;
}

@keyframes msgActionPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

[data-theme="dark"] .msg-action-btn {
    background: rgba(30,40,60,0.85);
    border-color: rgba(80,110,160,0.3);
    color: rgba(255,255,255,0.7);
}

/* ===== Emoji Reaction Bar ===== */
.msg-emoji-bar {
    position: absolute;
    top: -44px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 4px 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 0 0 1px rgba(200,230,255,0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.chat-msg:hover .msg-emoji-bar,
.msg-emoji-bar.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) scale(1);
}

.chat-msg.sent .msg-emoji-bar {
    left: auto;
    right: 0;
    transform: translateX(0) scale(0.8);
}
.chat-msg.sent:hover .msg-emoji-bar,
.chat-msg.sent .msg-emoji-bar.visible {
    transform: translateX(0) scale(1);
}

.msg-emoji-bar button {
    width: 34px;
    height: 34px;
    border: none;
    background: none;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.msg-emoji-bar button:hover {
    transform: scale(1.35);
    background: rgba(46,139,192,0.08);
}

.msg-emoji-bar button:active {
    transform: scale(0.9);
}

/* Reaction pills displayed under message */
.msg-reactions-display {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
    margin-bottom: 2px;
}

.msg-reaction-pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(46,139,192,0.08);
    border: 1px solid rgba(46,139,192,0.15);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    animation: reactionPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.msg-reaction-pill:hover {
    background: rgba(46,139,192,0.15);
    transform: scale(1.08);
}

@keyframes reactionPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Dark mode */
[data-theme="dark"] .msg-emoji-bar {
    background: rgba(25,35,55,0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 0 1px rgba(60,90,140,0.2);
}

[data-theme="dark"] .msg-reaction-pill {
    background: rgba(46,139,192,0.15);
    border-color: rgba(46,139,192,0.25);
}

/* Mobile: show emoji bar on tap (via .visible class) */
@media (hover: none) {
    .msg-emoji-bar {
        top: -48px;
    }
    .chat-msg:active .msg-emoji-bar {
        opacity: 1;
        pointer-events: all;
        transform: translateX(-50%) scale(1);
    }
    .chat-msg.sent:active .msg-emoji-bar {
        transform: translateX(0) scale(1);
    }
}

/* === Forward Modal === */
.forward-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}

.forward-modal-card {
    width: 100%;
    max-width: 380px;
    max-height: 75vh;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    border: 1px solid rgba(200,230,255,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp 0.3s ease;
}

[data-theme="dark"] .forward-modal-card {
    background: rgba(15,20,35,0.96);
    border-color: rgba(80,110,160,0.3);
}

.forward-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(200,230,255,0.3);
}

.forward-modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-text-title);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.forward-modal-header h3 i {
    color: var(--clr-primary);
    font-size: 1.15rem;
}

.forward-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(200,200,200,0.2);
    color: var(--clr-text-body);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}
.forward-close-btn:hover {
    background: rgba(231,76,60,0.1);
    color: #e74c3c;
}

.forward-msg-preview {
    padding: 14px 20px;
    background: rgba(46,139,192,0.04);
    border-bottom: 1px solid rgba(200,230,255,0.2);
}

.forward-msg-bubble {
    padding: 10px 16px;
    background: rgba(255,255,255,0.8);
    border-radius: 14px;
    font-size: 0.82rem;
    color: var(--clr-text-body);
    line-height: 1.5;
    border-left: 3px solid var(--clr-primary);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

[data-theme="dark"] .forward-msg-bubble {
    background: rgba(30,40,60,0.5);
}

.forward-contacts-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
    max-height: 280px;
}

.forward-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.15s;
}

.forward-contact-item:hover {
    background: rgba(46,139,192,0.06);
}

.forward-contact-item:active {
    background: rgba(46,139,192,0.12);
}

.forward-contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.forward-contact-item span {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-text-title);
}

.forward-contact-item i {
    color: var(--clr-primary);
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateX(-6px);
}

.forward-contact-item:hover i {
    opacity: 1;
    transform: translateX(0);
}

.forward-copy-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-top: 1px solid rgba(200,230,255,0.3);
    background: transparent;
    color: var(--clr-primary);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.forward-copy-alt:hover {
    background: rgba(46,139,192,0.06);
}

.forward-copy-alt i {
    font-size: 1.1rem;
}

/* === Message Toast === */
.msg-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.msg-toast i {
    color: #27ae60;
    font-size: 1rem;
}

.msg-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== BLOCK / UNBLOCK CONFIRMATION MODAL ===== */
.block-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

.block-modal-overlay.block-modal-visible {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.block-modal-card {
    width: 100%;
    max-width: 340px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 32px 28px 24px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.6);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transform: scale(0.85) translateY(30px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
}

.block-modal-visible .block-modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

[data-theme="dark"] .block-modal-card {
    background: rgba(20,28,45,0.97);
    border-color: rgba(80,110,160,0.3);
}

/* Icon Circle */
.block-modal-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    margin-bottom: -4px;
}

.block-icon-danger {
    background: rgba(231,76,60,0.12);
    color: #e74c3c;
    animation: blockIconPulse 1.5s ease-in-out infinite;
}

.block-icon-success {
    background: rgba(39,174,96,0.12);
    color: #27ae60;
    animation: blockIconPulse 1.5s ease-in-out infinite;
}

@keyframes blockIconPulse {
    0%, 100% { box-shadow: 0 0 0 0 transparent; }
    50% { box-shadow: 0 0 0 10px rgba(231,76,60,0.08); }
}

.block-icon-success {
    animation-name: blockIconPulseGreen;
}

@keyframes blockIconPulseGreen {
    0%, 100% { box-shadow: 0 0 0 0 transparent; }
    50% { box-shadow: 0 0 0 10px rgba(39,174,96,0.08); }
}

/* Avatar in modal */
.block-modal-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 3px solid rgba(255,255,255,0.7);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.block-modal-avatar span {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.block-modal-avatar-ban {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 3px solid rgba(231,76,60,0.8);
}

.block-modal-avatar-ban::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    width: 70%;
    height: 3px;
    background: rgba(231,76,60,0.8);
    transform: rotate(-45deg);
    border-radius: 2px;
}

/* Title & Description */
.block-modal-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--clr-text-title);
    margin: 0;
    line-height: 1.3;
}

.block-modal-desc {
    font-size: 0.82rem;
    color: var(--clr-text-body);
    line-height: 1.55;
    margin: 0;
    max-width: 280px;
}

/* Action Buttons */
.block-modal-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 6px;
}

.block-modal-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 14px;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.block-modal-cancel {
    background: rgba(200,200,200,0.18);
    color: var(--clr-text-body);
    border: 1.5px solid rgba(200,200,200,0.3);
}

.block-modal-cancel:hover {
    background: rgba(200,200,200,0.3);
    transform: translateY(-1px);
}

.block-modal-confirm-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 16px rgba(231,76,60,0.35);
}

.block-modal-confirm-danger:hover {
    box-shadow: 0 6px 24px rgba(231,76,60,0.5);
    transform: translateY(-2px);
}

.block-modal-confirm-danger:active {
    transform: translateY(0) scale(0.97);
}

.block-modal-confirm-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 4px 16px rgba(39,174,96,0.35);
}

.block-modal-confirm-success:hover {
    box-shadow: 0 6px 24px rgba(39,174,96,0.5);
    transform: translateY(-2px);
}

.block-modal-confirm-success:active {
    transform: translateY(0) scale(0.97);
}

[data-theme="dark"] .block-modal-cancel {
    background: rgba(80,80,100,0.25);
    border-color: rgba(100,110,140,0.3);
    color: rgba(255,255,255,0.7);
}

/* ===== GROUP CHAT — CENACULO ===== */
#cenaculo-group-chat {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    max-height: calc(100vh - 120px);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(245,248,252,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200,230,255,0.25);
    position: relative;
}

[data-theme="dark"] #cenaculo-group-chat {
    background: rgba(15,20,35,0.4);
    border-color: rgba(80,110,160,0.2);
}

/* Group Chat Header */
.gc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(200,230,255,0.3);
    flex-shrink: 0;
    z-index: 10;
}

.gc-back-btn {
    background: none;
    border: none;
    color: var(--clr-text-title);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.15s;
}
.gc-back-btn:hover { background: rgba(46,139,192,0.08); }

.gc-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    cursor: pointer;
    min-width: 0;
}

.gc-header-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    border: 2.5px solid rgba(255,255,255,0.5);
}

.gc-header-text {
    min-width: 0;
}

.gc-header-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--clr-text-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.gc-header-members {
    font-size: 0.72rem;
    color: #27ae60;
    font-weight: 500;
}

.gc-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.gc-header-actions .icon-btn {
    color: var(--clr-primary);
    font-size: 1.1rem;
}

/* Pinned Message */
.gc-pinned {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.06));
    border-bottom: 1px solid rgba(99,102,241,0.12);
    flex-shrink: 0;
    font-size: 0.78rem;
    color: var(--clr-text-body);
    animation: fadeInUp 0.3s ease;
}

.gc-pinned i:first-child {
    color: #6366f1;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.gc-pinned span {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

[data-theme="dark"] .gc-pinned {
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
}

/* Messages Area */
.gc-messages {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Date Separator */
.gc-date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
}

.gc-date-separator span {
    background: rgba(99,102,241,0.1);
    color: #6366f1;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .gc-date-separator span {
    background: rgba(99,102,241,0.2);
    color: #a5b4fc;
}

/* Message Wrapper */
.gc-msg-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 82%;
    position: relative;
}

.gc-msg-wrapper.gc-sent {
    align-self: flex-end;
    align-items: flex-end;
}

.gc-msg-wrapper.gc-received {
    align-self: flex-start;
    align-items: flex-start;
}

/* Sender Row (avatar + name) */
.gc-msg-sender-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
    margin-top: 10px;
    padding-left: 2px;
}

.gc-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: white;
    font-size: 0.72rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.gc-msg-sender-name {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Message Bubble */
.gc-msg-bubble {
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.85rem;
    line-height: 1.5;
    animation: fadeInUp 0.3s ease;
    word-break: break-word;
}

.gc-bubble-sent {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-bottom-right-radius: 6px;
    box-shadow: 0 3px 12px rgba(99,102,241,0.3);
    margin-left: auto;
}

.gc-bubble-received {
    background: rgba(255,255,255,0.92);
    color: var(--clr-text-title);
    border-bottom-left-radius: 6px;
    border: 1px solid rgba(200,230,255,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-left: 36px;
    backdrop-filter: blur(8px);
}

.gc-bubble-continuation {
    margin-top: -1px;
    border-top-left-radius: 8px;
}

[data-theme="dark"] .gc-bubble-received {
    background: rgba(30,40,60,0.8);
    border-color: rgba(80,110,160,0.2);
}

.gc-msg-time {
    font-size: 0.62rem;
    margin-top: 4px;
    opacity: 0.55;
}

.gc-bubble-sent .gc-msg-time { text-align: right; }

/* Message Actions */
.gc-msg-actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    margin-top: 2px;
    padding: 0 4px;
}

.gc-msg-wrapper:hover .gc-msg-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

@media (hover: none) {
    .gc-msg-actions {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }
}

/* Media in group chat */
.gc-msg-bubble img,
.gc-msg-bubble video {
    max-width: 220px;
    border-radius: 12px;
    cursor: pointer;
}

/* Typing Indicator */
.gc-typing {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    font-size: 0.75rem;
    color: var(--clr-text-body);
    font-style: italic;
    flex-shrink: 0;
}

#gc-typing-name {
    font-weight: 600;
    font-style: normal;
    color: #6366f1;
}

/* Input Bar */
.gc-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(200,230,255,0.3);
    flex-shrink: 0;
}

[data-theme="dark"] .gc-input-bar {
    background: rgba(15,20,35,0.6);
}

.gc-attach-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--clr-text-body);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.2s, background 0.2s;
}
.gc-attach-btn:hover { color: #6366f1; background: rgba(99,102,241,0.08); }

.gc-input-bar input {
    flex: 1;
    border: 1.5px solid rgba(200,230,255,0.4);
    background: rgba(255,255,255,0.5);
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 0.88rem;
    color: var(--clr-text-title);
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

[data-theme="dark"] .gc-input-bar input {
    background: rgba(30,40,60,0.5);
    border-color: rgba(80,110,160,0.3);
}

.gc-input-bar input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.gc-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}

.gc-send-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(99,102,241,0.45); }
.gc-send-btn:active { transform: scale(0.95); }

/* ===== GROUP INFO PANEL ===== */
.gc-info-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 20;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease;
    overflow: hidden;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

[data-theme="dark"] .gc-info-panel {
    background: rgba(15,20,35,0.97);
}

.gc-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(200,230,255,0.3);
    flex-shrink: 0;
}

.gc-info-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--clr-text-title);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gc-info-header h4 i { color: #6366f1; }

.gc-info-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

.gc-info-avatar-section {
    text-align: center;
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(200,230,255,0.2);
}

.gc-info-big-avatar {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
    border: 3px solid rgba(255,255,255,0.5);
}

.gc-info-avatar-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-text-title);
    margin: 0 0 4px;
}

.gc-info-avatar-section span {
    font-size: 0.78rem;
    color: var(--clr-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.gc-info-members-section {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(200,230,255,0.2);
}

.gc-info-members-section h5,
.gc-info-media-section h5 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--clr-text-title);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gc-info-members-section h5 i,
.gc-info-media-section h5 i {
    color: #6366f1;
    font-size: 1rem;
}

.gc-info-members-section h5 span {
    font-weight: 500;
    color: var(--clr-text-muted);
    font-size: 0.75rem;
}

.gc-info-member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.gc-info-member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: white;
    font-size: 0.82rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gc-info-member-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.gc-info-member-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-title);
    display: flex;
    align-items: center;
    gap: 6px;
}

.gc-info-member-username {
    font-size: 0.7rem;
    color: var(--clr-text-muted);
}

.gc-role-badge {
    font-size: 0.6rem;
    padding: 1px 8px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gc-role-creator {
    background: rgba(99,102,241,0.12);
    color: #6366f1;
}

.gc-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--clr-border);
    flex-shrink: 0;
}

.gc-status-dot.gc-online {
    background: #27ae60;
    box-shadow: 0 0 6px rgba(39,174,96,0.5);
}

.gc-info-media-section {
    padding: 16px 20px;
}

.gc-info-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    border-radius: 12px;
    overflow: hidden;
}

.gc-info-media-grid img,
.gc-info-media-grid video {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
}

/* Call Overlay (keep existing) */
.call-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10,15,30,0.95), rgba(20,40,70,0.95));
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.call-overlay.call-fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.call-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

.call-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 2;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.call-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(61,163,212,0.4);
    animation: callPulse 2s ease-out infinite;
    z-index: 1;
}

.call-pulse-ring-2 {
    animation-delay: 0.6s;
}

@keyframes callPulse {
    0% { width: 120px; height: 120px; opacity: 1; }
    100% { width: 220px; height: 220px; opacity: 0; }
}

.call-name {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.call-status {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.call-ring-icon {
    animation: callRingWiggle 0.5s ease infinite;
    font-size: 1.2rem;
    color: #27ae60;
}

@keyframes callRingWiggle {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
}

.call-actions {
    margin-top: 40px;
    display: flex;
    gap: 30px;
}

.call-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
}

.call-btn:hover {
    transform: scale(1.1);
}

.call-btn:active {
    transform: scale(0.95);
}

.call-btn-decline {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 6px 24px rgba(231,76,60,0.5);
}

.call-btn-decline i {
    transform: rotate(135deg);
}

.call-btn-accept {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 6px 24px rgba(39,174,96,0.5);
}

.call-btn-accept i {
    font-size: 1.8rem;
}

.call-group-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.call-group-label i {
    font-size: 1rem;
    color: rgba(99,102,241,0.8);
}

/* Global Search */
.gsearch-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
}

.gsearch-modal {
    width: 90%;
    max-width: 560px;
    max-height: 70vh;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp 0.25s ease;
}

.gsearch-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(200, 230, 255, 0.4);
}

.gsearch-header i { font-size: 1.2rem; color: var(--clr-primary); flex-shrink: 0; }

.gsearch-header input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--clr-text-title);
    outline: none;
    font-family: 'Inter', sans-serif;
}

.gsearch-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--clr-text-body);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.gsearch-close:hover { color: #e74c3c; }

.gsearch-results {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.gsearch-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
    color: var(--clr-text-body);
}

.gsearch-empty i { font-size: 2.5rem; color: var(--clr-primary-light); }
.gsearch-empty p { font-size: 0.88rem; }

.gsearch-group { margin-bottom: 4px; }

.gsearch-group-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--clr-text-body);
    padding: 8px 18px 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gsearch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.15s;
}

.gsearch-item:hover { background: rgba(46, 139, 192, 0.06); }

.gsearch-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(61, 163, 212, 0.1), rgba(46, 139, 192, 0.15));
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--clr-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.gsearch-item-info { flex: 1; min-width: 0; }
.gsearch-item-info h4 { font-size: 0.88rem; font-weight: 600; color: var(--clr-text-title); }
.gsearch-item-info p { font-size: 0.76rem; color: var(--clr-text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gsearch-arrow { color: var(--clr-text-body); opacity: 0.4; font-size: 1.1rem; flex-shrink: 0; }

.gsearch-item-info mark {
    background: rgba(61, 163, 212, 0.2);
    color: var(--clr-primary-dark);
    border-radius: 2px;
    padding: 0 2px;
}

.gsearch-msg-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 10px rgba(46, 139, 192, 0.3);
}

.gsearch-msg-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(46, 139, 192, 0.4);
}

/* Apariciones Page */
.aparicion-card {
    padding: 18px 20px !important;
    position: relative;
    border-left: 3px solid var(--clr-primary);
    overflow: visible;
}

.aparicion-img {
    width: 100%;
    max-height: 280px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}



.aparicion-banner {
    width: calc(100% + 40px);
    height: 80px;
    margin: -18px -20px 14px -20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aparicion-banner span {
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 4px;
}

.aparicion-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-text-title);
    font-family: 'Crimson Text', serif;
    margin-bottom: 4px;
}

.aparicion-year {
    display: inline-block;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.aparicion-loc {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--clr-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.aparicion-card p {
    font-size: 0.84rem;
    color: var(--clr-text-body);
    line-height: 1.55;
}

.aparicion-note {
    display: flex;
    gap: 12px;
    padding: 16px 18px !important;
    background: rgba(46, 139, 192, 0.06) !important;
    border: 1px solid rgba(46, 139, 192, 0.15);
}

.aparicion-note-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.aparicion-note p {
    font-size: 0.82rem;
    color: var(--clr-text-body);
    line-height: 1.5;
}

/* Apariciones - Era Headers */
.aparicion-era-header {
    text-align: center;
    padding: 20px 18px !important;
    margin-top: 8px;
    border-left: none !important;
    background: linear-gradient(135deg, rgba(61, 163, 212, 0.08), rgba(46, 139, 192, 0.15)) !important;
    border: 1px solid rgba(46, 139, 192, 0.2) !important;
    position: relative;
    overflow: hidden;
}

.aparicion-era-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3DA3D4, #2E8BC0, transparent);
}

.aparicion-era-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 6px;
    line-height: 1;
}

.aparicion-era-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clr-text-title);
    font-family: 'Crimson Text', serif;
    margin-bottom: 6px;
}

.aparicion-era-period {
    display: inline-block;
    background: linear-gradient(135deg, rgba(61, 163, 212, 0.15), rgba(46, 139, 192, 0.2));
    color: var(--clr-primary-dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Apariciones - Detail Blocks (Historia / Legado) */
.aparicion-detail {
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(46, 139, 192, 0.04);
    border-radius: 12px;
    border-left: 3px solid var(--clr-primary-light);
}

.aparicion-detail h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clr-primary-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.aparicion-detail h4 i {
    font-size: 0.9rem;
    color: var(--clr-primary);
}

.aparicion-detail p {
    font-size: 0.84rem !important;
    color: var(--clr-text-body);
    line-height: 1.6;
    margin: 0;
}

.aparicion-legacy {
    background: rgba(39, 174, 96, 0.04);
    border-left-color: #56d992;
}

.aparicion-legacy h4 {
    color: #1e8a50;
}

.aparicion-legacy h4 i {
    color: #27ae60;
}

/* Evangelio del DÃ­a */
.evangelio-card {
    padding: 18px 20px !important;
    border-left: 3px solid #d4a843;
}

.evangelio-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.evangelio-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0c75e, #d4a843);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.evangelio-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--clr-text-title);
    font-family: 'Crimson Text', serif;
}

.evangelio-date {
    font-size: 0.75rem;
    color: var(--clr-text-body);
}

.evangelio-ref {
    display: inline-block;
    background: linear-gradient(135deg, #f0c75e, #d4a843);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.evangelio-text {
    font-size: 0.84rem;
    color: var(--clr-text-body);
    line-height: 1.6;
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    font-family: 'Crimson Text', serif;
}

.evangelio-text.expanded {
    max-height: 2000px;
}

.evangelio-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 20px;
    color: var(--clr-text-body);
    font-size: 0.85rem;
}

.ri-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.evangelio-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    border: none;
    background: rgba(212, 168, 67, 0.08);
    color: #d4a843;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
}

.evangelio-toggle:hover {
    background: rgba(212, 168, 67, 0.15);
}

.ev-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #d4a843;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ev-section {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(200, 230, 255, 0.2);
}

.ev-section:last-child { border-bottom: none; margin-bottom: 0; }

.ev-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--clr-primary-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ev-body {
    font-size: 0.84rem;
    color: var(--clr-text-body);
    line-height: 1.65;
    font-family: 'Crimson Text', serif;
}

.ev-chorus {
    font-size: 0.82rem;
    font-weight: 600;
    color: #d4a843;
    font-style: italic;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: rgba(212, 168, 67, 0.06);
    border-radius: 8px;
    border-left: 3px solid #d4a843;
}

.ev-gospel {
    background: rgba(212, 168, 67, 0.04);
    padding: 12px;
    border-radius: 10px;
    border-bottom: none !important;
}

.ev-commentary-title {
    font-size: 0.88rem;
    font-weight: 600;
    font-style: italic;
    color: var(--clr-text-title);
    margin-bottom: 8px;
    font-family: 'Crimson Text', serif;
}

.ev-author {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--clr-primary-dark);
    margin-top: 8px;
}

.ev-source {
    font-size: 0.7rem;
    color: var(--clr-text-body);
    font-style: italic;
}

/* Santo del DÃ­a */
.santo-card {
    padding: 18px 20px !important;
    border-left: 3px solid #27ae60;
}

.santo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.santo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #56d992, #27ae60);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.santo-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--clr-text-title);
    font-family: 'Crimson Text', serif;
}

.santo-date {
    font-size: 0.75rem;
    color: var(--clr-text-body);
}

.santo-main {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
}

.santo-img {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.santo-img-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    background: linear-gradient(135deg, #56d992, #27ae60);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.santo-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--clr-text-title);
    font-family: 'Crimson Text', serif;
    margin-bottom: 4px;
}

.santo-info .santo-subtitle {
    font-size: 0.75rem;
    color: var(--clr-primary);
    font-weight: 500;
    margin-bottom: 6px;
}

.santo-bio {
    font-size: 0.82rem;
    color: var(--clr-text-body);
    line-height: 1.55;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.santo-bio.expanded {
    max-height: 3000px;
}

.santo-bio p { margin-bottom: 8px; }

.santo-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    border: none;
    background: rgba(39, 174, 96, 0.08);
    color: #27ae60;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
}

.santo-toggle:hover {
    background: rgba(39, 174, 96, 0.15);
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
    .rezar-scrollarea {
        padding: 30px 60px;
        max-width: 900px;
        margin: 0 auto;
        width: 100%;
    }

    .rezar-hero h2 {
        font-size: 2.2rem;
    }

    .rezar-mystery-item img {
        width: 120px;
        height: 120px;
    }

    .rezar-days-grid {
        grid-template-columns: repeat(7, 1fr);
    }

    .rezar-steps {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .rezar-mystery-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .rezar-mystery-list .rezar-mystery-item:nth-child(5):last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }
}

/* ==================== IGLESIAS PAGE (Card Grid) ==================== */
.iglesias-scrollarea {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.iglesias-hero {
    text-align: center;
    padding: 24px 16px 8px;
}

.iglesias-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 14px;
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.4);
    animation: gentlePulse 3s ease-in-out infinite;
}

.iglesias-hero h2 {
    font-family: 'Crimson Text', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-text-title);
    margin-bottom: 6px;
}

.iglesias-hero p {
    font-size: 0.88rem;
    color: var(--clr-text-body);
}

.iglesias-search { padding: 4px 6px !important; }

.iglesias-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    border: 1.5px solid rgba(200, 230, 255, 0.4);
    transition: border-color 0.2s;
}

.iglesias-search-wrapper:focus-within {
    border-color: var(--clr-primary);
}

.iglesias-search-wrapper i {
    font-size: 1.1rem;
    color: var(--clr-text-body);
}

.iglesias-search-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--clr-text-title);
    outline: none;
    font-family: 'Inter', sans-serif;
}

[data-theme="dark"] .iglesias-search-wrapper {
    background: rgba(30, 40, 60, 0.5);
    border-color: rgba(100, 130, 180, 0.3);
}

/* Zone Card Grid */
.iglesias-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ig-zona-card {
    border-radius: 16px !important;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 0 !important;
    position: relative;
}

.ig-zona-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.ig-zona-card:active {
    transform: scale(0.97);
}

.ig-zona-accent {
    height: 5px;
    width: 100%;
}

.ig-zona-body {
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ig-zona-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ig-zona-text {
    flex: 1;
    min-width: 0;
}

.ig-zona-text h4 {
    font-family: 'Crimson Text', serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--clr-text-title);
    line-height: 1.2;
    margin-bottom: 2px;
}

.ig-zona-sub {
    font-size: 0.65rem;
    color: var(--clr-text-body);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.ig-zona-badge {
    position: absolute;
    top: 14px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--clr-text-title);
}

/* Detail Panel */
.iglesias-detail-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    animation: igPanelIn 0.3s ease-out;
}

@keyframes igPanelIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.iglesias-detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    flex-shrink: 0;
    z-index: 5;
}

.iglesias-detail-header h3 {
    flex: 1;
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-text-title);
}

.iglesias-detail-count {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
}

.iglesias-detail-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Detail Items */
.ig-detail-nota {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.78rem;
    color: var(--clr-text-body);
    background: rgba(255,255,255,0.4);
    border-radius: 12px;
    margin-bottom: 4px;
}

.ig-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    transition: transform 0.2s ease;
    animation: igItemIn 0.3s ease-out backwards;
}

@keyframes igItemIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ig-detail-item:hover {
    transform: translateX(3px);
}

.ig-detail-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.ig-detail-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ig-detail-info h4 {
    font-family: 'Crimson Text', serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--clr-text-title);
    line-height: 1.3;
}

.ig-detail-dir {
    font-size: 0.74rem;
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ig-detail-dir i {
    font-size: 0.72rem;
    flex-shrink: 0;
}

.ig-detail-hora {
    font-size: 0.73rem;
    color: var(--clr-text-body);
    display: flex;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.4;
}

.ig-detail-hora i {
    font-size: 0.72rem;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--clr-primary);
}

.ig-search-zone {
    font-size: 0.68rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
}

/* Search Results */
.iglesias-search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ig-results-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--clr-text-body);
    padding: 4px 0;
}

.ig-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--clr-text-body);
}

.ig-no-results i {
    font-size: 2.5rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 12px;
}

.ig-no-results p {
    font-size: 0.88rem;
}

/* Resumen Card */
.iglesia-resumen {
    text-align: center;
    padding: 20px !important;
    margin-top: 8px;
}

.iglesia-resumen-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: white;
    margin: 0 auto 10px;
}

.iglesia-resumen h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--clr-text-title);
    margin-bottom: 6px;
}

.iglesia-resumen p {
    font-size: 0.82rem;
    color: var(--clr-text-body);
    line-height: 1.5;
}

/* Iglesias Desktop */
@media (min-width: 900px) {
    .iglesias-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .iglesias-scrollarea {
        max-width: 900px;
        margin: 0 auto;
        width: 100%;
        padding: 20px 40px;
    }

    .iglesias-detail-scroll {
        max-width: 800px;
        margin: 0 auto;
        width: 100%;
    }
}


/* ==================== CHAT / MENSAJES ==================== */
#screen-chat {
    display: flex;
    flex-direction: column;
}

/* Contacts View */
.chat-contacts-view {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.chat-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 12px 16px 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    border: 1.5px solid rgba(200, 230, 255, 0.4);
    transition: border-color 0.2s;
}

[data-theme="dark"] .chat-search-bar {
    background: rgba(30, 40, 60, 0.5);
    border-color: rgba(100, 130, 180, 0.3);
}

.chat-search-bar:focus-within {
    border-color: var(--clr-primary);
}

.chat-search-bar i {
    font-size: 1.1rem;
    color: var(--clr-text-body);
}

.chat-search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.88rem;
    color: var(--clr-text-title);
    outline: none;
    font-family: 'Inter', sans-serif;
}

.chat-contacts-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px 16px;
}

.chat-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-bottom: 4px;
}

.chat-contact:hover {
    background: rgba(46, 139, 192, 0.06);
    transform: translateX(2px);
}

.chat-contact:active {
    transform: scale(0.98);
}

.chat-contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.chat-contact-info {
    flex: 1;
    min-width: 0;
}

.chat-contact-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--clr-text-title);
    margin-bottom: 2px;
}

.chat-last-msg {
    font-size: 0.78rem;
    color: var(--clr-text-body);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.chat-contact-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.chat-time {
    font-size: 0.7rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

.chat-unread {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0 5px;
}

/* Conversation View */
.chat-conversation-view {
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.chat-conv-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(200, 230, 255, 0.2);
}

.chat-conv-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.chat-conv-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.chat-conv-user h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--clr-text-title);
    margin: 0;
}

.chat-conv-status {
    font-size: 0.7rem;
    color: #27ae60;
    font-weight: 500;
}

/* Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-msg {
    max-width: 75%;
    padding: 8px 14px 6px;
    border-radius: 18px;
    font-size: 0.84rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    animation: msgSlideIn 0.25s ease-out;
    transition: transform 0.1s ease;
}

.chat-msg:active {
    transform: scale(0.985);
}

@keyframes msgSlideIn {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-msg.sent {
    align-self: flex-end;
    background: #2E8BC0;
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: none;
}

.chat-msg:not(.sent) {
    align-self: flex-start;
    background: #f0f0f0;
    color: var(--clr-text-title);
    border: none;
    border-bottom-left-radius: 4px;
    box-shadow: none;
}

[data-theme="dark"] .chat-msg:not(.sent) {
    background: #2a3347;
    border: none;
    box-shadow: none;
}

/* Sender name label */
.chat-msg-sender {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
    opacity: 0.7;
}
.chat-msg.sent .chat-msg-sender {
    color: rgba(255,255,255,0.75);
    text-align: right;
}
.chat-msg:not(.sent) .chat-msg-sender {
    color: #2E8BC0;
}
[data-theme="dark"] .chat-msg:not(.sent) .chat-msg-sender {
    color: #5bb8e8;
}

/* Message text */
.chat-msg-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Meta (time + read) */
.chat-msg-meta {
    font-size: 0.6rem;
    opacity: 0.55;
    margin-top: 3px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.chat-msg.sent .chat-msg-meta {
    color: rgba(255,255,255,0.7);
}


/* Input Bar */
.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(200, 230, 255, 0.2);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .chat-input-bar {
    background: rgba(15, 20, 35, 0.6);
}

.chat-input-bar input {
    flex: 1;
    border: 1.5px solid rgba(200, 230, 255, 0.4);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 0.88rem;
    color: var(--clr-text-title);
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

[data-theme="dark"] .chat-input-bar input {
    background: rgba(30, 40, 60, 0.5);
    border: none;
}

.chat-input-bar input:focus {
    border-color: var(--clr-primary);
}

.chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(46, 139, 192, 0.35);
}

.chat-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(46, 139, 192, 0.45);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

/* Desktop Chat */
@media (min-width: 1024px) {
    .chat-contacts-list {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

    .chat-search-bar {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .chat-messages {
        max-width: 700px;
        margin: 0 auto;
        width: 100%;
    }

    .chat-input-bar {
        max-width: 700px;
        margin: 0 auto;
        width: 100%;
    }
}

/* ===== REZAR / REZO SCREEN ===== */
#screen-rezo {
    padding-top: 0;
    background: url('assets/sky_bg.png') center top / cover no-repeat;
}

.unirme-bg {
    background: url('assets/sky_bg.png') center top / cover no-repeat;
}

.rezo-topbar {
    position: relative;
    z-index: 10;
}

.unirme-scrollarea {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Event Card */
.rz-event-card {
    position: relative;
    padding: 0 !important;
    overflow: visible;
}

.rz-event-card.glass.card {
    padding: 0;
}

.rz-event-accent {
    height: 5px;
    background: linear-gradient(90deg, #3DA3D4, #2E8BC0, #27ae60);
    border-radius: 20px 20px 0 0;
}

.rz-event-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px 10px;
}

.rz-event-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(46, 139, 192, 0.3);
}

.rz-event-info {
    flex: 1;
    min-width: 0;
}

.rz-event-info h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--clr-text-title);
    margin-bottom: 4px;
}

.rz-event-info p {
    font-size: 0.82rem;
    color: var(--clr-text-body);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rz-event-info p i {
    font-size: 0.9rem;
    color: var(--clr-primary);
}

/* Live Badge */
.rz-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.35);
    flex-shrink: 0;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 3px 12px rgba(239, 68, 68, 0.35); }
    50% { box-shadow: 0 3px 20px rgba(239, 68, 68, 0.55); }
}

/* Pulse Dot */
.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.3);
    animation: pulseDotAnim 1.5s ease-in-out infinite;
}

.pulse-dot.small {
    width: 8px;
    height: 8px;
}

.pulse-dot.small::before {
    top: -2px;
    left: -2px;
    width: 12px;
    height: 12px;
}

@keyframes pulseDotAnim {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.6); opacity: 0; }
}

/* Intention in Event Card */
.rz-intention {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 18px;
    font-size: 0.88rem;
    color: var(--clr-text-body);
}

.rz-intention i {
    font-size: 1.1rem;
}

.rz-intention span {
    font-weight: 500;
    color: var(--clr-text-title);
}

/* Coordinator Card */
.rz-coordinator {
    padding: 16px 20px;
}

.rz-coord-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rz-coord-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C4B5FD, #8B5CF6);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 3px solid white;
    box-shadow: 0 3px 12px rgba(139, 92, 246, 0.3);
}

.rz-coord-info {
    flex: 1;
}

.rz-coord-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rz-coord-label i {
    font-size: 0.85rem;
    color: #f0a500;
}

.rz-coord-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text-title);
    margin-top: 2px;
}

.rz-coord-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #27ae60;
    flex-shrink: 0;
}

/* Online Counter */
.rz-counter-section {
    display: flex;
    justify-content: center;
}

.rz-counter {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    width: 100%;
}

.rz-counter-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(61, 163, 212, 0.12), rgba(46, 139, 192, 0.08));
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.rz-counter-ring-inner {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--clr-primary);
    border-right-color: var(--clr-primary);
    animation: counterSpin 3s linear infinite;
}

@keyframes counterSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rz-counter-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--clr-text-title);
    font-family: 'Inter', sans-serif;
    z-index: 1;
}

.rz-counter-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rz-counter-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text-title);
}

.rz-counter-sub {
    font-size: 0.78rem;
    color: var(--clr-text-body);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Sections (Confirmados, Participantes, Intenciones) */
.rz-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rz-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rz-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.rz-section-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text-title);
    flex: 1;
}

.rz-section-badge {
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

/* Confirmed List */
.confirmed-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.confirmed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    transition: transform 0.2s;
}

.confirmed-item:hover {
    transform: translateX(4px);
}

.confirmed-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.confirmed-name {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--clr-text-title);
}

.confirmed-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 600;
}

/* Participants Grid */
.participants-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.participant-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--clr-text-title);
    transition: transform 0.2s, box-shadow 0.2s;
}

.participant-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(46, 139, 192, 0.15);
}

.participant-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: white;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.rz-overflow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--clr-text-body);
}

.rz-overflow i {
    color: var(--clr-primary);
}

/* Intentions List */
.rz-intentions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rz-intention-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    transition: transform 0.2s;
}

.rz-intention-item:hover {
    transform: translateX(4px);
}

.rz-int-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rz-int-content {
    flex: 1;
    min-width: 0;
}

.rz-int-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--clr-text-title);
}

.rz-int-content p {
    font-size: 0.82rem;
    color: var(--clr-text-body);
    margin-top: 3px;
    line-height: 1.4;
}

.rz-int-time {
    font-size: 0.7rem;
    color: var(--clr-text-body);
    flex-shrink: 0;
    white-space: nowrap;
}

/* Actions */
.rz-actions {
    padding-top: 8px;
    padding-bottom: 20px;
}

.rz-videocall-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 22px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    border-radius: 18px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.35);
}

.rz-videocall-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(39, 174, 96, 0.45);
}

.rz-videocall-btn:active {
    transform: scale(0.98);
}

.rz-vc-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.rz-videocall-btn span {
    flex: 1;
    text-align: left;
}

.rz-videocall-btn > i:last-child {
    font-size: 1.1rem;
    opacity: 0.7;
}

.rz-vc-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    font-size: 0.82rem;
    color: var(--clr-text-body);
    background: rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    margin-top: 10px;
}

.rz-vc-lock i {
    color: #e67e22;
}

/* Join Button in Rezo */
.btn-join-rezo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
}

/* Desktop layout for Rezar */
@media (min-width: 1024px) {
    #screen-rezo {
        padding-top: 72px;
    }

    .unirme-scrollarea {
        max-width: 700px;
        margin: 0 auto;
        width: 100%;
        padding: 24px 20px;
    }

    .rz-event-info h3 {
        font-size: 1.5rem;
    }

    .rz-counter {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 1023px) {
    #screen-rezo {
        padding-top: 50px;
    }
}

/* Add Intention Form */
.rz-add-intention {
    padding: 12px 16px !important;
}

.rz-add-intention-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rz-add-intention-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(46, 139, 192, 0.2);
}

.rz-add-intention-input {
    flex: 1;
    border: 1.5px solid rgba(46, 139, 192, 0.2);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    color: var(--clr-text-title);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.rz-add-intention-input:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(61, 163, 212, 0.12);
    background: rgba(255, 255, 255, 0.85);
}

.rz-add-intention-input::placeholder {
    color: #a0bdd0;
}

.rz-add-intention-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.35);
}

.rz-add-intention-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.45);
}

.rz-add-intention-btn:active {
    transform: scale(0.95);
}

/* No Intentions Empty State */
.rz-no-intentions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    text-align: center;
    color: var(--clr-text-body);
}

.rz-no-intentions i {
    font-size: 2rem;
    color: var(--clr-primary-light);
}

.rz-no-intentions p {
    font-size: 0.85rem;
}

/* Intention item animation */
.rz-intention-item {
    animation: fadeInUp 0.3s ease-out both;
}

/* Intention Numbering */
.rz-int-num {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--clr-primary);
    background: rgba(61, 163, 212, 0.1);
    padding: 2px 7px;
    border-radius: 8px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

/* Right side (time + heart) */
.rz-int-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

/* Heart area */
.rz-int-heart-area {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rz-int-heart-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    color: #ccc;
    padding: 3px;
    transition: transform 0.2s, color 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rz-int-heart-btn:hover {
    transform: scale(1.15);
    color: #E8A0BF;
}

.rz-int-heart-btn.liked {
    color: #e74c3c;
}

.rz-int-heart-btn.liked i {
    font-weight: 700;
}

.rz-int-heart-count {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--clr-text-body);
    min-width: 12px;
    text-align: center;
    line-height: 1;
}

.rz-int-heart-btn.liked ~ .rz-int-heart-count {
    color: #e74c3c;
}

/* Actions row (heart + message) */
.rz-int-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rz-int-msg-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--clr-primary);
    padding: 4px;
    transition: transform 0.2s, color 0.2s, background 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    opacity: 0.7;
}

.rz-int-msg-btn:hover {
    transform: scale(1.15);
    opacity: 1;
    background: rgba(46, 139, 192, 0.1);
}

.rz-int-msg-btn:active {
    transform: scale(0.95);
}

.rz-int-block-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #ccc;
    padding: 4px;
    transition: transform 0.2s, color 0.2s, background 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    opacity: 0.5;
}

.rz-int-block-btn:hover {
    transform: scale(1.15);
    opacity: 1;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.rz-int-block-btn:active {
    transform: scale(0.9);
}

/* Chat Image Preview */
.chat-img-preview {
    max-width: 100%;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: transform 0.15s ease;
}
.chat-img-preview:hover {
    transform: scale(1.02);
}
.chat-img-preview:active {
    transform: scale(0.98);
}
/* Inline message action buttons (horizontal) */
.msg-inline-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.chat-msg:hover .msg-inline-actions,
.chat-msg:active .msg-inline-actions {
    opacity: 1;
}
@media (hover: none) {
    .msg-inline-actions { opacity: 0.6; }
}
.msg-inline-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    transition: all 0.15s ease;
    padding: 0;
}
.chat-msg:not(.sent) .msg-inline-btn {
    color: var(--clr-text-muted);
}
.chat-msg:not(.sent) .msg-inline-btn:hover {
    background: rgba(46,139,192,0.08);
    color: #2E8BC0;
}
.chat-msg.sent .msg-inline-btn {
    color: rgba(255,255,255,0.5);
}
.chat-msg.sent .msg-inline-btn:hover {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
}
.msg-inline-btn:active {
    transform: scale(0.85);
}

/* Message wrapper (bubble + outside actions) */
.msg-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 80%;
}
.msg-wrapper.sent {
    align-self: flex-end;
    align-items: flex-end;
}
.msg-wrapper:not(.sent) {
    align-self: flex-start;
}

/* Action buttons outside the bubble */
.msg-outer-actions {
    display: flex;
    gap: 14px;
    padding: 2px 6px;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.msg-outer-actions.sent {
    justify-content: flex-end;
}
.msg-wrapper:hover .msg-outer-actions,
.msg-wrapper:active .msg-outer-actions {
    opacity: 1;
}
@media (hover: none) {
    .msg-outer-actions { opacity: 0.5; }
}
.msg-outer-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.78rem;
    padding: 2px 4px;
    color: var(--clr-text-muted);
    opacity: 0.6;
    transition: all 0.15s ease;
}
.msg-outer-btn:hover {
    opacity: 1;
    color: #2E8BC0;
}
.msg-outer-btn:active {
    transform: scale(0.85);
}

/* ========================================= */
/* ACCORDION - REZAR PAGE                     */
/* ========================================= */
.rzr-accordion {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s;
}
.rzr-accordion.open {
    box-shadow: 0 6px 24px rgba(46,139,192,0.12);
}
.rzr-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text-title);
    font-family: 'Crimson Text', serif;
    text-align: left;
    transition: background 0.2s;
}
.rzr-accordion-header:hover {
    background: rgba(255,255,255,0.25);
}
.rzr-acc-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.rzr-accordion-header span {
    flex: 1;
}
.rzr-chevron {
    font-size: 1.2rem;
    color: var(--clr-text-muted, #999);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.rzr-accordion.open .rzr-chevron {
    transform: rotate(180deg);
}
.rzr-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 18px;
}
.rzr-accordion.open .rzr-accordion-body {
    max-height: 5000px;
    padding: 0 18px 20px;
}
.rzr-accordion-body p {
    font-size: 0.88rem;
    color: var(--clr-text-body);
    line-height: 1.6;
    margin-bottom: 8px;
}
.rzr-accordion-body p strong {
    color: var(--clr-text-title);
}
.rzr-day-tag {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.3);
    color: var(--clr-text-muted, #888);
    white-space: nowrap;
}

/* Steps inside accordion */
.rzr-step {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    align-items: flex-start;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.rzr-step:last-child { border-bottom: none; }
.rzr-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(46,139,192,0.2);
}
.rzr-step strong {
    display: block;
    font-size: 0.9rem;
    color: var(--clr-text-title);
    margin-bottom: 4px;
}
.rzr-prayer {
    font-size: 0.8rem;
    color: var(--clr-text-body);
    line-height: 1.6;
    font-style: italic;
    background: rgba(255,255,255,0.4);
    padding: 8px 12px;
    border-radius: 10px;
    border-left: 3px solid var(--clr-primary-light, #A8D8EA);
    margin-top: 4px;
}

/* Days grid */
.rzr-days-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rzr-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.45);
    border-radius: 10px;
    transition: transform 0.2s;
}
.rzr-day:hover { transform: scale(1.02); }
.rzr-day span:first-child {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-title);
}
.rzr-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    color: white;
}
.rzr-badge.gozoso { background: linear-gradient(135deg, #56d992, #27ae60); }
.rzr-badge.doloroso { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.rzr-badge.glorioso { background: linear-gradient(135deg, #f0a500, #d4940a); }
.rzr-badge.luminoso { background: linear-gradient(135deg, #3DA3D4, #2E8BC0); }

/* Mystery items */
.rzr-mystery {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.35);
    border-radius: 14px;
    align-items: flex-start;
    position: relative;
    margin-bottom: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.rzr-mystery:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.rzr-mystery:last-child { margin-bottom: 0; }
.rzr-m-num {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3DA3D4, #2E8BC0);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(46,139,192,0.3);
}
.rzr-mystery img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.rzr-m-info {
    flex: 1;
    min-width: 0;
}
.rzr-m-info h4 {
    font-size: 0.9rem;
    color: var(--clr-text-title);
    font-weight: 600;
    margin-bottom: 4px;
    font-family: 'Crimson Text', serif;
}
.rzr-m-info p {
    font-size: 0.8rem;
    color: var(--clr-text-body);
    line-height: 1.5;
    margin-bottom: 4px;
}
.rzr-med {
    font-size: 0.78rem !important;
    color: var(--clr-primary-dark, #2E8BC0) !important;
    font-style: italic;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}
.rzr-med i {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.rzr-fruit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #27ae60;
    background: rgba(39,174,96,0.08);
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 4px;
}
.rzr-fruit i {
    font-size: 0.75rem;
}

/* Desktop fixes for como-rezar */
@media (min-width: 1024px) {
    #screen-como-rezar {
        padding-top: 80px;
        overflow-y: auto;
    }
    #screen-como-rezar .top-bar {
        display: none;
    }
    .rezar-scrollarea {
        padding: 30px 40px;
        max-width: 860px;
    }
    .rzr-accordion {
        background: rgba(255,255,255,0.55);
    }
    .rzr-accordion-header {
        padding: 18px 24px;
        font-size: 1.1rem;
    }
    .rzr-mystery img {
        width: 90px;
        height: 90px;
    }
}

/* Mobile image constraints */
@media (max-width: 1023px) {
    .rzr-mystery img {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    .rzr-accordion-body {
        padding: 0 14px;
    }
    .rzr-accordion.open .rzr-accordion-body {
        padding: 0 14px 16px;
    }
}
