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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #374151;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== DROPDOWN DIVIDER ===== */
.dropdown-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 6px 0;
    flex-shrink: 0;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar {
    position: fixed;
    left: -280px;
    top: 53px;
    width: 280px;
    height: calc(100vh - 53px - 44px);
    background: #ffffff;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
    transition: left 0.15s ease-out;
    border-right: 1px solid #e5e7eb;
    z-index: 2000;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 53px;
    left: 0;
    width: 100%;
    height: calc(100vh - 53px - 44px);
    background: transparent;
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-content {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 0;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
}

.sidebar-content:hover {
    scrollbar-color: #cbd5e1 transparent;
}

.sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.sidebar-content:hover::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

.sidebar-content:hover::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar-section {
    padding: 0;
    margin-bottom: 8px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 0.5px;
    margin: 18px 20px 10px 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-transform: capitalize;
}

.sidebar-divider {
    width: calc(100% - 40px);
    height: 1px;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
    margin: 10px 20px 14px 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 15px;
    color: #374151;
    user-select: none;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    font-weight: 500;
    min-height: 48px;
    border-radius: 0;
    position: relative;
}

.menu-item:hover,
.menu-item:focus {
    background: linear-gradient(90deg, #f8fafc 0%, #eff6ff 100%);
    color: #1f2937;
    transform: translateX(3px);
    outline: none;
}

.menu-item > div {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

/* ===== COLORFUL SIDEBAR ICONS ===== */
.menu-item i {
    width: 20px;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-align: center;
}

/* Dashboard Icons */
.fa-home { color: #10b981; }
.fa-tachometer-alt { color: #3b82f6; }
.fa-user { color: #8b5cf6; }
.fa-book { color: #f59e0b; }
.fa-users { color: #06b6d4; }
.fa-hand-holding-heart { color: #ef4444; }
.fa-chart-line { color: #84cc16; }

/* Bible Education Icons */
.fa-bible { color: #7c3aed; }
.fa-university { color: #dc2626; }
.fa-book-reader { color: #059669; }
.fa-chalkboard-teacher { color: #ea580c; }
.fa-video { color: #e11d48; }
.fa-question-circle { color: #0891b2; }
.fa-book-open { color: #65a30d; }
.fa-archive { color: #7c2d12; }
.fa-headphones { color: #9333ea; }
.fa-graduation-cap { color: #0369a1; }
.fa-certificate { color: #be123c; }
.fa-cross { color: #166534; }

/* Church Network Icons */
.fa-church { color: #b45309; }
.fa-edit { color: #4338ca; }
.fa-user-plus { color: #047857; }
.fa-address-book { color: #c2410c; }
.fa-globe { color: #0369a1; }
.fa-calendar-alt { color: #be123c; }
.fa-user-tie { color: #166534; }
.fa-newspaper { color: #7e22ce; }
.fa-handshake { color: #10b981; }
.fa-map-marker-alt { color: #ef4444; }

/* Community and Communication Icons */
.fa-hands-helping { color: #059669; }
.fa-heart { color: #ef4444; }
.fa-users-cog { color: #f59e0b; }
.fa-child { color: #f59e0b; }
.fa-user-friends { color: #06b6d4; }
.fa-female { color: #ec4899; }
.fa-running { color: #84cc16; }
.fa-male { color: #3b82f6; }
.fa-comments { color: #2563eb; }
.fa-envelope { color: #dc2626; }
.fa-comment-dots { color: #8b5cf6; }
.fa-phone-alt { color: #059669; }
.fa-praying-hands { color: #7c3aed; }
.fa-microphone-alt { color: #ea580c; }
.fa-plus-circle { color: #10b981; }

/* Media Icons */
.fa-play-circle { color: #e11d48; }
.fa-tv { color: #0891b2; }
.fa-broadcast-tower { color: #dc2626; }
.fa-pray { color: #7c3aed; }
.fa-podcast { color: #ea580c; }
.fa-microphone { color: #059669; }
.fa-stream { color: #3b82f6; }
.fa-film { color: #8b5cf6; }

/* Prayer & Worship Icons */
.fa-door-open { color: #3b82f6; }
.fa-hands { color: #10b981; }
.fa-globe-americas { color: #0369a1; }
.fa-comment-alt { color: #06b6d4; }
.fa-music { color: #8b5cf6; }
.fa-calendar-day { color: #f59e0b; }
.fa-wall-brick { color: #6b7280; }

/* Ministry & Services Icons */
.fa-dove { color: #7c3aed; }
.fa-tools { color: #ea580c; }
.fa-user-md { color: #10b981; }
.fa-world { color: #0369a1; }
.fa-chart-bar { color: #f59e0b; }
.fa-language { color: #8b5cf6; }

/* Support & Giving Icons */
.fa-donate { color: #10b981; }
.fa-dollar-sign { color: #f59e0b; }
.fa-credit-card { color: #3b82f6; }
.fa-percentage { color: #f59e0b; }
.fa-first-aid { color: #ef4444; }
.fa-medkit { color: #059669; }
.fa-heart-broken { color: #dc2626; }

/* Other Icons */
.fa-project-diagram { color: #8b5cf6; }
.fa-school { color: #dc2626; }
.fa-tint { color: #0891b2; }
.fa-soap { color: #65a30d; }
.fa-building { color: #7c2d12; }
.fa-briefcase { color: #9333ea; }
.fa-life-ring { color: #b45309; }
.fa-search { color: #047857; }
.fa-lightbulb { color: #c2410c; }
.fa-cogs { color: #4338ca; }
.fa-business-time { color: #166534; }
.fa-history { color: #0369a1; }
.fa-eye { color: #be123c; }
.fa-telescope { color: #7e22ce; }
.fa-bullseye { color: #dc2626; }
.fa-quote-left { color: #8b5cf6; }
.fa-cog { color: #6b7280; }
.fa-user-edit { color: #7e22ce; }
.fa-shield-alt { color: #dc2626; }
.fa-bell { color: #7c3aed; }
.fa-info-circle { color: #0891b2; }
.fa-comment { color: #ea580c; }
.fa-folder-open { color: #059669; }
.fa-download { color: #10b981; }

/* Hover Effects for Colored Icons */
.menu-item:hover i,
.menu-item:focus i {
    transform: scale(1.1);
    filter: brightness(1.2) saturate(1.3);
}

.menu-item .arrow {
    font-size: 14px;
    color: #9ca3af;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.menu-item.active .arrow {
    transform: rotate(90deg);
    color: #0066cc;
}

.submenu {
    display: none;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    animation: slideDown 0.25s ease;
    border-left: 3px solid #0066cc;
    margin: 0 8px;
    border-radius: 0 8px 8px 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.submenu.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
    }
}

.submenu .menu-item {
    padding-left: 44px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    min-height: 42px;
}

.submenu .menu-item:hover,
.submenu .menu-item:focus {
    background: linear-gradient(90deg, #ffffff 0%, #f0f9ff 100%);
    color: #1f2937;
    padding-left: 46px;
    outline: none;
}

.submenu .menu-item i {
    width: 18px;
    font-size: 16px;
}

.submenu .menu-item:hover i,
.submenu .menu-item:focus i {
    transform: scale(1.1);
    filter: brightness(1.2) saturate(1.3);
}

/* ===== ENHANCED DROPDOWN STYLES ===== */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 4001;
    border: 1px solid #e5e7eb;
    backdrop-filter: blur(20px);
    min-width: 280px;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.dropdown-menu::-webkit-scrollbar {
    display: none;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-arrow {
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

.dropdown-item {
    padding: 16px 20px;
    color: #374151;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #374151;
}

.dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 16px 16px;
}

.dropdown-item i {
    width: 20px;
    font-size: 16px;
    text-align: center;
}

.dropdown-item .fa-sign-in-alt { color: #10b981; }
.dropdown-item .fa-user-plus { color: #3b82f6; }
.dropdown-item .fa-google { color: #ea4335; }
.dropdown-item .fa-facebook-f { color: #1877f2; }
.dropdown-item .fa-heart { color: #ef4444; }
.dropdown-item .fa-praying-hands { color: #7c3aed; }
.dropdown-item .fa-church { color: #b45309; }
.dropdown-item .fa-key { color: #f59e0b; }
.dropdown-item .fa-eye { color: #8b5cf6; }
.dropdown-item .fa-question-circle { color: #06b6d4; }
.dropdown-item .fa-broadcast-tower { color: #ef4444; }
.dropdown-item .fa-dove { color: #06b6d4; }
.dropdown-item .fa-handshake { color: #10b981; }

/* ===== ENHANCED NOTIFICATION DROPDOWN ===== */
.nav-notif-hdr {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 700;
    color: #1a202c;
    font-size: 17px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-notif-actions {
    display: flex;
    gap: 8px;
}

.nav-notif-action {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.nav-notif-action:hover {
    background: rgba(0, 102, 204, 0.2);
    transform: scale(1.1);
}

.nav-notif-item {
    padding: 14px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    overflow: hidden;
    min-height: 75px;
    border-bottom: 1px solid #f8fafc;
}

.nav-notif-item:hover,
.nav-notif-item:focus {
    background: linear-gradient(90deg, #f0f9ff 0%, #fef3f2 100%);
    transform: translateX(3px);
}

.nav-notif-item:last-child {
    border-bottom: none;
}

.nav-notif-item.unseen {
    background: linear-gradient(90deg, #fef2f2 0%, #fff7ed 100%);
    border-left: 4px solid #dc2626;
}

.nav-notif-item.seen {
    background: linear-gradient(90deg, #f0fdf4 0%, #ecfdf5 100%);
    border-left: 4px solid #16a34a;
}

.nav-notif-icon-wrap {
    flex-shrink: 0;
    position: relative;
}

.nav-notif-icon-bg {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-comment {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.nav-like {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.nav-follower {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.nav-event {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

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

.nav-notif-title {
    font-weight: 600;
    color: #1a202c;
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.nav-notif-text {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

.nav-notif-badge-dot {
    width: 8px;
    height: 8px;
    background-color: #dc2626;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.nav-notif-footer {
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-radius: 0 0 16px 16px;
}

.nav-view-all {
    color: #0066cc;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

.nav-view-all:hover,
.nav-view-all:focus {
    color: #004499;
    background-color: #eff6ff;
    transform: translateY(-2px);
}

/* ===== ENHANCED GRID DROPDOWN ===== */
.grid-dropdown {
    min-width: 380px;
    max-width: 450px;
    padding: 16px;
}

.nav-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-height: 400px;
}

.nav-grid-item {
    background-color: transparent;
    padding: 12px 8px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #374151;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 85px;
    width: 100%;
    box-sizing: border-box;
}

.nav-grid-item:hover,
.nav-grid-item:focus {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 102, 204, 0.12);
    border-color: #bfdbfe;
}

.nav-grid-item i {
    font-size: 24px;
    transition: all 0.25s ease;
    z-index: 1;
    position: relative;
    line-height: 1;
    flex-shrink: 0;
}

.nav-grid-item:hover i,
.nav-grid-item:focus i {
    transform: scale(1.15);
    filter: brightness(1.2) saturate(1.3);
}

.nav-grid-item span {
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
    position: relative;
    line-height: 1.2;
    text-align: center;
}

/* ===== ENHANCED PROFILE DROPDOWN ===== */
.enhanced-profile-dropdown {
    min-width: 320px;
    max-width: 360px;
    right: 0;
    border-radius: 18px;
    padding: 0;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0f2fe;
    scrollbar-width: none;
}

.enhanced-profile-dropdown::-webkit-scrollbar {
    display: none;
}

.new-profile-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar-large {
    position: relative;
    flex-shrink: 0;
}

.profile-img-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-details {
    flex: 1;
    min-width: 0;
}

.profile-name-large {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.profile-email-large {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.profile-menu-new {
    padding: 8px 0;
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 100%);
}

.profile-menu-item-new {
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    border-bottom: 1px solid #f8fafc;
    font-weight: 500;
}

.profile-menu-item-new::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6, #1e40af);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.profile-menu-item-new:hover::before,
.profile-menu-item-new:focus::before {
    transform: scaleY(1);
}

.profile-menu-item-new:hover,
.profile-menu-item-new:focus {
    background: linear-gradient(90deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #1e40af;
    transform: translateX(3px);
}

.profile-menu-item-new:last-child {
    border-bottom: none;
    border-radius: 0 0 18px 18px;
}

.profile-menu-item-new i {
    width: 18px;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-align: center;
}

.profile-menu-item-new .fa-user-circle { color: #3b82f6; }
.profile-menu-item-new .fa-cog { color: #6b7280; }
.profile-menu-item-new .fa-share-alt { color: #10b981; }
.profile-menu-item-new .fa-chart-bar { color: #f59e0b; }
.profile-menu-item-new .fa-wallet { color: #8b5cf6; }
.profile-menu-item-new .fa-shield-alt { color: #ef4444; }
.profile-menu-item-new .fa-bell { color: #06b6d4; }
.profile-menu-item-new .fa-question-circle { color: #84cc16; }
.profile-menu-item-new .fa-sign-out-alt { color: #dc2626; }

.profile-menu-item-new:hover i,
.profile-menu-item-new:focus i {
    transform: scale(1.1);
    filter: brightness(1.2) saturate(1.3);
}

.profile-menu-item-new .menu-text {
    flex: 1;
}

.profile-menu-item-new .menu-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* ===== ACCESSIBILITY SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
    font-size: 14px;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* ===== NOTIFICATION MODAL ===== */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.notification-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalAppear 0.4s ease;
    border: 1px solid #e5e7eb;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.notification-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.notification-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
}

.notification-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-modal-close:hover {
    color: #0066cc;
    background: #f3f4f6;
    transform: scale(1.1);
}

.notification-modal-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.6;
    color: #374151;
}

.notification-modal-footer {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.notification-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-modal-close-btn {
    background: #6b7280;
    color: white;
}

/* ===== FIXED HEADER ===== */
.header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    padding: 4px 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 53px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.menu-button {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
    font-size: 16px;
}

.menu-button:hover {
    background: #f3f4f6;
    color: #374151;
    transform: scale(1.05);
}

.menu-button.active {
    background: #e5e7eb;
    color: #1f2937;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    padding: 4px;
}

.header-logo:hover {
    transform: scale(1.05);
}

.logo-container {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    color: #7AC943;
    font-size: 28px;
    transition: all 0.3s ease;
}

.header-logo:hover .logo-icon i {
    color: #5a9632;
    transform: scale(1.1);
}

.brand-name {
    font-family: 'Poppins', sans-serif !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    margin-left: -2px !important;
    color: #1f2937 !important;
}

.brand-name:hover {
    color: #1e40af !important;
    transform: scale(1.02) !important;
}

/* Navigation Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 20px;
    position: relative;
}

.profile-button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    background: transparent;
    color: #6b7280;
    font-size: 16px;
    overflow: hidden;
    position: relative;
}

.nav-button:hover {
    background: transparent;
    transform: scale(1.02);
    box-shadow: none;
}

.nav-button.create-btn:hover {
    color: #ef4444;
}

.nav-button.login-btn:hover {
    color: #3b82f6;
}

.nav-button.notification-btn:hover {
    color: #10b981;
}

.nav-button.grid-btn:hover {
    color: #8b5cf6;
}

.profile-button:hover {
    border-color: #d1d5db;
    transform: scale(1.02);
    box-shadow: none;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-dot {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background-color: #10b981;
    animation: pulse 2s infinite;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid #ffffff;
    animation: pulse 2s infinite;
}

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

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-top: 50px;
    margin-bottom: 44px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: calc(100vh - 94px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8vh 24px 20px;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.hero-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.hero-logo:hover {
    transform: scale(1.1);
}

.hero-logo i {
    color: #7AC943;
    font-size: 40px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(122, 201, 67, 0.2));
}

.hero-logo:hover i {
    color: #5a9632;
    transform: scale(1.1);
}

.hero-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 40px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #1f2937 !important;
    text-shadow: 0 2px 4px rgba(31, 41, 55, 0.1) !important;
    margin: 0 !important;
}

.hero-title:hover {
    color: #1e40af !important;
    transform: scale(1.02) !important;
}

/* Search Section */
.search-section {
    width: 100%;
    max-width: 700px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 55px;
    padding: 0 120px 0 55px;
    border: 1px solid #dfe1e5;
    border-radius: 28px;
    font-size: 18px;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-weight: 500;
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
    font-size: 16px;
}

.search-input:focus::placeholder {
    color: #d1d5db;
}

.search-input:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.2);
    background: #ffffff;
    outline: none;
}

.search-input.focused {
    border-color: #3b82f6;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.2);
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0a6;
    font-size: 19px;
    pointer-events: none;
}

.search-actions {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
}

.search-button, .voice-button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 17px;
}

.voice-button {
    background: #f8fafc;
    color: #6b7280;
}

.voice-button:hover {
    background: #e8f0fe;
    color: #3b82f6;
    transform: scale(1.1);
}

.voice-button.listening {
    background: #fef2f2;
    color: #dc2626;
    animation: pulse 1s infinite;
}

.search-button {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.search-button:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Shortcuts */
.shortcuts-section {
    width: 100%;
    max-width: 580px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shortcuts-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.shortcuts-grid {
    display: flex;
    gap: 12px;
    padding: 8px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: calc(110px * 15 + 12px * 14 + 16px);
    cursor: grab;
}

.shortcuts-grid:active {
    cursor: grabbing;
}

.shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    background: transparent;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    min-width: 110px;
    max-width: 110px;
    min-height: 110px;
    flex-shrink: 0;
}

.shortcut-item:hover {
    transform: translateY(-2px);
}

.shortcut-item i {
    font-size: 36px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.shortcut-item:hover i {
    transform: scale(1.05);
}

.shortcut-label {
    font-size: 13px;
    text-align: center;
    color: #374151;
    line-height: 1.3;
    font-weight: 600;
    max-width: 100px;
}

/* Navigation Buttons - Enhanced interaction */
.nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #dfe1e5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #6b7280;
    font-size: 18px;
    opacity: 1;
    visibility: visible;
    z-index: 15;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    user-select: none;
}

.nav-btn.prev {
    left: -45px;
}

.nav-btn.next {
    right: -80px;
}

.nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-color: #bfdbfe;
    transform: translateY(-50%) scale(1.05);
}

.nav-btn:active:not(:disabled) {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    color: #9ca3af;
    pointer-events: none;
}

.nav-btn:disabled:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #9ca3af;
    border-color: #dfe1e5;
    transform: translateY(-50%) scale(1);
}

/* Icon Colors */
.icon-red { color: #dc2626; }
.icon-green { color: #059669; }
.icon-orange { color: #ea580c; }
.icon-pink { color: #e11d48; }
.icon-blue { color: #0369a1; }
.icon-cyan { color: #0891b2; }
.icon-purple { color: #8b5cf6; }
.icon-teal { color: #06b6d4; }
.icon-violet { color: #7c3aed; }
.icon-emerald { color: #10b981; }

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    border: 1px solid #e5e7eb;
    margin-top: 8px;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.search-result-text {
    color: #6b7280;
    font-size: 14px;
}

/* ===== BIBLE EDUCATION CARDS SECTION ===== */
.be-cards-section {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.be-section-header {
    margin-bottom: 10px;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: flex-start;
}

.be-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    text-align: left;
}

.be-results-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.be-results-count {
    color: #5a6c7d;
    font-size: 14px;
    line-height: 1.4;
}

.be-results-count strong {
    color: #2c3e50;
    font-weight: 600;
}

.be-search-time {
    color: #9ca3af;
    font-size: 13px;
    font-style: italic;
    line-height: 1.4;
}

.be-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* ===== BIBLE EDUCATION CARD STYLES ===== */
.be-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    padding: 24px;
    transition: none;
    border: 1px solid #dde4ea;
    position: relative;
}

.be-card-title {
    color: #1a0dab;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    line-height: 1.4;
}

.be-card-title:hover {
    color: #0b53da;
    text-decoration: underline;
}

.be-card-url {
    color: #006621;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 400;
}

/* ===== Facebook-Style See More System ===== */
.be-card-desc {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 15px;
}

.be-see-more-link {
    color: #4a90e2;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s ease;
    text-decoration: none;
    font-size: inherit;
}

.be-see-more-link:hover {
    color: #357abd;
    text-decoration: underline;
}

/* ===== Card Details ===== */
.be-details {
    margin-top: 16px;
    padding-top: 16px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.be-details.be-visible {
    display: block;
    opacity: 1;
}

.be-expanded {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
}

.be-expanded-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
}

.be-expanded-text {
    line-height: 1.7;
}

.be-verse-num {
    font-weight: 700;
    margin-right: 8px;
    color: #4a90e2;
    font-size: 14px;
}

.be-ref-link {
    display: inline-block;
    color: #4a90e2;
    margin-top: 12px;
    font-size: 14px;
    transition: all 0.15s ease-in-out;
    font-weight: 500;
}

.be-commentary {
    background: rgb(74 144 226 / 0.05);
    border-left: 3px solid #4a90e2;
    padding: 18px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
}

.be-commentary-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.be-related {
    margin-top: 16px;
}

.be-related-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
}

.be-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.be-related-item {
    background: #e8f0fe;
    color: #4a90e2;
    padding: 8px 14px;
    border-radius: 24px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    font-weight: 500;
}

.be-related-item:hover {
    background: #d2e3fc;
    transform: translateY(-1px);
}

/* ===== Social Actions ===== */
.be-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    gap: 8px;
}

.be-actions-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.be-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.be-voice-btn,
.be-read-btn {
    color: #059669;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.15s ease-in-out;
    background: transparent;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.be-voice-btn:hover,
.be-read-btn:hover {
    background-color: rgb(5 150 105 / 0.1);
    transform: scale(1.05);
    border-color: #059669;
}

.be-voice-btn.be-playing {
    color: #10b981;
    animation: be-pulse 2s infinite;
    background-color: rgb(16 185 129 / 0.1);
    border-color: #10b981;
    box-shadow: 0 0 12px rgb(16 185 129 / 0.3);
}

.be-read-btn.be-read-active {
    color: #10b981;
    background-color: rgb(16 185 129 / 0.1);
    border-color: #10b981;
}

.be-listen-count,
.be-read-count {
    font-size: 12px;
    color: #95a5a6;
    font-weight: 500;
    margin-left: -8px;
    white-space: nowrap;
}

.be-social-btn {
    background: transparent;
    border: 1px solid #dde4ea;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 24px;
    cursor: pointer;
    color: #5a6c7d;
    transition: all 0.15s ease-in-out;
    font-size: 12px;
    font-weight: 500;
    min-height: 32px;
    white-space: nowrap;
}

.be-social-btn:hover {
    background-color: rgb(0 0 0 / 0.04);
    color: #2c3e50;
    border-color: #4a90e2;
    transform: translateY(-1px);
}

.be-social-btn.be-active {
    color: #4a90e2;
    border-color: #4a90e2;
    background-color: rgb(74 144 226 / 0.08);
}

.be-social-btn i {
    font-size: 14px;
    flex-shrink: 0;
}

.be-like-btn i {
    color: #ef4444;
}

.be-comment-btn i {
    color: #3b82f6;
}

.be-share-btn i {
    color: #10b981;
}

.be-social-count {
    font-size: 11px;
    font-weight: 600;
    margin-left: 2px;
    color: #95a5a6;
    background: rgb(0 0 0 / 0.05);
    padding: 1px 4px;
    border-radius: 8px;
    min-width: 18px;
    text-align: center;
}

.be-social-btn.be-active .be-social-count {
    background: rgb(74 144 226 / 0.15);
    color: #4a90e2;
}

/* ===== Comment & Share ===== */
.be-comment-section {
    margin-top: 12px;
    padding-top: 12px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.be-comment-section.be-visible {
    display: block;
    opacity: 1;
}

.be-comment-container {
    display: flex;
    gap: 8px;
}

.be-comment-input {
    flex: 1;
    border: 1px solid #dde4ea;
    border-radius: 24px;
    padding: 8px 14px;
    font-size: 13px;
    outline: none;
    transition: all 0.15s ease-in-out;
    background: #ffffff;
    min-height: 34px;
}

.be-comment-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgb(74 144 226 / 0.1);
}

.be-comment-submit {
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 24px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s ease-in-out;
    min-height: 34px;
    white-space: nowrap;
}

.be-comment-submit:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.be-share-dropdown {
    position: absolute;
    bottom: 40px;
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    padding: 6px 0;
    z-index: 100;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-width: 160px;
    border: 1px solid #dde4ea;
}

.be-share-dropdown.be-visible {
    display: block;
    opacity: 1;
}

.be-share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.be-share-option:hover {
    background-color: rgb(0 0 0 / 0.04);
}

.be-share-option i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.be-share-option[data-platform="facebook"] i { color: #1877f2; }
.be-share-option[data-platform="twitter"] i { color: #1da1f2; }
.be-share-option[data-platform="whatsapp"] i { color: #25d366; }
.be-share-option[data-platform="email"] i { color: #ea4335; }
.be-share-option[data-platform="copy"] i { color: #95a5a6; }

/* ===== Toast System ===== */
.be-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
}

.be-toast {
    background: #ffffff;
    color: #2c3e50;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    max-width: 300px;
    border-left: 4px solid #10b981;
    animation: be-slideInRight 0.3s ease;
    pointer-events: auto;
}

.be-toast.be-error { border-left-color: #ef4444; }
.be-toast.be-warning { border-left-color: #f59e0b; }
.be-toast.be-info { border-left-color: #3b82f6; }

/* ===== Animations ===== */
@keyframes be-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

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

@keyframes be-readingGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgb(16 185 129 / 0.15);
    }
    50% {
        box-shadow: 0 6px 28px rgb(16 185 129 / 0.2);
    }
}

/* ===== Reading Active State ===== */
.be-card.be-reading-active {
    border: 1px solid #10b981;
    background: linear-gradient(135deg, rgb(16 185 129 / 0.03) 0%, rgb(16 185 129 / 0.01) 100%);
    box-shadow: 0 4px 20px rgb(16 185 129 / 0.15);
    transform: translateY(-1px);
    animation: be-readingGlow 3s ease-in-out infinite;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #374151;
    padding: 6px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-top: 1px solid #e5e7eb;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 44px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.footer-left,
.footer-right {
    display: flex;
    gap: 14px;
    align-items: center;
}

.footer-link {
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 7px;
    position: relative;
}

.footer-link:hover {
    color: #1e40af;
    transform: none;
}

/* Floating Social Icons */
.floating-social {
    position: fixed;
    bottom: 54px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1500;
}

.social-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    backdrop-filter: blur(12px);
    background: #ffffff;
    cursor: pointer;
}

.social-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: #d1d5db;
}

.social-icon:nth-child(1) i {
    color: #f59e0b;
}

.social-icon:nth-child(1):hover i {
    color: #d97706;
}

.social-icon:nth-child(2) i {
    color: #0084ff;
}

.social-icon:nth-child(2):hover i {
    color: #0066cc;
}

.social-icon:nth-child(3) i {
    color: #25d366;
}

.social-icon:nth-child(3):hover i {
    color: #1da851;
}

.social-icon:nth-child(4) i {
    color: #8b5cf6;
}

.social-icon:nth-child(4):hover i {
    color: #7c3aed;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    body {
        padding-top: 56px;
        padding-bottom: 80px;
    }

    .header {
        height: 56px;
        padding: 6px 16px;
    }

    .sidebar {
        width: 260px;
        left: -260px;
        top: 56px;
        height: calc(100vh - 56px - 80px);
        transition: left 0.12s ease-out;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-overlay {
        top: 56px;
        height: calc(100vh - 56px - 80px);
    }

    .main-content {
        margin-top: 56px;
        margin-bottom: 80px;
        padding: 8vh 16px 20px;
    }

    .brand-name {
        font-size: 24px !important;
        margin-left: 8px !important;
    }

    .logo-container {
        width: 32px;
        height: 32px;
    }

    .logo-icon i {
        font-size: 28px;
    }

    .menu-button {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .nav-button {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .profile-button {
        width: 36px;
        height: 36px;
    }

    .hero-brand {
        flex-direction: column;
        gap: 16px;
    }

    .hero-title {
        font-size: 36px !important;
    }

    .search-input {
        height: 50px;
        padding: 0 105px 0 52px;
        font-size: 16px;
    }

    .shortcuts-section {
        max-width: 480px;
    }

    .shortcuts-grid {
        width: calc(90px * 15 + 12px * 14 + 16px);
    }

    .shortcut-item {
        min-width: 90px;
        max-width: 90px;
        min-height: 90px;
        padding: 12px 6px;
    }

    .shortcut-item i {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .shortcut-label {
        font-size: 11px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .nav-btn.prev {
        left: -42px;
    }

    .nav-btn.next {
        right: -75px;
    }

    .nav-btn:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .nav-btn:disabled:hover {
        transform: translateY(-50%) scale(1);
    }

    .be-cards-section {
        margin-top: 16px;
        margin-left: auto;
        margin-right: auto;
    }

    .be-section-title {
        font-size: 20px;
    }

    .be-card {
        padding: 20px;
    }

    .be-actions {
        flex-wrap: wrap;
        gap: 6px;
    }

    .be-social-btn {
        padding: 4px 8px;
        font-size: 11px;
        min-height: 28px;
    }

    .be-social-text {
        display: none;
    }

    .footer {
        height: 80px;
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }

    .footer-left,
    .footer-right {
        gap: 16px;
    }

    .footer-link {
        font-size: 14px;
        padding: 8px 12px;
    }

    .floating-social {
        bottom: 90px;
        right: 16px;
        gap: 12px;
    }

    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .search-button, .voice-button {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    /* Mobile Dropdown Positioning */
    .dropdown-menu {
        position: fixed !important;
        top: 60px !important;
        left: 16px !important;
        right: 16px !important;
        min-width: auto !important;
        max-width: none !important;
        margin-top: 0 !important;
        transform: translateY(0) scale(1) !important;
        border-radius: 12px !important;
        width: auto !important;
    }

    .dropdown-arrow {
        display: none !important;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 42px;
        padding-bottom: 70px;
    }

    .header {
        height: 42px;
        padding: 3px 12px;
    }

    .sidebar {
        width: 240px;
        left: -240px;
        top: 42px;
        height: calc(100vh - 42px - 70px);
        transition: left 0.1s ease-out;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-overlay {
        top: 42px;
        height: calc(100vh - 42px - 70px);
    }

    .main-content {
        margin-top: 42px;
        padding: 5vh 12px 16px;
        min-height: calc(100vh - 42px - 70px);
        align-items: flex-start;
    }

    .hero {
        gap: 20px;
    }

    .hero-brand {
        gap: 12px;
        margin-bottom: 8px;
    }

    .brand-name {
        font-size: 20px !important;
        margin-left: 2px !important;
    }

    .logo-container {
        width: 26px;
        height: 26px;
    }

    .logo-icon i {
        font-size: 22px;
    }

    .menu-button {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .nav-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .profile-button {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 32px !important;
    }

    .search-input {
        height: 48px;
        padding: 0 90px 0 48px;
        font-size: 15px;
    }

    .search-input::placeholder {
        font-size: 14px;
    }

    .shortcuts-section {
        max-width: 360px;
    }

    .shortcuts-grid {
        width: calc(80px * 15 + 12px * 14 + 16px);
    }

    .shortcut-item {
        min-width: 80px;
        max-width: 80px;
        min-height: 80px;
        padding: 10px 4px;
    }

    .shortcut-item i {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .shortcut-label {
        font-size: 10px;
    }

    .nav-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .nav-btn.prev {
        left: -40px;
    }

    .nav-btn.next {
        right: -70px;
    }

    .search-button, .voice-button {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .be-cards-section {
        margin-top: 12px;
    }

    .be-section-title {
        font-size: 18px;
    }

    .be-card {
        padding: 16px;
    }

    .be-card-title {
        font-size: 16px;
    }

    .be-card-desc {
        font-size: 14px;
    }

    .footer {
        height: 70px;
        padding: 8px 8px;
        gap: 4px;
        flex-direction: column;
        justify-content: center;
    }

    .footer-left,
    .footer-right {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-link {
        font-size: 10px;
        padding: 2px 4px;
    }

    .floating-social {
        bottom: 80px;
        right: 8px;
        gap: 4px;
    }

    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .notification-modal-content {
        margin: 0 12px;
        width: calc(100% - 24px);
    }

    /* Small Mobile Dropdown Positioning */
    .dropdown-menu {
        position: fixed !important;
        top: 46px !important;
        left: 12px !important;
        right: 12px !important;
        min-width: auto !important;
        max-width: none !important;
        margin-top: 0 !important;
        transform: translateY(0) scale(1) !important;
        border-radius: 12px !important;
        width: auto !important;
    }
}

@media (min-width: 769px) {
    .be-social-text {
        display: inline;
    }
}

/* Remove Focus Outline */
* {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}