:root {
    --primary: #2c3e50;
    --accent: #000;
    --success: #27ae60;
    --light: #ecf0f1;
}
body {
    font-family: 'Inter', sans-serif;
    background: #f3f3f3;
    color: #333;
    margin: 0;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2c3e50;
    color: white;
    padding: 10px 20px;
    margin-bottom: 25px;
}
nav a {
    color: #ecf0f1;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
}

/* --- CARDS & GENERAL --- */
.devotional-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
h1 { color: #2980b9; margin-top: 0; }
.reading-tag { display: inline-block; background: #e8f4fd; color: #2980b9; padding: 5px 15px; border-radius: 20px; font-weight: bold; margin-bottom: 20px; }
.btn-check { background: #27ae60; color: white; border: none; padding: 12px 20px; border-radius: 5px; cursor: pointer; width: 100%; font-size: 16px; margin-top: 20px; }
.btn-check:hover { background: #219150; }
input { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; }

/* --- NAVIGATION --- */
.nav-links {
    display: flex;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    margin-right: 20px;
    font-size: 0.95em;
    transition: 0.3s;
}
.nav-links a:hover { color: #e9e9e9; }
.nav-user { color: #bdc3c7; font-size: 0.9em; }

/* --- TABLES --- */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.history-table th, .history-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #eee;
}
.history-table th { background-color: #f8f9fa; color: #7f8c8d; }

/* --- BADGES & ALERTS --- */
.badge {
    background: #e8f4fd;
    color: #2980b9;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
}
.alert {
    padding: 20px;
    background: #fff3cd;
    color: #856404;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

/* --- HERO SECTION --- */
.reading-hero { background: white; padding: 50px; border-radius: 20px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.reading-hero h4 { color: var(--accent); letter-spacing: 2px; margin: 0; }
.reading-hero h1 { font-size: 3.5rem; margin: 10px 0; color: var(--primary); }
.main-passage { font-size: 1.5rem; color: #7f8c8d; margin-bottom: 30px; }

/* --- CALENDAR GRID --- */
.calendar-grid { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 10px; 
    background: white; 
    padding: 15px; 
    border-radius: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.day-cell { 
    min-height: 80px; 
    padding: 10px; 
    border: 1px solid #edf2f7; 
    border-radius: 8px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    text-decoration: none; 
    transition: 0.2s; 
    position: relative !important;
}
.day-cell:hover { transform: translateY(-5px); border-color: var(--accent); }
.day-cell .num { display: block; font-weight: bold; color: var(--primary); }
.day-cell .ref { font-size: 0.75rem; color: #95a5a6; }

/* --- CHECKBOXES --- */
.check-section { background: #f8f9fa; padding: 20px; border-radius: 15px; margin: 20px 0; }
.check-item { display: flex; align-items: center; padding: 12px; background: white; margin-bottom: 10px; border-radius: 8px; cursor: pointer; border: 1px solid #eee; }
.check-item input { width: 20px; height: 20px; margin-right: 15px; cursor: pointer; }

/* --- BUTTONS --- */
.btn-primary { background: var(--accent); color: white; padding: 12px 25px; border-radius: 30px; text-decoration: none; display: inline-block; transition: 0.3s; }
.btn-primary:hover { background: white; color: #e9e9e9; transition: 0.3s; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

/* --- PROGRESS BARS --- */
.progress-container { background: white; padding: 20px; border-radius: 15px; margin-bottom: 25px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: bold; color: var(--primary); }
.progress-bar-bg { background: #eee; height: 12px; border-radius: 10px; overflow: hidden; }
.progress-bar-fill { background: var(--success); height: 100%; transition: width 0.5s ease; }

/* --- LOCKED / INACTIVE DAYS --- */
.day-cell.locked { 
    background: #f8f9fa !important; 
    opacity: 0.6; 
    cursor: not-allowed; 
    border: 1px dashed #cbd5e0 !important; 
}
.day-cell.locked .num { color: #999; }
.day-cell.locked .ref { color: #ccc; font-style: italic; }
.day-cell.locked .status { color: #a0aec0; font-size: 0.9rem; }

/* --- NOTIFICATIONS --- */
.notification {
    position: fixed; top: 20px; right: 20px; background: var(--success); color: white;
    padding: 15px 25px; border-radius: 8px; transform: translateY(-100px);
    transition: 0.4s; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.notification.show { transform: translateY(0); }

/* --- CALENDAR DETAILS --- */
.day-name {
    text-align: center;
    font-weight: bold;
    color: #7f8c8d;
    padding-bottom: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
}
.day-cell.active { background: #fff; color: #2d3748; border-bottom: 3px solid #e9e9e9; position: relative; }
.day-cell.active:hover { background: #f7fafc; transform: scale(1.03); }

.day-num { font-weight: bold; font-size: 1.1rem; }
.plan-ref { font-size: 0.7rem; color: #e9e9e9; font-weight: bold; }

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-nav {
    text-decoration: none;
    background: #2c3e50;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.status {
    font-size: 0.8rem;
    text-align: right;
    position: absolute !important;
    bottom: 5px !important;
    right: 8px !important;
    display: block !important;
    z-index: 10;
}
.status.visto { font-size: 0.8rem; color: #24f03b; }

/* Highlight "Today" in menu */
.nav-links a[href*="day.php?day="] {
    background: rgba(241, 196, 15, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #f1c40f;
}

/* Today Highlight in Calendar */
.today-highlight {
    border: 2px solid #f1c40f !important;
    background-color: #fffdec !important;
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.3);
}

/* --- DAILY NAVIGATION --- */
.daily-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
}
.nav-prev, .nav-next { flex: 1; }
.nav-next { text-align: right; }

.btn-nav-lateral {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.btn-nav-lateral i { width: 18px; height: 18px; stroke-width: 2.5px; color: #222222; }
.btn-nav-lateral:hover {
    background: #f8fafc;
    border-color: #222222;
    color: #222222;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

/* --- CHECK HEADER & MINI PROGRESS --- */
.check-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}
.mini-progress-bar {
    background: #edf2f7;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}
.mini-progress-bar .fill {
    background: #27ae60;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.text-left { font-size: 1.1rem; }
.text-right { color: #7f8c8d; }

/* Fully Completed Day (Calendar) */
.fully-completed {
    border: 2px solid #27ae60 !important;
    background-color: #ebfbee !important;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.2);
}
.fully-completed .plan-ref { color: #1e8449 !important; }

/* Success Alert */
.success-alert {
    margin-top: 30px;
    padding: 20px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- PROFILE PAGE --- */
.profile-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.large-avatar {
    font-size: 80px;
    background: #f0f2f5;
    width: 120px;
    height: 120px;
    line-height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}
.stat-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}
.stat-val { display: block; font-size: 2rem; font-weight: bold; color: #2c3e50; }
.stat-lbl { color: #7f8c8d; font-size: 0.9rem; text-transform: uppercase; }
.motivational-msg { font-style: italic; color: #e9e9e9; margin-top: 20px; }

/* --- HOME HERO & BUTTONS --- */
.nav-left { display: flex; align-items: center; gap: 30px; }
.logo-menu { height: 40px; margin-right: 20px; vertical-align: middle; }
.public-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135px, #2c3e50, #e9e9e9);
    color: white;
    border-radius: 20px;
    margin-bottom: 40px;
}
.public-hero h1 { font-size: 2.5rem; margin-bottom: 15px; }
.home-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}
.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #222222;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-login:hover { background: #2563eb; }
.user-name { color: #ecf0f1; margin-right: 15px; font-size: 0.9em; font-weight: 300; }
.btn-logout {
    background-color: #e74c3c;
    color: white !important;
    padding: 6px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85em;
}
.btn-logout:hover { background-color: #c0392b; }

/* --- NAVBAR --- */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.logo-img { height: 35px; width: auto; }
.nav-links { display: flex; gap: 20px; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.nav-item i { width: 18px; height: 18px; stroke-width: 2; }
.nav-item:hover { color: #222222; }
.nav-item.highlight {
    color: #222222;
    background: #eff6ff;
    padding: 6px 12px;
    border-radius: 20px;
}
.admin-link { color: #f59e0b !important; }
.nav-right { display: flex; align-items: center; }
.user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    padding: 5px 5px 5px 15px;
    border-radius: 25px;
}
.user-name { font-weight: 600; font-size: 0.9rem; color: #1e293b; }
.logout-icon {
    background: white;
    color: #ef4444;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s;
}
.logout-icon:hover { transform: scale(1.1); }

/* --- MOBILE TAB BAR --- */
.mobile-tab-bar { display: none; }
@media (max-width: 768px) {
    .mobile-tab-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        justify-content: space-around;
        align-items: center;
        z-index: 2000;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
    .navbar .nav-links { display: none; }
    .tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #94a3b8;
        font-size: 0.7rem;
        gap: 4px;
        flex: 1;
        transition: color 0.2s;
    }
    .tab-item i { width: 24px; height: 24px; stroke-width: 2px; }
    .tab-item.active { color: #222222; }
    .tab-item.active i { stroke-width: 2.5px; }
    body { padding-bottom: 80px; }
}

/* --- HERO BANNER --- */
.hero-banner {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://images.unsplash.com/photo-1504052434569-70ad5836ab65?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
    text-align: center;
}
.hero-content h1 { font-size: 2.8rem; margin-bottom: 10px; }
.hero-btns { display: flex; justify-content: center; gap: 15px; margin-top: 25px; }
.btn-hero { padding: 12px 25px; border-radius: 30px; text-decoration: none; font-weight: bold; transition: 0.3s; }
.btn-hero.primary { background: #222222; color: white; }
.btn-hero.primary:hover { background: #000; color: white; }
.btn-hero.secondary { background: white; color: #2c3e50; }
.btn-hero.secondary:hover { background: #000; color: white; }

/* --- HOME TEXT & CARDS --- */
.text-section { text-align: center; margin: 50px 0; }
.verse { font-style: italic; font-size: 1.4rem; color: #2c3e50; border-left: 4px solid #222222; padding-left: 20px; display: inline-block; max-width: 600px; }
.verse span { display: block; margin-top: 10px; font-weight: bold; font-style: normal; font-size: 1rem; }
.plan-description { margin-top: 30px; color: #64748b; line-height: 1.8; font-size: 1.1rem; }

.today-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 20px; padding: 30px; margin-bottom: 40px; text-align: center; }
.today-badge { background: #dbeafe; color: #1e40af; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }
.passages-flex { display: flex; justify-content: center; gap: 20px; margin: 20px 0; color: #475569; }
.passages-flex span { display: flex; align-items: center; gap: 5px; }

/* --- PILLARS GRID --- */
.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pillar-item { background: white; padding: 30px; border-radius: 15px; text-align: center; border: 1px solid #f1f5f9; }
.pillar-item i { width: 40px; height: 40px; color: #222222; margin-bottom: 15px; }

/* --- ACCESS SECTION --- */
.access-section { background: #1e293b; color: white; padding: 40px; border-radius: 20px; text-align: center; margin-bottom: 50px; }
.btn-login-main { display: inline-block; margin-top: 15px; background: #222222; color: white; padding: 10px 30px; border-radius: 30px; text-decoration: none; }
.home-progress { color: white; }

@media (max-width: 768px) {
    .pillars-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
    .hero-btns { flex-direction: column; }
    .passages-flex { flex-direction: column; gap: 10px; }
}

/* --- FOOTER --- */
.main-footer { background-color: #1e293b; color: #f8fafc; padding: 60px 0 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 40px; filter: brightness(0) invert(1); margin-bottom: 15px; }
.footer-brand p { color: #94a3b8; line-height: 1.6; max-width: 300px; }
.footer-links h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: #94a3b8; text-decoration: none; transition: color 0.3s; }
.footer-links ul li a:hover { color: #222222; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 20px; text-align: center; font-size: 0.9rem; color: #64748b; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 0 auto; }
    .main-footer { padding-bottom: 100px; }
}

/* --- SHARE --- */
.share-section { margin-top: 40px; padding-top: 30px; border-top: 1px dashed #e2e8f0; text-align: center; }
.share-section p { color: #64748b; font-size: 0.95rem; margin-bottom: 15px; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 10px; background-color: #25D366; color: white !important; padding: 12px 25px; border-radius: 30px; text-decoration: none; font-weight: 600; transition: transform 0.3s, background-color 0.3s; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2); }
.btn-whatsapp:hover { background-color: #128C7E; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3); }
.btn-whatsapp i { width: 20px; height: 20px; stroke-width: 2.5px; }
@media (max-width: 480px) { .btn-whatsapp { width: 100%; justify-content: center; } }

/* --- QUESTIONS/CONTACT --- */
.questions-intro { text-align: center; padding: 40px 0; max-width: 700px; margin: 0 auto; }
.icon-circle { background: #eff6ff; width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: #222222; }
.icon-circle i { width: 35px; height: 35px; }

.help-email-card { background: #ffffff; border: 2px solid #e2e8f0; border-radius: 20px; padding: 40px; margin: 30px 0; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.email-link { font-size: 1.8rem; color: #222222; text-decoration: none; font-weight: bold; display: block; margin: 15px 0; }
.subject-instructions { background: #f8fafc; padding: 25px; border-radius: 12px; margin-top: 30px; text-align: left; }
.subject-example { background: #ffffff; padding: 10px 15px; border-left: 4px solid #222222; margin-top: 10px; font-family: monospace; color: #475569; }

.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 50px 0; }
.contact-item { background: white; padding: 25px; border-radius: 15px; text-align: center; border: 1px solid #f1f5f9; }
.contact-item i { color: #222222; margin-bottom: 15px; stroke-width: 2px; }
.btn-mini { display: inline-block; margin-top: 10px; font-size: 0.8rem; color: #222222; text-decoration: none; font-weight: bold; }

/* --- FOOTER SOCIALS --- */
.footer-socials { display: flex; gap: 15px; margin-top: 20px; }
.footer-socials a { color: #94a3b8; background: rgba(255, 255, 255, 0.05); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.1); }
.footer-socials a i { width: 18px; height: 18px; stroke-width: 2px; }
.footer-socials a:hover { background: #222222; color: white; transform: translateY(-3px); border-color: #222222; }

/* --- NAV HIGHLIGHTS --- */
.nav-item.active { color: #222222 !important; position: relative; }
.nav-item.active::after { content: ''; position: absolute; bottom: -15px; left: 0; width: 100%; height: 3px; background-color: #222222; border-radius: 10px 10px 0 0; }
.nav-item.active-today { background: #222222 !important; color: white !important; padding: 8px 16px; border-radius: 20px; }
.nav-item.active i { stroke-width: 3px; }
@media (max-width: 768px) {
    .tab-item.active { color: #222222 !important; border-top: 2px solid #222222; padding-top: 5px; }
}

.btn-nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: white; border: 1px solid #e2e8f0; border-radius: 50%; color: #64748b; text-decoration: none; transition: all 0.2s ease; margin-left: 10px; }
.btn-nav-icon:hover { background: #f1f5f9; color: #222222; border-color: #222222; transform: scale(1.1); }
.btn-nav-icon i { width: 20px; height: 20px; stroke-width: 2.5px; }

/* --- ERROR/ACCESS DENIED --- */
.error-card { max-width: 500px; margin: 80px auto; background: white; padding: 40px; border-radius: 20px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #fee2e2; }
.error-icon { color: #ef4444; margin-bottom: 20px; }
.error-icon i { width: 64px; height: 64px; stroke-width: 1.5px; }
.error-card h1 { color: #1e293b; font-size: 1.8rem; margin-bottom: 15px; }
.error-card p { color: #64748b; line-height: 1.6; margin-bottom: 30px; }
.btn-outline { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px; color: #475569; text-decoration: none; font-weight: 600; transition: all 0.2s; }
.btn-outline:hover { background: #f8fafc; border-color: #cbd5e0; }

/* --- HISTORY TIMELINE --- */
.history-header { text-align: center; margin-bottom: 50px; }
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: #e2e8f0; }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-dot { position: absolute; left: -35px; top: 5px; width: 12px; height: 12px; background: #222222; border-radius: 50%; border: 3px solid white; box-shadow: 0 0 0 3px #dbeafe; }
.timeline-content { background: white; padding: 20px; border-radius: 15px; border: 1px solid #f1f5f9; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.timeline-date { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: #94a3b8; margin-bottom: 10px; }
.timeline-content h3 { font-size: 1.1rem; color: #1e293b; margin-bottom: 15px; }
.timeline-refs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.timeline-refs span { background: #f8fafc; color: #475569; padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; border: 1px solid #e2e8f0; }
.btn-reread { display: inline-flex; align-items: center; gap: 5px; font-size: 0.85rem; color: #222222; text-decoration: none; font-weight: 600; }
.empty-state { text-align: center; padding: 100px 20px; color: #94a3b8; }
.empty-state i { width: 50px; height: 50px; margin-bottom: 20px; }

/* --- PROFILE --- */
.profile-container { max-width: 600px; margin: 20px auto; background: white; padding: 30px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.avatar-edit { text-align: center; margin-bottom: 30px; }
.avatar-preview img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #f1f5f9; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.input-group.full { grid-column: span 2; }
.input-group label { font-size: 0.85rem; font-weight: 600; color: #64748b; display: flex; align-items: center; gap: 5px; }
.input-group input, .input-group select { padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 1rem; }
.btn-save { width: 100%; margin-top: 30px; background: #222222; color: white; padding: 15px; border: none; border-radius: 12px; font-weight: bold; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; }
#foto { display: none; }
.btn-file { cursor: pointer; color: #222222; font-size: 0.9rem; font-weight: 600; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .input-group.full { grid-column: span 1; } }

/* --- ADMIN --- */
.admin-card { background: white; padding: 30px; border-radius: 15px; margin-bottom: 30px; border: 1px solid #e2e8f0; }
.select-multi { height: 150px; padding: 10px; border-radius: 8px; border: 1px solid #e2e8f0; width: 100%; }
.grid-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.room-item { background: #f8fafc; padding: 20px; border-radius: 12px; border-left: 4px solid #222222; }
.room-item h4 { margin-bottom: 10px; color: #1e293b; }
.room-item p { font-size: 0.85rem; color: #64748b; margin: 5px 0; }
.miembros-tag { display: inline-block; margin-top: 10px; background: #dbeafe; color: #1e40af; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; }

/* --- ROOM DETAILS --- */
.room-info-card { background: #ffffff; border-radius: 15px; padding: 20px; margin-top: 25px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.card-header-icon { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: #222222; }
.card-header-icon h3 { font-size: 1.1rem; color: #1e293b; }
.room-details { border-left: 3px solid #222222; padding-left: 15px; }
.room-name { font-size: 1.2rem; font-weight: bold; color: #1e293b; display: block; }
.room-location { font-size: 0.9rem; color: #64748b; display: flex; align-items: center; gap: 5px; margin-top: 5px; }
.room-meta { margin-top: 15px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.meta-item .label { display: block; font-size: 0.75rem; text-transform: uppercase; color: #94a3b8; font-weight: bold; }
.meta-item .value { color: #475569; font-size: 0.9rem; }
.no-room { background: #f8fafc; padding: 15px; border-radius: 10px; text-align: center; color: #94a3b8; font-size: 0.9rem; }
.btn-leader { display: flex; align-items: center; justify-content: center; gap: 8px; background: #eff6ff; color: #222222; padding: 10px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.btn-leader:hover { background: #dbeafe; }

.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; margin-top: 30px; }
.member-card { display: flex; align-items: center; background: white; padding: 15px; border-radius: 12px; border: 1px solid #f1f5f9; gap: 15px; }
.mini-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.member-info { flex-grow: 1; }
.member-info strong { display: block; font-size: 0.95rem; color: #1e293b; }
.member-info span { font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; }
.contact-icon { color: #cbd5e0; transition: color 0.3s; }
.contact-icon:hover { color: #222222; }

/* --- SEARCH --- */
.search-container { display: flex; flex-direction: column; gap: 10px; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box i { position: absolute; left: 15px; color: #94a3b8; width: 18px; height: 18px; }
.search-box input { width: 100%; padding: 12px 12px 12px 45px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 1rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.search-box input:focus { border-color: #222222; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.member-count { font-size: 0.85rem; color: #64748b; padding-left: 5px; }

/* --- AUTHENTICATION --- */
.auth-wrapper { display: flex; justify-content: center; padding: 40px 15px; background: #f8fafc; }
.auth-card { width: 100%; max-width: 500px; background: white; padding: 40px; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.auth-header h1 { font-size: 1.8rem; text-align: center; margin-bottom: 30px; color: #1e293b; }
.input-group input { width: 100%; padding: 14px 18px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 1rem; box-sizing: border-box; outline: none; transition: all 0.2s; }
.input-group input:focus { border-color: #222222; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.remember-container { margin: 20px 0; }
.switch-wrapper { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch-wrapper input { display: none; }
.switch-slider { width: 40px; height: 20px; background: #cbd5e1; border-radius: 20px; position: relative; transition: 0.3s; }
.switch-slider:before { content: ""; position: absolute; width: 14px; height: 14px; background: white; border-radius: 50%; top: 3px; left: 3px; transition: 0.3s; }
input:checked + .switch-slider { background: #222222; }
input:checked + .switch-slider:before { transform: translateX(20px); }
.switch-text { font-size: 0.95rem; color: #475569; }
.btn-auth { width: 100%; padding: 14px; background: #222222; color: white; border: none; border-radius: 8px; font-weight: 600; font-size: 1.05rem; cursor: pointer; transition: background 0.2s, transform 0.1s; }
.btn-auth:active { transform: scale(0.99); }
.auth-footer-link { text-align: center; margin-top: 15px; padding-top: 15px; border-top: 1px solid #f1f5f9; font-size: 0.85rem; }
.form-row { display: flex; gap: 15px; }
.form-row .input-group { flex: 1; }
@media (max-width: 480px) { .form-row { flex-direction: column; gap: 0; } }

/* --- ALERTS --- */
.alert-error { background-color: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; margin-bottom: 20px; }
.invite-alert { margin-top: 30px; background: #eff6ff; border: 1px solid #dbeafe; padding: 20px; border-radius: 10px; text-align: center; }

/* --- LEADERSHIP BUTTON --- */
.btn-leader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff7ed;
    color: #c2410c;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid #ffedd5;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

.btn-leader:hover {
    background: #ffedd5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
    border-color: #fdba74;
}

.btn-leader i {
    width: 18px;
    height: 18px;
    stroke-width: 2.5px;
}

/* --- BUTTON WHATSAPP --- */
.btn-whatsapp-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25D366;
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    background-color: #1ebc57;
}